diff --git a/CHANGELOG.md b/CHANGELOG.md
index 809cc21376d..f63b1e52cb9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,84 @@
+# Release (2025-06-17)
+
+## General Highlights
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+## Module Highlights
+* `github.com/aws/aws-sdk-go-v2/service/accessanalyzer`: [v1.40.0](service/accessanalyzer/CHANGELOG.md#v1400-2025-06-17)
+ * **Feature**: We are launching a new analyzer type, internal access analyzer. The new analyzer will generate internal access findings, which help customers understand who within their AWS organization or AWS Account has access to their critical AWS resources.
+* `github.com/aws/aws-sdk-go-v2/service/acm`: [v1.33.0](service/acm/CHANGELOG.md#v1330-2025-06-17)
+ * **Feature**: Adds support for Exportable Public Certificates
+* `github.com/aws/aws-sdk-go-v2/service/backup`: [v1.43.0](service/backup/CHANGELOG.md#v1430-2025-06-17)
+ * **Feature**: AWS Backup is adding support for integration of its logically air-gapped vaults with the AWS Organizations Multi-party approval capability.
+* `github.com/aws/aws-sdk-go-v2/service/bedrock`: [v1.35.1](service/bedrock/CHANGELOG.md#v1351-2025-06-17)
+ * **Documentation**: This release of the SDK has the API and documentation for the createcustommodel API. This feature lets you copy a trained model into Amazon Bedrock for inference.
+* `github.com/aws/aws-sdk-go-v2/service/databasemigrationservice`: [v1.53.0](service/databasemigrationservice/CHANGELOG.md#v1530-2025-06-17)
+ * **Feature**: Add "Virtual" field to Data Provider as well as "S3Path" and "S3AccessRoleArn" fields to DataProvider settings
+* `github.com/aws/aws-sdk-go-v2/service/guardduty`: [v1.55.0](service/guardduty/CHANGELOG.md#v1550-2025-06-17)
+ * **Feature**: Adding support for extended threat detection for EKS Audit Logs and EKS Runtime Monitoring.
+* `github.com/aws/aws-sdk-go-v2/service/inspector2`: [v1.38.0](service/inspector2/CHANGELOG.md#v1380-2025-06-17)
+ * **Feature**: Add Code Repository Scanning as part of AWS InspectorV2
+* `github.com/aws/aws-sdk-go-v2/service/mpa`: [v1.0.0](service/mpa/CHANGELOG.md#v100-2025-06-17)
+ * **Release**: New AWS service client module
+ * **Feature**: This release enables customers to create Multi-party approval teams and approval requests to protect supported operations.
+* `github.com/aws/aws-sdk-go-v2/service/networkfirewall`: [v1.51.0](service/networkfirewall/CHANGELOG.md#v1510-2025-06-17)
+ * **Feature**: Release of Active Threat Defense in Network Firewall
+* `github.com/aws/aws-sdk-go-v2/service/organizations`: [v1.39.0](service/organizations/CHANGELOG.md#v1390-2025-06-17)
+ * **Feature**: Add support for policy operations on the SECURITYHUB_POLICY policy type.
+* `github.com/aws/aws-sdk-go-v2/service/securityhub`: [v1.58.0](service/securityhub/CHANGELOG.md#v1580-2025-06-17)
+ * **Feature**: Adds operations, structures, and exceptions required for public preview release of Security Hub V2.
+* `github.com/aws/aws-sdk-go-v2/service/sts`: [v1.34.0](service/sts/CHANGELOG.md#v1340-2025-06-17)
+ * **Feature**: The AWS Security Token Service APIs AssumeRoleWithSAML and AssumeRoleWithWebIdentity can now be invoked without pre-configured AWS credentials in the SDK configuration.
+* `github.com/aws/aws-sdk-go-v2/service/wafv2`: [v1.63.0](service/wafv2/CHANGELOG.md#v1630-2025-06-17)
+ * **Feature**: AWS WAF can now suggest protection packs for you based on the application information you provide when you create a webACL.
+
+# Release (2025-06-16)
+
+## Module Highlights
+* `github.com/aws/aws-sdk-go-v2/service/bedrock`: [v1.35.0](service/bedrock/CHANGELOG.md#v1350-2025-06-16)
+ * **Feature**: This release of the SDK has the API and documentation for the createcustommodel API. This feature lets you copy a Amazon SageMaker trained Amazon Nova model into Amazon Bedrock for inference.
+* `github.com/aws/aws-sdk-go-v2/service/ecr`: [v1.45.0](service/ecr/CHANGELOG.md#v1450-2025-06-16)
+ * **Feature**: The `DescribeImageScanning` API now includes `lastInUseAt` and `InUseCount` fields that can be used to prioritize vulnerability remediation for images that are actively being used.
+* `github.com/aws/aws-sdk-go-v2/service/networkfirewall`: [v1.50.0](service/networkfirewall/CHANGELOG.md#v1500-2025-06-16)
+ * **Feature**: You can now create firewalls using a Transit Gateway instead of a VPC, resulting in a TGW attachment.
+* `github.com/aws/aws-sdk-go-v2/service/sagemaker`: [v1.196.0](service/sagemaker/CHANGELOG.md#v11960-2025-06-16)
+ * **Feature**: This release 1) adds a new S3DataType Converse for SageMaker training 2)adds C8g R7gd M8g C6in P6 P6e instance type for SageMaker endpoint 3) adds m7i, r7i, c7i instance type for SageMaker Training and Processing.
+
+# Release (2025-06-12)
+
+## Module Highlights
+* `github.com/aws/aws-sdk-go-v2/service/apigateway`: [v1.31.3](service/apigateway/CHANGELOG.md#v1313-2025-06-12)
+ * **Documentation**: Documentation updates for Amazon API Gateway
+* `github.com/aws/aws-sdk-go-v2/service/apigatewayv2`: [v1.28.3](service/apigatewayv2/CHANGELOG.md#v1283-2025-06-12)
+ * **Documentation**: Documentation updates for Amazon API Gateway
+* `github.com/aws/aws-sdk-go-v2/service/connectcampaignsv2`: [v1.3.0](service/connectcampaignsv2/CHANGELOG.md#v130-2025-06-12)
+ * **Feature**: Added PutInstanceCommunicationLimits and GetInstanceCommunicationLimits APIs
+* `github.com/aws/aws-sdk-go-v2/service/ecs`: [v1.57.5](service/ecs/CHANGELOG.md#v1575-2025-06-12)
+ * **Documentation**: This Amazon ECS release supports updating the capacityProviderStrategy parameter in update-service.
+* `github.com/aws/aws-sdk-go-v2/service/emrserverless`: [v1.31.0](service/emrserverless/CHANGELOG.md#v1310-2025-06-12)
+ * **Feature**: This release adds support for retrieval of the optional executionIamPolicy field in the GetJobRun API response.
+* `github.com/aws/aws-sdk-go-v2/service/iotfleetwise`: [v1.27.0](service/iotfleetwise/CHANGELOG.md#v1270-2025-06-12)
+ * **Feature**: Add new status READY_FOR_CHECKIN used for vehicle synchronisation
+* `github.com/aws/aws-sdk-go-v2/service/kms`: [v1.41.0](service/kms/CHANGELOG.md#v1410-2025-06-12)
+ * **Feature**: AWS KMS announces the support of ML-DSA key pairs that creates post-quantum safe digital signatures.
+
+# Release (2025-06-11)
+
+## Module Highlights
+* `github.com/aws/aws-sdk-go-v2/service/controlcatalog`: [v1.9.0](service/controlcatalog/CHANGELOG.md#v190-2025-06-11)
+ * **Feature**: Introduced ListControlMappings API that retrieves control mappings. Added control aliases and governed resources fields in GetControl and ListControls APIs. New filtering capability in ListControls API, with implementation identifiers and implementation types.
+* `github.com/aws/aws-sdk-go-v2/service/eks`: [v1.66.0](service/eks/CHANGELOG.md#v1660-2025-06-11)
+ * **Feature**: Release for EKS Pod Identity Cross Account feature and disableSessionTags flag.
+* `github.com/aws/aws-sdk-go-v2/service/lexmodelsv2`: [v1.52.0](service/lexmodelsv2/CHANGELOG.md#v1520-2025-06-11)
+ * **Feature**: Add support for the Assisted NLU feature to improve bot performance
+* `github.com/aws/aws-sdk-go-v2/service/networkmanager`: [v1.35.0](service/networkmanager/CHANGELOG.md#v1350-2025-06-11)
+ * **Feature**: Add support for public DNS hostname resolution to private IP addresses across Cloud WAN-managed VPCs. Add support for security group referencing across Cloud WAN-managed VPCs.
+* `github.com/aws/aws-sdk-go-v2/service/rds`: [v1.97.2](service/rds/CHANGELOG.md#v1972-2025-06-11)
+ * **Documentation**: Updates Amazon RDS documentation for Amazon RDS for Db2 cross-Region replicas in standby mode.
+* `github.com/aws/aws-sdk-go-v2/service/wafv2`: [v1.62.0](service/wafv2/CHANGELOG.md#v1620-2025-06-11)
+ * **Feature**: WAF now provides two DDoS protection options: resource-level monitoring for Application Load Balancers and the AWSManagedRulesAntiDDoSRuleSet managed rule group for CloudFront distributions.
+
# Release (2025-06-10)
## General Highlights
diff --git a/SMITHY_GO_CODEGEN_VERSION b/SMITHY_GO_CODEGEN_VERSION
index 29437463da6..6834d85eb36 100644
--- a/SMITHY_GO_CODEGEN_VERSION
+++ b/SMITHY_GO_CODEGEN_VERSION
@@ -1 +1 @@
-4114b6eac13e107132c43e8f5f0d470bffc4e91b
+49e32ad2eb31f9440ab32326fc7802cec77a0cce
diff --git a/aws/go_module_metadata.go b/aws/go_module_metadata.go
index fc102ab7e1f..d0f3094bc89 100644
--- a/aws/go_module_metadata.go
+++ b/aws/go_module_metadata.go
@@ -3,4 +3,4 @@
package aws
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.36.4"
+const goModuleVersion = "1.36.5"
diff --git a/aws/protocol/eventstream/CHANGELOG.md b/aws/protocol/eventstream/CHANGELOG.md
index ddb162b3677..755e75e42aa 100644
--- a/aws/protocol/eventstream/CHANGELOG.md
+++ b/aws/protocol/eventstream/CHANGELOG.md
@@ -1,3 +1,7 @@
+# v1.6.11 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+
# v1.6.10 (2025-02-18)
* **Bug Fix**: Bump go version to 1.22
diff --git a/aws/protocol/eventstream/go.mod b/aws/protocol/eventstream/go.mod
index 7e6af5d3033..625b0351233 100644
--- a/aws/protocol/eventstream/go.mod
+++ b/aws/protocol/eventstream/go.mod
@@ -2,6 +2,6 @@ module github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream
go 1.22
-require github.com/aws/smithy-go v1.22.2
+require github.com/aws/smithy-go v1.22.4
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/aws/protocol/eventstream/go.sum b/aws/protocol/eventstream/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/aws/protocol/eventstream/go.sum
+++ b/aws/protocol/eventstream/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/aws/protocol/eventstream/go_module_metadata.go b/aws/protocol/eventstream/go_module_metadata.go
index 01981f46485..588e8404b2b 100644
--- a/aws/protocol/eventstream/go_module_metadata.go
+++ b/aws/protocol/eventstream/go_module_metadata.go
@@ -3,4 +3,4 @@
package eventstream
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.6.10"
+const goModuleVersion = "1.6.11"
diff --git a/codegen/sdk-codegen/aws-models/accessanalyzer.json b/codegen/sdk-codegen/aws-models/accessanalyzer.json
index 8d219f6a574..8649a52fbe6 100644
--- a/codegen/sdk-codegen/aws-models/accessanalyzer.json
+++ b/codegen/sdk-codegen/aws-models/accessanalyzer.json
@@ -9,7 +9,7 @@
"traits": {
"smithy.api#addedDefault": {},
"smithy.api#default": [],
- "smithy.api#documentation": "
A list of actions for the access permissions. Any strings that can be used as an action\n in an IAM policy can be used in the list of actions to check.
",
+ "smithy.api#documentation": "A list of actions for the access permissions. Any strings that can be used as an action in an IAM policy can be used in the list of actions to check.
",
"smithy.api#length": {
"max": 100
}
@@ -19,7 +19,7 @@
"target": "com.amazonaws.accessanalyzer#ResourcesList",
"traits": {
"smithy.api#default": [],
- "smithy.api#documentation": "A list of resources for the access permissions. Any strings that can be used as an\n Amazon Resource Name (ARN) in an IAM policy can be used in the list of resources to\n check. You can only use a wildcard in the portion of the ARN that specifies the resource\n ID.
",
+ "smithy.api#documentation": "A list of resources for the access permissions. Any strings that can be used as an Amazon Resource Name (ARN) in an IAM policy can be used in the list of resources to check. You can only use a wildcard in the portion of the ARN that specifies the resource ID.
",
"smithy.api#length": {
"max": 100
}
@@ -27,7 +27,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about actions and resources that define permissions to check\n against a policy.
"
+ "smithy.api#documentation": "Contains information about actions and resources that define permissions to check against a policy.
"
}
},
"com.amazonaws.accessanalyzer#AccessAnalyzer": {
@@ -132,7 +132,7 @@
},
"aws.protocols#restJson1": {},
"smithy.api#cors": {},
- "smithy.api#documentation": "Identity and Access Management Access Analyzer helps you to set, verify, and refine your IAM policies by providing\n a suite of capabilities. Its features include findings for external and unused access,\n basic and custom policy checks for validating policies, and policy generation to generate\n fine-grained policies. To start using IAM Access Analyzer to identify external or unused access,\n you first need to create an analyzer.
\n \n External access analyzers help identify potential risks\n of accessing resources by enabling you to identify any resource policies that grant access\n to an external principal. It does this by using logic-based reasoning to analyze\n resource-based policies in your Amazon Web Services environment. An external principal can be another\n Amazon Web Services account, a root user, an IAM user or role, a federated user, an Amazon Web Services service, or an\n anonymous user. You can also use IAM Access Analyzer to preview public and cross-account access\n to your resources before deploying permissions changes.
\n \n Unused access analyzers help identify potential\n identity access risks by enabling you to identify unused IAM roles, unused access keys,\n unused console passwords, and IAM principals with unused service and action-level\n permissions.
\n Beyond findings, IAM Access Analyzer provides basic and custom policy checks to validate IAM\n policies before deploying permissions changes. You can use policy generation to refine\n permissions by attaching a policy generated using access activity logged in CloudTrail logs.
\n This guide describes the IAM Access Analyzer operations that you can call programmatically.\n For general information about IAM Access Analyzer, see Identity and Access Management Access Analyzer in the\n IAM User Guide.
",
+ "smithy.api#documentation": "Identity and Access Management Access Analyzer helps you to set, verify, and refine your IAM policies by providing a suite of capabilities. Its features include findings for external and unused access, basic and custom policy checks for validating policies, and policy generation to generate fine-grained policies. To start using IAM Access Analyzer to identify external or unused access, you first need to create an analyzer.
External access analyzers help identify potential risks of accessing resources by enabling you to identify any resource policies that grant access to an external principal. It does this by using logic-based reasoning to analyze resource-based policies in your Amazon Web Services environment. An external principal can be another Amazon Web Services account, a root user, an IAM user or role, a federated user, an Amazon Web Services service, or an anonymous user. You can also use IAM Access Analyzer to preview public and cross-account access to your resources before deploying permissions changes.
Unused access analyzers help identify potential identity access risks by enabling you to identify unused IAM roles, unused access keys, unused console passwords, and IAM principals with unused service and action-level permissions.
Beyond findings, IAM Access Analyzer provides basic and custom policy checks to validate IAM policies before deploying permissions changes. You can use policy generation to refine permissions by attaching a policy generated using access activity logged in CloudTrail logs.
This guide describes the IAM Access Analyzer operations that you can call programmatically. For general information about IAM Access Analyzer, see Identity and Access Management Access Analyzer in the IAM User Guide.
",
"smithy.api#paginated": {
"inputToken": "nextToken",
"outputToken": "nextToken",
@@ -1355,14 +1355,14 @@
"status": {
"target": "com.amazonaws.accessanalyzer#AccessPreviewStatus",
"traits": {
- "smithy.api#documentation": "The status of the access preview.
\n \n - \n
\n Creating - The access preview creation is in progress.
\n \n - \n
\n Completed - The access preview is complete. You can preview findings\n for external access to the resource.
\n \n - \n
\n Failed - The access preview creation has failed.
\n \n
",
+ "smithy.api#documentation": "The status of the access preview.
-
Creating - The access preview creation is in progress.
-
Completed - The access preview is complete. You can preview findings for external access to the resource.
-
Failed - The access preview creation has failed.
",
"smithy.api#required": {}
}
},
"statusReason": {
"target": "com.amazonaws.accessanalyzer#AccessPreviewStatusReason",
"traits": {
- "smithy.api#documentation": "Provides more details about the current status of the access preview.
\n For example, if the creation of the access preview fails, a Failed status\n is returned. This failure can be due to an internal issue with the analysis or due to an\n invalid resource configuration.
"
+ "smithy.api#documentation": "Provides more details about the current status of the access preview.
For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid resource configuration.
"
}
}
},
@@ -1376,14 +1376,14 @@
"id": {
"target": "com.amazonaws.accessanalyzer#AccessPreviewFindingId",
"traits": {
- "smithy.api#documentation": "The ID of the access preview finding. This ID uniquely identifies the element in the\n list of access preview findings and is not related to the finding ID in Access\n Analyzer.
",
+ "smithy.api#documentation": "The ID of the access preview finding. This ID uniquely identifies the element in the list of access preview findings and is not related to the finding ID in Access Analyzer.
",
"smithy.api#required": {}
}
},
"existingFindingId": {
"target": "com.amazonaws.accessanalyzer#FindingId",
"traits": {
- "smithy.api#documentation": "The existing ID of the finding in IAM Access Analyzer, provided only for existing\n findings.
"
+ "smithy.api#documentation": "The existing ID of the finding in IAM Access Analyzer, provided only for existing findings.
"
}
},
"existingFindingStatus": {
@@ -1401,7 +1401,7 @@
"action": {
"target": "com.amazonaws.accessanalyzer#ActionList",
"traits": {
- "smithy.api#documentation": "The action in the analyzed policy statement that an external principal has permission to\n perform.
"
+ "smithy.api#documentation": "The action in the analyzed policy statement that an external principal has permission to perform.
"
}
},
"condition": {
@@ -1413,13 +1413,13 @@
"resource": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The resource that an external principal has access to. This is the resource associated\n with the access preview.
"
+ "smithy.api#documentation": "The resource that an external principal has access to. This is the resource associated with the access preview.
"
}
},
"isPublic": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether the policy that generated the finding allows public access to the\n resource.
"
+ "smithy.api#documentation": "Indicates whether the policy that generated the finding allows public access to the resource.
"
}
},
"resourceType": {
@@ -1439,21 +1439,21 @@
"changeType": {
"target": "com.amazonaws.accessanalyzer#FindingChangeType",
"traits": {
- "smithy.api#documentation": "Provides context on how the access preview finding compares to existing access\n identified in IAM Access Analyzer.
\n \n - \n
\n New - The finding is for newly-introduced access.
\n \n - \n
\n Unchanged - The preview finding is an existing finding that would\n remain unchanged.
\n \n - \n
\n Changed - The preview finding is an existing finding with a change in\n status.
\n \n
\n For example, a Changed finding with preview status Resolved\n and existing status Active indicates the existing Active finding\n would become Resolved as a result of the proposed permissions change.
",
+ "smithy.api#documentation": "Provides context on how the access preview finding compares to existing access identified in IAM Access Analyzer.
-
New - The finding is for newly-introduced access.
-
Unchanged - The preview finding is an existing finding that would remain unchanged.
-
Changed - The preview finding is an existing finding with a change in status.
For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.
",
"smithy.api#required": {}
}
},
"status": {
"target": "com.amazonaws.accessanalyzer#FindingStatus",
"traits": {
- "smithy.api#documentation": "The preview status of the finding. This is what the status of the finding would be after\n permissions deployment. For example, a Changed finding with preview status\n Resolved and existing status Active indicates the existing\n Active finding would become Resolved as a result of the\n proposed permissions change.
",
+ "smithy.api#documentation": "The preview status of the finding. This is what the status of the finding would be after permissions deployment. For example, a Changed finding with preview status Resolved and existing status Active indicates the existing Active finding would become Resolved as a result of the proposed permissions change.
",
"smithy.api#required": {}
}
},
"resourceOwnerAccount": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning\n account is the account in which the resource was created.
",
+ "smithy.api#documentation": "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.
",
"smithy.api#required": {}
}
},
@@ -1466,13 +1466,13 @@
"sources": {
"target": "com.amazonaws.accessanalyzer#FindingSourceList",
"traits": {
- "smithy.api#documentation": "The sources of the finding. This indicates how the access that generated the finding is\n granted. It is populated for Amazon S3 bucket findings.
"
+ "smithy.api#documentation": "The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
"
}
},
"resourceControlPolicyRestriction": {
"target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
"traits": {
- "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations\n resource control policy (RCP).
"
+ "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP).
"
}
}
},
@@ -1526,7 +1526,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Provides more details about the current status of the access preview. For example, if\n the creation of the access preview fails, a Failed status is returned. This\n failure can be due to an internal issue with the analysis or due to an invalid proposed\n resource configuration.
"
+ "smithy.api#documentation": "Provides more details about the current status of the access preview. For example, if the creation of the access preview fails, a Failed status is returned. This failure can be due to an internal issue with the analysis or due to an invalid proposed resource configuration.
"
}
},
"com.amazonaws.accessanalyzer#AccessPreviewStatusReasonCode": {
@@ -1571,7 +1571,7 @@
"status": {
"target": "com.amazonaws.accessanalyzer#AccessPreviewStatus",
"traits": {
- "smithy.api#documentation": "The status of the access preview.
\n \n - \n
\n Creating - The access preview creation is in progress.
\n \n - \n
\n Completed - The access preview is complete and previews the findings\n for external access to the resource.
\n \n - \n
\n Failed - The access preview creation has failed.
\n \n
",
+ "smithy.api#documentation": "The status of the access preview.
-
Creating - The access preview creation is in progress.
-
Completed - The access preview is complete and previews the findings for external access to the resource.
-
Failed - The access preview creation has failed.
",
"smithy.api#required": {}
}
},
@@ -1627,7 +1627,7 @@
}
},
"traits": {
- "smithy.api#documentation": "You specify each grantee as a type-value pair using one of these types. You can specify\n only one type of grantee. For more information, see PutBucketAcl.
"
+ "smithy.api#documentation": "You specify each grantee as a type-value pair using one of these types. You can specify only one type of grantee. For more information, see PutBucketAcl.
"
}
},
"com.amazonaws.accessanalyzer#AclPermission": {
@@ -1681,12 +1681,12 @@
"exclusions": {
"target": "com.amazonaws.accessanalyzer#AnalysisRuleCriteriaList",
"traits": {
- "smithy.api#documentation": "A list of rules for the analyzer containing criteria to exclude from analysis. Entities\n that meet the rule criteria will not generate findings.
"
+ "smithy.api#documentation": "A list of rules for the analyzer containing criteria to exclude from analysis. Entities that meet the rule criteria will not generate findings.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains information about analysis rules for the analyzer. Analysis rules determine\n which entities will generate findings based on the criteria you define when you create the\n rule.
"
+ "smithy.api#documentation": "Contains information about analysis rules for the analyzer. Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.
"
}
},
"com.amazonaws.accessanalyzer#AnalysisRuleCriteria": {
@@ -1695,18 +1695,18 @@
"accountIds": {
"target": "com.amazonaws.accessanalyzer#AccountIdsList",
"traits": {
- "smithy.api#documentation": "A list of Amazon Web Services account IDs to apply to the analysis rule criteria. The accounts cannot\n include the organization analyzer owner account. Account IDs can only be applied to the\n analysis rule criteria for organization-level analyzers. The list cannot include more than\n 2,000 account IDs.
"
+ "smithy.api#documentation": "A list of Amazon Web Services account IDs to apply to the analysis rule criteria. The accounts cannot include the organization analyzer owner account. Account IDs can only be applied to the analysis rule criteria for organization-level analyzers. The list cannot include more than 2,000 account IDs.
"
}
},
"resourceTags": {
"target": "com.amazonaws.accessanalyzer#TagsList",
"traits": {
- "smithy.api#documentation": "An array of key-value pairs to match for your resources. You can use the set of Unicode\n letters, digits, whitespace, _, ., /,\n =, +, and -.
\n For the tag key, you can specify a value that is 1 to 128 characters in length and\n cannot be prefixed with aws:.
\n For the tag value, you can specify a value that is 0 to 256 characters in length. If the\n specified tag value is 0 characters, the rule is applied to all principals with the\n specified tag key.
"
+ "smithy.api#documentation": "An array of key-value pairs to match for your resources. You can use the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with aws:.
For the tag value, you can specify a value that is 0 to 256 characters in length. If the specified tag value is 0 characters, the rule is applied to all principals with the specified tag key.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The criteria for an analysis rule for an analyzer. The criteria determine which entities\n will generate findings.
"
+ "smithy.api#documentation": "The criteria for an analysis rule for an analyzer. The criteria determine which entities will generate findings.
"
}
},
"com.amazonaws.accessanalyzer#AnalysisRuleCriteriaList": {
@@ -1756,20 +1756,20 @@
"isPublic": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether the policy that generated the finding grants public access to the\n resource.
",
+ "smithy.api#documentation": "Indicates whether the policy that generated the finding grants public access to the resource.
",
"smithy.api#required": {}
}
},
"actions": {
"target": "com.amazonaws.accessanalyzer#ActionList",
"traits": {
- "smithy.api#documentation": "The actions that an external principal is granted permission to use by the policy that\n generated the finding.
"
+ "smithy.api#documentation": "The actions that an external principal is granted permission to use by the policy that generated the finding.
"
}
},
"sharedVia": {
"target": "com.amazonaws.accessanalyzer#SharedViaList",
"traits": {
- "smithy.api#documentation": "Indicates how the access that generated the finding is granted. This is populated for\n Amazon S3 bucket findings.
"
+ "smithy.api#documentation": "Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
"
}
},
"status": {
@@ -1877,12 +1877,18 @@
"unusedAccess": {
"target": "com.amazonaws.accessanalyzer#UnusedAccessConfiguration",
"traits": {
- "smithy.api#documentation": "Specifies the configuration of an unused access analyzer for an Amazon Web Services organization or\n account.
"
+ "smithy.api#documentation": "Specifies the configuration of an unused access analyzer for an Amazon Web Services organization or account.
"
+ }
+ },
+ "internalAccess": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessConfiguration",
+ "traits": {
+ "smithy.api#documentation": "Specifies the configuration of an internal access analyzer for an Amazon Web Services organization or account. This configuration determines how the analyzer evaluates access within your Amazon Web Services environment.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the configuration of an analyzer for an Amazon Web Services organization or\n account.
"
+ "smithy.api#documentation": "Contains information about the configuration of an analyzer for an Amazon Web Services organization or account.
"
}
},
"com.amazonaws.accessanalyzer#AnalyzerStatus": {
@@ -1928,7 +1934,7 @@
"type": {
"target": "com.amazonaws.accessanalyzer#Type",
"traits": {
- "smithy.api#documentation": "The type of analyzer, which corresponds to the zone of trust chosen for the\n analyzer.
",
+ "smithy.api#documentation": "The type of analyzer, which corresponds to the zone of trust chosen for the analyzer.
",
"smithy.api#required": {}
}
},
@@ -1960,20 +1966,20 @@
"status": {
"target": "com.amazonaws.accessanalyzer#AnalyzerStatus",
"traits": {
- "smithy.api#documentation": "The status of the analyzer. An Active analyzer successfully monitors\n supported resources and generates new findings. The analyzer is Disabled when\n a user action, such as removing trusted access for Identity and Access Management Access Analyzer from Organizations, causes\n the analyzer to stop generating new findings. The status is Creating when the\n analyzer creation is in progress and Failed when the analyzer creation has\n failed.
",
+ "smithy.api#documentation": "The status of the analyzer. An Active analyzer successfully monitors supported resources and generates new findings. The analyzer is Disabled when a user action, such as removing trusted access for Identity and Access Management Access Analyzer from Organizations, causes the analyzer to stop generating new findings. The status is Creating when the analyzer creation is in progress and Failed when the analyzer creation has failed.
",
"smithy.api#required": {}
}
},
"statusReason": {
"target": "com.amazonaws.accessanalyzer#StatusReason",
"traits": {
- "smithy.api#documentation": "The statusReason provides more details about the current status of the\n analyzer. For example, if the creation for the analyzer fails, a Failed status\n is returned. For an analyzer with organization as the type, this failure can be due to an\n issue with creating the service-linked roles required in the member accounts of the Amazon Web Services\n organization.
"
+ "smithy.api#documentation": "The statusReason provides more details about the current status of the analyzer. For example, if the creation for the analyzer fails, a Failed status is returned. For an analyzer with organization as the type, this failure can be due to an issue with creating the service-linked roles required in the member accounts of the Amazon Web Services organization.
"
}
},
"configuration": {
"target": "com.amazonaws.accessanalyzer#AnalyzerConfiguration",
"traits": {
- "smithy.api#documentation": "Specifies whether the analyzer is an external access or unused access analyzer.
"
+ "smithy.api#documentation": "Specifies if the analyzer is an external access, unused access, or internal access analyzer.
"
}
}
},
@@ -2013,7 +2019,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retroactively applies the archive rule to existing findings that meet the archive rule\n criteria.
",
+ "smithy.api#documentation": "Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
",
"smithy.api#http": {
"uri": "/archive-rule",
"method": "PUT",
@@ -2116,7 +2122,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about an archive rule. Archive rules automatically archive new\n findings that meet the criteria you define when you create the rule.
"
+ "smithy.api#documentation": "Contains information about an archive rule. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
"
}
},
"com.amazonaws.accessanalyzer#ArchiveRulesList": {
@@ -2163,7 +2169,7 @@
"jobId": {
"target": "com.amazonaws.accessanalyzer#JobId",
"traits": {
- "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration\n operation. The JobId can be used with GetGeneratedPolicy to\n retrieve the generated policies or used with CancelPolicyGeneration to cancel\n the policy generation request.
",
+ "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
@@ -2291,7 +2297,7 @@
"access": {
"target": "com.amazonaws.accessanalyzer#AccessList",
"traits": {
- "smithy.api#documentation": "An access object containing the permissions that shouldn't be granted by the specified\n policy. If only actions are specified, IAM Access Analyzer checks for access to peform at least\n one of the actions on any resource in the policy. If only resources are specified, then\n IAM Access Analyzer checks for access to perform any action on at least one of the resources. If\n both actions and resources are specified, IAM Access Analyzer checks for access to perform at\n least one of the specified actions on at least one of the specified resources.
",
+ "smithy.api#documentation": "An access object containing the permissions that shouldn't be granted by the specified policy. If only actions are specified, IAM Access Analyzer checks for access to peform at least one of the actions on any resource in the policy. If only resources are specified, then IAM Access Analyzer checks for access to perform any action on at least one of the resources. If both actions and resources are specified, IAM Access Analyzer checks for access to perform at least one of the specified actions on at least one of the specified resources.
",
"smithy.api#length": {
"max": 1
},
@@ -2301,7 +2307,7 @@
"policyType": {
"target": "com.amazonaws.accessanalyzer#AccessCheckPolicyType",
"traits": {
- "smithy.api#documentation": "The type of policy. Identity policies grant permissions to IAM principals. Identity\n policies include managed and inline policies for IAM roles, users, and groups.
\n Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust\n policies for IAM roles and bucket policies for Amazon S3 buckets.
",
+ "smithy.api#documentation": "The type of policy. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets.
",
"smithy.api#required": {}
}
}
@@ -2316,7 +2322,7 @@
"result": {
"target": "com.amazonaws.accessanalyzer#CheckAccessNotGrantedResult",
"traits": {
- "smithy.api#documentation": "The result of the check for whether the access is allowed. If the result is\n PASS, the specified policy doesn't allow any of the specified permissions\n in the access object. If the result is FAIL, the specified policy might allow\n some or all of the permissions in the access object.
"
+ "smithy.api#documentation": "The result of the check for whether the access is allowed. If the result is PASS, the specified policy doesn't allow any of the specified permissions in the access object. If the result is FAIL, the specified policy might allow some or all of the permissions in the access object.
"
}
},
"message": {
@@ -2380,7 +2386,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Checks whether new access is allowed for an updated policy when compared to the existing\n policy.
\n You can find examples for reference policies and learn how to set up and run a custom\n policy check for new access in the IAM Access Analyzer custom policy checks samples repository on GitHub. The reference\n policies in this repository are meant to be passed to the\n existingPolicyDocument request parameter.
",
+ "smithy.api#documentation": "Checks whether new access is allowed for an updated policy when compared to the existing policy.
You can find examples for reference policies and learn how to set up and run a custom policy check for new access in the IAM Access Analyzer custom policy checks samples repository on GitHub. The reference policies in this repository are meant to be passed to the existingPolicyDocument request parameter.
",
"smithy.api#http": {
"uri": "/policy/check-no-new-access",
"method": "POST",
@@ -2412,7 +2418,7 @@
"policyType": {
"target": "com.amazonaws.accessanalyzer#AccessCheckPolicyType",
"traits": {
- "smithy.api#documentation": "The type of policy to compare. Identity policies grant permissions to IAM principals.\n Identity policies include managed and inline policies for IAM roles, users, and\n groups.
\n Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust\n policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic\n input such as identity policy or resource policy or a specific input such as managed policy\n or Amazon S3 bucket policy.
",
+ "smithy.api#documentation": "The type of policy to compare. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
",
"smithy.api#required": {}
}
}
@@ -2427,7 +2433,7 @@
"result": {
"target": "com.amazonaws.accessanalyzer#CheckNoNewAccessResult",
"traits": {
- "smithy.api#documentation": "The result of the check for new access. If the result is PASS, no new\n access is allowed by the updated policy. If the result is FAIL, the updated\n policy might allow new access.
"
+ "smithy.api#documentation": "The result of the check for new access. If the result is PASS, no new access is allowed by the updated policy. If the result is FAIL, the updated policy might allow new access.
"
}
},
"message": {
@@ -2491,7 +2497,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Checks whether a resource policy can grant public access to the specified resource\n type.
",
+ "smithy.api#documentation": "Checks whether a resource policy can grant public access to the specified resource type.
",
"smithy.api#examples": [
{
"title": "Passing check. S3 Bucket policy without public access.",
@@ -2547,7 +2553,7 @@
"resourceType": {
"target": "com.amazonaws.accessanalyzer#AccessCheckResourceType",
"traits": {
- "smithy.api#documentation": "The type of resource to evaluate for public access. For example, to check for public\n access to Amazon S3 buckets, you can choose AWS::S3::Bucket for the resource\n type.
\n For resource types not supported as valid values, IAM Access Analyzer will return an\n error.
",
+ "smithy.api#documentation": "The type of resource to evaluate for public access. For example, to check for public access to Amazon S3 buckets, you can choose AWS::S3::Bucket for the resource type.
For resource types not supported as valid values, IAM Access Analyzer will return an error.
",
"smithy.api#required": {}
}
}
@@ -2562,19 +2568,19 @@
"result": {
"target": "com.amazonaws.accessanalyzer#CheckNoPublicAccessResult",
"traits": {
- "smithy.api#documentation": "The result of the check for public access to the specified resource type. If the result\n is PASS, the policy doesn't allow public access to the specified resource\n type. If the result is FAIL, the policy might allow public access to the\n specified resource type.
"
+ "smithy.api#documentation": "The result of the check for public access to the specified resource type. If the result is PASS, the policy doesn't allow public access to the specified resource type. If the result is FAIL, the policy might allow public access to the specified resource type.
"
}
},
"message": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The message indicating whether the specified policy allows public access to\n resources.
"
+ "smithy.api#documentation": "The message indicating whether the specified policy allows public access to resources.
"
}
},
"reasons": {
"target": "com.amazonaws.accessanalyzer#ReasonSummaryList",
"traits": {
- "smithy.api#documentation": "A list of reasons why the specified resource policy grants public access for the\n resource type.
"
+ "smithy.api#documentation": "A list of reasons why the specified resource policy grants public access for the resource type.
"
}
}
},
@@ -2616,21 +2622,21 @@
"accessRole": {
"target": "com.amazonaws.accessanalyzer#RoleArn",
"traits": {
- "smithy.api#documentation": "The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and\n service last accessed information.
",
+ "smithy.api#documentation": "The ARN of the service role that IAM Access Analyzer uses to access your CloudTrail trail and service last accessed information.
",
"smithy.api#required": {}
}
},
"startTime": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events\n with a timestamp before this time are not considered to generate a policy.
",
+ "smithy.api#documentation": "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.
",
"smithy.api#required": {}
}
},
"endTime": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with\n a timestamp after this time are not considered to generate a policy. If this is not\n included in the request, the default value is the current time.
"
+ "smithy.api#documentation": "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.
"
}
}
},
@@ -2644,21 +2650,21 @@
"trailProperties": {
"target": "com.amazonaws.accessanalyzer#TrailPropertiesList",
"traits": {
- "smithy.api#documentation": "A TrailProperties object that contains settings for trail\n properties.
",
+ "smithy.api#documentation": "A TrailProperties object that contains settings for trail properties.
",
"smithy.api#required": {}
}
},
"startTime": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The start of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events\n with a timestamp before this time are not considered to generate a policy.
",
+ "smithy.api#documentation": "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.
",
"smithy.api#required": {}
}
},
"endTime": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The end of the time range for which IAM Access Analyzer reviews your CloudTrail events. Events with\n a timestamp after this time are not considered to generate a policy. If this is not\n included in the request, the default value is the current time.
",
+ "smithy.api#documentation": "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.
",
"smithy.api#required": {}
}
}
@@ -2765,7 +2771,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Access control configuration structures for your resource. You specify the configuration\n as a type-value pair. You can specify only one type of access control configuration.
"
+ "smithy.api#documentation": "Access control configuration structures for your resource. You specify the configuration as a type-value pair. You can specify only one type of access control configuration.
"
}
},
"com.amazonaws.accessanalyzer#ConfigurationsMap": {
@@ -2842,7 +2848,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates an access preview that allows you to preview IAM Access Analyzer findings for your\n resource before deploying resource permissions.
",
+ "smithy.api#documentation": "Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.
",
"smithy.api#http": {
"uri": "/access-preview",
"method": "PUT",
@@ -2857,14 +2863,14 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the account analyzer used to generate the access preview. You can only create an\n access preview for analyzers with an Account type and Active\n status.
",
+ "smithy.api#documentation": "The ARN of the account analyzer used to generate the access preview. You can only create an access preview for analyzers with an Account type and Active status.
",
"smithy.api#required": {}
}
},
"configurations": {
"target": "com.amazonaws.accessanalyzer#ConfigurationsMap",
"traits": {
- "smithy.api#documentation": "Access control configuration for your resource that is used to generate the access\n preview. The access preview includes findings for external access allowed to the resource\n with the proposed access control configuration. The configuration must contain exactly one\n element.
",
+ "smithy.api#documentation": "Access control configuration for your resource that is used to generate the access preview. The access preview includes findings for external access allowed to the resource with the proposed access control configuration. The configuration must contain exactly one element.
",
"smithy.api#required": {}
}
},
@@ -2940,20 +2946,20 @@
"type": {
"target": "com.amazonaws.accessanalyzer#Type",
"traits": {
- "smithy.api#documentation": "The type of analyzer to create. Only ACCOUNT, ORGANIZATION,\n ACCOUNT_UNUSED_ACCESS, and ORGANIZATION_UNUSED_ACCESS\n analyzers are supported. You can create only one analyzer per account per Region. You can\n create up to 5 analyzers per organization per Region.
",
+ "smithy.api#documentation": "The type of analyzer to create. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.
",
"smithy.api#required": {}
}
},
"archiveRules": {
"target": "com.amazonaws.accessanalyzer#InlineArchiveRulesList",
"traits": {
- "smithy.api#documentation": "Specifies the archive rules to add for the analyzer. Archive rules automatically archive\n findings that meet the criteria you define for the rule.
"
+ "smithy.api#documentation": "Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
"
}
},
"tags": {
"target": "com.amazonaws.accessanalyzer#TagsMap",
"traits": {
- "smithy.api#documentation": "An array of key-value pairs to apply to the analyzer. You can use the set of Unicode\n letters, digits, whitespace, _, ., /,\n =, +, and -.
\n For the tag key, you can specify a value that is 1 to 128 characters in length and\n cannot be prefixed with aws:.
\n For the tag value, you can specify a value that is 0 to 256 characters in length.
"
+ "smithy.api#documentation": "An array of key-value pairs to apply to the analyzer. You can use the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with aws:.
For the tag value, you can specify a value that is 0 to 256 characters in length.
"
}
},
"clientToken": {
@@ -2966,7 +2972,7 @@
"configuration": {
"target": "com.amazonaws.accessanalyzer#AnalyzerConfiguration",
"traits": {
- "smithy.api#documentation": "Specifies the configuration of the analyzer. If the analyzer is an unused access\n analyzer, the specified scope of unused access is used for the configuration.
"
+ "smithy.api#documentation": "Specifies the configuration of the analyzer. If the analyzer is an unused access analyzer, the specified scope of unused access is used for the configuration. If the analyzer is an internal access analyzer, the specified internal access analysis rules are used for the configuration.
"
}
}
},
@@ -3020,7 +3026,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates an archive rule for the specified analyzer. Archive rules automatically archive\n new findings that meet the criteria you define when you create the rule.
\n To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
",
+ "smithy.api#documentation": "Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
",
"smithy.api#http": {
"uri": "/analyzer/{analyzerName}/archive-rule",
"method": "PUT",
@@ -3095,7 +3101,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The criteria to use in the filter that defines the archive rule. For more information on\n available filter keys, see IAM Access Analyzer filter\n keys.
"
+ "smithy.api#documentation": "The criteria to use in the filter that defines the archive rule. For more information on available filter keys, see IAM Access Analyzer filter keys.
"
}
},
"com.amazonaws.accessanalyzer#DeleteAnalyzer": {
@@ -3124,7 +3130,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes the specified analyzer. When you delete an analyzer, IAM Access Analyzer is disabled\n for the account or organization in the current or specific Region. All findings that were\n generated by the analyzer are deleted. You cannot undo this action.
",
+ "smithy.api#documentation": "Deletes the specified analyzer. When you delete an analyzer, IAM Access Analyzer is disabled for the account or organization in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
",
"smithy.api#http": {
"uri": "/analyzer/{analyzerName}",
"method": "DELETE",
@@ -3235,7 +3241,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for a DynamoDB stream. You can propose a\n configuration for a new DynamoDB stream or an existing DynamoDB stream that you own by specifying\n the policy for the DynamoDB stream. For more information, see PutResourcePolicy.
\n \n - \n
If the configuration is for an existing DynamoDB stream and you do not specify the\n DynamoDB policy, then the access preview uses the existing DynamoDB policy for the\n stream.
\n \n - \n
If the access preview is for a new resource and you do not specify the policy,\n then the access preview assumes a DynamoDB stream without a policy.
\n \n - \n
To propose deletion of an existing DynamoDB stream policy, you can specify an empty\n string for the DynamoDB policy.
\n \n
"
+ "smithy.api#documentation": "The proposed access control configuration for a DynamoDB stream. You can propose a configuration for a new DynamoDB stream or an existing DynamoDB stream that you own by specifying the policy for the DynamoDB stream. For more information, see PutResourcePolicy.
-
If the configuration is for an existing DynamoDB stream and you do not specify the DynamoDB policy, then the access preview uses the existing DynamoDB policy for the stream.
-
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes a DynamoDB stream without a policy.
-
To propose deletion of an existing DynamoDB stream policy, you can specify an empty string for the DynamoDB policy.
"
}
},
"com.amazonaws.accessanalyzer#DynamodbStreamPolicy": {
@@ -3252,7 +3258,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for a DynamoDB table or index. You can propose a\n configuration for a new DynamoDB table or index or an existing DynamoDB table or index that you\n own by specifying the policy for the DynamoDB table or index. For more information, see PutResourcePolicy.
\n \n - \n
If the configuration is for an existing DynamoDB table or index and you do not\n specify the DynamoDB policy, then the access preview uses the existing DynamoDB policy for\n the table or index.
\n \n - \n
If the access preview is for a new resource and you do not specify the policy,\n then the access preview assumes a DynamoDB table without a policy.
\n \n - \n
To propose deletion of an existing DynamoDB table or index policy, you can specify an\n empty string for the DynamoDB policy.
\n \n
"
+ "smithy.api#documentation": "The proposed access control configuration for a DynamoDB table or index. You can propose a configuration for a new DynamoDB table or index or an existing DynamoDB table or index that you own by specifying the policy for the DynamoDB table or index. For more information, see PutResourcePolicy.
-
If the configuration is for an existing DynamoDB table or index and you do not specify the DynamoDB policy, then the access preview uses the existing DynamoDB policy for the table or index.
-
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes a DynamoDB table without a policy.
-
To propose deletion of an existing DynamoDB table or index policy, you can specify an empty string for the DynamoDB policy.
"
}
},
"com.amazonaws.accessanalyzer#DynamodbTablePolicy": {
@@ -3273,24 +3279,24 @@
"userIds": {
"target": "com.amazonaws.accessanalyzer#EbsUserIdList",
"traits": {
- "smithy.api#documentation": "The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
\n \n - \n
If the configuration is for an existing Amazon EBS volume snapshot and you do not\n specify the userIds, then the access preview uses the existing shared\n userIds for the snapshot.
\n \n - \n
If the access preview is for a new resource and you do not specify the\n userIds, then the access preview considers the snapshot without any\n userIds.
\n \n - \n
To propose deletion of existing shared accountIds, you can specify an\n empty list for userIds.
\n \n
"
+ "smithy.api#documentation": "The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the userIds, then the access preview uses the existing shared userIds for the snapshot.
-
If the access preview is for a new resource and you do not specify the userIds, then the access preview considers the snapshot without any userIds.
-
To propose deletion of existing shared accountIds, you can specify an empty list for userIds.
"
}
},
"groups": {
"target": "com.amazonaws.accessanalyzer#EbsGroupList",
"traits": {
- "smithy.api#documentation": "The groups that have access to the Amazon EBS volume snapshot. If the value all\n is specified, then the Amazon EBS volume snapshot is public.
\n \n - \n
If the configuration is for an existing Amazon EBS volume snapshot and you do not\n specify the groups, then the access preview uses the existing shared\n groups for the snapshot.
\n \n - \n
If the access preview is for a new resource and you do not specify the\n groups, then the access preview considers the snapshot without any\n groups.
\n \n - \n
To propose deletion of existing shared groups, you can specify an\n empty list for groups.
\n \n
"
+ "smithy.api#documentation": "The groups that have access to the Amazon EBS volume snapshot. If the value all is specified, then the Amazon EBS volume snapshot is public.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups, then the access preview uses the existing shared groups for the snapshot.
-
If the access preview is for a new resource and you do not specify the groups, then the access preview considers the snapshot without any groups.
-
To propose deletion of existing shared groups, you can specify an empty list for groups.
"
}
},
"kmsKeyId": {
"target": "com.amazonaws.accessanalyzer#EbsSnapshotDataEncryptionKeyId",
"traits": {
- "smithy.api#documentation": "The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key\n identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
\n \n - \n
If the configuration is for an existing Amazon EBS volume snapshot and you do not\n specify the kmsKeyId, or you specify an empty string, then the access\n preview uses the existing kmsKeyId of the snapshot.
\n \n - \n
If the access preview is for a new resource and you do not specify the\n kmsKeyId, the access preview considers the snapshot as\n unencrypted.
\n \n
"
+ "smithy.api#documentation": "The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
-
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot.
-
If the access preview is for a new resource and you do not specify the kmsKeyId, the access preview considers the snapshot as unencrypted.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for an Amazon EBS volume snapshot. You can propose\n a configuration for a new Amazon EBS volume snapshot or an Amazon EBS volume snapshot that you own by\n specifying the user IDs, groups, and optional KMS encryption key. For more information,\n see ModifySnapshotAttribute.
"
+ "smithy.api#documentation": "The proposed access control configuration for an Amazon EBS volume snapshot. You can propose a configuration for a new Amazon EBS volume snapshot or an Amazon EBS volume snapshot that you own by specifying the user IDs, groups, and optional KMS encryption key. For more information, see ModifySnapshotAttribute.
"
}
},
"com.amazonaws.accessanalyzer#EbsSnapshotDataEncryptionKeyId": {
@@ -3311,12 +3317,12 @@
"repositoryPolicy": {
"target": "com.amazonaws.accessanalyzer#EcrRepositoryPolicy",
"traits": {
- "smithy.api#documentation": "The JSON repository policy text to apply to the Amazon ECR repository. For more information,\n see Private repository\n policy examples in the Amazon ECR User Guide.
"
+ "smithy.api#documentation": "The JSON repository policy text to apply to the Amazon ECR repository. For more information, see Private repository policy examples in the Amazon ECR User Guide.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for an Amazon ECR repository. You can propose a\n configuration for a new Amazon ECR repository or an existing Amazon ECR repository that you own by\n specifying the Amazon ECR policy. For more information, see Repository.
\n \n - \n
If the configuration is for an existing Amazon ECR repository and you do not specify\n the Amazon ECR policy, then the access preview uses the existing Amazon ECR policy for the\n repository.
\n \n - \n
If the access preview is for a new resource and you do not specify the policy,\n then the access preview assumes an Amazon ECR repository without a policy.
\n \n - \n
To propose deletion of an existing Amazon ECR repository policy, you can specify an\n empty string for the Amazon ECR policy.
\n \n
"
+ "smithy.api#documentation": "The proposed access control configuration for an Amazon ECR repository. You can propose a configuration for a new Amazon ECR repository or an existing Amazon ECR repository that you own by specifying the Amazon ECR policy. For more information, see Repository.
-
If the configuration is for an existing Amazon ECR repository and you do not specify the Amazon ECR policy, then the access preview uses the existing Amazon ECR policy for the repository.
-
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon ECR repository without a policy.
-
To propose deletion of an existing Amazon ECR repository policy, you can specify an empty string for the Amazon ECR policy.
"
}
},
"com.amazonaws.accessanalyzer#EcrRepositoryPolicy": {
@@ -3328,12 +3334,12 @@
"fileSystemPolicy": {
"target": "com.amazonaws.accessanalyzer#EfsFileSystemPolicy",
"traits": {
- "smithy.api#documentation": "The JSON policy definition to apply to the Amazon EFS file system. For more information on\n the elements that make up a file system policy, see Amazon EFS Resource-based policies.
"
+ "smithy.api#documentation": "The JSON policy definition to apply to the Amazon EFS file system. For more information on the elements that make up a file system policy, see Amazon EFS Resource-based policies.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for an Amazon EFS file system. You can propose a\n configuration for a new Amazon EFS file system or an existing Amazon EFS file system that you own by\n specifying the Amazon EFS policy. For more information, see Using file systems in Amazon EFS.
\n \n - \n
If the configuration is for an existing Amazon EFS file system and you do not specify\n the Amazon EFS policy, then the access preview uses the existing Amazon EFS policy for the file\n system.
\n \n - \n
If the access preview is for a new resource and you do not specify the policy,\n then the access preview assumes an Amazon EFS file system without a policy.
\n \n - \n
To propose deletion of an existing Amazon EFS file system policy, you can specify an\n empty string for the Amazon EFS policy.
\n \n
"
+ "smithy.api#documentation": "The proposed access control configuration for an Amazon EFS file system. You can propose a configuration for a new Amazon EFS file system or an existing Amazon EFS file system that you own by specifying the Amazon EFS policy. For more information, see Using file systems in Amazon EFS.
-
If the configuration is for an existing Amazon EFS file system and you do not specify the Amazon EFS policy, then the access preview uses the existing Amazon EFS policy for the file system.
-
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon EFS file system without a policy.
-
To propose deletion of an existing Amazon EFS file system policy, you can specify an empty string for the Amazon EFS policy.
"
}
},
"com.amazonaws.accessanalyzer#EfsFileSystemPolicy": {
@@ -3345,13 +3351,13 @@
"action": {
"target": "com.amazonaws.accessanalyzer#ActionList",
"traits": {
- "smithy.api#documentation": "The action in the analyzed policy statement that an external principal has permission to\n use.
"
+ "smithy.api#documentation": "The action in the analyzed policy statement that an external principal has permission to use.
"
}
},
"condition": {
"target": "com.amazonaws.accessanalyzer#ConditionKeyMap",
"traits": {
- "smithy.api#documentation": "The condition in the analyzed policy statement that resulted in an external access\n finding.
",
+ "smithy.api#documentation": "The condition in the analyzed policy statement that resulted in an external access finding.
",
"smithy.api#required": {}
}
},
@@ -3370,13 +3376,13 @@
"sources": {
"target": "com.amazonaws.accessanalyzer#FindingSourceList",
"traits": {
- "smithy.api#documentation": "The sources of the external access finding. This indicates how the access that generated\n the finding is granted. It is populated for Amazon S3 bucket findings.
"
+ "smithy.api#documentation": "The sources of the external access finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
"
}
},
"resourceControlPolicyRestriction": {
"target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
"traits": {
- "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations\n resource control policy (RCP).
"
+ "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP).
-
APPLICABLE: There is an RCP present in the organization but IAM Access Analyzer does not include it in the evaluation of effective permissions. For example, if s3:DeleteObject is blocked by the RCP and the restriction is APPLICABLE, then s3:DeleteObject would still be included in the list of actions for the finding.
-
FAILED_TO_EVALUATE_RCP: There was an error evaluating the RCP.
-
NOT_APPLICABLE: There was no RCP present in the organization, or there was no RCP applicable to the resource. For example, the resource being analyzed is an Amazon RDS snapshot and there is an RCP in the organization, but the RCP only impacts Amazon S3 buckets.
-
APPLIED: This restriction is not currently available for external access findings.
"
}
}
},
@@ -3390,7 +3396,7 @@
"resourceTypeStatistics": {
"target": "com.amazonaws.accessanalyzer#ResourceTypeStatisticsMap",
"traits": {
- "smithy.api#documentation": "The total number of active cross-account and public findings for each resource type of\n the specified external access analyzer.
"
+ "smithy.api#documentation": "The total number of active cross-account and public findings for each resource type of the specified external access analyzer.
"
}
},
"totalActiveFindings": {
@@ -3413,7 +3419,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Provides aggregate statistics about the findings for the specified external access\n analyzer.
"
+ "smithy.api#documentation": "Provides aggregate statistics about the findings for the specified external access analyzer.
"
}
},
"com.amazonaws.accessanalyzer#FilterCriteriaMap": {
@@ -3444,7 +3450,7 @@
"action": {
"target": "com.amazonaws.accessanalyzer#ActionList",
"traits": {
- "smithy.api#documentation": "The action in the analyzed policy statement that an external principal has permission to\n use.
"
+ "smithy.api#documentation": "The action in the analyzed policy statement that an external principal has permission to use.
"
}
},
"resource": {
@@ -3456,7 +3462,7 @@
"isPublic": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether the policy that generated the finding allows public access to the\n resource.
"
+ "smithy.api#documentation": "Indicates whether the policy that generated the finding allows public access to the resource.
"
}
},
"resourceType": {
@@ -3517,13 +3523,13 @@
"sources": {
"target": "com.amazonaws.accessanalyzer#FindingSourceList",
"traits": {
- "smithy.api#documentation": "The sources of the finding. This indicates how the access that generated the finding is\n granted. It is populated for Amazon S3 bucket findings.
"
+ "smithy.api#documentation": "The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
"
}
},
"resourceControlPolicyRestriction": {
"target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
"traits": {
- "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations\n resource control policy (RCP).
"
+ "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP).
"
}
}
},
@@ -3549,12 +3555,12 @@
"details": {
"target": "com.amazonaws.accessanalyzer#FindingAggregationAccountDetailsMap",
"traits": {
- "smithy.api#documentation": "Provides the number of active findings for each type of unused access for the specified\n Amazon Web Services account.
"
+ "smithy.api#documentation": "Provides the number of active findings for each type of unused access for the specified Amazon Web Services account.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the findings for an Amazon Web Services account in an organization unused\n access analyzer.
"
+ "smithy.api#documentation": "Contains information about the findings for an Amazon Web Services account in an organization unused access analyzer.
"
}
},
"com.amazonaws.accessanalyzer#FindingAggregationAccountDetailsMap": {
@@ -3588,6 +3594,12 @@
"com.amazonaws.accessanalyzer#FindingDetails": {
"type": "union",
"members": {
+ "internalAccessDetails": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessDetails",
+ "traits": {
+ "smithy.api#documentation": "The details for an internal access analyzer finding. This contains information about access patterns identified within your Amazon Web Services organization or account.
"
+ }
+ },
"externalAccessDetails": {
"target": "com.amazonaws.accessanalyzer#ExternalAccessDetails",
"traits": {
@@ -3597,30 +3609,30 @@
"unusedPermissionDetails": {
"target": "com.amazonaws.accessanalyzer#UnusedPermissionDetails",
"traits": {
- "smithy.api#documentation": "The details for an unused access analyzer finding with an unused permission finding\n type.
"
+ "smithy.api#documentation": "The details for an unused access analyzer finding with an unused permission finding type.
"
}
},
"unusedIamUserAccessKeyDetails": {
"target": "com.amazonaws.accessanalyzer#UnusedIamUserAccessKeyDetails",
"traits": {
- "smithy.api#documentation": "The details for an unused access analyzer finding with an unused IAM user access key\n finding type.
"
+ "smithy.api#documentation": "The details for an unused access analyzer finding with an unused IAM user access key finding type.
"
}
},
"unusedIamRoleDetails": {
"target": "com.amazonaws.accessanalyzer#UnusedIamRoleDetails",
"traits": {
- "smithy.api#documentation": "The details for an unused access analyzer finding with an unused IAM role finding\n type.
"
+ "smithy.api#documentation": "The details for an unused access analyzer finding with an unused IAM role finding type.
"
}
},
"unusedIamUserPasswordDetails": {
"target": "com.amazonaws.accessanalyzer#UnusedIamUserPasswordDetails",
"traits": {
- "smithy.api#documentation": "The details for an unused access analyzer finding with an unused IAM user password\n finding type.
"
+ "smithy.api#documentation": "The details for an unused access analyzer finding with an unused IAM user password finding type.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains information about an external access or unused access finding. Only one\n parameter can be used in a FindingDetails object.
"
+ "smithy.api#documentation": "Contains information about an external access or unused access finding. Only one parameter can be used in a FindingDetails object.
"
}
},
"com.amazonaws.accessanalyzer#FindingDetailsList": {
@@ -3651,12 +3663,12 @@
"detail": {
"target": "com.amazonaws.accessanalyzer#FindingSourceDetail",
"traits": {
- "smithy.api#documentation": "Includes details about how the access that generated the finding is granted. This is\n populated for Amazon S3 bucket findings.
"
+ "smithy.api#documentation": "Includes details about how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The source of the finding. This indicates how the access that generated the finding is\n granted. It is populated for Amazon S3 bucket findings.
"
+ "smithy.api#documentation": "The source of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
"
}
},
"com.amazonaws.accessanalyzer#FindingSourceDetail": {
@@ -3665,7 +3677,7 @@
"accessPointArn": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The ARN of the access point that generated the finding. The ARN format depends on\n whether the ARN represents an access point or a multi-region access point.
"
+ "smithy.api#documentation": "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.
"
}
},
"accessPointAccount": {
@@ -3676,7 +3688,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Includes details about how the access that generated the finding is granted. This is\n populated for Amazon S3 bucket findings.
"
+ "smithy.api#documentation": "Includes details about how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
"
}
},
"com.amazonaws.accessanalyzer#FindingSourceList": {
@@ -3761,7 +3773,7 @@
"action": {
"target": "com.amazonaws.accessanalyzer#ActionList",
"traits": {
- "smithy.api#documentation": "The action in the analyzed policy statement that an external principal has permission to\n use.
"
+ "smithy.api#documentation": "The action in the analyzed policy statement that an external principal has permission to use.
"
}
},
"resource": {
@@ -3773,7 +3785,7 @@
"isPublic": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether the finding reports a resource that has a policy that allows public\n access.
"
+ "smithy.api#documentation": "Indicates whether the finding reports a resource that has a policy that allows public access.
"
}
},
"resourceType": {
@@ -3800,7 +3812,7 @@
"analyzedAt": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The time at which the resource-based policy that generated the finding was\n analyzed.
",
+ "smithy.api#documentation": "The time at which the resource-based policy that generated the finding was analyzed.
",
"smithy.api#required": {}
}
},
@@ -3834,13 +3846,13 @@
"sources": {
"target": "com.amazonaws.accessanalyzer#FindingSourceList",
"traits": {
- "smithy.api#documentation": "The sources of the finding. This indicates how the access that generated the finding is\n granted. It is populated for Amazon S3 bucket findings.
"
+ "smithy.api#documentation": "The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
"
}
},
"resourceControlPolicyRestriction": {
"target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
"traits": {
- "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations\n resource control policy (RCP).
"
+ "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP).
"
}
}
},
@@ -3854,7 +3866,7 @@
"analyzedAt": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The time at which the resource-based policy or IAM entity that generated the finding\n was analyzed.
",
+ "smithy.api#documentation": "The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
",
"smithy.api#required": {}
}
},
@@ -3915,7 +3927,7 @@
"findingType": {
"target": "com.amazonaws.accessanalyzer#FindingType",
"traits": {
- "smithy.api#documentation": "The type of the external access or unused access finding.
"
+ "smithy.api#documentation": "The type of the access finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission. For internal access analyzers, the type is InternalAccess.
"
}
}
},
@@ -3946,6 +3958,10 @@
{
"value": "UnusedPermission",
"name": "UNUSED_PERMISSION"
+ },
+ {
+ "value": "InternalAccess",
+ "name": "INTERNAL_ACCESS"
}
]
}
@@ -3971,6 +3987,12 @@
"smithy.api#documentation": "The aggregate statistics for an external access analyzer.
"
}
},
+ "internalAccessFindingsStatistics": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessFindingsStatistics",
+ "traits": {
+ "smithy.api#documentation": "The aggregate statistics for an internal access analyzer. This includes information about active, archived, and resolved findings related to internal access within your Amazon Web Services organization or account.
"
+ }
+ },
"unusedAccessFindingsStatistics": {
"target": "com.amazonaws.accessanalyzer#UnusedAccessFindingsStatistics",
"traits": {
@@ -3979,7 +4001,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the aggregate statistics for an external or unused access\n analyzer. Only one parameter can be used in a FindingsStatistics\n object.
"
+ "smithy.api#documentation": "Contains information about the aggregate statistics for an external or unused access analyzer. Only one parameter can be used in a FindingsStatistics object.
"
}
},
"com.amazonaws.accessanalyzer#FindingsStatisticsList": {
@@ -4050,7 +4072,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer used to generate the finding recommendation.
",
+ "smithy.api#documentation": "The ARN of the analyzer used to generate the finding recommendation.
",
"smithy.api#httpQuery": "analyzerArn",
"smithy.api#required": {}
}
@@ -4078,7 +4100,7 @@
"policy": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The text to use as the content for the new policy. The policy is created using the\n CreatePolicy action.
",
+ "smithy.api#documentation": "The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
",
"smithy.api#required": {}
}
}
@@ -4099,7 +4121,7 @@
"isComplete": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "This value is set to true if the generated policy contains all possible\n actions for a service that IAM Access Analyzer identified from the CloudTrail trail that you specified,\n and false otherwise.
"
+ "smithy.api#documentation": "This value is set to true if the generated policy contains all possible actions for a service that IAM Access Analyzer identified from the CloudTrail trail that you specified, and false otherwise.
"
}
},
"principalArn": {
@@ -4126,14 +4148,14 @@
"properties": {
"target": "com.amazonaws.accessanalyzer#GeneratedPolicyProperties",
"traits": {
- "smithy.api#documentation": "A GeneratedPolicyProperties object that contains properties of the\n generated policy.
",
+ "smithy.api#documentation": "A GeneratedPolicyProperties object that contains properties of the generated policy.
",
"smithy.api#required": {}
}
},
"generatedPolicies": {
"target": "com.amazonaws.accessanalyzer#GeneratedPolicyList",
"traits": {
- "smithy.api#documentation": "The text to use as the content for the new policy. The policy is created using the\n CreatePolicy action.
"
+ "smithy.api#documentation": "The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
"
}
}
},
@@ -4190,7 +4212,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer used to generate the access preview.
",
+ "smithy.api#documentation": "The ARN of the analyzer used to generate the access preview.
",
"smithy.api#httpQuery": "analyzerArn",
"smithy.api#required": {}
}
@@ -4250,7 +4272,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer to retrieve information from.
",
+ "smithy.api#documentation": "The ARN of the analyzer to retrieve information from.
",
"smithy.api#httpQuery": "analyzerArn",
"smithy.api#required": {}
}
@@ -4274,7 +4296,7 @@
"resource": {
"target": "com.amazonaws.accessanalyzer#AnalyzedResource",
"traits": {
- "smithy.api#documentation": "An AnalyzedResource object that contains information that IAM Access Analyzer\n found when it analyzed the resource.
"
+ "smithy.api#documentation": "An AnalyzedResource object that contains information that IAM Access Analyzer found when it analyzed the resource.
"
}
}
},
@@ -4339,7 +4361,7 @@
"analyzer": {
"target": "com.amazonaws.accessanalyzer#AnalyzerSummary",
"traits": {
- "smithy.api#documentation": "An AnalyzerSummary object that contains information about the\n analyzer.
",
+ "smithy.api#documentation": "An AnalyzerSummary object that contains information about the analyzer.
",
"smithy.api#required": {}
}
}
@@ -4374,7 +4396,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves information about an archive rule.
\n To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
",
+ "smithy.api#documentation": "Retrieves information about an archive rule.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
",
"smithy.api#http": {
"uri": "/analyzer/{analyzerName}/archive-rule/{ruleName}",
"method": "GET",
@@ -4447,7 +4469,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves information about the specified finding. GetFinding and GetFindingV2 both use\n access-analyzer:GetFinding in the Action element of an IAM\n policy statement. You must have permission to perform the\n access-analyzer:GetFinding action.
",
+ "smithy.api#documentation": "Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding action.
",
"smithy.api#http": {
"uri": "/finding/{id}",
"method": "GET",
@@ -4584,7 +4606,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer used to generate the finding recommendation.
",
+ "smithy.api#documentation": "The ARN of the analyzer used to generate the finding recommendation.
",
"smithy.api#httpQuery": "analyzerArn",
"smithy.api#required": {}
}
@@ -4649,7 +4671,7 @@
"error": {
"target": "com.amazonaws.accessanalyzer#RecommendationError",
"traits": {
- "smithy.api#documentation": "Detailed information about the reason that the retrieval of a recommendation for the\n finding failed.
"
+ "smithy.api#documentation": "Detailed information about the reason that the retrieval of a recommendation for the finding failed.
"
}
},
"resourceArn": {
@@ -4690,7 +4712,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer that generated the finding.
",
+ "smithy.api#documentation": "The ARN of the analyzer that generated the finding.
",
"smithy.api#httpQuery": "analyzerArn",
"smithy.api#required": {}
}
@@ -4748,7 +4770,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves information about the specified finding. GetFinding and GetFindingV2 both use\n access-analyzer:GetFinding in the Action element of an IAM\n policy statement. You must have permission to perform the\n access-analyzer:GetFinding action.
",
+ "smithy.api#documentation": "Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding action.
",
"smithy.api#http": {
"uri": "/findingv2/{id}",
"method": "GET",
@@ -4766,7 +4788,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer that generated the finding.
",
+ "smithy.api#documentation": "The ARN of the analyzer that generated the finding.
",
"smithy.api#httpQuery": "analyzerArn",
"smithy.api#required": {}
}
@@ -4804,7 +4826,7 @@
"analyzedAt": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The time at which the resource-based policy or IAM entity that generated the finding\n was analyzed.
",
+ "smithy.api#documentation": "The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
",
"smithy.api#required": {}
}
},
@@ -4871,14 +4893,14 @@
"findingDetails": {
"target": "com.amazonaws.accessanalyzer#FindingDetailsList",
"traits": {
- "smithy.api#documentation": "A localized message that explains the finding and provides guidance on how to address\n it.
",
+ "smithy.api#documentation": "A localized message that explains the finding and provides guidance on how to address it.
",
"smithy.api#required": {}
}
},
"findingType": {
"target": "com.amazonaws.accessanalyzer#FindingType",
"traits": {
- "smithy.api#documentation": "The type of the finding. For external access analyzers, the type is\n ExternalAccess. For unused access analyzers, the type can be\n UnusedIAMRole, UnusedIAMUserAccessKey,\n UnusedIAMUserPassword, or UnusedPermission.
"
+ "smithy.api#documentation": "The type of the finding. For external access analyzers, the type is ExternalAccess. For unused access analyzers, the type can be UnusedIAMRole, UnusedIAMUserAccessKey, UnusedIAMUserPassword, or UnusedPermission. For internal access analyzers, the type is InternalAccess.
"
}
}
},
@@ -4912,7 +4934,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves a list of aggregated finding statistics for an external access or unused\n access analyzer.
",
+ "smithy.api#documentation": "Retrieves a list of aggregated finding statistics for an external access or unused access analyzer.
",
"smithy.api#http": {
"uri": "/analyzer/findings/statistics",
"method": "POST",
@@ -4930,7 +4952,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer used to generate the statistics.
",
+ "smithy.api#documentation": "The ARN of the analyzer used to generate the statistics.
",
"smithy.api#required": {}
}
}
@@ -4951,7 +4973,7 @@
"lastUpdatedAt": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The time at which the retrieval of the findings statistics was last updated. If the\n findings statistics have not been previously retrieved for the specified analyzer, this\n field will not be populated.
"
+ "smithy.api#documentation": "The time at which the retrieval of the findings statistics was last updated. If the findings statistics have not been previously retrieved for the specified analyzer, this field will not be populated.
"
}
}
},
@@ -4982,7 +5004,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves the policy that was generated using StartPolicyGeneration.\n
",
+ "smithy.api#documentation": "Retrieves the policy that was generated using StartPolicyGeneration.
",
"smithy.api#http": {
"uri": "/policy/generation/{jobId}",
"method": "GET",
@@ -4997,7 +5019,7 @@
"jobId": {
"target": "com.amazonaws.accessanalyzer#JobId",
"traits": {
- "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration\n operation. The JobId can be used with GetGeneratedPolicy to\n retrieve the generated policies or used with CancelPolicyGeneration to cancel\n the policy generation request.
",
+ "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
@@ -5005,14 +5027,14 @@
"includeResourcePlaceholders": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "The level of detail that you want to generate. You can specify whether to generate\n policies with placeholders for resource ARNs for actions that support resource level\n granularity in policies.
\n For example, in the resource section of a policy, you can receive a placeholder such as\n \"Resource\":\"arn:aws:s3:::${BucketName}\" instead of \"*\".
",
+ "smithy.api#documentation": "The level of detail that you want to generate. You can specify whether to generate policies with placeholders for resource ARNs for actions that support resource level granularity in policies.
For example, in the resource section of a policy, you can receive a placeholder such as \"Resource\":\"arn:aws:s3:::${BucketName}\" instead of \"*\".
",
"smithy.api#httpQuery": "includeResourcePlaceholders"
}
},
"includeServiceLevelTemplate": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "The level of detail that you want to generate. You can specify whether to generate\n service-level policies.
\n IAM Access Analyzer uses iam:servicelastaccessed to identify services that have\n been used recently to create this service-level template.
",
+ "smithy.api#documentation": "The level of detail that you want to generate. You can specify whether to generate service-level policies.
IAM Access Analyzer uses iam:servicelastaccessed to identify services that have been used recently to create this service-level template.
",
"smithy.api#httpQuery": "includeServiceLevelTemplate"
}
}
@@ -5024,14 +5046,14 @@
"jobDetails": {
"target": "com.amazonaws.accessanalyzer#JobDetails",
"traits": {
- "smithy.api#documentation": "A GeneratedPolicyDetails object that contains details about the generated\n policy.
",
+ "smithy.api#documentation": "A GeneratedPolicyDetails object that contains details about the generated policy.
",
"smithy.api#required": {}
}
},
"generatedPolicyResult": {
"target": "com.amazonaws.accessanalyzer#GeneratedPolicyResult",
"traits": {
- "smithy.api#documentation": "A GeneratedPolicyResult object that contains the generated policies and\n associated details.
",
+ "smithy.api#documentation": "A GeneratedPolicyResult object that contains the generated policies and associated details.
",
"smithy.api#required": {}
}
}
@@ -5051,7 +5073,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for an IAM role. You can propose a\n configuration for a new IAM role or an existing IAM role that you own by specifying the\n trust policy. If the configuration is for a new IAM role, you must specify the trust\n policy. If the configuration is for an existing IAM role that you own and you do not\n propose the trust policy, the access preview uses the existing trust policy for the role.\n The proposed trust policy cannot be an empty string. For more information about role trust\n policy limits, see IAM and STS\n quotas.
"
+ "smithy.api#documentation": "The proposed access control configuration for an IAM role. You can propose a configuration for a new IAM role or an existing IAM role that you own by specifying the trust policy. If the configuration is for a new IAM role, you must specify the trust policy. If the configuration is for an existing IAM role that you own and you do not propose the trust policy, the access preview uses the existing trust policy for the role. The proposed trust policy cannot be an empty string. For more information about role trust policy limits, see IAM and STS quotas.
"
}
},
"com.amazonaws.accessanalyzer#IamTrustPolicy": {
@@ -5076,7 +5098,7 @@
}
},
"traits": {
- "smithy.api#documentation": "An criterion statement in an archive rule. Each archive rule may have multiple\n criteria.
"
+ "smithy.api#documentation": "An criterion statement in an archive rule. Each archive rule may have multiple criteria.
"
}
},
"com.amazonaws.accessanalyzer#InlineArchiveRulesList": {
@@ -5085,6 +5107,210 @@
"target": "com.amazonaws.accessanalyzer#InlineArchiveRule"
}
},
+ "com.amazonaws.accessanalyzer#InternalAccessAnalysisRule": {
+ "type": "structure",
+ "members": {
+ "inclusions": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessAnalysisRuleCriteriaList",
+ "traits": {
+ "smithy.api#documentation": "A list of rules for the internal access analyzer containing criteria to include in analysis. Only resources that meet the rule criteria will generate findings.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about analysis rules for the internal access analyzer. Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.
"
+ }
+ },
+ "com.amazonaws.accessanalyzer#InternalAccessAnalysisRuleCriteria": {
+ "type": "structure",
+ "members": {
+ "accountIds": {
+ "target": "com.amazonaws.accessanalyzer#AccountIdsList",
+ "traits": {
+ "smithy.api#documentation": "A list of Amazon Web Services account IDs to apply to the internal access analysis rule criteria. Account IDs can only be applied to the analysis rule criteria for organization-level analyzers.
"
+ }
+ },
+ "resourceTypes": {
+ "target": "com.amazonaws.accessanalyzer#ResourceTypeList",
+ "traits": {
+ "smithy.api#documentation": "A list of resource types to apply to the internal access analysis rule criteria. The analyzer will only generate findings for resources of these types. These resource types are currently supported for internal access analyzers:
"
+ }
+ },
+ "resourceArns": {
+ "target": "com.amazonaws.accessanalyzer#ResourceArnsList",
+ "traits": {
+ "smithy.api#documentation": "A list of resource ARNs to apply to the internal access analysis rule criteria. The analyzer will only generate findings for resources that match these ARNs.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The criteria for an analysis rule for an internal access analyzer.
"
+ }
+ },
+ "com.amazonaws.accessanalyzer#InternalAccessAnalysisRuleCriteriaList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessAnalysisRuleCriteria"
+ }
+ },
+ "com.amazonaws.accessanalyzer#InternalAccessConfiguration": {
+ "type": "structure",
+ "members": {
+ "analysisRule": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessAnalysisRule",
+ "traits": {
+ "smithy.api#documentation": "Contains information about analysis rules for the internal access analyzer. These rules determine which resources and access patterns will be analyzed.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Specifies the configuration of an internal access analyzer for an Amazon Web Services organization or account. This configuration determines how the analyzer evaluates internal access within your Amazon Web Services environment.
"
+ }
+ },
+ "com.amazonaws.accessanalyzer#InternalAccessDetails": {
+ "type": "structure",
+ "members": {
+ "action": {
+ "target": "com.amazonaws.accessanalyzer#ActionList",
+ "traits": {
+ "smithy.api#documentation": "The action in the analyzed policy statement that has internal access permission to use.
"
+ }
+ },
+ "condition": {
+ "target": "com.amazonaws.accessanalyzer#ConditionKeyMap",
+ "traits": {
+ "smithy.api#documentation": "The condition in the analyzed policy statement that resulted in an internal access finding.
"
+ }
+ },
+ "principal": {
+ "target": "com.amazonaws.accessanalyzer#PrincipalMap",
+ "traits": {
+ "smithy.api#documentation": "The principal that has access to a resource within the internal environment.
"
+ }
+ },
+ "principalOwnerAccount": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services account ID that owns the principal identified in the internal access finding.
"
+ }
+ },
+ "accessType": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessType",
+ "traits": {
+ "smithy.api#documentation": "The type of internal access identified in the finding. This indicates how the access is granted within your Amazon Web Services environment.
"
+ }
+ },
+ "principalType": {
+ "target": "com.amazonaws.accessanalyzer#PrincipalType",
+ "traits": {
+ "smithy.api#documentation": "The type of principal identified in the internal access finding, such as IAM role or IAM user.
"
+ }
+ },
+ "sources": {
+ "target": "com.amazonaws.accessanalyzer#FindingSourceList",
+ "traits": {
+ "smithy.api#documentation": "The sources of the internal access finding. This indicates how the access that generated the finding is granted within your Amazon Web Services environment.
"
+ }
+ },
+ "resourceControlPolicyRestriction": {
+ "target": "com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction",
+ "traits": {
+ "smithy.api#documentation": "The type of restriction applied to the finding by the resource owner with an Organizations resource control policy (RCP).
-
APPLICABLE: There is an RCP present in the organization but IAM Access Analyzer does not include it in the evaluation of effective permissions. For example, if s3:DeleteObject is blocked by the RCP and the restriction is APPLICABLE, then s3:DeleteObject would still be included in the list of actions for the finding. Only applicable to internal access findings with the account as the zone of trust.
-
FAILED_TO_EVALUATE_RCP: There was an error evaluating the RCP.
-
NOT_APPLICABLE: There was no RCP present in the organization. For internal access findings with the account as the zone of trust, NOT_APPLICABLE could also indicate that there was no RCP applicable to the resource.
-
APPLIED: An RCP is present in the organization and IAM Access Analyzer included it in the evaluation of effective permissions. For example, if s3:DeleteObject is blocked by the RCP and the restriction is APPLIED, then s3:DeleteObject would not be included in the list of actions for the finding. Only applicable to internal access findings with the organization as the zone of trust.
"
+ }
+ },
+ "serviceControlPolicyRestriction": {
+ "target": "com.amazonaws.accessanalyzer#ServiceControlPolicyRestriction",
+ "traits": {
+ "smithy.api#documentation": "The type of restriction applied to the finding by an Organizations service control policy (SCP).
-
APPLICABLE: There is an SCP present in the organization but IAM Access Analyzer does not include it in the evaluation of effective permissions. Only applicable to internal access findings with the account as the zone of trust.
-
FAILED_TO_EVALUATE_SCP: There was an error evaluating the SCP.
-
NOT_APPLICABLE: There was no SCP present in the organization. For internal access findings with the account as the zone of trust, NOT_APPLICABLE could also indicate that there was no SCP applicable to the principal.
-
APPLIED: An SCP is present in the organization and IAM Access Analyzer included it in the evaluation of effective permissions. Only applicable to internal access findings with the organization as the zone of trust.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about an internal access finding. This includes details about the access that was identified within your Amazon Web Services organization or account.
"
+ }
+ },
+ "com.amazonaws.accessanalyzer#InternalAccessFindingsStatistics": {
+ "type": "structure",
+ "members": {
+ "resourceTypeStatistics": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessResourceTypeStatisticsMap",
+ "traits": {
+ "smithy.api#documentation": "The total number of active findings for each resource type of the specified internal access analyzer.
"
+ }
+ },
+ "totalActiveFindings": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of active findings for the specified internal access analyzer.
"
+ }
+ },
+ "totalArchivedFindings": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of archived findings for the specified internal access analyzer.
"
+ }
+ },
+ "totalResolvedFindings": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of resolved findings for the specified internal access analyzer.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Provides aggregate statistics about the findings for the specified internal access analyzer. This includes counts of active, archived, and resolved findings.
"
+ }
+ },
+ "com.amazonaws.accessanalyzer#InternalAccessResourceTypeDetails": {
+ "type": "structure",
+ "members": {
+ "totalActiveFindings": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The total number of active findings for the resource type in the internal access analyzer.
"
+ }
+ },
+ "totalResolvedFindings": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The total number of resolved findings for the resource type in the internal access analyzer.
"
+ }
+ },
+ "totalArchivedFindings": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The total number of archived findings for the resource type in the internal access analyzer.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about the total number of active, archived, and resolved findings for a resource type of an internal access analyzer.
"
+ }
+ },
+ "com.amazonaws.accessanalyzer#InternalAccessResourceTypeStatisticsMap": {
+ "type": "map",
+ "key": {
+ "target": "com.amazonaws.accessanalyzer#ResourceType"
+ },
+ "value": {
+ "target": "com.amazonaws.accessanalyzer#InternalAccessResourceTypeDetails"
+ }
+ },
+ "com.amazonaws.accessanalyzer#InternalAccessType": {
+ "type": "string",
+ "traits": {
+ "smithy.api#enum": [
+ {
+ "value": "INTRA_ACCOUNT",
+ "name": "INTRA_ACCOUNT"
+ },
+ {
+ "value": "INTRA_ORG",
+ "name": "INTRA_ORG"
+ }
+ ]
+ }
+ },
"com.amazonaws.accessanalyzer#InternalServerException": {
"type": "structure",
"members": {
@@ -5113,7 +5339,7 @@
"type": "structure",
"members": {},
"traits": {
- "smithy.api#documentation": "This configuration sets the network origin for the Amazon S3 access point or multi-region\n access point to Internet.
"
+ "smithy.api#documentation": "This configuration sets the network origin for the Amazon S3 access point or multi-region access point to Internet.
"
}
},
"com.amazonaws.accessanalyzer#InvalidParameterException": {
@@ -5144,7 +5370,7 @@
"jobId": {
"target": "com.amazonaws.accessanalyzer#JobId",
"traits": {
- "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration\n operation. The JobId can be used with GetGeneratedPolicy to\n retrieve the generated policies or used with CancelPolicyGeneration to cancel\n the policy generation request.
",
+ "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
",
"smithy.api#required": {}
}
},
@@ -5192,7 +5418,7 @@
"message": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "Specific information about the error. For example, which service quota was exceeded or\n which resource was not found.
",
+ "smithy.api#documentation": "Specific information about the error. For example, which service quota was exceeded or which resource was not found.
",
"smithy.api#required": {}
}
}
@@ -5278,7 +5504,7 @@
"granteePrincipal": {
"target": "com.amazonaws.accessanalyzer#GranteePrincipal",
"traits": {
- "smithy.api#documentation": "The principal that is given permission to perform the operations that the grant\n permits.
",
+ "smithy.api#documentation": "The principal that is given permission to perform the operations that the grant permits.
",
"smithy.api#required": {}
}
},
@@ -5291,13 +5517,13 @@
"constraints": {
"target": "com.amazonaws.accessanalyzer#KmsGrantConstraints",
"traits": {
- "smithy.api#documentation": "Use this structure to propose allowing cryptographic\n operations in the grant only when the operation request includes the specified\n encryption\n context.
"
+ "smithy.api#documentation": "Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context.
"
}
},
"issuingAccount": {
"target": "com.amazonaws.accessanalyzer#IssuingAccount",
"traits": {
- "smithy.api#documentation": " The Amazon Web Services account under which the grant was issued. The account is used to propose\n KMS grants issued by accounts other than the owner of the key.
",
+ "smithy.api#documentation": " The Amazon Web Services account under which the grant was issued. The account is used to propose KMS grants issued by accounts other than the owner of the key.
",
"smithy.api#required": {}
}
}
@@ -5318,18 +5544,18 @@
"encryptionContextEquals": {
"target": "com.amazonaws.accessanalyzer#KmsConstraintsMap",
"traits": {
- "smithy.api#documentation": "A list of key-value pairs that must match the encryption context in the cryptographic\n operation request. The grant allows the operation only when the encryption\n context in the request is the same as the encryption context specified in this\n constraint.
"
+ "smithy.api#documentation": "A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
"
}
},
"encryptionContextSubset": {
"target": "com.amazonaws.accessanalyzer#KmsConstraintsMap",
"traits": {
- "smithy.api#documentation": "A list of key-value pairs that must be included in the encryption context of the cryptographic\n operation request. The grant allows the cryptographic operation only when the\n encryption context in the request includes the key-value pairs specified in this\n constraint, although it can include additional key-value pairs.
"
+ "smithy.api#documentation": "A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Use this structure to propose allowing cryptographic\n operations in the grant only when the operation request includes the specified\n encryption\n context. You can specify only one type of encryption context. An empty map is\n treated as not specified. For more information, see GrantConstraints.
"
+ "smithy.api#documentation": "Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context. You can specify only one type of encryption context. An empty map is treated as not specified. For more information, see GrantConstraints.
"
}
},
"com.amazonaws.accessanalyzer#KmsGrantOperation": {
@@ -5407,18 +5633,18 @@
"keyPolicies": {
"target": "com.amazonaws.accessanalyzer#KmsKeyPoliciesMap",
"traits": {
- "smithy.api#documentation": "Resource policy configuration for the KMS key. The only valid value for the name of\n the key policy is default. For more information, see Default key\n policy.
"
+ "smithy.api#documentation": "Resource policy configuration for the KMS key. The only valid value for the name of the key policy is default. For more information, see Default key policy.
"
}
},
"grants": {
"target": "com.amazonaws.accessanalyzer#KmsGrantConfigurationsList",
"traits": {
- "smithy.api#documentation": "A list of proposed grant configurations for the KMS key. If the proposed grant\n configuration is for an existing key, the access preview uses the proposed list of grant\n configurations in place of the existing grants. Otherwise, the access preview uses the\n existing grants for the key.
"
+ "smithy.api#documentation": "A list of proposed grant configurations for the KMS key. If the proposed grant configuration is for an existing key, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the key.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Proposed access control configuration for a KMS key. You can propose a configuration\n for a new KMS key or an existing KMS key that you own by specifying the key policy and\n KMS grant configuration. If the configuration is for an existing key and you do not\n specify the key policy, the access preview uses the existing policy for the key. If the\n access preview is for a new resource and you do not specify the key policy, then the access\n preview uses the default key policy. The proposed key policy cannot be an empty string. For\n more information, see Default key\n policy. For more information about key policy limits, see Resource\n quotas.
\n "
+ "smithy.api#documentation": "Proposed access control configuration for a KMS key. You can propose a configuration for a new KMS key or an existing KMS key that you own by specifying the key policy and KMS grant configuration. If the configuration is for an existing key and you do not specify the key policy, the access preview uses the existing policy for the key. If the access preview is for a new resource and you do not specify the key policy, then the access preview uses the default key policy. The proposed key policy cannot be an empty string. For more information, see Default key policy. For more information about key policy limits, see Resource quotas.
"
}
},
"com.amazonaws.accessanalyzer#KmsKeyPoliciesMap": {
@@ -5465,7 +5691,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves a list of access preview findings generated by the specified access\n preview.
",
+ "smithy.api#documentation": "Retrieves a list of access preview findings generated by the specified access preview.
",
"smithy.api#http": {
"uri": "/access-preview/{accessPreviewId}",
"method": "POST",
@@ -5494,7 +5720,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer used to generate the access.
",
+ "smithy.api#documentation": "The ARN of the analyzer used to generate the access.
",
"smithy.api#required": {}
}
},
@@ -5580,7 +5806,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer used to generate the access preview.
",
+ "smithy.api#documentation": "The ARN of the analyzer used to generate the access preview.
",
"smithy.api#httpQuery": "analyzerArn",
"smithy.api#required": {}
}
@@ -5645,7 +5871,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves a list of resources of the specified type that have been analyzed by the\n specified analyzer.
",
+ "smithy.api#documentation": "Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer.
",
"smithy.api#http": {
"uri": "/analyzed-resource",
"method": "POST",
@@ -5666,7 +5892,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer to retrieve a list of analyzed resources from.
",
+ "smithy.api#documentation": "The ARN of the analyzer to retrieve a list of analyzed resources from.
",
"smithy.api#required": {}
}
},
@@ -5911,7 +6137,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves a list of findings generated by the specified analyzer. ListFindings and\n ListFindingsV2 both use access-analyzer:ListFindings in the\n Action element of an IAM policy statement. You must have permission to\n perform the access-analyzer:ListFindings action.
\n To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
",
+ "smithy.api#documentation": "Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use access-analyzer:ListFindings in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:ListFindings action.
To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
",
"smithy.api#http": {
"uri": "/finding",
"method": "POST",
@@ -5932,7 +6158,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer to retrieve findings from.
",
+ "smithy.api#documentation": "The ARN of the analyzer to retrieve findings from.
",
"smithy.api#required": {}
}
},
@@ -5971,7 +6197,7 @@
"findings": {
"target": "com.amazonaws.accessanalyzer#FindingsList",
"traits": {
- "smithy.api#documentation": "A list of findings retrieved from the analyzer that match the filter criteria specified,\n if any.
",
+ "smithy.api#documentation": "A list of findings retrieved from the analyzer that match the filter criteria specified, if any.
",
"smithy.api#required": {}
}
},
@@ -6012,7 +6238,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves a list of findings generated by the specified analyzer. ListFindings and\n ListFindingsV2 both use access-analyzer:ListFindings in the\n Action element of an IAM policy statement. You must have permission to\n perform the access-analyzer:ListFindings action.
\n To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
",
+ "smithy.api#documentation": "Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use access-analyzer:ListFindings in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:ListFindings action.
To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
",
"smithy.api#http": {
"uri": "/findingv2",
"method": "POST",
@@ -6033,7 +6259,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer to retrieve findings from.
",
+ "smithy.api#documentation": "The ARN of the analyzer to retrieve findings from.
",
"smithy.api#required": {}
}
},
@@ -6069,7 +6295,7 @@
"findings": {
"target": "com.amazonaws.accessanalyzer#FindingsListV2",
"traits": {
- "smithy.api#documentation": "A list of findings retrieved from the analyzer that match the filter criteria specified,\n if any.
",
+ "smithy.api#documentation": "A list of findings retrieved from the analyzer that match the filter criteria specified, if any.
",
"smithy.api#required": {}
}
},
@@ -6125,7 +6351,7 @@
"principalArn": {
"target": "com.amazonaws.accessanalyzer#PrincipalArn",
"traits": {
- "smithy.api#documentation": "The ARN of the IAM entity (user or role) for which you are generating a policy. Use\n this with ListGeneratedPolicies to filter the results to only include results\n for a specific principal.
",
+ "smithy.api#documentation": "The ARN of the IAM entity (user or role) for which you are generating a policy. Use this with ListGeneratedPolicies to filter the results to only include results for a specific principal.
",
"smithy.api#httpQuery": "principalArn"
}
},
@@ -6154,7 +6380,7 @@
"policyGenerations": {
"target": "com.amazonaws.accessanalyzer#PolicyGenerationList",
"traits": {
- "smithy.api#documentation": "A PolicyGeneration object that contains details about the generated\n policy.
",
+ "smithy.api#documentation": "A PolicyGeneration object that contains details about the generated policy.
",
"smithy.api#required": {}
}
},
@@ -6296,7 +6522,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A location in a policy that is represented as a path through the JSON representation and\n a corresponding span.
"
+ "smithy.api#documentation": "A location in a policy that is represented as a path through the JSON representation and a corresponding span.
"
}
},
"com.amazonaws.accessanalyzer#LocationList": {
@@ -6324,12 +6550,12 @@
"internetConfiguration": {
"target": "com.amazonaws.accessanalyzer#InternetConfiguration",
"traits": {
- "smithy.api#documentation": "The configuration for the Amazon S3 access point or multi-region access point with an\n Internet origin.
"
+ "smithy.api#documentation": "The configuration for the Amazon S3 access point or multi-region access point with an Internet origin.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The proposed InternetConfiguration or VpcConfiguration to\n apply to the Amazon S3 access point. You can make the access point accessible from the internet,\n or you can specify that all requests made through that access point must originate from a\n specific virtual private cloud (VPC). You can specify only one type of network\n configuration. For more information, see Creating access\n points.
"
+ "smithy.api#documentation": "The proposed InternetConfiguration or VpcConfiguration to apply to the Amazon S3 access point. You can make the access point accessible from the internet, or you can specify that all requests made through that access point must originate from a specific virtual private cloud (VPC). You can specify only one type of network configuration. For more information, see Creating access points.
"
}
},
"com.amazonaws.accessanalyzer#OrderBy": {
@@ -6394,7 +6620,7 @@
"jobId": {
"target": "com.amazonaws.accessanalyzer#JobId",
"traits": {
- "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration\n operation. The JobId can be used with GetGeneratedPolicy to\n retrieve the generated policies or used with CancelPolicyGeneration to cancel\n the policy generation request.
",
+ "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
",
"smithy.api#required": {}
}
},
@@ -6442,7 +6668,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains the ARN details about the IAM entity for which the policy is\n generated.
"
+ "smithy.api#documentation": "Contains the ARN details about the IAM entity for which the policy is generated.
"
}
},
"com.amazonaws.accessanalyzer#PolicyGenerationList": {
@@ -6521,6 +6747,21 @@
"target": "smithy.api#String"
}
},
+ "com.amazonaws.accessanalyzer#PrincipalType": {
+ "type": "string",
+ "traits": {
+ "smithy.api#enum": [
+ {
+ "value": "IAM_ROLE",
+ "name": "IAM_ROLE"
+ },
+ {
+ "value": "IAM_USER",
+ "name": "IAM_USER"
+ }
+ ]
+ }
+ },
"com.amazonaws.accessanalyzer#RdsDbClusterSnapshotAccountId": {
"type": "string"
},
@@ -6539,7 +6780,7 @@
"accountIds": {
"target": "com.amazonaws.accessanalyzer#RdsDbClusterSnapshotAccountIdsList",
"traits": {
- "smithy.api#documentation": "The Amazon Web Services account IDs that have access to the manual Amazon RDS DB cluster snapshot. If the\n value all is specified, then the Amazon RDS DB cluster snapshot is public and can\n be copied or restored by all Amazon Web Services accounts.
\n \n - \n
If the configuration is for an existing Amazon RDS DB cluster snapshot and you do not\n specify the accountIds in\n RdsDbClusterSnapshotAttributeValue, then the access preview uses the\n existing shared accountIds for the snapshot.
\n \n - \n
If the access preview is for a new resource and you do not specify the specify the\n accountIds in RdsDbClusterSnapshotAttributeValue, then\n the access preview considers the snapshot without any attributes.
\n \n - \n
To propose deletion of existing shared accountIds, you can specify an\n empty list for accountIds in the\n RdsDbClusterSnapshotAttributeValue.
\n \n
"
+ "smithy.api#documentation": "The Amazon Web Services account IDs that have access to the manual Amazon RDS DB cluster snapshot. If the value all is specified, then the Amazon RDS DB cluster snapshot is public and can be copied or restored by all Amazon Web Services accounts.
-
If the configuration is for an existing Amazon RDS DB cluster snapshot and you do not specify the accountIds in RdsDbClusterSnapshotAttributeValue, then the access preview uses the existing shared accountIds for the snapshot.
-
If the access preview is for a new resource and you do not specify the specify the accountIds in RdsDbClusterSnapshotAttributeValue, then the access preview considers the snapshot without any attributes.
-
To propose deletion of existing shared accountIds, you can specify an empty list for accountIds in the RdsDbClusterSnapshotAttributeValue.
"
}
}
},
@@ -6562,18 +6803,18 @@
"attributes": {
"target": "com.amazonaws.accessanalyzer#RdsDbClusterSnapshotAttributesMap",
"traits": {
- "smithy.api#documentation": "The names and values of manual DB cluster snapshot attributes. Manual DB cluster\n snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB\n cluster snapshot. The only valid value for AttributeName for the attribute map\n is restore\n
"
+ "smithy.api#documentation": "The names and values of manual DB cluster snapshot attributes. Manual DB cluster snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB cluster snapshot. The only valid value for AttributeName for the attribute map is restore
"
}
},
"kmsKeyId": {
"target": "com.amazonaws.accessanalyzer#RdsDbClusterSnapshotKmsKeyId",
"traits": {
- "smithy.api#documentation": "The KMS key identifier for an encrypted Amazon RDS DB cluster snapshot. The KMS key\n identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
\n \n - \n
If the configuration is for an existing Amazon RDS DB cluster snapshot and you do not\n specify the kmsKeyId, or you specify an empty string, then the access\n preview uses the existing kmsKeyId of the snapshot.
\n \n - \n
If the access preview is for a new resource and you do not specify the specify the\n kmsKeyId, then the access preview considers the snapshot as\n unencrypted.
\n \n
"
+ "smithy.api#documentation": "The KMS key identifier for an encrypted Amazon RDS DB cluster snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
-
If the configuration is for an existing Amazon RDS DB cluster snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot.
-
If the access preview is for a new resource and you do not specify the specify the kmsKeyId, then the access preview considers the snapshot as unencrypted.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for an Amazon RDS DB cluster snapshot. You can\n propose a configuration for a new Amazon RDS DB cluster snapshot or an Amazon RDS DB cluster snapshot\n that you own by specifying the RdsDbClusterSnapshotAttributeValue and optional\n KMS encryption key. For more information, see ModifyDBClusterSnapshotAttribute.
"
+ "smithy.api#documentation": "The proposed access control configuration for an Amazon RDS DB cluster snapshot. You can propose a configuration for a new Amazon RDS DB cluster snapshot or an Amazon RDS DB cluster snapshot that you own by specifying the RdsDbClusterSnapshotAttributeValue and optional KMS encryption key. For more information, see ModifyDBClusterSnapshotAttribute.
"
}
},
"com.amazonaws.accessanalyzer#RdsDbClusterSnapshotKmsKeyId": {
@@ -6597,12 +6838,12 @@
"accountIds": {
"target": "com.amazonaws.accessanalyzer#RdsDbSnapshotAccountIdsList",
"traits": {
- "smithy.api#documentation": "The Amazon Web Services account IDs that have access to the manual Amazon RDS DB snapshot. If the value\n all is specified, then the Amazon RDS DB snapshot is public and can be copied or\n restored by all Amazon Web Services accounts.
\n \n - \n
If the configuration is for an existing Amazon RDS DB snapshot and you do not specify\n the accountIds in RdsDbSnapshotAttributeValue, then the\n access preview uses the existing shared accountIds for the\n snapshot.
\n \n - \n
If the access preview is for a new resource and you do not specify the specify the\n accountIds in RdsDbSnapshotAttributeValue, then the\n access preview considers the snapshot without any attributes.
\n \n - \n
To propose deletion of an existing shared accountIds, you can specify\n an empty list for accountIds in the\n RdsDbSnapshotAttributeValue.
\n \n
"
+ "smithy.api#documentation": "The Amazon Web Services account IDs that have access to the manual Amazon RDS DB snapshot. If the value all is specified, then the Amazon RDS DB snapshot is public and can be copied or restored by all Amazon Web Services accounts.
-
If the configuration is for an existing Amazon RDS DB snapshot and you do not specify the accountIds in RdsDbSnapshotAttributeValue, then the access preview uses the existing shared accountIds for the snapshot.
-
If the access preview is for a new resource and you do not specify the specify the accountIds in RdsDbSnapshotAttributeValue, then the access preview considers the snapshot without any attributes.
-
To propose deletion of an existing shared accountIds, you can specify an empty list for accountIds in the RdsDbSnapshotAttributeValue.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The name and values of a manual Amazon RDS DB snapshot attribute. Manual DB snapshot\n attributes are used to authorize other Amazon Web Services accounts to restore a manual DB\n snapshot.
"
+ "smithy.api#documentation": "The name and values of a manual Amazon RDS DB snapshot attribute. Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB snapshot.
"
}
},
"com.amazonaws.accessanalyzer#RdsDbSnapshotAttributesMap": {
@@ -6620,18 +6861,18 @@
"attributes": {
"target": "com.amazonaws.accessanalyzer#RdsDbSnapshotAttributesMap",
"traits": {
- "smithy.api#documentation": "The names and values of manual DB snapshot attributes. Manual DB snapshot attributes are\n used to authorize other Amazon Web Services accounts to restore a manual DB snapshot. The only valid\n value for attributeName for the attribute map is restore.
"
+ "smithy.api#documentation": "The names and values of manual DB snapshot attributes. Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts to restore a manual DB snapshot. The only valid value for attributeName for the attribute map is restore.
"
}
},
"kmsKeyId": {
"target": "com.amazonaws.accessanalyzer#RdsDbSnapshotKmsKeyId",
"traits": {
- "smithy.api#documentation": "The KMS key identifier for an encrypted Amazon RDS DB snapshot. The KMS key identifier is\n the key ARN, key ID, alias ARN, or alias name for the KMS key.
\n \n - \n
If the configuration is for an existing Amazon RDS DB snapshot and you do not specify\n the kmsKeyId, or you specify an empty string, then the access preview\n uses the existing kmsKeyId of the snapshot.
\n \n - \n
If the access preview is for a new resource and you do not specify the specify the\n kmsKeyId, then the access preview considers the snapshot as\n unencrypted.
\n \n
"
+ "smithy.api#documentation": "The KMS key identifier for an encrypted Amazon RDS DB snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
-
If the configuration is for an existing Amazon RDS DB snapshot and you do not specify the kmsKeyId, or you specify an empty string, then the access preview uses the existing kmsKeyId of the snapshot.
-
If the access preview is for a new resource and you do not specify the specify the kmsKeyId, then the access preview considers the snapshot as unencrypted.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for an Amazon RDS DB snapshot. You can propose a\n configuration for a new Amazon RDS DB snapshot or an Amazon RDS DB snapshot that you own by\n specifying the RdsDbSnapshotAttributeValue and optional KMS encryption key.\n For more information, see ModifyDBSnapshotAttribute.
"
+ "smithy.api#documentation": "The proposed access control configuration for an Amazon RDS DB snapshot. You can propose a configuration for a new Amazon RDS DB snapshot or an Amazon RDS DB snapshot that you own by specifying the RdsDbSnapshotAttributeValue and optional KMS encryption key. For more information, see ModifyDBSnapshotAttribute.
"
}
},
"com.amazonaws.accessanalyzer#RdsDbSnapshotKmsKeyId": {
@@ -6711,7 +6952,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the reason that the retrieval of a recommendation for a\n finding failed.
"
+ "smithy.api#documentation": "Contains information about the reason that the retrieval of a recommendation for a finding failed.
"
}
},
"com.amazonaws.accessanalyzer#RecommendationType": {
@@ -6751,7 +6992,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about a recommended step for an unused access analyzer\n finding.
"
+ "smithy.api#documentation": "Contains information about a recommended step for an unused access analyzer finding.
"
}
},
"com.amazonaws.accessanalyzer#RecommendedStepList": {
@@ -6780,6 +7021,12 @@
"smithy.api#pattern": "^arn:[^:]*:[^:]*:[^:]*:[^:]*:.*$"
}
},
+ "com.amazonaws.accessanalyzer#ResourceArnsList": {
+ "type": "list",
+ "member": {
+ "target": "smithy.api#String"
+ }
+ },
"com.amazonaws.accessanalyzer#ResourceControlPolicyRestriction": {
"type": "string",
"traits": {
@@ -6795,6 +7042,10 @@
{
"value": "NOT_APPLICABLE",
"name": "NOT_APPLICABLE"
+ },
+ {
+ "value": "APPLIED",
+ "name": "APPLIED"
}
]
}
@@ -6921,7 +7172,13 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the total number of active cross-account and public findings\n for a resource type of an external access analyzer.
"
+ "smithy.api#documentation": "Contains information about the total number of active cross-account and public findings for a resource type of an external access analyzer.
"
+ }
+ },
+ "com.amazonaws.accessanalyzer#ResourceTypeList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.accessanalyzer#ResourceType"
}
},
"com.amazonaws.accessanalyzer#ResourceTypeStatisticsMap": {
@@ -6960,18 +7217,18 @@
"publicAccessBlock": {
"target": "com.amazonaws.accessanalyzer#S3PublicAccessBlockConfiguration",
"traits": {
- "smithy.api#documentation": "The proposed S3PublicAccessBlock configuration to apply to this Amazon S3 access\n point or multi-region access point.
"
+ "smithy.api#documentation": "The proposed S3PublicAccessBlock configuration to apply to this Amazon S3 access point or multi-region access point.
"
}
},
"networkOrigin": {
"target": "com.amazonaws.accessanalyzer#NetworkOriginConfiguration",
"traits": {
- "smithy.api#documentation": "The proposed Internet and VpcConfiguration to apply to this\n Amazon S3 access point. VpcConfiguration does not apply to multi-region access\n points. If the access preview is for a new resource and neither is specified, the access\n preview uses Internet for the network origin. If the access preview is for an\n existing resource and neither is specified, the access preview uses the existing network\n origin.
"
+ "smithy.api#documentation": "The proposed Internet and VpcConfiguration to apply to this Amazon S3 access point. VpcConfiguration does not apply to multi-region access points. If the access preview is for a new resource and neither is specified, the access preview uses Internet for the network origin. If the access preview is for an existing resource and neither is specified, the access preview uses the existing network origin.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The configuration for an Amazon S3 access point or multi-region access point for the bucket.\n You can propose up to 10 access points or multi-region access points per bucket. If the\n proposed Amazon S3 access point configuration is for an existing bucket, the access preview uses\n the proposed access point configuration in place of the existing access points. To propose\n an access point without a policy, you can provide an empty string as the access point\n policy. For more information, see Creating access points.\n For more information about access point policy limits, see Access points\n restrictions and limitations.
"
+ "smithy.api#documentation": "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.
"
}
},
"com.amazonaws.accessanalyzer#S3AccessPointConfigurationsMap": {
@@ -7002,7 +7259,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A proposed access control list grant configuration for an Amazon S3 bucket. For more\n information, see How to Specify an\n ACL.
"
+ "smithy.api#documentation": "A proposed access control list grant configuration for an Amazon S3 bucket. For more information, see How to Specify an ACL.
"
}
},
"com.amazonaws.accessanalyzer#S3BucketAclGrantConfigurationsList": {
@@ -7023,7 +7280,7 @@
"bucketAclGrants": {
"target": "com.amazonaws.accessanalyzer#S3BucketAclGrantConfigurationsList",
"traits": {
- "smithy.api#documentation": "The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL\n grants per bucket. If the proposed grant configuration is for an existing bucket, the\n access preview uses the proposed list of grant configurations in place of the existing\n grants. Otherwise, the access preview uses the existing grants for the bucket.
"
+ "smithy.api#documentation": "The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
"
}
},
"bucketPublicAccessBlock": {
@@ -7035,12 +7292,12 @@
"accessPoints": {
"target": "com.amazonaws.accessanalyzer#S3AccessPointConfigurationsMap",
"traits": {
- "smithy.api#documentation": "The configuration of Amazon S3 access points or multi-region access points for the bucket.\n You can propose up to 10 new access points per bucket.
"
+ "smithy.api#documentation": "The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Proposed access control configuration for an Amazon S3 bucket. You can propose a\n configuration for a new Amazon S3 bucket or an existing Amazon S3 bucket that you own by specifying\n the Amazon S3 bucket policy, bucket ACLs, bucket BPA settings, Amazon S3 access points, and\n multi-region access points attached to the bucket. If the configuration is for an existing\n Amazon S3 bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the\n existing policy attached to the bucket. If the access preview is for a new resource and you\n do not specify the Amazon S3 bucket policy, the access preview assumes a bucket without a\n policy. To propose deletion of an existing bucket policy, you can specify an empty string.\n For more information about bucket policy limits, see Bucket Policy\n Examples.
"
+ "smithy.api#documentation": "Proposed access control configuration for an Amazon S3 bucket. You can propose a configuration for a new Amazon S3 bucket or an existing Amazon S3 bucket that you own by specifying the Amazon S3 bucket policy, bucket ACLs, bucket BPA settings, Amazon S3 access points, and multi-region access points attached to the bucket. If the configuration is for an existing Amazon S3 bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the existing policy attached to the bucket. If the access preview is for a new resource and you do not specify the Amazon S3 bucket policy, the access preview assumes a bucket without a policy. To propose deletion of an existing bucket policy, you can specify an empty string. For more information about bucket policy limits, see Bucket Policy Examples.
"
}
},
"com.amazonaws.accessanalyzer#S3BucketPolicy": {
@@ -7066,7 +7323,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Proposed configuration for an access point attached to an Amazon S3 directory bucket. You can\n propose up to 10 access points per bucket. If the proposed access point configuration is\n for an existing Amazon S3 directory bucket, the access preview uses the proposed access point\n configuration in place of the existing access points. To propose an access point without a\n policy, you can provide an empty string as the access point policy. For more information\n about access points for Amazon S3 directory buckets, see Managing access to\n directory buckets with access points in the Amazon Simple Storage Service User Guide.
"
+ "smithy.api#documentation": "Proposed configuration for an access point attached to an Amazon S3 directory bucket. You can propose up to 10 access points per bucket. If the proposed access point configuration is for an existing Amazon S3 directory 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 about access points for Amazon S3 directory buckets, see Managing access to directory buckets with access points in the Amazon Simple Storage Service User Guide.
"
}
},
"com.amazonaws.accessanalyzer#S3ExpressDirectoryAccessPointConfigurationsMap": {
@@ -7095,7 +7352,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Proposed access control configuration for an Amazon S3 directory bucket. You can propose a\n configuration for a new Amazon S3 directory bucket or an existing Amazon S3 directory bucket that you\n own by specifying the Amazon S3 bucket policy. If the configuration is for an existing Amazon S3\n directory bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the\n existing policy attached to the directory bucket. If the access preview is for a new\n resource and you do not specify the Amazon S3 bucket policy, the access preview assumes an\n directory bucket without a policy. To propose deletion of an existing bucket policy, you\n can specify an empty string. For more information about Amazon S3 directory bucket policies, see\n Example bucket policies for directory buckets in the Amazon Simple Storage Service User\n Guide.
"
+ "smithy.api#documentation": "Proposed access control configuration for an Amazon S3 directory bucket. You can propose a configuration for a new Amazon S3 directory bucket or an existing Amazon S3 directory bucket that you own by specifying the Amazon S3 bucket policy. If the configuration is for an existing Amazon S3 directory bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the existing policy attached to the directory bucket. If the access preview is for a new resource and you do not specify the Amazon S3 bucket policy, the access preview assumes an directory bucket without a policy. To propose deletion of an existing bucket policy, you can specify an empty string. For more information about Amazon S3 directory bucket policies, see Example bucket policies for directory buckets in the Amazon Simple Storage Service User Guide.
"
}
},
"com.amazonaws.accessanalyzer#S3ExpressDirectoryBucketPolicy": {
@@ -7107,7 +7364,7 @@
"ignorePublicAcls": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": " Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this\n bucket.
",
+ "smithy.api#documentation": " Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
",
"smithy.api#required": {}
}
},
@@ -7120,7 +7377,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The PublicAccessBlock configuration to apply to this Amazon S3 bucket. If the\n proposed configuration is for an existing Amazon S3 bucket and the configuration is not\n specified, the access preview uses the existing setting. If the proposed configuration is\n for a new bucket and the configuration is not specified, the access preview uses\n false. If the proposed configuration is for a new access point or\n multi-region access point and the access point BPA configuration is not specified, the\n access preview uses true. For more information, see PublicAccessBlockConfiguration.
"
+ "smithy.api#documentation": "The PublicAccessBlock configuration to apply to this Amazon S3 bucket. If the proposed configuration is for an existing Amazon S3 bucket and the configuration is not specified, the access preview uses the existing setting. If the proposed configuration is for a new bucket and the configuration is not specified, the access preview uses false. If the proposed configuration is for a new access point or multi-region access point and the access point BPA configuration is not specified, the access preview uses true. For more information, see PublicAccessBlockConfiguration.
"
}
},
"com.amazonaws.accessanalyzer#SecretsManagerSecretConfiguration": {
@@ -7140,7 +7397,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The configuration for a Secrets Manager secret. For more information, see CreateSecret.
\n You can propose a configuration for a new secret or an existing secret that you own by\n specifying the secret policy and optional KMS encryption key. If the configuration is for\n an existing secret and you do not specify the secret policy, the access preview uses the\n existing policy for the secret. If the access preview is for a new resource and you do not\n specify the policy, the access preview assumes a secret without a policy. To propose\n deletion of an existing policy, you can specify an empty string. If the proposed\n configuration is for a new secret and you do not specify the KMS key ID, the access\n preview uses the Amazon Web Services managed key aws/secretsmanager. If you specify an empty\n string for the KMS key ID, the access preview uses the Amazon Web Services managed key of the\n Amazon Web Services account. For more information about secret policy limits, see Quotas\n for Secrets Manager..
"
+ "smithy.api#documentation": "The configuration for a Secrets Manager secret. For more information, see CreateSecret.
You can propose a configuration for a new secret or an existing secret that you own by specifying the secret policy and optional KMS encryption key. If the configuration is for an existing secret and you do not specify the secret policy, the access preview uses the existing policy for the secret. If the access preview is for a new resource and you do not specify the policy, the access preview assumes a secret without a policy. To propose deletion of an existing policy, you can specify an empty string. If the proposed configuration is for a new secret and you do not specify the KMS key ID, the access preview uses the Amazon Web Services managed key aws/secretsmanager. If you specify an empty string for the KMS key ID, the access preview uses the Amazon Web Services managed key of the Amazon Web Services account. For more information about secret policy limits, see Quotas for Secrets Manager..
"
}
},
"com.amazonaws.accessanalyzer#SecretsManagerSecretKmsId": {
@@ -7149,6 +7406,29 @@
"com.amazonaws.accessanalyzer#SecretsManagerSecretPolicy": {
"type": "string"
},
+ "com.amazonaws.accessanalyzer#ServiceControlPolicyRestriction": {
+ "type": "string",
+ "traits": {
+ "smithy.api#enum": [
+ {
+ "value": "APPLICABLE",
+ "name": "APPLICABLE"
+ },
+ {
+ "value": "FAILED_TO_EVALUATE_SCP",
+ "name": "FAILED_TO_EVALUATE_SCP"
+ },
+ {
+ "value": "NOT_APPLICABLE",
+ "name": "NOT_APPLICABLE"
+ },
+ {
+ "value": "APPLIED",
+ "name": "APPLIED"
+ }
+ ]
+ }
+ },
"com.amazonaws.accessanalyzer#ServiceQuotaExceededException": {
"type": "structure",
"members": {
@@ -7191,12 +7471,12 @@
"topicPolicy": {
"target": "com.amazonaws.accessanalyzer#SnsTopicPolicy",
"traits": {
- "smithy.api#documentation": "The JSON policy text that defines who can access an Amazon SNS topic. For more information,\n see Example cases for Amazon SNS access control in the Amazon SNS Developer\n Guide.
"
+ "smithy.api#documentation": "The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon SNS access control in the Amazon SNS Developer Guide.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for an Amazon SNS topic. You can propose a\n configuration for a new Amazon SNS topic or an existing Amazon SNS topic that you own by specifying\n the policy. If the configuration is for an existing Amazon SNS topic and you do not specify the\n Amazon SNS policy, then the access preview uses the existing Amazon SNS policy for the topic. If the\n access preview is for a new resource and you do not specify the policy, then the access\n preview assumes an Amazon SNS topic without a policy. To propose deletion of an existing Amazon SNS\n topic policy, you can specify an empty string for the Amazon SNS policy. For more information,\n see Topic.
"
+ "smithy.api#documentation": "The proposed access control configuration for an Amazon SNS topic. You can propose a configuration for a new Amazon SNS topic or an existing Amazon SNS topic that you own by specifying the policy. If the configuration is for an existing Amazon SNS topic and you do not specify the Amazon SNS policy, then the access preview uses the existing Amazon SNS policy for the topic. If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon SNS topic without a policy. To propose deletion of an existing Amazon SNS topic policy, you can specify an empty string for the Amazon SNS policy. For more information, see Topic.
"
}
},
"com.amazonaws.accessanalyzer#SnsTopicPolicy": {
@@ -7246,7 +7526,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A span in a policy. The span consists of a start position (inclusive) and end position\n (exclusive).
"
+ "smithy.api#documentation": "A span in a policy. The span consists of a start position (inclusive) and end position (exclusive).
"
}
},
"com.amazonaws.accessanalyzer#SqsQueueConfiguration": {
@@ -7260,7 +7540,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The proposed access control configuration for an Amazon SQS queue. You can propose a\n configuration for a new Amazon SQS queue or an existing Amazon SQS queue that you own by specifying\n the Amazon SQS policy. If the configuration is for an existing Amazon SQS queue and you do not\n specify the Amazon SQS policy, the access preview uses the existing Amazon SQS policy for the queue.\n If the access preview is for a new resource and you do not specify the policy, the access\n preview assumes an Amazon SQS queue without a policy. To propose deletion of an existing Amazon SQS\n queue policy, you can specify an empty string for the Amazon SQS policy. For more information\n about Amazon SQS policy limits, see Quotas related\n to policies.
"
+ "smithy.api#documentation": "The proposed access control configuration for an Amazon SQS queue. You can propose a configuration for a new Amazon SQS queue or an existing Amazon SQS queue that you own by specifying the Amazon SQS policy. If the configuration is for an existing Amazon SQS queue and you do not specify the Amazon SQS policy, the access preview uses the existing Amazon SQS policy for the queue. If the access preview is for a new resource and you do not specify the policy, the access preview assumes an Amazon SQS queue without a policy. To propose deletion of an existing Amazon SQS queue policy, you can specify an empty string for the Amazon SQS policy. For more information about Amazon SQS policy limits, see Quotas related to policies.
"
}
},
"com.amazonaws.accessanalyzer#SqsQueuePolicy": {
@@ -7310,20 +7590,20 @@
"policyGenerationDetails": {
"target": "com.amazonaws.accessanalyzer#PolicyGenerationDetails",
"traits": {
- "smithy.api#documentation": "Contains the ARN of the IAM entity (user or role) for which you are generating a\n policy.
",
+ "smithy.api#documentation": "Contains the ARN of the IAM entity (user or role) for which you are generating a policy.
",
"smithy.api#required": {}
}
},
"cloudTrailDetails": {
"target": "com.amazonaws.accessanalyzer#CloudTrailDetails",
"traits": {
- "smithy.api#documentation": "A CloudTrailDetails object that contains details about a Trail\n that you want to analyze to generate policies.
"
+ "smithy.api#documentation": "A CloudTrailDetails object that contains details about a Trail that you want to analyze to generate policies.
"
}
},
"clientToken": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. Idempotency ensures that an API request completes only once. With an idempotent\n request, if the original request completes successfully, the subsequent retries with the\n same client token return the result from the original successful request and they have no\n additional effect.
\n If you do not specify a client token, one is automatically generated by the Amazon Web Services\n SDK.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
",
"smithy.api#idempotencyToken": {}
}
}
@@ -7335,7 +7615,7 @@
"jobId": {
"target": "com.amazonaws.accessanalyzer#JobId",
"traits": {
- "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration\n operation. The JobId can be used with GetGeneratedPolicy to\n retrieve the generated policies or used with CancelPolicyGeneration to cancel\n the policy generation request.
",
+ "smithy.api#documentation": "The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
",
"smithy.api#required": {}
}
}
@@ -7381,7 +7661,7 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer to use to scan the policies applied to the specified\n resource.
",
+ "smithy.api#documentation": "The ARN of the analyzer to use to scan the policies applied to the specified resource.
",
"smithy.api#required": {}
}
},
@@ -7395,7 +7675,7 @@
"resourceOwnerAccount": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning\n account is the account in which the resource was created.
"
+ "smithy.api#documentation": "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.
"
}
}
},
@@ -7434,7 +7714,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Provides more details about the current status of the analyzer. For example, if the\n creation for the analyzer fails, a Failed status is returned. For an analyzer\n with organization as the type, this failure can be due to an issue with creating the\n service-linked roles required in the member accounts of the Amazon Web Services organization.
"
+ "smithy.api#documentation": "Provides more details about the current status of the analyzer. For example, if the creation for the analyzer fails, a Failed status is returned. For an analyzer with organization as the type, this failure can be due to an issue with creating the service-linked roles required in the member accounts of the Amazon Web Services organization.
"
}
},
"com.amazonaws.accessanalyzer#Substring": {
@@ -7585,7 +7865,7 @@
"cloudTrailArn": {
"target": "com.amazonaws.accessanalyzer#CloudTrailArn",
"traits": {
- "smithy.api#documentation": "Specifies the ARN of the trail. The format of a trail ARN is\n arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
",
+ "smithy.api#documentation": "Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
",
"smithy.api#required": {}
}
},
@@ -7598,7 +7878,7 @@
"allRegions": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Possible values are true or false. If set to\n true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and\n generate a policy.
"
+ "smithy.api#documentation": "Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.
"
}
}
},
@@ -7618,7 +7898,7 @@
"cloudTrailArn": {
"target": "com.amazonaws.accessanalyzer#CloudTrailArn",
"traits": {
- "smithy.api#documentation": "Specifies the ARN of the trail. The format of a trail ARN is\n arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
",
+ "smithy.api#documentation": "Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
",
"smithy.api#required": {}
}
},
@@ -7631,7 +7911,7 @@
"allRegions": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Possible values are true or false. If set to\n true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and\n generate a policy.
"
+ "smithy.api#documentation": "Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.
"
}
}
},
@@ -7664,6 +7944,14 @@
{
"value": "ORGANIZATION_UNUSED_ACCESS",
"name": "ORGANIZATION_UNUSED_ACCESS"
+ },
+ {
+ "value": "ACCOUNT_INTERNAL_ACCESS",
+ "name": "ACCOUNT_INTERNAL_ACCESS"
+ },
+ {
+ "value": "ORGANIZATION_INTERNAL_ACCESS",
+ "name": "ORGANIZATION_INTERNAL_ACCESS"
}
]
}
@@ -7756,7 +8044,7 @@
"unusedAccessAge": {
"target": "smithy.api#Integer",
"traits": {
- "smithy.api#documentation": "The specified access age in days for which to generate findings for unused access. For\n example, if you specify 90 days, the analyzer will generate findings for IAM entities\n within the accounts of the selected organization for any access that hasn't been used in 90\n or more days since the analyzer's last scan. You can choose a value between 1 and 365\n days.
"
+ "smithy.api#documentation": "The specified access age in days for which to generate findings for unused access. For example, if you specify 90 days, the analyzer will generate findings for IAM entities within the accounts of the selected organization for any access that hasn't been used in 90 or more days since the analyzer's last scan. You can choose a value between 1 and 365 days.
"
}
},
"analysisRule": {
@@ -7773,13 +8061,13 @@
"unusedAccessTypeStatistics": {
"target": "com.amazonaws.accessanalyzer#UnusedAccessTypeStatisticsList",
"traits": {
- "smithy.api#documentation": "A list of details about the total number of findings for each type of unused access for\n the analyzer.
"
+ "smithy.api#documentation": "A list of details about the total number of findings for each type of unused access for the analyzer.
"
}
},
"topAccounts": {
"target": "com.amazonaws.accessanalyzer#AccountAggregations",
"traits": {
- "smithy.api#documentation": "A list of one to ten Amazon Web Services accounts that have the most active findings for the unused\n access analyzer.
"
+ "smithy.api#documentation": "A list of one to ten Amazon Web Services accounts that have the most active findings for the unused access analyzer.
"
}
},
"totalActiveFindings": {
@@ -7802,7 +8090,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Provides aggregate statistics about the findings for the specified unused access\n analyzer.
"
+ "smithy.api#documentation": "Provides aggregate statistics about the findings for the specified unused access analyzer.
"
}
},
"com.amazonaws.accessanalyzer#UnusedAccessTypeStatistics": {
@@ -7822,7 +8110,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the total number of findings for a type of unused\n access.
"
+ "smithy.api#documentation": "Contains information about the total number of findings for a type of unused access.
"
}
},
"com.amazonaws.accessanalyzer#UnusedAccessTypeStatisticsList": {
@@ -7849,7 +8137,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about an unused access finding for an action. IAM Access Analyzer charges\n for unused access analysis based on the number of IAM roles and users analyzed per month.\n For more details on pricing, see IAM Access Analyzer\n pricing.
"
+ "smithy.api#documentation": "Contains information about an unused access finding for an action. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing.
"
}
},
"com.amazonaws.accessanalyzer#UnusedActionList": {
@@ -7869,7 +8157,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about an unused access finding for an IAM role. IAM Access Analyzer\n charges for unused access analysis based on the number of IAM roles and users analyzed\n per month. For more details on pricing, see IAM Access Analyzer\n pricing.
"
+ "smithy.api#documentation": "Contains information about an unused access finding for an IAM role. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing.
"
}
},
"com.amazonaws.accessanalyzer#UnusedIamUserAccessKeyDetails": {
@@ -7890,7 +8178,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about an unused access finding for an IAM user access key.\n IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and\n users analyzed per month. For more details on pricing, see IAM Access Analyzer\n pricing.
"
+ "smithy.api#documentation": "Contains information about an unused access finding for an IAM user access key. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing.
"
}
},
"com.amazonaws.accessanalyzer#UnusedIamUserPasswordDetails": {
@@ -7904,7 +8192,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about an unused access finding for an IAM user password.\n IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and\n users analyzed per month. For more details on pricing, see IAM Access Analyzer\n pricing.
"
+ "smithy.api#documentation": "Contains information about an unused access finding for an IAM user password. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing.
"
}
},
"com.amazonaws.accessanalyzer#UnusedPermissionDetails": {
@@ -7931,7 +8219,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about an unused access finding for a permission. IAM Access Analyzer\n charges for unused access analysis based on the number of IAM roles and users analyzed\n per month. For more details on pricing, see IAM Access Analyzer\n pricing.
"
+ "smithy.api#documentation": "Contains information about an unused access finding for a permission. IAM Access Analyzer charges for unused access analysis based on the number of IAM roles and users analyzed per month. For more details on pricing, see IAM Access Analyzer pricing.
"
}
},
"com.amazonaws.accessanalyzer#UnusedPermissionsRecommendedStep": {
@@ -7940,31 +8228,31 @@
"policyUpdatedAt": {
"target": "com.amazonaws.accessanalyzer#Timestamp",
"traits": {
- "smithy.api#documentation": "The time at which the existing policy for the unused permissions finding was last\n updated.
"
+ "smithy.api#documentation": "The time at which the existing policy for the unused permissions finding was last updated.
"
}
},
"recommendedAction": {
"target": "com.amazonaws.accessanalyzer#RecommendedRemediationAction",
"traits": {
- "smithy.api#documentation": "A recommendation of whether to create or detach a policy for an unused permissions\n finding.
",
+ "smithy.api#documentation": "A recommendation of whether to create or detach a policy for an unused permissions finding.
",
"smithy.api#required": {}
}
},
"recommendedPolicy": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "If the recommended action for the unused permissions finding is to replace the existing\n policy, the contents of the recommended policy to replace the policy specified in the\n existingPolicyId field.
"
+ "smithy.api#documentation": "If the recommended action for the unused permissions finding is to replace the existing policy, the contents of the recommended policy to replace the policy specified in the existingPolicyId field.
"
}
},
"existingPolicyId": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "If the recommended action for the unused permissions finding is to detach a policy, the\n ID of an existing policy to be detached.
"
+ "smithy.api#documentation": "If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy to be detached.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the action to take for a policy in an unused permissions\n finding.
"
+ "smithy.api#documentation": "Contains information about the action to take for a policy in an unused permissions finding.
"
}
},
"com.amazonaws.accessanalyzer#UpdateAnalyzer": {
@@ -8092,7 +8380,7 @@
"filter": {
"target": "com.amazonaws.accessanalyzer#FilterCriteriaMap",
"traits": {
- "smithy.api#documentation": "A filter to match for the rules to update. Only rules that match the filter are\n updated.
",
+ "smithy.api#documentation": "A filter to match for the rules to update. Only rules that match the filter are updated.
",
"smithy.api#required": {}
}
},
@@ -8149,14 +8437,14 @@
"analyzerArn": {
"target": "com.amazonaws.accessanalyzer#AnalyzerArn",
"traits": {
- "smithy.api#documentation": "The ARN of\n the analyzer that generated the findings to update.
",
+ "smithy.api#documentation": "The ARN of the analyzer that generated the findings to update.
",
"smithy.api#required": {}
}
},
"status": {
"target": "com.amazonaws.accessanalyzer#FindingStatusUpdate",
"traits": {
- "smithy.api#documentation": "The state represents the action to take to update the finding Status. Use\n ARCHIVE to change an Active finding to an Archived finding. Use\n ACTIVE to change an Archived finding to an Active finding.
",
+ "smithy.api#documentation": "The state represents the action to take to update the finding Status. Use ARCHIVE to change an Active finding to an Archived finding. Use ACTIVE to change an Archived finding to an Active finding.
",
"smithy.api#required": {}
}
},
@@ -8207,7 +8495,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Requests the validation of a policy and returns a list of findings. The findings help\n you identify issues and provide actionable recommendations to resolve the issue and enable\n you to author functional policies that meet security best practices.
",
+ "smithy.api#documentation": "Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices.
",
"smithy.api#http": {
"uri": "/policy/validation",
"method": "POST",
@@ -8228,14 +8516,14 @@
"findingDetails": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "A localized message that explains the finding and provides guidance on how to address\n it.
",
+ "smithy.api#documentation": "A localized message that explains the finding and provides guidance on how to address it.
",
"smithy.api#required": {}
}
},
"findingType": {
"target": "com.amazonaws.accessanalyzer#ValidatePolicyFindingType",
"traits": {
- "smithy.api#documentation": "The impact of the finding.
\n Security warnings report when the policy allows access that we consider overly\n permissive.
\n Errors report when a part of the policy is not functional.
\n Warnings report non-security issues when a policy does not conform to policy writing\n best practices.
\n Suggestions recommend stylistic improvements in the policy that do not impact\n access.
",
+ "smithy.api#documentation": "The impact of the finding.
Security warnings report when the policy allows access that we consider overly permissive.
Errors report when a part of the policy is not functional.
Warnings report non-security issues when a policy does not conform to policy writing best practices.
Suggestions recommend stylistic improvements in the policy that do not impact access.
",
"smithy.api#required": {}
}
},
@@ -8256,13 +8544,13 @@
"locations": {
"target": "com.amazonaws.accessanalyzer#LocationList",
"traits": {
- "smithy.api#documentation": "The list of locations in the policy document that are related to the finding. The issue\n code provides a summary of an issue identified by the finding.
",
+ "smithy.api#documentation": "The list of locations in the policy document that are related to the finding. The issue code provides a summary of an issue identified by the finding.
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "A finding in a policy. Each finding is an actionable recommendation that can be used to\n improve the policy.
"
+ "smithy.api#documentation": "A finding in a policy. Each finding is an actionable recommendation that can be used to improve the policy.
"
}
},
"com.amazonaws.accessanalyzer#ValidatePolicyFindingList": {
@@ -8327,14 +8615,14 @@
"policyType": {
"target": "com.amazonaws.accessanalyzer#PolicyType",
"traits": {
- "smithy.api#documentation": "The type of policy to validate. Identity policies grant permissions to IAM principals.\n Identity policies include managed and inline policies for IAM roles, users, and\n groups.
\n Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust\n policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic\n input such as identity policy or resource policy or a specific input such as managed policy\n or Amazon S3 bucket policy.
\n Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services\n organization, organizational unit (OU), or an account.
",
+ "smithy.api#documentation": "The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
Service control policies (SCPs) are a type of organization policy attached to an Amazon Web Services organization, organizational unit (OU), or an account.
",
"smithy.api#required": {}
}
},
"validatePolicyResourceType": {
"target": "com.amazonaws.accessanalyzer#ValidatePolicyResourceType",
"traits": {
- "smithy.api#documentation": "The type of resource to attach to your resource policy. Specify a value for the policy\n validation resource type only if the policy type is RESOURCE_POLICY. For\n example, to validate a resource policy to attach to an Amazon S3 bucket, you can choose\n AWS::S3::Bucket for the policy validation resource type.
\n For resource types not supported as valid values, IAM Access Analyzer runs policy checks that\n apply to all resource policies. For example, to validate a resource policy to attach to a\n KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer\n will run policy checks that apply to all resource policies.
"
+ "smithy.api#documentation": "The type of resource to attach to your resource policy. Specify a value for the policy validation resource type only if the policy type is RESOURCE_POLICY. For example, to validate a resource policy to attach to an Amazon S3 bucket, you can choose AWS::S3::Bucket for the policy validation resource type.
For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
"
}
}
}
@@ -8376,7 +8664,7 @@
"findings": {
"target": "com.amazonaws.accessanalyzer#ValidatePolicyFindingList",
"traits": {
- "smithy.api#documentation": "The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy\n checks.
",
+ "smithy.api#documentation": "The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks.
",
"smithy.api#required": {}
}
},
@@ -8490,13 +8778,13 @@
"vpcId": {
"target": "com.amazonaws.accessanalyzer#VpcId",
"traits": {
- "smithy.api#documentation": " If this field is specified, this access point will only allow connections from the\n specified VPC ID.
",
+ "smithy.api#documentation": " If this field is specified, this access point will only allow connections from the specified VPC ID.
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "The proposed virtual private cloud (VPC) configuration for the Amazon S3 access point. VPC\n configuration does not apply to multi-region access points. For more information, see\n VpcConfiguration.
"
+ "smithy.api#documentation": "The proposed virtual private cloud (VPC) configuration for the Amazon S3 access point. VPC configuration does not apply to multi-region access points. For more information, see VpcConfiguration.
"
}
},
"com.amazonaws.accessanalyzer#VpcId": {
diff --git a/codegen/sdk-codegen/aws-models/acm.json b/codegen/sdk-codegen/aws-models/acm.json
index 5eb241bfc81..01d40010437 100644
--- a/codegen/sdk-codegen/aws-models/acm.json
+++ b/codegen/sdk-codegen/aws-models/acm.json
@@ -50,7 +50,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Adds one or more tags to an ACM certificate. Tags are labels that you can use to\n identify and organize your Amazon Web Services resources. Each tag consists of a key and an\n optional value. You specify the certificate on input by its Amazon Resource Name\n (ARN). You specify the tag by using a key-value pair.
\n You can apply a tag to just one certificate if you want to identify a specific\n characteristic of that certificate, or you can apply the same tag to multiple certificates if\n you want to filter for a common relationship among those certificates. Similarly, you can\n apply the same tag to multiple resources if you want to specify a relationship among those\n resources. For example, you can add the same tag to an ACM certificate and an Elastic Load\n Balancing load balancer to indicate that they are both used by the same website. For more\n information, see Tagging ACM\n certificates.
\n To remove one or more tags, use the RemoveTagsFromCertificate action. To\n view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action.
"
+ "smithy.api#documentation": "Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify and organize your Amazon Web Services resources. Each tag consists of a key and an optional value. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair.
You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see Tagging ACM certificates.
To remove one or more tags, use the RemoveTagsFromCertificate action. To view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action.
"
}
},
"com.amazonaws.acm#AddTagsToCertificateRequest": {
@@ -59,7 +59,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "String that contains the ARN of the ACM certificate to which the tag is to be applied.\n This must be of the form:
\n \n arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
\n For more information about ARNs, see Amazon Resource Names (ARNs).
",
+ "smithy.api#documentation": "String that contains the ARN of the ACM certificate to which the tag is to be applied. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
",
"smithy.api#required": {}
}
},
@@ -132,19 +132,19 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see\n Amazon Resource Names (ARNs) in\n the Amazon Web Services General Reference.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
"
}
},
"DomainName": {
"target": "com.amazonaws.acm#DomainNameString",
"traits": {
- "smithy.api#documentation": "The fully qualified domain name for the certificate, such as www.example.com or\n example.com.
"
+ "smithy.api#documentation": "The fully qualified domain name for the certificate, such as www.example.com or example.com.
"
}
},
"SubjectAlternativeNames": {
"target": "com.amazonaws.acm#DomainList",
"traits": {
- "smithy.api#documentation": "One or more domain names (subject alternative names) \n included in the certificate. This\n list contains the domain names that are bound to the public key that is contained in the\n certificate. The subject alternative names include the canonical domain name (CN) of the\n certificate and additional domain names that can be used to connect to the website.
"
+ "smithy.api#documentation": "One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.
"
}
},
"ManagedBy": {
@@ -156,7 +156,7 @@
"DomainValidationOptions": {
"target": "com.amazonaws.acm#DomainValidationList",
"traits": {
- "smithy.api#documentation": "Contains information about the initial validation of each domain name that occurs as a\n result of the RequestCertificate request. This field exists only when the\n certificate type is AMAZON_ISSUED.
"
+ "smithy.api#documentation": "Contains information about the initial validation of each domain name that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED.
"
}
},
"Serial": {
@@ -168,7 +168,7 @@
"Subject": {
"target": "com.amazonaws.acm#String",
"traits": {
- "smithy.api#documentation": "The name of the entity that is associated with the public key contained in the\n certificate.
"
+ "smithy.api#documentation": "The name of the entity that is associated with the public key contained in the certificate.
"
}
},
"Issuer": {
@@ -186,31 +186,31 @@
"IssuedAt": {
"target": "com.amazonaws.acm#TStamp",
"traits": {
- "smithy.api#documentation": "The time at which the certificate was issued. This value exists only when the certificate\n type is AMAZON_ISSUED.
"
+ "smithy.api#documentation": "The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED.
"
}
},
"ImportedAt": {
"target": "com.amazonaws.acm#TStamp",
"traits": {
- "smithy.api#documentation": "The date and time when the certificate was imported. This value exists only when the\n certificate type is IMPORTED.
"
+ "smithy.api#documentation": "The date and time when the certificate was imported. This value exists only when the certificate type is IMPORTED.
"
}
},
"Status": {
"target": "com.amazonaws.acm#CertificateStatus",
"traits": {
- "smithy.api#documentation": "The status of the certificate.
\n A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for\n any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes\n repeated attempts to validate a certificate for 72 hours and then times out. If a certificate\n shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and\n try again. If validation succeeds, the certificate enters status ISSUED.
"
+ "smithy.api#documentation": "The status of the certificate.
A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes repeated attempts to validate a certificate for 72 hours and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and try again. If validation succeeds, the certificate enters status ISSUED.
"
}
},
"RevokedAt": {
"target": "com.amazonaws.acm#TStamp",
"traits": {
- "smithy.api#documentation": "The time at which the certificate was revoked. This value exists only when the certificate\n status is REVOKED.
"
+ "smithy.api#documentation": "The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED.
"
}
},
"RevocationReason": {
"target": "com.amazonaws.acm#RevocationReason",
"traits": {
- "smithy.api#documentation": "The reason the certificate was revoked. This value exists only when the certificate status\n is REVOKED.
"
+ "smithy.api#documentation": "The reason the certificate was revoked. This value exists only when the certificate status is REVOKED.
"
}
},
"NotBefore": {
@@ -240,60 +240,77 @@
"InUseBy": {
"target": "com.amazonaws.acm#InUseList",
"traits": {
- "smithy.api#documentation": "A list of ARNs for the Amazon Web Services resources that are using the certificate. A certificate can\n be used by multiple Amazon Web Services resources.
"
+ "smithy.api#documentation": "A list of ARNs for the Amazon Web Services resources that are using the certificate. A certificate can be used by multiple Amazon Web Services resources.
"
}
},
"FailureReason": {
"target": "com.amazonaws.acm#FailureReason",
"traits": {
- "smithy.api#documentation": "The reason the certificate request failed. This value exists only when the certificate\n status is FAILED. For more information, see Certificate Request\n Failed in the Certificate Manager User Guide.
"
+ "smithy.api#documentation": "The reason the certificate request failed. This value exists only when the certificate status is FAILED. For more information, see Certificate Request Failed in the Certificate Manager User Guide.
"
}
},
"Type": {
"target": "com.amazonaws.acm#CertificateType",
"traits": {
- "smithy.api#documentation": "The source of the certificate. For certificates provided by ACM, this value is\n AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide\n managed renewal for\n imported certificates. For more information about the differences between certificates that\n you import and those that ACM provides, see Importing Certificates in the\n Certificate Manager User Guide.
"
+ "smithy.api#documentation": "The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the Certificate Manager User Guide.
"
}
},
"RenewalSummary": {
"target": "com.amazonaws.acm#RenewalSummary",
"traits": {
- "smithy.api#documentation": "Contains information about the status of ACM's managed renewal for the certificate. This field\n exists only when the certificate type is AMAZON_ISSUED.
"
+ "smithy.api#documentation": "Contains information about the status of ACM's managed renewal for the certificate. This field exists only when the certificate type is AMAZON_ISSUED.
"
}
},
"KeyUsages": {
"target": "com.amazonaws.acm#KeyUsageList",
"traits": {
- "smithy.api#documentation": "A list of Key Usage X.509 v3 extension objects. Each object is a string value that\n identifies the purpose of the public key contained in the certificate. Possible extension\n values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
"
+ "smithy.api#documentation": "A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
"
}
},
"ExtendedKeyUsages": {
"target": "com.amazonaws.acm#ExtendedKeyUsageList",
"traits": {
- "smithy.api#documentation": "Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a\n purpose for which the certificate public key can be used and consists of a name and an object\n identifier (OID).
"
+ "smithy.api#documentation": "Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
"
}
},
"CertificateAuthorityArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the private certificate authority (CA) that issued the\n certificate. This has the following format:
\n \n arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012\n
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the private certificate authority (CA) that issued the certificate. This has the following format:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
"
}
},
"RenewalEligibility": {
"target": "com.amazonaws.acm#RenewalEligibility",
"traits": {
- "smithy.api#documentation": "Specifies whether the certificate is eligible for renewal. At this time, only exported\n private certificates can be renewed with the RenewCertificate\n command.
"
+ "smithy.api#documentation": "Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate command.
"
}
},
"Options": {
"target": "com.amazonaws.acm#CertificateOptions",
"traits": {
- "smithy.api#documentation": "Value that specifies whether to add the certificate to a transparency log. Certificate\n transparency makes it possible to detect SSL certificates that have been mistakenly or\n maliciously issued. A browser might respond to certificate that has not been logged by showing\n an error message. The logs are cryptographically secure.
"
+ "smithy.api#documentation": "Value that specifies whether to add the certificate to a transparency log. Certificate transparency makes it possible to detect SSL certificates that have been mistakenly or maliciously issued. A browser might respond to certificate that has not been logged by showing an error message. The logs are cryptographically secure.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains metadata about an ACM certificate. This structure is returned in the response\n to a DescribeCertificate request.
"
+ "smithy.api#documentation": "Contains metadata about an ACM certificate. This structure is returned in the response to a DescribeCertificate request.
"
+ }
+ },
+ "com.amazonaws.acm#CertificateExport": {
+ "type": "enum",
+ "members": {
+ "ENABLED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ENABLED"
+ }
+ },
+ "DISABLED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DISABLED"
+ }
+ }
}
},
"com.amazonaws.acm#CertificateManagedBy": {
@@ -353,6 +370,9 @@
{
"target": "com.amazonaws.acm#ResendValidationEmail"
},
+ {
+ "target": "com.amazonaws.acm#RevokeCertificate"
+ },
{
"target": "com.amazonaws.acm#UpdateCertificateOptions"
}
@@ -369,7 +389,7 @@
"name": "acm"
},
"aws.protocols#awsJson1_1": {},
- "smithy.api#documentation": "Certificate Manager\n You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon Web Services-based websites\n and applications. For more information about using ACM, see the Certificate Manager User Guide.
",
+ "smithy.api#documentation": "Certificate Manager You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon Web Services-based websites and applications. For more information about using ACM, see the Certificate Manager User Guide.
",
"smithy.api#title": "AWS Certificate Manager",
"smithy.rules#endpointRuleSet": {
"version": "1.0",
@@ -1383,12 +1403,18 @@
"CertificateTransparencyLoggingPreference": {
"target": "com.amazonaws.acm#CertificateTransparencyLoggingPreference",
"traits": {
- "smithy.api#documentation": "You can opt out of certificate transparency logging by specifying the\n DISABLED option. Opt in by specifying ENABLED.
"
+ "smithy.api#documentation": "You can opt out of certificate transparency logging by specifying the DISABLED option. Opt in by specifying ENABLED.
"
+ }
+ },
+ "Export": {
+ "target": "com.amazonaws.acm#CertificateExport",
+ "traits": {
+ "smithy.api#documentation": "You can opt in to allow the export of your certificates by specifying ENABLED.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Structure that contains options for your certificate. Currently, you can use this only to\n specify whether to opt in to or out of certificate transparency logging. Some browsers require\n that public certificates issued for your domain be recorded in a log. Certificates that are\n not logged typically generate a browser error. Transparency makes it possible for you to\n detect SSL/TLS certificates that have been mistakenly or maliciously issued for your domain.\n For general information, see Certificate Transparency\n Logging.
"
+ "smithy.api#documentation": "Structure that contains options for your certificate. You can use this structure to specify whether to opt in to or out of certificate transparency logging and export your certificate.
Some browsers require that public certificates issued for your domain be recorded in a log. Certificates that are not logged typically generate a browser error. Transparency makes it possible for you to detect SSL/TLS certificates that have been mistakenly or maliciously issued for your domain. For general information, see Certificate Transparency Logging.
You can export public ACM certificates to use with Amazon Web Services services as well as outside Amazon Web Services Cloud. For more information, see Certificate Manager exportable public certificate.
"
}
},
"com.amazonaws.acm#CertificateStatus": {
@@ -1450,37 +1476,37 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "Amazon Resource Name (ARN) of the certificate. This is of the form:
\n \n arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
\n For more information about ARNs, see Amazon Resource Names (ARNs).
"
+ "smithy.api#documentation": "Amazon Resource Name (ARN) of the certificate. This is of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
"
}
},
"DomainName": {
"target": "com.amazonaws.acm#DomainNameString",
"traits": {
- "smithy.api#documentation": "Fully qualified domain name (FQDN), such as www.example.com or example.com, for the\n certificate.
"
+ "smithy.api#documentation": "Fully qualified domain name (FQDN), such as www.example.com or example.com, for the certificate.
"
}
},
"SubjectAlternativeNameSummaries": {
"target": "com.amazonaws.acm#DomainList",
"traits": {
- "smithy.api#documentation": "One or more domain names (subject alternative names) \n included in the certificate. This\n list contains the domain names that are bound to the public key that is contained in the\n certificate. The subject alternative names include the canonical domain name (CN) of the\n certificate and additional domain names that can be used to connect to the website.
\n When called by ListCertificates, this parameter will only return the first 100 subject alternative\n names included in the certificate. To display the full list of subject alternative names, use\n DescribeCertificate.
"
+ "smithy.api#documentation": "One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.
When called by ListCertificates, this parameter will only return the first 100 subject alternative names included in the certificate. To display the full list of subject alternative names, use DescribeCertificate.
"
}
},
"HasAdditionalSubjectAlternativeNames": {
"target": "com.amazonaws.acm#NullableBoolean",
"traits": {
- "smithy.api#documentation": "When called by ListCertificates, indicates whether the full list of subject alternative names has\n been included in the response. If false, the response includes all of the subject alternative\n names included in the certificate. If true, the response only includes the first 100 subject\n alternative names included in the certificate. To display the full list of subject alternative\n names, use DescribeCertificate.
"
+ "smithy.api#documentation": "When called by ListCertificates, indicates whether the full list of subject alternative names has been included in the response. If false, the response includes all of the subject alternative names included in the certificate. If true, the response only includes the first 100 subject alternative names included in the certificate. To display the full list of subject alternative names, use DescribeCertificate.
"
}
},
"Status": {
"target": "com.amazonaws.acm#CertificateStatus",
"traits": {
- "smithy.api#documentation": "The status of the certificate.
\n A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for\n any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes\n repeated attempts to validate a certificate for 72 hours and then times out. If a certificate\n shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and\n try again. If validation succeeds, the certificate enters status ISSUED.
"
+ "smithy.api#documentation": "The status of the certificate.
A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes repeated attempts to validate a certificate for 72 hours and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and try again. If validation succeeds, the certificate enters status ISSUED.
"
}
},
"Type": {
"target": "com.amazonaws.acm#CertificateType",
"traits": {
- "smithy.api#documentation": "The source of the certificate. For certificates provided by ACM, this value is\n AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide\n managed renewal for\n imported certificates. For more information about the differences between certificates that\n you import and those that ACM provides, see Importing Certificates in the\n Certificate Manager User Guide.
"
+ "smithy.api#documentation": "The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the Certificate Manager User Guide.
"
}
},
"KeyAlgorithm": {
@@ -1492,13 +1518,19 @@
"KeyUsages": {
"target": "com.amazonaws.acm#KeyUsageNames",
"traits": {
- "smithy.api#documentation": "A list of Key Usage X.509 v3 extension objects. Each object is a string value that\n identifies the purpose of the public key contained in the certificate. Possible extension\n values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
"
+ "smithy.api#documentation": "A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
"
}
},
"ExtendedKeyUsages": {
"target": "com.amazonaws.acm#ExtendedKeyUsageNames",
"traits": {
- "smithy.api#documentation": "Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a\n purpose for which the certificate public key can be used and consists of a name and an object\n identifier (OID).
"
+ "smithy.api#documentation": "Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
"
+ }
+ },
+ "ExportOption": {
+ "target": "com.amazonaws.acm#CertificateExport",
+ "traits": {
+ "smithy.api#documentation": "Indicates if export is enabled for the certificate.
"
}
},
"InUse": {
@@ -1510,13 +1542,13 @@
"Exported": {
"target": "com.amazonaws.acm#NullableBoolean",
"traits": {
- "smithy.api#documentation": "Indicates whether the certificate has been exported. This value exists only when the\n certificate type is PRIVATE.
"
+ "smithy.api#documentation": "Indicates whether the certificate has been exported. This value exists only when the certificate type is PRIVATE.
"
}
},
"RenewalEligibility": {
"target": "com.amazonaws.acm#RenewalEligibility",
"traits": {
- "smithy.api#documentation": "Specifies whether the certificate is eligible for renewal. At this time, only exported\n private certificates can be renewed with the RenewCertificate\n command.
"
+ "smithy.api#documentation": "Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate command.
"
}
},
"NotBefore": {
@@ -1540,19 +1572,19 @@
"IssuedAt": {
"target": "com.amazonaws.acm#TStamp",
"traits": {
- "smithy.api#documentation": "The time at which the certificate was issued. This value exists only when the certificate\n type is AMAZON_ISSUED.
"
+ "smithy.api#documentation": "The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED.
"
}
},
"ImportedAt": {
"target": "com.amazonaws.acm#TStamp",
"traits": {
- "smithy.api#documentation": "The date and time when the certificate was imported. This value exists only when the\n certificate type is IMPORTED.
"
+ "smithy.api#documentation": "The date and time when the certificate was imported. This value exists only when the certificate type is IMPORTED.
"
}
},
"RevokedAt": {
"target": "com.amazonaws.acm#TStamp",
"traits": {
- "smithy.api#documentation": "The time at which the certificate was revoked. This value exists only when the certificate\n status is REVOKED.
"
+ "smithy.api#documentation": "The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED.
"
}
},
"ManagedBy": {
@@ -1563,7 +1595,7 @@
}
},
"traits": {
- "smithy.api#documentation": "This structure is returned in the response object of ListCertificates\n action.
"
+ "smithy.api#documentation": "This structure is returned in the response object of ListCertificates action.
"
}
},
"com.amazonaws.acm#CertificateSummaryList": {
@@ -1620,7 +1652,7 @@
}
},
"traits": {
- "smithy.api#documentation": "You are trying to update a resource or configuration that is already being created or\n updated. Wait for the previous operation to finish and try again.
",
+ "smithy.api#documentation": "You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again.
",
"smithy.api#error": "client"
}
},
@@ -1653,7 +1685,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes a certificate and its associated private key. If this action succeeds, the\n certificate no longer appears in the list that can be displayed by calling the ListCertificates action or be retrieved by calling the GetCertificate action. The certificate will not be available for use by Amazon Web Services\n services integrated with ACM.
\n \n You cannot delete an ACM certificate that is being used by another Amazon Web Services service. To\n delete a certificate that is in use, the certificate association must first be\n removed.
\n "
+ "smithy.api#documentation": "Deletes a certificate and its associated private key. If this action succeeds, the certificate no longer appears in the list that can be displayed by calling the ListCertificates action or be retrieved by calling the GetCertificate action. The certificate will not be available for use by Amazon Web Services services integrated with ACM.
You cannot delete an ACM certificate that is being used by another Amazon Web Services service. To delete a certificate that is in use, the certificate association must first be removed.
"
}
},
"com.amazonaws.acm#DeleteCertificateRequest": {
@@ -1662,7 +1694,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "String that contains the ARN of the ACM certificate to be deleted. This must be of the\n form:
\n \n arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
\n For more information about ARNs, see Amazon Resource Names (ARNs).
",
+ "smithy.api#documentation": "String that contains the ARN of the ACM certificate to be deleted. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
",
"smithy.api#required": {}
}
}
@@ -1688,7 +1720,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns detailed metadata about the specified ACM certificate.
\n If you have just created a certificate using the RequestCertificate action,\n there is a delay of several seconds before you can retrieve information about it.
",
+ "smithy.api#documentation": "Returns detailed metadata about the specified ACM certificate.
If you have just created a certificate using the RequestCertificate action, there is a delay of several seconds before you can retrieve information about it.
",
"smithy.waiters#waitable": {
"CertificateValidated": {
"acceptors": [
@@ -1740,7 +1772,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following\n form:
\n \n arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
\n For more information about ARNs, see Amazon Resource Names (ARNs).
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
",
"smithy.api#required": {}
}
}
@@ -1814,7 +1846,7 @@
"DomainName": {
"target": "com.amazonaws.acm#DomainNameString",
"traits": {
- "smithy.api#documentation": "A fully qualified domain name (FQDN) in the certificate. For example,\n www.example.com or example.com.
",
+ "smithy.api#documentation": "A fully qualified domain name (FQDN) in the certificate. For example, www.example.com or example.com.
",
"smithy.api#required": {}
}
},
@@ -1833,19 +1865,19 @@
"ValidationStatus": {
"target": "com.amazonaws.acm#DomainStatus",
"traits": {
- "smithy.api#documentation": "The validation status of the domain name. This can be one of the following values:
\n \n - \n
\n PENDING_VALIDATION\n
\n \n - \n
\n SUCCESS
\n \n - \n
\n FAILED
\n \n
"
+ "smithy.api#documentation": "The validation status of the domain name. This can be one of the following values:
-
PENDING_VALIDATION
-
SUCCESS
-
FAILED
"
}
},
"ResourceRecord": {
"target": "com.amazonaws.acm#ResourceRecord",
"traits": {
- "smithy.api#documentation": "Contains the CNAME record that you add to your DNS database for domain validation. For\n more information, see Use DNS to Validate Domain Ownership.
\n Note: The CNAME information that you need does not include the name of your domain. If you\n include your domain name in the DNS database CNAME record, validation fails. For example, if\n the name is \"_a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com\", only\n \"_a79865eb4cd1a6ab990a45779b4e0b96\" must be used.
"
+ "smithy.api#documentation": "Contains the CNAME record that you add to your DNS database for domain validation. For more information, see Use DNS to Validate Domain Ownership.
The CNAME information that you need does not include the name of your domain. If you include your domain name in the DNS database CNAME record, validation fails. For example, if the name is _a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com, only _a79865eb4cd1a6ab990a45779b4e0b96 must be used.
"
}
},
"HttpRedirect": {
"target": "com.amazonaws.acm#HttpRedirect",
"traits": {
- "smithy.api#documentation": "Contains information for HTTP-based domain validation of certificates requested through CloudFront and issued by ACM.\n This field exists only when the certificate type is AMAZON_ISSUED and the validation method is HTTP.
"
+ "smithy.api#documentation": "Contains information for HTTP-based domain validation of certificates requested through Amazon CloudFront and issued by ACM. This field exists only when the certificate type is AMAZON_ISSUED and the validation method is HTTP.
"
}
},
"ValidationMethod": {
@@ -1884,13 +1916,13 @@
"ValidationDomain": {
"target": "com.amazonaws.acm#DomainNameString",
"traits": {
- "smithy.api#documentation": "The domain name that you want ACM to use to send you validation emails. This domain name\n is the suffix of the email addresses that you want ACM to use. This must be the same as the\n DomainName value or a superdomain of the DomainName value. For\n example, if you request a certificate for testing.example.com, you can specify\n example.com for this value. In that case, ACM sends domain validation emails\n to the following five addresses:
\n ",
+ "smithy.api#documentation": "The domain name that you want ACM to use to send you validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as the DomainName value or a superdomain of the DomainName value. For example, if you request a certificate for testing.example.com, you can specify example.com for this value. In that case, ACM sends domain validation emails to the following five addresses:
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the domain names that you want ACM to use to send you emails\n that enable you to validate domain ownership.
"
+ "smithy.api#documentation": "Contains information about the domain names that you want ACM to use to send you emails that enable you to validate domain ownership.
"
}
},
"com.amazonaws.acm#DomainValidationOptionList": {
@@ -1911,7 +1943,7 @@
"DaysBeforeExpiry": {
"target": "com.amazonaws.acm#PositiveInteger",
"traits": {
- "smithy.api#documentation": "Specifies the number of days prior to certificate expiration when ACM starts generating\n EventBridge events. ACM sends one event per day per certificate until the\n certificate expires. By default, accounts receive events starting 45 days before certificate\n expiration.
"
+ "smithy.api#documentation": "Specifies the number of days prior to certificate expiration when ACM starts generating EventBridge events. ACM sends one event per day per certificate until the certificate expires. By default, accounts receive events starting 45 days before certificate expiration.
"
}
}
},
@@ -1939,7 +1971,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Exports a private certificate issued by a private certificate authority (CA) for use\n anywhere. The exported file contains the certificate, the certificate chain, and the encrypted\n private 2048-bit RSA key associated with the public key that is embedded in the certificate.\n For security, you must assign a passphrase for the private key when exporting it.
\n For information about exporting and formatting a certificate using the ACM console or\n CLI, see Export a\n Private Certificate.
"
+ "smithy.api#documentation": "Exports a private certificate issued by a private certificate authority (CA) or public certificate for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it.
For information about exporting and formatting a certificate using the ACM console or CLI, see Export a private certificate and Export a public certificate.
"
}
},
"com.amazonaws.acm#ExportCertificateRequest": {
@@ -1948,14 +1980,14 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "An Amazon Resource Name (ARN) of the issued certificate. This must be of the form:
\n \n arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012\n
",
+ "smithy.api#documentation": "An Amazon Resource Name (ARN) of the issued certificate. This must be of the form:
arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012
",
"smithy.api#required": {}
}
},
"Passphrase": {
"target": "com.amazonaws.acm#PassphraseBlob",
"traits": {
- "smithy.api#documentation": "Passphrase to associate with the encrypted exported private key.
\n \n When creating your passphrase, you can use any ASCII character except #, $, or %.
\n \n If you want to later decrypt the private key, you must have the passphrase. You can use\n the following OpenSSL command to decrypt a private key. After entering the command, you are\n prompted for the passphrase.
\n \n openssl rsa -in encrypted_key.pem -out decrypted_key.pem\n
",
+ "smithy.api#documentation": "Passphrase to associate with the encrypted exported private key.
When creating your passphrase, you can use any ASCII character except #, $, or %.
If you want to later decrypt the private key, you must have the passphrase. You can use the following OpenSSL command to decrypt a private key. After entering the command, you are prompted for the passphrase.
openssl rsa -in encrypted_key.pem -out decrypted_key.pem
",
"smithy.api#required": {}
}
}
@@ -1976,13 +2008,13 @@
"CertificateChain": {
"target": "com.amazonaws.acm#CertificateChain",
"traits": {
- "smithy.api#documentation": "The base64 PEM-encoded certificate chain. This does not include the certificate that you\n are exporting.
"
+ "smithy.api#documentation": "The base64 PEM-encoded certificate chain. This does not include the certificate that you are exporting.
"
}
},
"PrivateKey": {
"target": "com.amazonaws.acm#PrivateKey",
"traits": {
- "smithy.api#documentation": "The encrypted private key associated with the public key in the certificate. The key is\n output in PKCS #8 format and is base64 PEM-encoded.
"
+ "smithy.api#documentation": "The encrypted private key associated with the public key in the certificate. The key is output in PKCS #8 format and is base64 PEM-encoded.
"
}
}
},
@@ -2002,12 +2034,12 @@
"OID": {
"target": "com.amazonaws.acm#String",
"traits": {
- "smithy.api#documentation": "An object identifier (OID) for the extension value. OIDs are strings of numbers separated\n by periods. The following OIDs are defined in RFC 3280 and RFC 5280.
\n \n - \n
\n 1.3.6.1.5.5.7.3.1 (TLS_WEB_SERVER_AUTHENTICATION)\n
\n \n - \n
\n 1.3.6.1.5.5.7.3.2 (TLS_WEB_CLIENT_AUTHENTICATION)\n
\n \n - \n
\n 1.3.6.1.5.5.7.3.3 (CODE_SIGNING)\n
\n \n - \n
\n 1.3.6.1.5.5.7.3.4 (EMAIL_PROTECTION)\n
\n \n - \n
\n 1.3.6.1.5.5.7.3.8 (TIME_STAMPING)\n
\n \n - \n
\n 1.3.6.1.5.5.7.3.9 (OCSP_SIGNING)\n
\n \n - \n
\n 1.3.6.1.5.5.7.3.5 (IPSEC_END_SYSTEM)\n
\n \n - \n
\n 1.3.6.1.5.5.7.3.6 (IPSEC_TUNNEL)\n
\n \n - \n
\n 1.3.6.1.5.5.7.3.7 (IPSEC_USER)\n
\n \n
"
+ "smithy.api#documentation": "An object identifier (OID) for the extension value. OIDs are strings of numbers separated by periods. The following OIDs are defined in RFC 3280 and RFC 5280.
-
1.3.6.1.5.5.7.3.1 (TLS_WEB_SERVER_AUTHENTICATION)
-
1.3.6.1.5.5.7.3.2 (TLS_WEB_CLIENT_AUTHENTICATION)
-
1.3.6.1.5.5.7.3.3 (CODE_SIGNING)
-
1.3.6.1.5.5.7.3.4 (EMAIL_PROTECTION)
-
1.3.6.1.5.5.7.3.8 (TIME_STAMPING)
-
1.3.6.1.5.5.7.3.9 (OCSP_SIGNING)
-
1.3.6.1.5.5.7.3.5 (IPSEC_END_SYSTEM)
-
1.3.6.1.5.5.7.3.6 (IPSEC_TUNNEL)
-
1.3.6.1.5.5.7.3.7 (IPSEC_USER)
"
}
}
},
"traits": {
- "smithy.api#documentation": "The Extended Key Usage X.509 v3 extension defines one or more purposes for which the\n public key can be used. This is in addition to or in place of the basic purposes specified by\n the Key Usage extension.
"
+ "smithy.api#documentation": "The Extended Key Usage X.509 v3 extension defines one or more purposes for which the public key can be used. This is in addition to or in place of the basic purposes specified by the Key Usage extension.
"
}
},
"com.amazonaws.acm#ExtendedKeyUsageFilterList": {
@@ -2230,7 +2262,13 @@
"keyTypes": {
"target": "com.amazonaws.acm#KeyAlgorithmList",
"traits": {
- "smithy.api#documentation": "Specify one or more algorithms that can be used to generate key pairs.
\n Default filtering returns only RSA_1024 and RSA_2048\n certificates that have at least one domain. To return other certificate types, provide the\n desired type signatures in a comma-separated list. For example, \"keyTypes\":\n [\"RSA_2048\",\"RSA_4096\"] returns both RSA_2048 and RSA_4096\n certificates.
"
+ "smithy.api#documentation": "Specify one or more algorithms that can be used to generate key pairs.
Default filtering returns only RSA_1024 and RSA_2048 certificates that have at least one domain. To return other certificate types, provide the desired type signatures in a comma-separated list. For example, \"keyTypes\": [\"RSA_2048\",\"RSA_4096\"] returns both RSA_2048 and RSA_4096 certificates.
"
+ }
+ },
+ "exportOption": {
+ "target": "com.amazonaws.acm#CertificateExport",
+ "traits": {
+ "smithy.api#documentation": "Specify ENABLED or DISABLED to identify certificates that can be exported.
"
}
},
"managedBy": {
@@ -2241,7 +2279,7 @@
}
},
"traits": {
- "smithy.api#documentation": "This structure can be used in the ListCertificates action to filter the\n output of the certificate list.
"
+ "smithy.api#documentation": "This structure can be used in the ListCertificates action to filter the output of the certificate list.
"
}
},
"com.amazonaws.acm#GetAccountConfiguration": {
@@ -2298,7 +2336,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves a certificate and its certificate chain. The certificate may be either a public\n or private certificate issued using the ACM RequestCertificate action, or a\n certificate imported into ACM using the ImportCertificate action. The chain\n consists of the certificate of the issuing CA and the intermediate certificates of any other\n subordinate CAs. All of the certificates are base64 encoded. You can use OpenSSL to decode\n the certificates and inspect individual fields.
",
+ "smithy.api#documentation": "Retrieves a certificate and its certificate chain. The certificate may be either a public or private certificate issued using the ACM RequestCertificate action, or a certificate imported into ACM using the ImportCertificate action. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs. All of the certificates are base64 encoded. You can use OpenSSL to decode the certificates and inspect individual fields.
",
"smithy.test#smokeTests": [
{
"id": "GetCertificateFailure",
@@ -2322,7 +2360,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "String that contains a certificate ARN in the following format:
\n \n arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
\n For more information about ARNs, see Amazon Resource Names (ARNs).
",
+ "smithy.api#documentation": "String that contains a certificate ARN in the following format:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
",
"smithy.api#required": {}
}
}
@@ -2343,7 +2381,7 @@
"CertificateChain": {
"target": "com.amazonaws.acm#CertificateChain",
"traits": {
- "smithy.api#documentation": "Certificates forming the requested certificate's chain of trust. The chain consists of the\n certificate of the issuing CA and the intermediate certificates of any other subordinate CAs.\n
"
+ "smithy.api#documentation": "Certificates forming the requested certificate's chain of trust. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs.
"
}
}
},
@@ -2368,7 +2406,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information for HTTP-based domain validation of certificates requested through CloudFront and issued by ACM.\n This field exists only when the certificate type is AMAZON_ISSUED and the validation method is HTTP.
"
+ "smithy.api#documentation": "Contains information for HTTP-based domain validation of certificates requested through Amazon CloudFront and issued by ACM. This field exists only when the certificate type is AMAZON_ISSUED and the validation method is HTTP.
"
}
},
"com.amazonaws.acm#IdempotencyToken": {
@@ -2413,7 +2451,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with\n ACM. Note that integrated\n services allow only certificate types and keys they support to be associated with\n their resources. Further, their support differs depending on whether the certificate is\n imported into IAM or into ACM. For more information, see the documentation for each\n service. For more information about importing certificates into ACM, see Importing\n Certificates in the Certificate Manager User Guide.
\n \n ACM does not provide managed renewal for certificates that you import.
\n \n Note the following guidelines when importing third party certificates:
\n \n - \n
You must enter the private key that matches the certificate you are importing.
\n \n - \n
The private key must be unencrypted. You cannot import a private key that is protected\n by a password or a passphrase.
\n \n - \n
The private key must be no larger than 5 KB (5,120 bytes).
\n \n - \n
The certificate, private key, and certificate chain must be PEM-encoded.
\n \n - \n
The current time must be between the Not Before and Not\n After certificate fields.
\n \n - \n
The Issuer field must not be empty.
\n \n - \n
The OCSP authority URL, if present, must not exceed 1000 characters.
\n \n - \n
To import a new certificate, omit the CertificateArn argument. Include\n this argument only when you want to replace a previously imported certificate.
\n \n - \n
When you import a certificate by using the CLI, you must specify the certificate, the\n certificate chain, and the private key by their file names preceded by\n fileb://. For example, you can specify a certificate saved in the\n C:\\temp folder as fileb://C:\\temp\\certificate_to_import.pem.\n If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs.\n
\n \n - \n
When you import a certificate by using an SDK, you must specify the certificate, the\n certificate chain, and the private key files in the manner required by the programming\n language you're using.
\n \n - \n
The cryptographic algorithm of an imported certificate must match the algorithm of the\n signing CA. For example, if the signing CA key type is RSA, then the certificate key type\n must also be RSA.
\n \n
\n This operation returns the Amazon\n Resource Name (ARN) of the imported certificate.
"
+ "smithy.api#documentation": "Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services allow only certificate types and keys they support to be associated with their resources. Further, their support differs depending on whether the certificate is imported into IAM or into ACM. For more information, see the documentation for each service. For more information about importing certificates into ACM, see Importing Certificates in the Certificate Manager User Guide.
ACM does not provide managed renewal for certificates that you import.
Note the following guidelines when importing third party certificates:
-
You must enter the private key that matches the certificate you are importing.
-
The private key must be unencrypted. You cannot import a private key that is protected by a password or a passphrase.
-
The private key must be no larger than 5 KB (5,120 bytes).
-
The certificate, private key, and certificate chain must be PEM-encoded.
-
The current time must be between the Not Before and Not After certificate fields.
-
The Issuer field must not be empty.
-
The OCSP authority URL, if present, must not exceed 1000 characters.
-
To import a new certificate, omit the CertificateArn argument. Include this argument only when you want to replace a previously imported certificate.
-
When you import a certificate by using the CLI, you must specify the certificate, the certificate chain, and the private key by their file names preceded by fileb://. For example, you can specify a certificate saved in the C:\\temp folder as fileb://C:\\temp\\certificate_to_import.pem. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs.
-
When you import a certificate by using an SDK, you must specify the certificate, the certificate chain, and the private key files in the manner required by the programming language you're using.
-
The cryptographic algorithm of an imported certificate must match the algorithm of the signing CA. For example, if the signing CA key type is RSA, then the certificate key type must also be RSA.
This operation returns the Amazon Resource Name (ARN) of the imported certificate.
"
}
},
"com.amazonaws.acm#ImportCertificateRequest": {
@@ -2422,7 +2460,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name\n (ARN) of an imported certificate to replace. To import a new certificate, omit this\n field.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.
"
}
},
"Certificate": {
@@ -2448,7 +2486,7 @@
"Tags": {
"target": "com.amazonaws.acm#TagList",
"traits": {
- "smithy.api#documentation": "One or more resource tags to associate with the imported certificate.
\n Note: You cannot apply tags when reimporting a certificate.
"
+ "smithy.api#documentation": "One or more resource tags to associate with the imported certificate.
Note: You cannot apply tags when reimporting a certificate.
"
}
}
},
@@ -2462,7 +2500,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name\n (ARN) of the imported certificate.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the imported certificate.
"
}
}
},
@@ -2484,7 +2522,7 @@
}
},
"traits": {
- "smithy.api#documentation": "One or more of of request parameters specified is not valid.
",
+ "smithy.api#documentation": "One or more of request parameters specified is not valid.
",
"smithy.api#error": "client"
}
},
@@ -2508,7 +2546,7 @@
}
},
"traits": {
- "smithy.api#documentation": "One or more values in the DomainValidationOption structure is\n incorrect.
",
+ "smithy.api#documentation": "One or more values in the DomainValidationOption structure is incorrect.
",
"smithy.api#error": "client"
}
},
@@ -2544,7 +2582,7 @@
}
},
"traits": {
- "smithy.api#documentation": "One or both of the values that make up the key-value pair is not valid. For example, you\n cannot specify a tag value that begins with aws:.
",
+ "smithy.api#documentation": "One or both of the values that make up the key-value pair is not valid. For example, you cannot specify a tag value that begins with aws:.
",
"smithy.api#error": "client"
}
},
@@ -2612,7 +2650,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The Key Usage X.509 v3 extension defines the purpose of the public key contained in the\n certificate.
"
+ "smithy.api#documentation": "The Key Usage X.509 v3 extension defines the purpose of the public key contained in the certificate.
"
}
},
"com.amazonaws.acm#KeyUsageFilterList": {
@@ -2733,7 +2771,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves a list of certificate ARNs and domain names. You can request that only\n certificates that match a specific status be listed. You can also filter by specific\n attributes of the certificate. Default filtering returns only RSA_2048\n certificates. For more information, see Filters.
",
+ "smithy.api#documentation": "Retrieves a list of certificate ARNs and domain names. You can request that only certificates that match a specific status be listed. You can also filter by specific attributes of the certificate. Default filtering returns only RSA_2048 certificates. For more information, see Filters.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -2767,31 +2805,31 @@
"Includes": {
"target": "com.amazonaws.acm#Filters",
"traits": {
- "smithy.api#documentation": "Filter the certificate list. For more information, see the Filters\n structure.
"
+ "smithy.api#documentation": "Filter the certificate list. For more information, see the Filters structure.
"
}
},
"NextToken": {
"target": "com.amazonaws.acm#NextToken",
"traits": {
- "smithy.api#documentation": "Use this parameter only when paginating results and only in a subsequent request after you\n receive a response with truncated results. Set it to the value of NextToken from\n the response you just received.
"
+ "smithy.api#documentation": "Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
"
}
},
"MaxItems": {
"target": "com.amazonaws.acm#MaxItems",
"traits": {
- "smithy.api#documentation": "Use this parameter when paginating results to specify the maximum number of items to\n return in the response. If additional items exist beyond the number you specify, the\n NextToken element is sent in the response. Use this NextToken\n value in a subsequent request to retrieve additional items.
"
+ "smithy.api#documentation": "Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
"
}
},
"SortBy": {
"target": "com.amazonaws.acm#SortBy",
"traits": {
- "smithy.api#documentation": "Specifies the field to sort results by. If you specify SortBy, you must also\n specify SortOrder.
"
+ "smithy.api#documentation": "Specifies the field to sort results by. If you specify SortBy, you must also specify SortOrder.
"
}
},
"SortOrder": {
"target": "com.amazonaws.acm#SortOrder",
"traits": {
- "smithy.api#documentation": "Specifies the order of sorted results. If you specify SortOrder, you must\n also specify SortBy.
"
+ "smithy.api#documentation": "Specifies the order of sorted results. If you specify SortOrder, you must also specify SortBy.
"
}
}
},
@@ -2805,7 +2843,7 @@
"NextToken": {
"target": "com.amazonaws.acm#NextToken",
"traits": {
- "smithy.api#documentation": "When the list is truncated, this value is present and contains the value to use for the\n NextToken parameter in a subsequent pagination request.
"
+ "smithy.api#documentation": "When the list is truncated, this value is present and contains the value to use for the NextToken parameter in a subsequent pagination request.
"
}
},
"CertificateSummaryList": {
@@ -2836,7 +2874,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the tags that have been applied to the ACM certificate. Use the certificate's\n Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate,\n use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action.
"
+ "smithy.api#documentation": "Lists the tags that have been applied to the ACM certificate. Use the certificate's Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, use the AddTagsToCertificate action. To delete a tag, use the RemoveTagsFromCertificate action.
"
}
},
"com.amazonaws.acm#ListTagsForCertificateRequest": {
@@ -2845,7 +2883,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "String that contains the ARN of the ACM certificate for which you want to list the tags.\n This must have the following form:
\n \n arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
\n For more information about ARNs, see Amazon Resource Names (ARNs).
",
+ "smithy.api#documentation": "String that contains the ARN of the ACM certificate for which you want to list the tags. This must have the following form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
",
"smithy.api#required": {}
}
}
@@ -2962,7 +3000,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Adds or modifies account-level configurations in ACM.
\n The supported configuration option is DaysBeforeExpiry. This option specifies\n the number of days prior to certificate expiration when ACM starts generating\n EventBridge events. ACM sends one event per day per certificate until the\n certificate expires. By default, accounts receive events starting 45 days before certificate\n expiration.
"
+ "smithy.api#documentation": "Adds or modifies account-level configurations in ACM.
The supported configuration option is DaysBeforeExpiry. This option specifies the number of days prior to certificate expiration when ACM starts generating EventBridge events. ACM sends one event per day per certificate until the certificate expires. By default, accounts receive events starting 45 days before certificate expiration.
"
}
},
"com.amazonaws.acm#PutAccountConfigurationRequest": {
@@ -2977,7 +3015,7 @@
"IdempotencyToken": {
"target": "com.amazonaws.acm#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "Customer-chosen string used to distinguish between calls to\n PutAccountConfiguration. Idempotency tokens time out after one hour. If you\n call PutAccountConfiguration multiple times with the same unexpired idempotency\n token, ACM treats it as the same request and returns the original result. If you change the\n idempotency token for each call, ACM treats each call as a new request.
",
+ "smithy.api#documentation": "Customer-chosen string used to distinguish between calls to PutAccountConfiguration. Idempotency tokens time out after one hour. If you call PutAccountConfiguration multiple times with the same unexpired idempotency token, ACM treats it as the same request and returns the original result. If you change the idempotency token for each call, ACM treats each call as a new request.
",
"smithy.api#required": {}
}
}
@@ -3026,7 +3064,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. If\n you do not specify the value portion of the tag when calling this function, the tag will be\n removed regardless of value. If you specify a value, the tag is removed only if it is\n associated with the specified value.
\n To add tags to a certificate, use the AddTagsToCertificate action. To\n view all of the tags that have been applied to a specific ACM certificate, use the ListTagsForCertificate action.
"
+ "smithy.api#documentation": "Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this function, the tag will be removed regardless of value. If you specify a value, the tag is removed only if it is associated with the specified value.
To add tags to a certificate, use the AddTagsToCertificate action. To view all of the tags that have been applied to a specific ACM certificate, use the ListTagsForCertificate action.
"
}
},
"com.amazonaws.acm#RemoveTagsFromCertificateRequest": {
@@ -3035,7 +3073,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "String that contains the ARN of the ACM Certificate with one or more tags that you want\n to remove. This must be of the form:
\n \n arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
\n For more information about ARNs, see Amazon Resource Names (ARNs).
",
+ "smithy.api#documentation": "String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
",
"smithy.api#required": {}
}
},
@@ -3071,7 +3109,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Renews an eligible ACM certificate. At this time, only exported private certificates can\n be renewed with this operation. In order to renew your Amazon Web Services Private CA certificates with ACM, you\n must first grant the ACM\n service principal permission to do so. For more information, see Testing Managed Renewal\n in the ACM User Guide.
"
+ "smithy.api#documentation": "Renews an eligible ACM certificate. In order to renew your Amazon Web Services Private CA certificates with ACM, you must first grant the ACM service principal permission to do so. For more information, see Testing Managed Renewal in the ACM User Guide.
"
}
},
"com.amazonaws.acm#RenewCertificateRequest": {
@@ -3080,7 +3118,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "String that contains the ARN of the ACM certificate to be renewed. This must be of the\n form:
\n \n arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
\n For more information about ARNs, see Amazon Resource Names (ARNs).
",
+ "smithy.api#documentation": "String that contains the ARN of the ACM certificate to be renewed. This must be of the form:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
",
"smithy.api#required": {}
}
}
@@ -3148,7 +3186,7 @@
"DomainValidationOptions": {
"target": "com.amazonaws.acm#DomainValidationList",
"traits": {
- "smithy.api#documentation": "Contains information about the validation of each domain name in the certificate, as it\n pertains to ACM's managed\n renewal. This is different from the initial validation that occurs as a result of\n the RequestCertificate request. This field exists only when the certificate\n type is AMAZON_ISSUED.
",
+ "smithy.api#documentation": "Contains information about the validation of each domain name in the certificate, as it pertains to ACM's managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED.
",
"smithy.api#required": {}
}
},
@@ -3167,7 +3205,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information about the status of ACM's managed renewal for the certificate. This\n structure exists only when the certificate type is AMAZON_ISSUED.
"
+ "smithy.api#documentation": "Contains information about the status of ACM's managed renewal for the certificate. This structure exists only when the certificate type is AMAZON_ISSUED.
"
}
},
"com.amazonaws.acm#RequestCertificate": {
@@ -3202,7 +3240,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Requests an ACM certificate for use with other Amazon Web Services services. To request an ACM\n certificate, you must specify a fully qualified domain name (FQDN) in the\n DomainName parameter. You can also specify additional FQDNs in the\n SubjectAlternativeNames parameter.
\n If you are requesting a private certificate, domain validation is not required. If you are\n requesting a public certificate, each domain name that you specify must be validated to verify\n that you own or control the domain. You can use DNS validation or email validation.\n We recommend that you use DNS validation. ACM issues public certificates after receiving\n approval from the domain owner.
\n \n ACM behavior differs from the RFC 6125\n specification of the certificate validation process. ACM first checks for a Subject\n Alternative Name, and, if it finds one, ignores the common name (CN).
\n \n After successful completion of the RequestCertificate action, there is a\n delay of several seconds before you can retrieve information about the new certificate.
"
+ "smithy.api#documentation": "Requests an ACM certificate for use with other Amazon Web Services services. To request an ACM certificate, you must specify a fully qualified domain name (FQDN) in the DomainName parameter. You can also specify additional FQDNs in the SubjectAlternativeNames parameter.
If you are requesting a private certificate, domain validation is not required. If you are requesting a public certificate, each domain name that you specify must be validated to verify that you own or control the domain. You can use DNS validation or email validation. We recommend that you use DNS validation.
ACM behavior differs from the RFC 6125 specification of the certificate validation process. ACM first checks for a Subject Alternative Name, and, if it finds one, ignores the common name (CN).
After successful completion of the RequestCertificate action, there is a delay of several seconds before you can retrieve information about the new certificate.
"
}
},
"com.amazonaws.acm#RequestCertificateRequest": {
@@ -3211,44 +3249,44 @@
"DomainName": {
"target": "com.amazonaws.acm#DomainNameString",
"traits": {
- "smithy.api#documentation": "Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with\n an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects\n several sites in the same domain. For example, *.example.com protects www.example.com,\n site.example.com, and images.example.com.
\n In compliance with RFC\n 5280, the length of the domain name (technically, the Common Name) that you provide\n cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative\n Name field, which supports names up to 253 octets in length.
",
+ "smithy.api#documentation": "Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com.
In compliance with RFC 5280, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length.
",
"smithy.api#required": {}
}
},
"ValidationMethod": {
"target": "com.amazonaws.acm#ValidationMethod",
"traits": {
- "smithy.api#documentation": "The method you want to use if you are requesting a public certificate to validate that you\n own or control domain. You can validate with DNS or validate with\n email. We recommend that you use DNS validation.
"
+ "smithy.api#documentation": "The method you want to use if you are requesting a public certificate to validate that you own or control domain. You can validate with DNS or validate with email. We recommend that you use DNS validation.
"
}
},
"SubjectAlternativeNames": {
"target": "com.amazonaws.acm#DomainList",
"traits": {
- "smithy.api#documentation": "Additional FQDNs to be included in the Subject Alternative Name extension of the ACM\n certificate. For example, add the name www.example.net to a certificate for which the\n DomainName field is www.example.com if users can reach your site by using\n either name. The maximum number of domain names that you can add to an ACM certificate is\n 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must\n request a quota increase. For more information, see Quotas.
\n The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple\n labels separated by periods. No label can be longer than 63 octets. Consider the following\n examples:
\n \n - \n
\n (63 octets).(63 octets).(63 octets).(61 octets) is legal because the\n total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.
\n \n - \n
\n (64 octets).(63 octets).(63 octets).(61 octets) is not legal because the\n total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63\n octets.
\n \n - \n
\n (63 octets).(63 octets).(63 octets).(62 octets) is not legal because the\n total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.
\n \n
"
+ "smithy.api#documentation": "Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. For example, add the name www.example.net to a certificate for which the DomainName field is www.example.com if users can reach your site by using either name. The maximum number of domain names that you can add to an ACM certificate is 100. However, the initial quota is 10 domain names. If you need more than 10 names, you must request a quota increase. For more information, see Quotas.
The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple labels separated by periods. No label can be longer than 63 octets. Consider the following examples:
-
(63 octets).(63 octets).(63 octets).(61 octets) is legal because the total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets.
-
(64 octets).(63 octets).(63 octets).(61 octets) is not legal because the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds 63 octets.
-
(63 octets).(63 octets).(63 octets).(62 octets) is not legal because the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.
"
}
},
"IdempotencyToken": {
"target": "com.amazonaws.acm#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "Customer chosen string that can be used to distinguish between calls to\n RequestCertificate. Idempotency tokens time out after one hour. Therefore, if\n you call RequestCertificate multiple times with the same idempotency token within\n one hour, ACM recognizes that you are requesting only one certificate and will issue only\n one. If you change the idempotency token for each call, ACM recognizes that you are\n requesting multiple certificates.
"
+ "smithy.api#documentation": "Customer chosen string that can be used to distinguish between calls to RequestCertificate. Idempotency tokens time out after one hour. Therefore, if you call RequestCertificate multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.
"
}
},
"DomainValidationOptions": {
"target": "com.amazonaws.acm#DomainValidationOptionList",
"traits": {
- "smithy.api#documentation": "The domain name that you want ACM to use to send you emails so that you can validate\n domain ownership.
"
+ "smithy.api#documentation": "The domain name that you want ACM to use to send you emails so that you can validate domain ownership.
"
}
},
"Options": {
"target": "com.amazonaws.acm#CertificateOptions",
"traits": {
- "smithy.api#documentation": "Currently, you can use this parameter to specify whether to add the certificate to a\n certificate transparency log. Certificate transparency makes it possible to detect SSL/TLS\n certificates that have been mistakenly or maliciously issued. Certificates that have not been\n logged typically produce an error message in a browser. For more information, see Opting Out of Certificate Transparency Logging.
"
+ "smithy.api#documentation": "You can use this parameter to specify whether to add the certificate to a certificate transparency log and export your certificate.
Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser. For more information, see Opting Out of Certificate Transparency Logging.
You can export public ACM certificates to use with Amazon Web Services services as well as outside the Amazon Web Services Cloud. For more information, see Certificate Manager exportable public certificate.
"
}
},
"CertificateAuthorityArn": {
"target": "com.amazonaws.acm#PcaArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used\n to issue the certificate. If you do not provide an ARN and you are trying to request a private\n certificate, ACM will attempt to issue a public certificate. For more information about\n private CAs, see the Amazon Web Services Private Certificate Authority user guide. The ARN must have the following form:
\n \n arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012\n
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. If you do not provide an ARN and you are trying to request a private certificate, ACM will attempt to issue a public certificate. For more information about private CAs, see the Amazon Web Services Private Certificate Authority user guide. The ARN must have the following form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
"
}
},
"Tags": {
@@ -3260,7 +3298,7 @@
"KeyAlgorithm": {
"target": "com.amazonaws.acm#KeyAlgorithm",
"traits": {
- "smithy.api#documentation": "Specifies the algorithm of the public and private key pair that your certificate uses to\n encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital\n Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but\n with greater computing efficiency. However, ECDSA is not supported by all network clients.\n Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a particular size,\n while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not\n broken. Check the requirements for the Amazon Web Services service where you plan to deploy your\n certificate. For more information about selecting an algorithm, see Key\n algorithms.
\n \n Algorithms supported for an ACM certificate request include:
\n \n - \n
\n RSA_2048\n
\n \n - \n
\n EC_prime256v1\n
\n \n - \n
\n EC_secp384r1\n
\n \n
\n Other listed algorithms are for imported certificates only.
\n \n \n When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the\n specified signing algorithm family (RSA or ECDSA) must match the algorithm family of\n the CA's secret key.
\n \n Default: RSA_2048
"
+ "smithy.api#documentation": "Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable to RSA keys but with greater computing efficiency. However, ECDSA is not supported by all network clients. Some Amazon Web Services services may require RSA keys, or only support ECDSA keys of a particular size, while others allow the use of either RSA and ECDSA keys to ensure that compatibility is not broken. Check the requirements for the Amazon Web Services service where you plan to deploy your certificate. For more information about selecting an algorithm, see Key algorithms.
Algorithms supported for an ACM certificate request include:
-
RSA_2048
-
EC_prime256v1
-
EC_secp384r1
Other listed algorithms are for imported certificates only.
When you request a private PKI certificate signed by a CA from Amazon Web Services Private CA, the specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.
Default: RSA_2048
"
}
},
"ManagedBy": {
@@ -3280,7 +3318,7 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "String that contains the ARN of the issued certificate. This must be of the form:
\n \n arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
"
+ "smithy.api#documentation": "String that contains the ARN of the issued certificate. This must be of the form:
arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
"
}
}
},
@@ -3296,7 +3334,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The certificate request is in process and the certificate in your account has not yet been\n issued.
",
+ "smithy.api#documentation": "The certificate request is in process and the certificate in your account has not yet been issued.
",
"smithy.api#error": "client"
}
},
@@ -3323,7 +3361,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Resends the email that requests domain ownership validation. The domain owner or an\n authorized representative must approve the ACM certificate before it can be issued. The\n certificate can be approved by clicking a link in the mail to navigate to the Amazon\n certificate approval website and then clicking I Approve.\n However, the validation email can be blocked by spam filters. Therefore, if you do not receive\n the original mail, you can request that the mail be resent within 72 hours of requesting the\n ACM certificate. If more than 72 hours have elapsed since your original request or since\n your last attempt to resend validation mail, you must request a new certificate. For more\n information about setting up your contact email addresses, see Configure Email for your Domain.
"
+ "smithy.api#documentation": "Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking I Approve. However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate. For more information about setting up your contact email addresses, see Configure Email for your Domain.
"
}
},
"com.amazonaws.acm#ResendValidationEmailRequest": {
@@ -3332,21 +3370,21 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "String that contains the ARN of the requested certificate. The certificate ARN is\n generated and returned by the RequestCertificate action as soon as the\n request is made. By default, using this parameter causes email to be sent to all top-level\n domains you specified in the certificate request. The ARN must be of the form:
\n \n arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012\n
",
+ "smithy.api#documentation": "String that contains the ARN of the requested certificate. The certificate ARN is generated and returned by the RequestCertificate action as soon as the request is made. By default, using this parameter causes email to be sent to all top-level domains you specified in the certificate request. The ARN must be of the form:
arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
",
"smithy.api#required": {}
}
},
"Domain": {
"target": "com.amazonaws.acm#DomainNameString",
"traits": {
- "smithy.api#documentation": "The fully qualified domain name (FQDN) of the certificate that needs to be\n validated.
",
+ "smithy.api#documentation": "The fully qualified domain name (FQDN) of the certificate that needs to be validated.
",
"smithy.api#required": {}
}
},
"ValidationDomain": {
"target": "com.amazonaws.acm#DomainNameString",
"traits": {
- "smithy.api#documentation": "The base validation domain that will act as the suffix of the email addresses that are\n used to send the emails. This must be the same as the Domain value or a\n superdomain of the Domain value. For example, if you requested a certificate for\n site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, ACM sends email to the\n domain registrant, technical contact, and administrative contact in WHOIS and the following\n five addresses:
\n \n - \n
admin@subdomain.example.com
\n \n - \n
administrator@subdomain.example.com
\n \n - \n
hostmaster@subdomain.example.com
\n \n - \n
postmaster@subdomain.example.com
\n \n - \n
webmaster@subdomain.example.com
\n \n
",
+ "smithy.api#documentation": "The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the Domain value or a superdomain of the Domain value. For example, if you requested a certificate for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com, ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:
-
admin@subdomain.example.com
-
administrator@subdomain.example.com
-
hostmaster@subdomain.example.com
-
postmaster@subdomain.example.com
-
webmaster@subdomain.example.com
",
"smithy.api#required": {}
}
}
@@ -3363,7 +3401,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The certificate is in use by another Amazon Web Services service in the caller's account. Remove the\n association and try again.
",
+ "smithy.api#documentation": "The certificate is in use by another Amazon Web Services service in the caller's account. Remove the association and try again.
",
"smithy.api#error": "client"
}
},
@@ -3375,7 +3413,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The specified certificate cannot be found in the caller's account or the caller's account\n cannot be found.
",
+ "smithy.api#documentation": "The specified certificate cannot be found in the caller's account or the caller's account cannot be found.
",
"smithy.api#error": "client"
}
},
@@ -3399,13 +3437,13 @@
"Value": {
"target": "com.amazonaws.acm#String",
"traits": {
- "smithy.api#documentation": "The value of the CNAME record to add to your DNS database. This is supplied by\n ACM.
",
+ "smithy.api#documentation": "The value of the CNAME record to add to your DNS database. This is supplied by ACM.
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "Contains a DNS record value that you can use to validate ownership or control of a domain.\n This is used by the DescribeCertificate action.
"
+ "smithy.api#documentation": "Contains a DNS record value that you can use to validate ownership or control of a domain. This is used by the DescribeCertificate action.
"
}
},
"com.amazonaws.acm#RevocationReason": {
@@ -3479,6 +3517,74 @@
}
}
},
+ "com.amazonaws.acm#RevokeCertificate": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.acm#RevokeCertificateRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.acm#RevokeCertificateResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.acm#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.acm#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.acm#InvalidArnException"
+ },
+ {
+ "target": "com.amazonaws.acm#ResourceInUseException"
+ },
+ {
+ "target": "com.amazonaws.acm#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.acm#ThrottlingException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Revokes a public ACM certificate. You can only revoke certificates that have been previously exported.
"
+ }
+ },
+ "com.amazonaws.acm#RevokeCertificateRequest": {
+ "type": "structure",
+ "members": {
+ "CertificateArn": {
+ "target": "com.amazonaws.acm#Arn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the public or private certificate that will be revoked. The ARN must have the following form:
arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012
",
+ "smithy.api#required": {}
+ }
+ },
+ "RevocationReason": {
+ "target": "com.amazonaws.acm#RevocationReason",
+ "traits": {
+ "smithy.api#documentation": "Specifies why you revoked the certificate.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.acm#RevokeCertificateResponse": {
+ "type": "structure",
+ "members": {
+ "CertificateArn": {
+ "target": "com.amazonaws.acm#Arn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the public or private certificate that was revoked.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.acm#ServiceErrorMessage": {
"type": "string"
},
@@ -3633,7 +3739,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates a certificate. Currently, you can use this function to specify whether to opt in\n to or out of recording your certificate in a certificate transparency log. For more\n information, see Opting Out of\n Certificate Transparency Logging.
"
+ "smithy.api#documentation": "Updates a certificate. You can use this function to specify whether to opt in to or out of recording your certificate in a certificate transparency log and exporting. For more information, see Opting Out of Certificate Transparency Logging and Certificate Manager Exportable Managed Certificates.
"
}
},
"com.amazonaws.acm#UpdateCertificateOptionsRequest": {
@@ -3642,14 +3748,14 @@
"CertificateArn": {
"target": "com.amazonaws.acm#Arn",
"traits": {
- "smithy.api#documentation": "ARN of the requested certificate to update. This must be of the form:
\n \n arn:aws:acm:us-east-1:account:certificate/12345678-1234-1234-1234-123456789012\n \n
",
+ "smithy.api#documentation": "ARN of the requested certificate to update. This must be of the form:
arn:aws:acm:us-east-1:account:certificate/12345678-1234-1234-1234-123456789012
",
"smithy.api#required": {}
}
},
"Options": {
"target": "com.amazonaws.acm#CertificateOptions",
"traits": {
- "smithy.api#documentation": "Use to update the options for your certificate. Currently, you can specify whether to add\n your certificate to a transparency log. Certificate transparency makes it possible to detect\n SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have\n not been logged typically produce an error message in a browser.
",
+ "smithy.api#documentation": "Use to update the options for your certificate. Currently, you can specify whether to add your certificate to a transparency log or export your certificate. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser.
",
"smithy.api#required": {}
}
}
diff --git a/codegen/sdk-codegen/aws-models/api-gateway.json b/codegen/sdk-codegen/aws-models/api-gateway.json
index 170269acf0a..dd4dd7a3b3d 100644
--- a/codegen/sdk-codegen/aws-models/api-gateway.json
+++ b/codegen/sdk-codegen/aws-models/api-gateway.json
@@ -5046,7 +5046,7 @@
"domainNameArn": {
"target": "com.amazonaws.apigateway#String",
"traits": {
- "smithy.api#documentation": "The ARN of the domain name. Supported only for private custom domain names.\n
"
+ "smithy.api#documentation": "The ARN of the domain name.\n
"
}
},
"certificateName": {
@@ -8988,7 +8988,7 @@
"target": "com.amazonaws.apigateway#Integer",
"traits": {
"smithy.api#default": 0,
- "smithy.api#documentation": "Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
"
+ "smithy.api#documentation": "Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds. You can increase the default value to longer than 29 seconds for Regional or private APIs only.
"
}
},
"cacheNamespace": {
@@ -10045,7 +10045,7 @@
"timeoutInMillis": {
"target": "com.amazonaws.apigateway#NullableInteger",
"traits": {
- "smithy.api#documentation": "Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
"
+ "smithy.api#documentation": "Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds. You can increase the default value to longer than 29 seconds for Regional or private APIs only.
"
}
},
"tlsConfig": {
diff --git a/codegen/sdk-codegen/aws-models/apigatewayv2.json b/codegen/sdk-codegen/aws-models/apigatewayv2.json
index 3e80504c5c1..0549e10588f 100644
--- a/codegen/sdk-codegen/aws-models/apigatewayv2.json
+++ b/codegen/sdk-codegen/aws-models/apigatewayv2.json
@@ -3509,7 +3509,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a RoutingRule
",
+ "smithy.api#documentation": "Creates a RoutingRule.
",
"smithy.api#http": {
"method": "POST",
"uri": "/v2/domainnames/{DomainName}/routingrules",
diff --git a/codegen/sdk-codegen/aws-models/backup.json b/codegen/sdk-codegen/aws-models/backup.json
index f672e5a6c2d..fc524330073 100644
--- a/codegen/sdk-codegen/aws-models/backup.json
+++ b/codegen/sdk-codegen/aws-models/backup.json
@@ -126,6 +126,69 @@
"smithy.api#error": "client"
}
},
+ "com.amazonaws.backup#AssociateBackupVaultMpaApprovalTeam": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.backup#AssociateBackupVaultMpaApprovalTeamInput"
+ },
+ "output": {
+ "target": "smithy.api#Unit"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.backup#InvalidParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.backup#MissingParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.backup#ServiceUnavailableException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Associates an MPA approval team with a backup vault.
",
+ "smithy.api#http": {
+ "method": "PUT",
+ "uri": "/backup-vaults/{BackupVaultName}/mpaApprovalTeam",
+ "code": 204
+ }
+ }
+ },
+ "com.amazonaws.backup#AssociateBackupVaultMpaApprovalTeamInput": {
+ "type": "structure",
+ "members": {
+ "BackupVaultName": {
+ "target": "com.amazonaws.backup#BackupVaultName",
+ "traits": {
+ "smithy.api#documentation": "The name of the backup vault to associate with the MPA approval team.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "MpaApprovalTeamArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the MPA approval team to associate with the backup vault.
",
+ "smithy.api#required": {}
+ }
+ },
+ "RequesterComment": {
+ "target": "com.amazonaws.backup#RequesterComment",
+ "traits": {
+ "smithy.api#documentation": "A comment provided by the requester explaining the association request.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
"com.amazonaws.backup#BackupJob": {
"type": "structure",
"members": {
@@ -1056,6 +1119,12 @@
"smithy.api#enumValue": "S3_RESTORE_OBJECT_FAILED"
}
},
+ "CONTINUOUS_BACKUP_INTERRUPTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CONTINUOUS_BACKUP_INTERRUPTED"
+ }
+ },
"RECOVERY_POINT_INDEX_COMPLETED": {
"target": "smithy.api#Unit",
"traits": {
@@ -1880,7 +1949,8 @@
"CreatorRequestId": {
"target": "com.amazonaws.backup#string",
"traits": {
- "smithy.api#documentation": "Identifies the request and allows failed requests to be retried without the risk of\n running the operation twice. If the request includes a CreatorRequestId that\n matches an existing backup plan, that plan is returned. This parameter is optional.
\n If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
"
+ "smithy.api#documentation": "Identifies the request and allows failed requests to be retried without the risk of\n running the operation twice. If the request includes a CreatorRequestId that\n matches an existing backup plan, that plan is returned. This parameter is optional.
\n If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
",
+ "smithy.api#idempotencyToken": {}
}
}
},
@@ -1982,7 +2052,8 @@
"CreatorRequestId": {
"target": "com.amazonaws.backup#string",
"traits": {
- "smithy.api#documentation": "A unique string that identifies the request and allows failed requests to be retried\n without the risk of running the operation twice. This parameter is optional.
\n If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
"
+ "smithy.api#documentation": "A unique string that identifies the request and allows failed requests to be retried\n without the risk of running the operation twice. This parameter is optional.
\n If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
",
+ "smithy.api#idempotencyToken": {}
}
}
},
@@ -2077,7 +2148,8 @@
"CreatorRequestId": {
"target": "com.amazonaws.backup#string",
"traits": {
- "smithy.api#documentation": "A unique string that identifies the request and allows failed requests to be retried\n without the risk of running the operation twice. This parameter is optional.
\n If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
"
+ "smithy.api#documentation": "A unique string that identifies the request and allows failed requests to be retried\n without the risk of running the operation twice. This parameter is optional.
\n If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
",
+ "smithy.api#idempotencyToken": {}
}
}
},
@@ -2259,7 +2331,8 @@
"IdempotencyToken": {
"target": "com.amazonaws.backup#string",
"traits": {
- "smithy.api#documentation": "This is a user-chosen string used to distinguish between otherwise identical \n calls. Retrying a successful request with the \n same idempotency token results in a success message with no action taken.
"
+ "smithy.api#documentation": "This is a user-chosen string used to distinguish between otherwise identical \n calls. Retrying a successful request with the \n same idempotency token results in a success message with no action taken.
",
+ "smithy.api#idempotencyToken": {}
}
},
"RecoveryPointSelection": {
@@ -2387,7 +2460,8 @@
"CreatorRequestId": {
"target": "com.amazonaws.backup#string",
"traits": {
- "smithy.api#documentation": "The ID of the creation request.
\n This parameter is optional. If used, this parameter must contain \n 1 to 50 alphanumeric or '-_.' characters.
"
+ "smithy.api#documentation": "The ID of the creation request.
\n This parameter is optional. If used, this parameter must contain \n 1 to 50 alphanumeric or '-_.' characters.
",
+ "smithy.api#idempotencyToken": {}
}
},
"MinRetentionDays": {
@@ -2550,6 +2624,119 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.backup#CreateRestoreAccessBackupVault": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.backup#CreateRestoreAccessBackupVaultInput"
+ },
+ "output": {
+ "target": "com.amazonaws.backup#CreateRestoreAccessBackupVaultOutput"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.backup#AlreadyExistsException"
+ },
+ {
+ "target": "com.amazonaws.backup#InvalidParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.backup#LimitExceededException"
+ },
+ {
+ "target": "com.amazonaws.backup#MissingParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.backup#ServiceUnavailableException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Creates a restore access backup vault that provides temporary access to recovery points in a logically air-gapped backup vault, subject to MPA approval.
",
+ "smithy.api#http": {
+ "method": "PUT",
+ "uri": "/restore-access-backup-vaults",
+ "code": 200
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.backup#CreateRestoreAccessBackupVaultInput": {
+ "type": "structure",
+ "members": {
+ "SourceBackupVaultArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the source backup vault containing the recovery points to which temporary access is requested.
",
+ "smithy.api#required": {}
+ }
+ },
+ "BackupVaultName": {
+ "target": "com.amazonaws.backup#BackupVaultName",
+ "traits": {
+ "smithy.api#documentation": "The name of the backup vault to associate with an MPA approval team.
"
+ }
+ },
+ "BackupVaultTags": {
+ "target": "com.amazonaws.backup#Tags",
+ "traits": {
+ "smithy.api#documentation": "Optional tags to assign to the restore access backup vault.
"
+ }
+ },
+ "CreatorRequestId": {
+ "target": "com.amazonaws.backup#string",
+ "traits": {
+ "smithy.api#documentation": "A unique string that identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ },
+ "RequesterComment": {
+ "target": "com.amazonaws.backup#RequesterComment",
+ "traits": {
+ "smithy.api#documentation": "A comment explaining the reason for requesting restore access to the backup vault.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.backup#CreateRestoreAccessBackupVaultOutput": {
+ "type": "structure",
+ "members": {
+ "RestoreAccessBackupVaultArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The ARN that uniquely identifies the created restore access backup vault.
"
+ }
+ },
+ "VaultState": {
+ "target": "com.amazonaws.backup#VaultState",
+ "traits": {
+ "smithy.api#documentation": "The current state of the restore access backup vault.
"
+ }
+ },
+ "RestoreAccessBackupVaultName": {
+ "target": "com.amazonaws.backup#BackupVaultName",
+ "traits": {
+ "smithy.api#documentation": "The name of the created restore access backup vault.
"
+ }
+ },
+ "CreationDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": ">The date and time when the restore access backup vault was created, in Unix format and Coordinated Universal Time
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.backup#CreateRestoreTestingPlan": {
"type": "operation",
"input": {
@@ -2754,6 +2941,9 @@
"type": "service",
"version": "2018-11-15",
"operations": [
+ {
+ "target": "com.amazonaws.backup#AssociateBackupVaultMpaApprovalTeam"
+ },
{
"target": "com.amazonaws.backup#CancelLegalHold"
},
@@ -2778,6 +2968,9 @@
{
"target": "com.amazonaws.backup#CreateReportPlan"
},
+ {
+ "target": "com.amazonaws.backup#CreateRestoreAccessBackupVault"
+ },
{
"target": "com.amazonaws.backup#CreateRestoreTestingPlan"
},
@@ -2850,6 +3043,9 @@
{
"target": "com.amazonaws.backup#DescribeRestoreJob"
},
+ {
+ "target": "com.amazonaws.backup#DisassociateBackupVaultMpaApprovalTeam"
+ },
{
"target": "com.amazonaws.backup#DisassociateRecoveryPoint"
},
@@ -2958,6 +3154,9 @@
{
"target": "com.amazonaws.backup#ListReportPlans"
},
+ {
+ "target": "com.amazonaws.backup#ListRestoreAccessBackupVaults"
+ },
{
"target": "com.amazonaws.backup#ListRestoreJobs"
},
@@ -2988,6 +3187,9 @@
{
"target": "com.amazonaws.backup#PutRestoreValidationResult"
},
+ {
+ "target": "com.amazonaws.backup#RevokeRestoreAccessBackupVault"
+ },
{
"target": "com.amazonaws.backup#StartBackupJob"
},
@@ -4170,7 +4372,8 @@
"method": "DELETE",
"uri": "/backup-vaults/{BackupVaultName}",
"code": 200
- }
+ },
+ "smithy.api#idempotent": {}
}
},
"com.amazonaws.backup#DeleteBackupVaultAccessPolicy": {
@@ -4970,6 +5173,30 @@
"traits": {
"smithy.api#documentation": "The date and time when Backup Vault Lock configuration cannot be changed or\n deleted.
\n If you applied Vault Lock to your vault without specifying a lock date, you can change\n any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any\n time.
\n This value is in Unix format, Coordinated Universal Time (UTC), and accurate to\n milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018\n 12:11:30.087 AM.
"
}
+ },
+ "SourceBackupVaultArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the source backup vault from which this restore access backup vault was created.
"
+ }
+ },
+ "MpaApprovalTeamArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the MPA approval team associated with this backup vault.
"
+ }
+ },
+ "MpaSessionArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the MPA session associated with this backup vault.
"
+ }
+ },
+ "LatestMpaApprovalTeamUpdate": {
+ "target": "com.amazonaws.backup#LatestMpaApprovalTeamUpdate",
+ "traits": {
+ "smithy.api#documentation": "Information about the latest update to the MPA approval team association for this backup vault.
"
+ }
}
},
"traits": {
@@ -5435,6 +5662,12 @@
"smithy.api#documentation": "The date and time that a recovery point is created, in Unix format and Coordinated\n Universal Time (UTC). The value of CreationDate is accurate to milliseconds.\n For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087\n AM.
"
}
},
+ "InitiationDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the backup job that created this recovery point was initiated, in\n Unix format and Coordinated Universal Time (UTC).
"
+ }
+ },
"CompletionDate": {
"target": "com.amazonaws.backup#timestamp",
"traits": {
@@ -5873,6 +6106,62 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.backup#DisassociateBackupVaultMpaApprovalTeam": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.backup#DisassociateBackupVaultMpaApprovalTeamInput"
+ },
+ "output": {
+ "target": "smithy.api#Unit"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.backup#InvalidParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.backup#MissingParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.backup#ServiceUnavailableException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Removes the association between an MPA approval team and a backup vault, disabling the MPA approval workflow for restore operations.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/backup-vaults/{BackupVaultName}/mpaApprovalTeam?delete",
+ "code": 204
+ }
+ }
+ },
+ "com.amazonaws.backup#DisassociateBackupVaultMpaApprovalTeamInput": {
+ "type": "structure",
+ "members": {
+ "BackupVaultName": {
+ "target": "com.amazonaws.backup#BackupVaultName",
+ "traits": {
+ "smithy.api#documentation": "The name of the backup vault from which to disassociate the MPA approval team.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "RequesterComment": {
+ "target": "com.amazonaws.backup#RequesterComment",
+ "traits": {
+ "smithy.api#documentation": "An optional comment explaining the reason for disassociating the MPA approval team from the backup vault.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
"com.amazonaws.backup#DisassociateRecoveryPoint": {
"type": "operation",
"input": {
@@ -7551,6 +7840,82 @@
"target": "com.amazonaws.backup#KeyValue"
}
},
+ "com.amazonaws.backup#LatestMpaApprovalTeamUpdate": {
+ "type": "structure",
+ "members": {
+ "MpaSessionArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the MPA session associated with this update.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.backup#MpaSessionStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the MPA approval team update.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.backup#string",
+ "traits": {
+ "smithy.api#documentation": "A message describing the current status of the MPA approval team update.
"
+ }
+ },
+ "InitiationDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the MPA approval team update was initiated.
"
+ }
+ },
+ "ExpiryDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the MPA approval team update will expire.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about the latest update to an MPA approval team association.
"
+ }
+ },
+ "com.amazonaws.backup#LatestRevokeRequest": {
+ "type": "structure",
+ "members": {
+ "MpaSessionArn": {
+ "target": "com.amazonaws.backup#string",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the MPA session associated with this revoke request.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.backup#MpaRevokeSessionStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the revoke request.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.backup#string",
+ "traits": {
+ "smithy.api#documentation": "A message describing the current status of the revoke request.
"
+ }
+ },
+ "InitiationDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the revoke request was initiated.
"
+ }
+ },
+ "ExpiryDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the revoke request will expire.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about the latest request to revoke access to a backup vault.
"
+ }
+ },
"com.amazonaws.backup#LegalHold": {
"type": "structure",
"members": {
@@ -9575,6 +9940,93 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.backup#ListRestoreAccessBackupVaults": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.backup#ListRestoreAccessBackupVaultsInput"
+ },
+ "output": {
+ "target": "com.amazonaws.backup#ListRestoreAccessBackupVaultsOutput"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.backup#InvalidParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#MissingParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.backup#ServiceUnavailableException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns a list of restore access backup vaults associated with a specified backup vault.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/logically-air-gapped-backup-vaults/{BackupVaultName}/restore-access-backup-vaults",
+ "code": 200
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "items": "RestoreAccessBackupVaults",
+ "pageSize": "MaxResults"
+ }
+ }
+ },
+ "com.amazonaws.backup#ListRestoreAccessBackupVaultsInput": {
+ "type": "structure",
+ "members": {
+ "BackupVaultName": {
+ "target": "com.amazonaws.backup#BackupVaultName",
+ "traits": {
+ "smithy.api#documentation": "The name of the backup vault for which to list associated restore access backup vaults.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.backup#string",
+ "traits": {
+ "smithy.api#documentation": "The pagination token from a previous request to retrieve the next set of results.
",
+ "smithy.api#httpQuery": "nextToken"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.backup#MaxResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of items to return in the response.
",
+ "smithy.api#httpQuery": "maxResults"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.backup#ListRestoreAccessBackupVaultsOutput": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.backup#string",
+ "traits": {
+ "smithy.api#documentation": "The pagination token to use in a subsequent request to retrieve the next set of results.
"
+ }
+ },
+ "RestoreAccessBackupVaults": {
+ "target": "com.amazonaws.backup#RestoreAccessBackupVaultList",
+ "traits": {
+ "smithy.api#documentation": "A list of restore access backup vaults associated with the specified backup vault.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.backup#ListRestoreJobSummaries": {
"type": "operation",
"input": {
@@ -10264,6 +10716,46 @@
"smithy.api#error": "client"
}
},
+ "com.amazonaws.backup#MpaRevokeSessionStatus": {
+ "type": "enum",
+ "members": {
+ "PENDING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED"
+ }
+ }
+ }
+ },
+ "com.amazonaws.backup#MpaSessionStatus": {
+ "type": "enum",
+ "members": {
+ "PENDING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING"
+ }
+ },
+ "APPROVED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "APPROVED"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED"
+ }
+ }
+ }
+ },
"com.amazonaws.backup#ParameterName": {
"type": "string"
},
@@ -10516,7 +11008,7 @@
"BackupVaultEvents": {
"target": "com.amazonaws.backup#BackupVaultEvents",
"traits": {
- "smithy.api#documentation": "An array of events that indicate the status of jobs to back up resources to the backup\n vault.
\n For common use cases and code samples, see Using Amazon SNS to\n track Backup events.
\n The following events are supported:
\n \n - \n
\n BACKUP_JOB_STARTED | BACKUP_JOB_COMPLETED | BACKUP_JOB_FAILED\n
\n \n - \n
\n COPY_JOB_STARTED | COPY_JOB_SUCCESSFUL |\n COPY_JOB_FAILED\n
\n \n - \n
\n RESTORE_JOB_STARTED | RESTORE_JOB_COMPLETED |\n RECOVERY_POINT_MODIFIED\n
\n \n - \n
\n S3_BACKUP_OBJECT_FAILED | S3_RESTORE_OBJECT_FAILED\n
\n \n - \n
\n RECOVERY_POINT_INDEX_COMPLETED | RECOVERY_POINT_INDEX_DELETED | \n RECOVERY_POINT_INDEXING_FAILED\n
\n \n
\n \n The list below includes both supported events and deprecated events that are no longer\n in use (for reference). Deprecated events do not return statuses or notifications. \n Refer to the list above for the supported events.
\n ",
+ "smithy.api#documentation": "An array of events that indicate the status of jobs to back up resources to the backup\n vault. For the list of supported events, common use cases, and code samples, see Notification options\n with Backup.
",
"smithy.api#required": {}
}
}
@@ -10658,6 +11150,12 @@
"smithy.api#documentation": "The date and time a recovery point is created, in Unix format and Coordinated Universal\n Time (UTC). The value of CreationDate is accurate to milliseconds. For\n example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087\n AM.
"
}
},
+ "InitiationDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the backup job that created this recovery point was initiated, in\n Unix format and Coordinated Universal Time (UTC).
"
+ }
+ },
"CompletionDate": {
"target": "com.amazonaws.backup#timestamp",
"traits": {
@@ -11237,6 +11735,12 @@
"smithy.api#documentation": "Contains detailed information about a report setting.
"
}
},
+ "com.amazonaws.backup#RequesterComment": {
+ "type": "string",
+ "traits": {
+ "smithy.api#sensitive": {}
+ }
+ },
"com.amazonaws.backup#ResourceArns": {
"type": "list",
"member": {
@@ -11312,6 +11816,50 @@
"target": "com.amazonaws.backup#ResourceType"
}
},
+ "com.amazonaws.backup#RestoreAccessBackupVaultList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.backup#RestoreAccessBackupVaultListMember"
+ }
+ },
+ "com.amazonaws.backup#RestoreAccessBackupVaultListMember": {
+ "type": "structure",
+ "members": {
+ "RestoreAccessBackupVaultArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the restore access backup vault.
"
+ }
+ },
+ "CreationDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the restore access backup vault was created.
"
+ }
+ },
+ "ApprovalDate": {
+ "target": "com.amazonaws.backup#timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the restore access backup vault was approved.
"
+ }
+ },
+ "VaultState": {
+ "target": "com.amazonaws.backup#VaultState",
+ "traits": {
+ "smithy.api#documentation": "The current state of the restore access backup vault.
"
+ }
+ },
+ "LatestRevokeRequest": {
+ "target": "com.amazonaws.backup#LatestRevokeRequest",
+ "traits": {
+ "smithy.api#documentation": "Information about the latest request to revoke access to this backup vault.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about a restore access backup vault.
"
+ }
+ },
"com.amazonaws.backup#RestoreDeletionStatus": {
"type": "enum",
"members": {
@@ -12172,6 +12720,71 @@
}
}
},
+ "com.amazonaws.backup#RevokeRestoreAccessBackupVault": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.backup#RevokeRestoreAccessBackupVaultInput"
+ },
+ "output": {
+ "target": "smithy.api#Unit"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.backup#InvalidParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.backup#MissingParameterValueException"
+ },
+ {
+ "target": "com.amazonaws.backup#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.backup#ServiceUnavailableException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Revokes access to a restore access backup vault, removing the ability to restore from its recovery points and permanently deleting the vault.
",
+ "smithy.api#http": {
+ "method": "DELETE",
+ "uri": "/logically-air-gapped-backup-vaults/{BackupVaultName}/restore-access-backup-vaults/{RestoreAccessBackupVaultArn}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.backup#RevokeRestoreAccessBackupVaultInput": {
+ "type": "structure",
+ "members": {
+ "BackupVaultName": {
+ "target": "com.amazonaws.backup#BackupVaultName",
+ "traits": {
+ "smithy.api#documentation": "The name of the source backup vault associated with the restore access backup vault to be revoked.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "RestoreAccessBackupVaultArn": {
+ "target": "com.amazonaws.backup#ARN",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the restore access backup vault to revoke.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "RequesterComment": {
+ "target": "com.amazonaws.backup#RequesterComment",
+ "traits": {
+ "smithy.api#documentation": "A comment explaining the reason for revoking access to the restore access backup vault.
",
+ "smithy.api#httpQuery": "requesterComment"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
"com.amazonaws.backup#SensitiveStringMap": {
"type": "map",
"key": {
@@ -12276,7 +12889,8 @@
"IdempotencyToken": {
"target": "com.amazonaws.backup#string",
"traits": {
- "smithy.api#documentation": "A customer-chosen string that you can use to distinguish between otherwise identical\n calls to StartBackupJob. Retrying a successful request with the same\n idempotency token results in a success message with no action taken.
"
+ "smithy.api#documentation": "A customer-chosen string that you can use to distinguish between otherwise identical\n calls to StartBackupJob. Retrying a successful request with the same\n idempotency token results in a success message with no action taken.
",
+ "smithy.api#idempotencyToken": {}
}
},
"StartWindowMinutes": {
@@ -12425,7 +13039,8 @@
"IdempotencyToken": {
"target": "com.amazonaws.backup#string",
"traits": {
- "smithy.api#documentation": "A customer-chosen string that you can use to distinguish between otherwise identical\n calls to StartCopyJob. Retrying a successful request with the same idempotency\n token results in a success message with no action taken.
"
+ "smithy.api#documentation": "A customer-chosen string that you can use to distinguish between otherwise identical\n calls to StartCopyJob. Retrying a successful request with the same idempotency\n token results in a success message with no action taken.
",
+ "smithy.api#idempotencyToken": {}
}
},
"Lifecycle": {
@@ -12593,7 +13208,8 @@
"IdempotencyToken": {
"target": "com.amazonaws.backup#string",
"traits": {
- "smithy.api#documentation": "A customer-chosen string that you can use to distinguish between otherwise identical\n calls to StartRestoreJob. Retrying a successful request with the same\n idempotency token results in a success message with no action taken.
"
+ "smithy.api#documentation": "A customer-chosen string that you can use to distinguish between otherwise identical\n calls to StartRestoreJob. Retrying a successful request with the same\n idempotency token results in a success message with no action taken.
",
+ "smithy.api#idempotencyToken": {}
}
},
"ResourceType": {
@@ -13681,6 +14297,12 @@
"traits": {
"smithy.api#enumValue": "LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
}
+ },
+ "RESTORE_ACCESS_BACKUP_VAULT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "RESTORE_ACCESS_BACKUP_VAULT"
+ }
}
}
},
diff --git a/codegen/sdk-codegen/aws-models/bedrock.json b/codegen/sdk-codegen/aws-models/bedrock.json
index fec39441dce..cd9fb82718e 100644
--- a/codegen/sdk-codegen/aws-models/bedrock.json
+++ b/codegen/sdk-codegen/aws-models/bedrock.json
@@ -54,6 +54,9 @@
{
"target": "com.amazonaws.bedrock#BedrockMarketplaceResource"
},
+ {
+ "target": "com.amazonaws.bedrock#CustomModelResource"
+ },
{
"target": "com.amazonaws.bedrock#EvaluationJobResource"
},
@@ -820,7 +823,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The configuration details of an automated evaluation job. The EvaluationDatasetMetricConfig object \n is used to specify the prompt datasets, task type, and metric names.
"
+ "smithy.api#documentation": "The configuration details of an automated evaluation job. The EvaluationDatasetMetricConfig object is used to specify the prompt datasets, task type, and metric names.
"
}
},
"com.amazonaws.bedrock#AutomatedEvaluationCustomMetricConfig": {
@@ -842,7 +845,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Defines the configuration of custom metrics to be used in an evaluation job. To learn more about using custom metrics \n in Amazon Bedrock evaluation jobs, see Create a prompt for a custom metrics (LLM-as-a-judge model evaluations) and \n Create a prompt for a custom metrics (RAG evaluations).
"
+ "smithy.api#documentation": "Defines the configuration of custom metrics to be used in an evaluation job. To learn more about using custom metrics in Amazon Bedrock evaluation jobs, see Create a prompt for a custom metrics (LLM-as-a-judge model evaluations) and Create a prompt for a custom metrics (RAG evaluations).
"
}
},
"com.amazonaws.bedrock#AutomatedEvaluationCustomMetricSource": {
@@ -910,7 +913,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has \n following status FAILED, COMPLETED, and STOPPED. \n You can request up to 25 model evaluation jobs be deleted in a single request.
",
+ "smithy.api#documentation": "Deletes a batch of evaluation jobs. An evaluation job can only be deleted if it has following status FAILED, COMPLETED, and STOPPED. You can request up to 25 model evaluation jobs be deleted in a single request.
",
"smithy.api#examples": [
{
"title": "Delete evaluation jobs",
@@ -1244,6 +1247,140 @@
"smithy.api#pattern": "[a-z]{1,20}/.{1,20}"
}
},
+ "com.amazonaws.bedrock#CreateCustomModel": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.bedrock#CreateCustomModelRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.bedrock#CreateCustomModelResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.bedrock#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.bedrock#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.bedrock#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.bedrock#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.bedrock#ServiceQuotaExceededException"
+ },
+ {
+ "target": "com.amazonaws.bedrock#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.bedrock#TooManyTagsException"
+ },
+ {
+ "target": "com.amazonaws.bedrock#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Creates a new custom model in Amazon Bedrock. After the model is active, you can use it for inference.
To use the model for inference, you must purchase Provisioned Throughput for it. You can't use On-demand inference with these custom models. For more information about Provisioned Throughput, see Provisioned Throughput.
The model appears in ListCustomModels with a customizationType of imported. To track the status of the new model, you use the GetCustomModel API operation. The model can be in the following states:
-
Creating - Initial state during validation and registration
-
Active - Model is ready for use in inference
-
Failed - Creation process encountered an error
Related APIs
",
+ "smithy.api#examples": [
+ {
+ "title": "Successful CreateCustomModel API call",
+ "input": {
+ "modelName": "SampleModel",
+ "modelSourceConfig": {
+ "s3DataSource": {
+ "s3Uri": "s3://my-bucket/folder"
+ }
+ },
+ "roleArn": "arn:aws:iam::123456789012:role/SampleRole",
+ "modelKmsKeyArn": "arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab",
+ "modelTags": [
+ {
+ "key": "foo",
+ "value": "foo"
+ },
+ {
+ "key": "foo",
+ "value": "foo"
+ }
+ ],
+ "clientRequestToken": "foo"
+ },
+ "output": {
+ "modelArn": "arn:aws:bedrock:us-east-1:123456789012:custom-model/imported/abcdef123456"
+ }
+ }
+ ],
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/custom-models/create-custom-model"
+ }
+ }
+ },
+ "com.amazonaws.bedrock#CreateCustomModelRequest": {
+ "type": "structure",
+ "members": {
+ "modelName": {
+ "target": "com.amazonaws.bedrock#CustomModelName",
+ "traits": {
+ "smithy.api#documentation": "A unique name for the custom model.
",
+ "smithy.api#required": {}
+ }
+ },
+ "modelSourceConfig": {
+ "target": "com.amazonaws.bedrock#ModelDataSource",
+ "traits": {
+ "smithy.api#documentation": "The data source for the model. The Amazon S3 URI in the model source must be for the Amazon-managed Amazon S3 bucket containing your model artifacts.
",
+ "smithy.api#required": {}
+ }
+ },
+ "modelKmsKeyArn": {
+ "target": "com.amazonaws.bedrock#KmsKeyArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the customer managed KMS key to encrypt the custom model. If you don't provide a KMS key, Amazon Bedrock uses an Amazon Web Services-managed KMS key to encrypt the model.
If you provide a customer managed KMS key, your Amazon Bedrock service role must have permissions to use it. For more information see Encryption of imported models.
"
+ }
+ },
+ "roleArn": {
+ "target": "com.amazonaws.bedrock#RoleArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock assumes to perform tasks on your behalf. This role must have permissions to access the Amazon S3 bucket containing your model artifacts and the KMS key (if specified). For more information, see Setting up an IAM service role for importing models in the Amazon Bedrock User Guide.
"
+ }
+ },
+ "modelTags": {
+ "target": "com.amazonaws.bedrock#TagList",
+ "traits": {
+ "smithy.api#documentation": "A list of key-value pairs to associate with the custom model resource. You can use these tags to organize and identify your resources.
For more information, see Tagging resources in the Amazon Bedrock User Guide.
"
+ }
+ },
+ "clientRequestToken": {
+ "target": "com.amazonaws.bedrock#IdempotencyToken",
+ "traits": {
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.bedrock#CreateCustomModelResponse": {
+ "type": "structure",
+ "members": {
+ "modelArn": {
+ "target": "com.amazonaws.bedrock#ModelArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the new custom model.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.bedrock#CreateEvaluationJob": {
"type": "operation",
"input": {
@@ -1291,7 +1428,7 @@
"jobName": {
"target": "com.amazonaws.bedrock#EvaluationJobName",
"traits": {
- "smithy.api#documentation": "A name for the evaluation job. Names must unique with your Amazon Web Services account, \n and your account's Amazon Web Services region.
",
+ "smithy.api#documentation": "A name for the evaluation job. Names must unique with your Amazon Web Services account, and your account's Amazon Web Services region.
",
"smithy.api#required": {}
}
},
@@ -1304,14 +1441,14 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
"smithy.api#idempotencyToken": {}
}
},
"roleArn": {
"target": "com.amazonaws.bedrock#RoleArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can \n assume to perform tasks on your behalf. To learn more about the required permissions, \n see Required \n permissions for model evaluations.
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. To learn more about the required permissions, see Required permissions for model evaluations.
",
"smithy.api#required": {}
}
},
@@ -1330,7 +1467,7 @@
"applicationType": {
"target": "com.amazonaws.bedrock#ApplicationType",
"traits": {
- "smithy.api#documentation": "Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base\n (retrieval and response generation).
"
+ "smithy.api#documentation": "Specifies whether the evaluation job is for evaluating a model or evaluating a knowledge base (retrieval and response generation).
"
}
},
"evaluationConfig": {
@@ -1343,14 +1480,14 @@
"inferenceConfig": {
"target": "com.amazonaws.bedrock#EvaluationInferenceConfig",
"traits": {
- "smithy.api#documentation": "Contains the configuration details of the inference model for the evaluation job.
\n For model evaluation jobs, automated jobs support a single model or \n inference profile, and jobs that use human workers support \n two models or inference profiles.
",
+ "smithy.api#documentation": "Contains the configuration details of the inference model for the evaluation job.
For model evaluation jobs, automated jobs support a single model or inference profile, and jobs that use human workers support two models or inference profiles.
",
"smithy.api#required": {}
}
},
"outputDataConfig": {
"target": "com.amazonaws.bedrock#EvaluationOutputDataConfig",
"traits": {
- "smithy.api#documentation": "Contains the configuration details of the Amazon S3 bucket for storing the results \n of the evaluation job.
",
+ "smithy.api#documentation": "Contains the configuration details of the Amazon S3 bucket for storing the results of the evaluation job.
",
"smithy.api#required": {}
}
}
@@ -1409,7 +1546,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
\n You can configure the following policies in a guardrail to avoid undesirable and harmful content, filter \n out denied topics and words, and remove sensitive information for privacy protection.
\n \n - \n
\n Content filters - Adjust filter strengths\n to block input prompts or model responses containing harmful content.
\n \n - \n
\n Denied topics - Define a set of topics that\n are undesirable in the context of your application. These topics will be blocked if\n detected in user queries or model responses.
\n \n - \n
\n Word filters - Configure filters to block\n undesirable words, phrases, and profanity. Such words can include offensive terms, \n competitor names etc.
\n \n - \n
\n Sensitive information filters - Block or\n mask sensitive information such as personally identifiable information (PII) or custom \n regex in user inputs and model responses.
\n \n
\n In addition to the above policies, you can also configure the messages to be returned to \n the user if a user input or model response is in violation of the policies defined in the guardrail.
\n For more information, see Amazon Bedrock Guardrails in\n the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Creates a guardrail to block topics and to implement safeguards for your generative AI applications.
You can configure the following policies in a guardrail to avoid undesirable and harmful content, filter out denied topics and words, and remove sensitive information for privacy protection.
-
Content filters - Adjust filter strengths to block input prompts or model responses containing harmful content.
-
Denied topics - Define a set of topics that are undesirable in the context of your application. These topics will be blocked if detected in user queries or model responses.
-
Word filters - Configure filters to block undesirable words, phrases, and profanity. Such words can include offensive terms, competitor names etc.
-
Sensitive information filters - Block or mask sensitive information such as personally identifiable information (PII) or custom regex in user inputs and model responses.
In addition to the above policies, you can also configure the messages to be returned to the user if a user input or model response is in violation of the policies defined in the guardrail.
For more information, see Amazon Bedrock Guardrails in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 202,
"method": "POST",
@@ -1466,7 +1603,7 @@
"crossRegionConfig": {
"target": "com.amazonaws.bedrock#GuardrailCrossRegionConfig",
"traits": {
- "smithy.api#documentation": "The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
\n For more information, see the Amazon Bedrock User Guide.
"
+ "smithy.api#documentation": "The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
For more information, see the Amazon Bedrock User Guide.
"
}
},
"blockedInputMessaging": {
@@ -1498,7 +1635,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request \n completes no more than once. If this token matches a previous request, \n Amazon Bedrock ignores the request, but does not return an error. \n For more information, see Ensuring \n idempotency in the Amazon S3 User Guide.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
",
"smithy.api#idempotencyToken": {}
}
}
@@ -1527,7 +1664,7 @@
"version": {
"target": "com.amazonaws.bedrock#GuardrailDraftVersion",
"traits": {
- "smithy.api#documentation": "The version of the guardrail that was created. \n This value will always be DRAFT.
",
+ "smithy.api#documentation": "The version of the guardrail that was created. This value will always be DRAFT.
",
"smithy.api#required": {}
}
},
@@ -1575,7 +1712,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a version of the guardrail. Use this API to create a snapshot of the \n guardrail when you are satisfied with a configuration, or to compare the configuration with another version.
",
+ "smithy.api#documentation": "Creates a version of the guardrail. Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.
",
"smithy.api#http": {
"code": 202,
"method": "POST",
@@ -1603,7 +1740,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request \n completes no more than once. If this token matches a previous request, \n Amazon Bedrock ignores the request, but does not return an error. \n For more information, see Ensuring \n idempotency in the Amazon S3 User Guide.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
",
"smithy.api#idempotencyToken": {}
}
}
@@ -1697,7 +1834,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
"smithy.api#idempotencyToken": {}
}
},
@@ -1711,7 +1848,7 @@
"tags": {
"target": "com.amazonaws.bedrock#TagList",
"traits": {
- "smithy.api#documentation": "An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide.
"
+ "smithy.api#documentation": "An array of objects, each of which contains a tag and its value. For more information, see Tagging resources in the Amazon Bedrock User Guide.
"
}
}
},
@@ -1772,7 +1909,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by\n Amazon SageMaker.
",
+ "smithy.api#documentation": "Creates an endpoint for a model from Amazon Bedrock Marketplace. The endpoint is hosted by Amazon SageMaker.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1786,14 +1923,14 @@
"modelSourceIdentifier": {
"target": "com.amazonaws.bedrock#ModelSourceIdentifier",
"traits": {
- "smithy.api#documentation": "The ARN of the model from Amazon Bedrock Marketplace that you want to deploy to the\n endpoint.
",
+ "smithy.api#documentation": "The ARN of the model from Amazon Bedrock Marketplace that you want to deploy to the endpoint.
",
"smithy.api#required": {}
}
},
"endpointConfig": {
"target": "com.amazonaws.bedrock#EndpointConfig",
"traits": {
- "smithy.api#documentation": "The configuration for the endpoint, including the number and type of instances to\n use.
",
+ "smithy.api#documentation": "The configuration for the endpoint, including the number and type of instances to use.
",
"smithy.api#required": {}
}
},
@@ -1801,27 +1938,27 @@
"target": "com.amazonaws.bedrock#AcceptEula",
"traits": {
"smithy.api#default": false,
- "smithy.api#documentation": "Indicates whether you accept the end-user license agreement (EULA) for the model. Set\n to true to accept the EULA.
"
+ "smithy.api#documentation": "Indicates whether you accept the end-user license agreement (EULA) for the model. Set to true to accept the EULA.
"
}
},
"endpointName": {
"target": "com.amazonaws.bedrock#EndpointName",
"traits": {
- "smithy.api#documentation": "The name of the endpoint. This name must be unique within your Amazon Web Services\n account and region.
",
+ "smithy.api#documentation": "The name of the endpoint. This name must be unique within your Amazon Web Services account and region.
",
"smithy.api#required": {}
}
},
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. This token is listed as not required because Amazon Web Services SDKs\n automatically generate it for you and set this parameter. If you're not using the\n Amazon Web Services SDK or the CLI, you must provide this token or the\n action will fail.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is listed as not required because Amazon Web Services SDKs automatically generate it for you and set this parameter. If you're not using the Amazon Web Services SDK or the CLI, you must provide this token or the action will fail.
",
"smithy.api#idempotencyToken": {}
}
},
"tags": {
"target": "com.amazonaws.bedrock#TagList",
"traits": {
- "smithy.api#documentation": "An array of key-value pairs to apply to the underlying Amazon SageMaker endpoint. You can use\n these tags to organize and identify your Amazon Web Services resources.
"
+ "smithy.api#documentation": "An array of key-value pairs to apply to the underlying Amazon SageMaker endpoint. You can use these tags to organize and identify your Amazon Web Services resources.
"
}
}
},
@@ -1908,7 +2045,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
"smithy.api#idempotencyToken": {}
}
}
@@ -1967,7 +2104,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a fine-tuning job to customize a base model.
\n You specify the base foundation model and the location of the training data.\n After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.\n
\n For information on the format of training and validation data, see Prepare the datasets.
\n \n Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size.\n To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status.
\n For more information, see Custom models in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Creates a fine-tuning job to customize a base model.
You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.
For information on the format of training and validation data, see Prepare the datasets.
Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status.
For more information, see Custom models in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 201,
"method": "POST",
@@ -1996,14 +2133,14 @@
"roleArn": {
"target": "com.amazonaws.bedrock#RoleArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf.\n For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket.\n To pass this role to Amazon Bedrock, the caller of this API must have the iam:PassRole permission.\n
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Amazon Bedrock, the caller of this API must have the iam:PassRole permission.
",
"smithy.api#required": {}
}
},
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
"smithy.api#idempotencyToken": {}
}
},
@@ -2131,7 +2268,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, \n see Import a customized model\n
",
+ "smithy.api#documentation": "Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model
",
"smithy.api#http": {
"code": 201,
"method": "POST",
@@ -2186,13 +2323,13 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, \n see Ensuring idempotency.
"
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
"
}
},
"vpcConfig": {
"target": "com.amazonaws.bedrock#VpcConfig",
"traits": {
- "smithy.api#documentation": "VPC configuration parameters for the\n private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.
"
+ "smithy.api#documentation": "VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.
"
}
},
"importedModelKmsKeyId": {
@@ -2253,7 +2390,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a batch inference job to invoke a model on multiple prompts. Format your data according to Format your inference data and upload it to an Amazon S3 bucket. For more information, see Process multiple prompts with batch inference.
\n The response returns a jobArn that you can use to stop or get details about the job.
",
+ "smithy.api#documentation": "Creates a batch inference job to invoke a model on multiple prompts. Format your data according to Format your inference data and upload it to an Amazon S3 bucket. For more information, see Process multiple prompts with batch inference.
The response returns a jobArn that you can use to stop or get details about the job.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -2282,7 +2419,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#ModelInvocationIdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
",
"smithy.api#idempotencyToken": {}
}
},
@@ -2395,7 +2532,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK\n automatically generates one for you.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.
",
"smithy.api#idempotencyToken": {}
}
},
@@ -2505,14 +2642,14 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
",
"smithy.api#idempotencyToken": {}
}
},
"modelUnits": {
"target": "com.amazonaws.bedrock#PositiveInteger",
"traits": {
- "smithy.api#documentation": "Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon Web Services support center to request MUs.
\n For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.
\n For more information about what an MU specifies, contact your Amazon Web Services account manager.
",
+ "smithy.api#documentation": "Number of model units to allocate. A model unit delivers a specific throughput level for the specified model. The throughput level of a model unit specifies the total number of input and output tokens that it can process and generate within a span of one minute. By default, your account has no model units for purchasing Provisioned Throughputs with commitment. You must first visit the Amazon Web Services support center to request MUs.
For model unit quotas, see Provisioned Throughput quotas in the Amazon Bedrock User Guide.
For more information about what an MU specifies, contact your Amazon Web Services account manager.
",
"smithy.api#required": {}
}
},
@@ -2533,7 +2670,7 @@
"commitmentDuration": {
"target": "com.amazonaws.bedrock#CommitmentDuration",
"traits": {
- "smithy.api#documentation": "The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.
\n Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide\n
"
+ "smithy.api#documentation": "The commitment duration requested for the Provisioned Throughput. Billing occurs hourly and is discounted for longer commitment terms. To request a no-commit Provisioned Throughput, omit this field.
Custom models support all levels of commitment. To see which base models support no commitment, see Supported regions and models for Provisioned Throughput in the Amazon Bedrock User Guide
"
}
},
"tags": {
@@ -2568,7 +2705,7 @@
"modelIdentifier": {
"target": "com.amazonaws.bedrock#EvaluatorModelIdentifier",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the evaluator model for custom metrics. For a list of supported evaluator models, see Evaluate model performance \n using another LLM as a judge and Evaluate the performance of RAG sources using Amazon Bedrock evaluations.
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the evaluator model for custom metrics. For a list of supported evaluator models, see Evaluate model performance using another LLM as a judge and Evaluate the performance of RAG sources using Amazon Bedrock evaluations.
",
"smithy.api#required": {}
}
}
@@ -2609,12 +2746,12 @@
"ratingScale": {
"target": "com.amazonaws.bedrock#RatingScale",
"traits": {
- "smithy.api#documentation": "Defines the rating scale to be used for a custom metric. We recommend that you always define a ratings scale when creating a custom metric. If you don't \n define a scale, Amazon Bedrock won't be able to visually display the results of the evaluation in the console or calculate average values of numerical scores. For \n more information on specifying a rating scale, see Specifying an output schema (rating scale).
"
+ "smithy.api#documentation": "Defines the rating scale to be used for a custom metric. We recommend that you always define a ratings scale when creating a custom metric. If you don't define a scale, Amazon Bedrock won't be able to visually display the results of the evaluation in the console or calculate average values of numerical scores. For more information on specifying a rating scale, see Specifying an output schema (rating scale).
"
}
}
},
"traits": {
- "smithy.api#documentation": "The definition of a custom metric for use in an Amazon Bedrock evaluation job. A custom metric definition includes a metric name, prompt (instructions) and optionally, \n a rating scale. Your prompt must include a task description and input variables. The required input variables are different for model-as-a-judge and RAG evaluations.
\n For more information about how to define a custom metric in Amazon Bedrock, \n see Create a prompt for a custom metrics (LLM-as-a-judge model evaluations) and \n Create a prompt for a custom metrics (RAG evaluations).
",
+ "smithy.api#documentation": "The definition of a custom metric for use in an Amazon Bedrock evaluation job. A custom metric definition includes a metric name, prompt (instructions) and optionally, a rating scale. Your prompt must include a task description and input variables. The required input variables are different for model-as-a-judge and RAG evaluations.
For more information about how to define a custom metric in Amazon Bedrock, see Create a prompt for a custom metrics (LLM-as-a-judge model evaluations) and Create a prompt for a custom metrics (RAG evaluations).
",
"smithy.api#sensitive": {}
}
},
@@ -2649,7 +2786,7 @@
"min": 20,
"max": 1011
},
- "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}/[a-z0-9]{12}$"
+ "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:custom-model/(imported|[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}/[a-z0-9]{12})$"
}
},
"com.amazonaws.bedrock#CustomModelName": {
@@ -2662,6 +2799,23 @@
"smithy.api#pattern": "^([0-9a-zA-Z][_-]?){1,63}$"
}
},
+ "com.amazonaws.bedrock#CustomModelResource": {
+ "type": "resource",
+ "operations": [
+ {
+ "target": "com.amazonaws.bedrock#CreateCustomModel"
+ },
+ {
+ "target": "com.amazonaws.bedrock#DeleteCustomModel"
+ },
+ {
+ "target": "com.amazonaws.bedrock#GetCustomModel"
+ },
+ {
+ "target": "com.amazonaws.bedrock#ListCustomModels"
+ }
+ ]
+ },
"com.amazonaws.bedrock#CustomModelSummary": {
"type": "structure",
"members": {
@@ -2711,6 +2865,12 @@
"traits": {
"smithy.api#documentation": "The unique identifier of the account that owns the model.
"
}
+ },
+ "modelStatus": {
+ "target": "com.amazonaws.bedrock#ModelStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the custom model. Possible values include:
-
Creating - The model is being created and validated.
-
Active - The model has been successfully created and is ready for use.
-
Failed - The model creation process failed.
"
+ }
}
},
"traits": {
@@ -2740,7 +2900,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A CustomModelUnit (CMU) is an abstract view of the hardware utilization that \n Amazon Bedrock needs to host a single copy of your custom model. A model copy represents a \n single instance of your imported model that is ready to serve inference requests. Amazon Bedrock \n determines the number of custom model units that a model copy needs when you import the custom model.\n
\n You can use CustomModelUnits to estimate the cost of running\n your custom model. For more information, see Calculate the cost of running a custom model in the\n Amazon Bedrock user guide.\n
"
+ "smithy.api#documentation": "A CustomModelUnit (CMU) is an abstract view of the hardware utilization that Amazon Bedrock needs to host a single copy of your custom model. A model copy represents a single instance of your imported model that is ready to serve inference requests. Amazon Bedrock determines the number of custom model units that a model copy needs when you import the custom model.
You can use CustomModelUnits to estimate the cost of running your custom model. For more information, see Calculate the cost of running a custom model in the Amazon Bedrock user guide.
"
}
},
"com.amazonaws.bedrock#CustomModelUnitsVersion": {
@@ -2783,6 +2943,12 @@
"traits": {
"smithy.api#enumValue": "DISTILLATION"
}
+ },
+ "IMPORTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "IMPORTED"
+ }
}
}
},
@@ -2902,7 +3068,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes a guardrail.
\n \n - \n
To delete a guardrail, only specify the ARN of the guardrail in the guardrailIdentifier field. If you delete a guardrail, all of its versions will be deleted.
\n \n - \n
To delete a version of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field and the version in the guardrailVersion field.
\n \n
",
+ "smithy.api#documentation": "Deletes a guardrail.
-
To delete a guardrail, only specify the ARN of the guardrail in the guardrailIdentifier field. If you delete a guardrail, all of its versions will be deleted.
-
To delete a version of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field and the version in the guardrailVersion field.
",
"smithy.api#http": {
"code": 202,
"method": "DELETE",
@@ -2917,7 +3083,7 @@
"guardrailIdentifier": {
"target": "com.amazonaws.bedrock#GuardrailIdentifier",
"traits": {
- "smithy.api#documentation": "The unique identifier of the guardrail. This can be an ID or the ARN.
",
+ "smithy.api#documentation": "The unique identifier of the guardrail. This can be an ID or the ARN.
",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
@@ -2970,7 +3136,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes a custom model that you imported earlier. For more information, \n see Import a customized model in the Amazon Bedrock User Guide.\n
",
+ "smithy.api#documentation": "Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "DELETE",
@@ -3312,7 +3478,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deregisters an endpoint for a model from Amazon Bedrock Marketplace. This operation removes the\n endpoint's association with Amazon Bedrock but does not delete the underlying Amazon SageMaker\n endpoint.
",
+ "smithy.api#documentation": "Deregisters an endpoint for a model from Amazon Bedrock Marketplace. This operation removes the endpoint's association with Amazon Bedrock but does not delete the underlying Amazon SageMaker endpoint.
",
"smithy.api#http": {
"code": 200,
"method": "DELETE",
@@ -3438,7 +3604,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains the ARN of the Amazon Bedrock model or inference profile specified in your evaluation job. Each Amazon Bedrock model supports different inferenceParams. To learn more about supported inference parameters for Amazon Bedrock models, see Inference parameters for foundation models.
\n The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, \"temperature\":\"0.25\" key value pair would need to be formatted as \\\"temperature\\\":\\\"0.25\\\" to successfully accepted in the request.
"
+ "smithy.api#documentation": "Contains the ARN of the Amazon Bedrock model or inference profile specified in your evaluation job. Each Amazon Bedrock model supports different inferenceParams. To learn more about supported inference parameters for Amazon Bedrock models, see Inference parameters for foundation models.
The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, \"temperature\":\"0.25\" key value pair would need to be formatted as \\\"temperature\\\":\\\"0.25\\\" to successfully accepted in the request.
"
}
},
"com.amazonaws.bedrock#EvaluationBedrockModelIdentifier": {
@@ -3524,7 +3690,7 @@
"taskType": {
"target": "com.amazonaws.bedrock#EvaluationTaskType",
"traits": {
- "smithy.api#documentation": "The the type of task you want to evaluate for your evaluation job. This applies only \n to model evaluation jobs and is ignored for knowledge base evaluation jobs.
",
+ "smithy.api#documentation": "The the type of task you want to evaluate for your evaluation job. This applies only to model evaluation jobs and is ignored for knowledge base evaluation jobs.
",
"smithy.api#required": {}
}
},
@@ -3538,7 +3704,7 @@
"metricNames": {
"target": "com.amazonaws.bedrock#EvaluationMetricNames",
"traits": {
- "smithy.api#documentation": "The names of the metrics you want to use for your evaluation job.
\n For knowledge base evaluation jobs that evaluate retrieval only, valid values are \n \"Builtin.ContextRelevance\", \"Builtin.ContextCoverage\".
\n For knowledge base evaluation jobs that evaluate retrieval with response generation, \n valid values are \"Builtin.Correctness\", \"Builtin.Completeness\", \n \"Builtin.Helpfulness\", \"Builtin.LogicalCoherence\", \n \"Builtin.Faithfulness\", \"Builtin.Harmfulness\", \n \"Builtin.Stereotyping\", \"Builtin.Refusal\".
\n For automated model evaluation jobs, valid values are \"Builtin.Accuracy\", \"Builtin.Robustness\", and \"Builtin.Toxicity\". In model evaluation jobs that use a LLM as judge you can specify \"Builtin.Correctness\", \"Builtin.Completeness\", \"Builtin.Faithfulness\", \"Builtin.Helpfulness\", \"Builtin.Coherence\", \"Builtin.Relevance\", \"Builtin.FollowingInstructions\", \"Builtin.ProfessionalStyleAndTone\", You can also specify the following responsible AI related metrics only for model evaluation job that use a LLM as judge \"Builtin.Harmfulness\", \"Builtin.Stereotyping\", and \"Builtin.Refusal\".
\n For human-based model evaluation jobs, the list of strings must match the \n name parameter specified in HumanEvaluationCustomMetric.
",
+ "smithy.api#documentation": "The names of the metrics you want to use for your evaluation job.
For knowledge base evaluation jobs that evaluate retrieval only, valid values are \"Builtin.ContextRelevance\", \"Builtin.ContextCoverage\".
For knowledge base evaluation jobs that evaluate retrieval with response generation, valid values are \"Builtin.Correctness\", \"Builtin.Completeness\", \"Builtin.Helpfulness\", \"Builtin.LogicalCoherence\", \"Builtin.Faithfulness\", \"Builtin.Harmfulness\", \"Builtin.Stereotyping\", \"Builtin.Refusal\".
For automated model evaluation jobs, valid values are \"Builtin.Accuracy\", \"Builtin.Robustness\", and \"Builtin.Toxicity\". In model evaluation jobs that use a LLM as judge you can specify \"Builtin.Correctness\", \"Builtin.Completeness\", \"Builtin.Faithfulness\", \"Builtin.Helpfulness\", \"Builtin.Coherence\", \"Builtin.Relevance\", \"Builtin.FollowingInstructions\", \"Builtin.ProfessionalStyleAndTone\", You can also specify the following responsible AI related metrics only for model evaluation job that use a LLM as judge \"Builtin.Harmfulness\", \"Builtin.Stereotyping\", and \"Builtin.Refusal\".
For human-based model evaluation jobs, the list of strings must match the name parameter specified in HumanEvaluationCustomMetric.
",
"smithy.api#required": {}
}
}
@@ -3582,12 +3748,12 @@
"ragConfigs": {
"target": "com.amazonaws.bedrock#RagConfigs",
"traits": {
- "smithy.api#documentation": "Contains the configuration details of the inference for a knowledge base evaluation \n job, including either the retrieval only configuration or the retrieval with response \n generation configuration.
"
+ "smithy.api#documentation": "Contains the configuration details of the inference for a knowledge base evaluation job, including either the retrieval only configuration or the retrieval with response generation configuration.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The configuration details of the inference model for an evaluation job.
\n For automated model evaluation jobs, only a single model is supported.
\n For human-based model evaluation jobs, your annotator can compare the responses for up to two different models.
"
+ "smithy.api#documentation": "The configuration details of the inference model for an evaluation job.
For automated model evaluation jobs, only a single model is supported.
For human-based model evaluation jobs, your annotator can compare the responses for up to two different models.
"
}
},
"com.amazonaws.bedrock#EvaluationInferenceConfigSummary": {
@@ -3596,13 +3762,13 @@
"modelConfigSummary": {
"target": "com.amazonaws.bedrock#EvaluationModelConfigSummary",
"traits": {
- "smithy.api#documentation": "A summary of the models used in an Amazon Bedrock model evaluation job. These resources can be models in Amazon Bedrock\n or models outside of Amazon Bedrock that you use to generate your own inference response data.
"
+ "smithy.api#documentation": "A summary of the models used in an Amazon Bedrock model evaluation job. These resources can be models in Amazon Bedrock or models outside of Amazon Bedrock that you use to generate your own inference response data.
"
}
},
"ragConfigSummary": {
"target": "com.amazonaws.bedrock#EvaluationRagConfigSummary",
"traits": {
- "smithy.api#documentation": "A summary of the RAG resources used in an Amazon Bedrock Knowledge Base evaluation job. These resources can be Knowledge Bases in\n Amazon Bedrock or RAG sources outside of Amazon Bedrock that you use to generate your own inference response data.
"
+ "smithy.api#documentation": "A summary of the RAG resources used in an Amazon Bedrock Knowledge Base evaluation job. These resources can be Knowledge Bases in Amazon Bedrock or RAG sources outside of Amazon Bedrock that you use to generate your own inference response data.
"
}
}
},
@@ -3811,7 +3977,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A summary of the models used in an Amazon Bedrock model evaluation job. These resources can be models in Amazon Bedrock\n or models outside of Amazon Bedrock that you use to generate your own inference response data.
"
+ "smithy.api#documentation": "A summary of the models used in an Amazon Bedrock model evaluation job. These resources can be models in Amazon Bedrock or models outside of Amazon Bedrock that you use to generate your own inference response data.
"
}
},
"com.amazonaws.bedrock#EvaluationModelConfigs": {
@@ -3848,7 +4014,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The Amazon S3 location where the results of your evaluation job are saved.
"
+ "smithy.api#documentation": "The Amazon S3 location where the results of your evaluation job are saved.
"
}
},
"com.amazonaws.bedrock#EvaluationPrecomputedInferenceSource": {
@@ -3977,7 +4143,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A summary of the RAG resources used in an Amazon Bedrock Knowledge Base evaluation job. These resources can be Knowledge Bases in Amazon Bedrock\n or RAG sources outside of Amazon Bedrock that you use to generate your own inference response data.
"
+ "smithy.api#documentation": "A summary of the RAG resources used in an Amazon Bedrock Knowledge Base evaluation job. These resources can be Knowledge Bases in Amazon Bedrock or RAG sources outside of Amazon Bedrock that you use to generate your own inference response data.
"
}
},
"com.amazonaws.bedrock#EvaluationRatingMethod": {
@@ -4262,13 +4428,13 @@
"kbInferenceConfig": {
"target": "com.amazonaws.bedrock#KbInferenceConfig",
"traits": {
- "smithy.api#documentation": "Configuration details for inference when using RetrieveAndGenerate to generate \n responses while using an external source.
"
+ "smithy.api#documentation": "Configuration details for inference when using RetrieveAndGenerate to generate responses while using an external source.
"
}
},
"additionalModelRequestFields": {
"target": "com.amazonaws.bedrock#AdditionalModelRequestFields",
"traits": {
- "smithy.api#documentation": "Additional model parameters and their corresponding values not included in the \n text inference configuration for an external source. Takes in custom model parameters \n specific to the language model being used.
"
+ "smithy.api#documentation": "Additional model parameters and their corresponding values not included in the text inference configuration for an external source. Takes in custom model parameters specific to the language model being used.
"
}
}
},
@@ -4282,7 +4448,7 @@
"modelArn": {
"target": "com.amazonaws.bedrock#BedrockModelArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the foundation model or inference profile\n used to generate responses.\n
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.
",
"smithy.api#required": {}
}
},
@@ -4301,7 +4467,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The configuration of the external source wrapper object in the retrieveAndGenerate \n function.
"
+ "smithy.api#documentation": "The configuration of the external source wrapper object in the retrieveAndGenerate function.
"
}
},
"com.amazonaws.bedrock#FilterAttribute": {
@@ -4310,7 +4476,7 @@
"key": {
"target": "com.amazonaws.bedrock#FilterKey",
"traits": {
- "smithy.api#documentation": "The name of metadata attribute/field, which must match the name in your \n data source/document metadata.
",
+ "smithy.api#documentation": "The name of metadata attribute/field, which must match the name in your data source/document metadata.
",
"smithy.api#required": {}
}
},
@@ -4323,7 +4489,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Specifies the name of the metadata attribute/field to apply filters. \n You must match the name of the attribute/field in your data source/document metadata.
"
+ "smithy.api#documentation": "Specifies the name of the metadata attribute/field to apply filters. You must match the name of the attribute/field in your data source/document metadata.
"
}
},
"com.amazonaws.bedrock#FilterKey": {
@@ -4581,7 +4747,7 @@
"additionalModelRequestFields": {
"target": "com.amazonaws.bedrock#AdditionalModelRequestFields",
"traits": {
- "smithy.api#documentation": "Additional model parameters and corresponding values not included in the \n textInferenceConfig structure for a knowledge base. This allows \n you to provide custom model parameters specific to the language model being \n used.
"
+ "smithy.api#documentation": "Additional model parameters and corresponding values not included in the textInferenceConfig structure for a knowledge base. This allows you to provide custom model parameters specific to the language model being used.
"
}
}
},
@@ -4615,7 +4781,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Get the properties associated with a Amazon Bedrock custom model that you have created.For more information, see Custom models in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Get the properties associated with a Amazon Bedrock custom model that you have created. For more information, see Custom models in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -4666,15 +4832,13 @@
"jobArn": {
"target": "com.amazonaws.bedrock#ModelCustomizationJobArn",
"traits": {
- "smithy.api#documentation": "Job Amazon Resource Name (ARN) associated with this model.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "Job Amazon Resource Name (ARN) associated with this model. For models that you create with the CreateCustomModel API operation, this is NULL.
"
}
},
"baseModelArn": {
"target": "com.amazonaws.bedrock#ModelArn",
"traits": {
- "smithy.api#documentation": "Amazon Resource Name (ARN) of the base model.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "Amazon Resource Name (ARN) of the base model.
"
}
},
"customizationType": {
@@ -4698,8 +4862,7 @@
"trainingDataConfig": {
"target": "com.amazonaws.bedrock#TrainingDataConfig",
"traits": {
- "smithy.api#documentation": "Contains information about the training dataset.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "Contains information about the training dataset.
"
}
},
"validationDataConfig": {
@@ -4711,8 +4874,7 @@
"outputDataConfig": {
"target": "com.amazonaws.bedrock#OutputDataConfig",
"traits": {
- "smithy.api#documentation": "Output data configuration associated with this custom model.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "Output data configuration associated with this custom model.
"
}
},
"trainingMetrics": {
@@ -4739,6 +4901,18 @@
"traits": {
"smithy.api#documentation": "The customization configuration for the custom model.
"
}
+ },
+ "modelStatus": {
+ "target": "com.amazonaws.bedrock#ModelStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the custom model. Possible values include:
-
Creating - The model is being created and validated.
-
Active - The model has been successfully created and is ready for use.
-
Failed - The model creation process failed. Check the failureMessage field for details.
"
+ }
+ },
+ "failureMessage": {
+ "target": "com.amazonaws.bedrock#ErrorMessage",
+ "traits": {
+ "smithy.api#documentation": "A failure message for any issues that occurred when creating the custom model. This is included for only a failed CreateCustomModel operation.
"
+ }
}
},
"traits": {
@@ -4869,7 +5043,7 @@
"outputDataConfig": {
"target": "com.amazonaws.bedrock#EvaluationOutputDataConfig",
"traits": {
- "smithy.api#documentation": "Contains the configuration details of the Amazon S3 bucket for \n storing the results of the evaluation job.
",
+ "smithy.api#documentation": "Contains the configuration details of the Amazon S3 bucket for storing the results of the evaluation job.
",
"smithy.api#required": {}
}
},
@@ -5003,7 +5177,7 @@
"guardrailIdentifier": {
"target": "com.amazonaws.bedrock#GuardrailIdentifier",
"traits": {
- "smithy.api#documentation": "The unique identifier of the guardrail for which to get details. This can be an ID or the ARN.
",
+ "smithy.api#documentation": "The unique identifier of the guardrail for which to get details. This can be an ID or the ARN.
",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
@@ -5380,7 +5554,7 @@
"type": {
"target": "com.amazonaws.bedrock#InferenceProfileType",
"traits": {
- "smithy.api#documentation": "The type of the inference profile. The following types are possible:
\n \n - \n
\n SYSTEM_DEFINED – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
\n \n - \n
\n APPLICATION – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
\n \n
",
+ "smithy.api#documentation": "The type of the inference profile. The following types are possible:
-
SYSTEM_DEFINED – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
-
APPLICATION – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
",
"smithy.api#required": {}
}
}
@@ -5430,7 +5604,7 @@
"endpointArn": {
"target": "com.amazonaws.bedrock#Arn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the endpoint you want to get information\n about.
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the endpoint you want to get information about.
",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
@@ -5611,7 +5785,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves the properties associated with a model-customization job, including the status of the job.\n For more information, see Custom models in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -5682,13 +5856,7 @@
"status": {
"target": "com.amazonaws.bedrock#ModelCustomizationJobStatus",
"traits": {
- "smithy.api#documentation": "The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use.\n If the job failed, the failure message contains information about why the job failed.
"
- }
- },
- "failureMessage": {
- "target": "com.amazonaws.bedrock#ErrorMessage",
- "traits": {
- "smithy.api#documentation": "Information about why the job failed.
"
+ "smithy.api#documentation": "The status of the job. A successful job transitions from in-progress to completed when the output model is ready to use. If the job failed, the failure message contains information about why the job failed.
"
}
},
"statusDetails": {
@@ -5697,6 +5865,12 @@
"smithy.api#documentation": "For a Distillation job, the details about the statuses of the sub-tasks of the customization job.
"
}
},
+ "failureMessage": {
+ "target": "com.amazonaws.bedrock#ErrorMessage",
+ "traits": {
+ "smithy.api#documentation": "Information about why the job failed.
"
+ }
+ },
"creationTime": {
"target": "com.amazonaws.bedrock#Timestamp",
"traits": {
@@ -5817,7 +5991,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves the properties associated with import model job, including the status of the \n job. For more information, \n see Import a customized model in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Retrieves the properties associated with import model job, including the status of the job. For more information, see Import a customized model in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -5884,7 +6058,7 @@
"status": {
"target": "com.amazonaws.bedrock#ModelImportJobStatus",
"traits": {
- "smithy.api#documentation": "The status of the job. A successful job transitions from in-progress to completed when the imported model is ready to use.\n If the job failed, the failure message contains information about why the job failed.
"
+ "smithy.api#documentation": "The status of the job. A successful job transitions from in-progress to completed when the imported model is ready to use. If the job failed, the failure message contains information about why the job failed.
"
}
},
"failureMessage": {
@@ -5954,7 +6128,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Gets details about a batch inference job. For more information, see Monitor batch inference jobs\n
",
+ "smithy.api#documentation": "Gets details about a batch inference job. For more information, see Monitor batch inference jobs
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -6005,7 +6179,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#ModelInvocationIdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
"
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
"
}
},
"roleArn": {
@@ -6018,7 +6192,7 @@
"status": {
"target": "com.amazonaws.bedrock#ModelInvocationJobStatus",
"traits": {
- "smithy.api#documentation": "The status of the batch inference job.
\n The following statuses are possible:
\n \n - \n
Submitted – This job has been submitted to a queue for validation.
\n \n - \n
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
\n \n - \n
Your IAM service role has access to the Amazon S3 buckets containing your files.
\n \n - \n
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the modelInput value matches the request body for the model.
\n \n - \n
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
\n \n
\n \n - \n
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
\n \n - \n
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
\n \n - \n
InProgress – This job has begun. You can start viewing the results in the output S3 location.
\n \n - \n
Completed – This job has successfully completed. View the output files in the output S3 location.
\n \n - \n
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
\n \n - \n
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web ServicesSupport Center.
\n \n - \n
Stopped – This job was stopped by a user.
\n \n - \n
Stopping – This job is being stopped by a user.
\n \n
"
+ "smithy.api#documentation": "The status of the batch inference job.
The following statuses are possible:
-
Submitted – This job has been submitted to a queue for validation.
-
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
-
Your IAM service role has access to the Amazon S3 buckets containing your files.
-
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the modelInput value matches the request body for the model.
-
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
-
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
-
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
-
InProgress – This job has begun. You can start viewing the results in the output S3 location.
-
Completed – This job has successfully completed. View the output files in the output S3 location.
-
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
-
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web ServicesSupport Center.
-
Stopped – This job was stopped by a user.
-
Stopping – This job is being stopped by a user.
"
}
},
"message": {
@@ -6469,14 +6643,14 @@
"inputStrength": {
"target": "com.amazonaws.bedrock#GuardrailFilterStrength",
"traits": {
- "smithy.api#documentation": "The strength of the content filter to apply to prompts. As you\n increase the filter strength, the likelihood of filtering harmful content increases\n and the probability of seeing harmful content in your application reduces.
",
+ "smithy.api#documentation": "The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
",
"smithy.api#required": {}
}
},
"outputStrength": {
"target": "com.amazonaws.bedrock#GuardrailFilterStrength",
"traits": {
- "smithy.api#documentation": "The strength of the content filter to apply to model responses. As you\n increase the filter strength, the likelihood of filtering harmful content increases\n and the probability of seeing harmful content in your application reduces.
",
+ "smithy.api#documentation": "The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
",
"smithy.api#required": {}
}
},
@@ -6495,30 +6669,30 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailContentFilterAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailContentFilterAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains filter strengths for harmful content. Guardrails support the following content filters to detect and filter harmful user inputs and FM-generated outputs.
\n \n - \n
\n Hate – Describes language or a statement that discriminates, criticizes, insults, denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).
\n \n - \n
\n Insults – Describes language or a statement that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.
\n \n - \n
\n Sexual – Describes language or a statement that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.
\n \n - \n
\n Violence – Describes language or a statement that includes glorification of or threats to inflict physical pain, hurt, or injury toward a person, group or thing.
\n \n
\n Content filtering depends on the confidence classification of user inputs and FM\n responses across each of the four harmful categories. All input and output statements are\n classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each\n harmful category. For example, if a statement is classified as\n Hate with HIGH confidence, the likelihood of the statement\n representing hateful content is high. A single statement can be classified across\n multiple categories with varying confidence levels. For example, a single statement\n can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.
\n For more information, see Guardrails content filters.
\n This data type is used in the following API operations:
\n "
+ "smithy.api#documentation": "Contains filter strengths for harmful content. Guardrails support the following content filters to detect and filter harmful user inputs and FM-generated outputs.
-
Hate – Describes language or a statement that discriminates, criticizes, insults, denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).
-
Insults – Describes language or a statement that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.
-
Sexual – Describes language or a statement that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.
-
Violence – Describes language or a statement that includes glorification of or threats to inflict physical pain, hurt, or injury toward a person, group or thing.
Content filtering depends on the confidence classification of user inputs and FM responses across each of the four harmful categories. All input and output statements are classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each harmful category. For example, if a statement is classified as Hate with HIGH confidence, the likelihood of the statement representing hateful content is high. A single statement can be classified across multiple categories with varying confidence levels. For example, a single statement can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.
For more information, see Guardrails content filters.
This data type is used in the following API operations:
"
}
},
"com.amazonaws.bedrock#GuardrailContentFilterAction": {
@@ -6554,14 +6728,14 @@
"inputStrength": {
"target": "com.amazonaws.bedrock#GuardrailFilterStrength",
"traits": {
- "smithy.api#documentation": "The strength of the content filter to apply to prompts. As you\n increase the filter strength, the likelihood of filtering harmful content increases\n and the probability of seeing harmful content in your application reduces.
",
+ "smithy.api#documentation": "The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
",
"smithy.api#required": {}
}
},
"outputStrength": {
"target": "com.amazonaws.bedrock#GuardrailFilterStrength",
"traits": {
- "smithy.api#documentation": "The strength of the content filter to apply to model responses. As you\n increase the filter strength, the likelihood of filtering harmful content increases\n and the probability of seeing harmful content in your application reduces.
",
+ "smithy.api#documentation": "The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
",
"smithy.api#required": {}
}
},
@@ -6580,30 +6754,30 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailContentFilterAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailContentFilterAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains filter strengths for harmful content. Guardrails support the following content filters to detect and filter harmful user inputs and FM-generated outputs.
\n \n - \n
\n Hate – Describes language or a statement that discriminates, criticizes, insults, denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).
\n \n - \n
\n Insults – Describes language or a statement that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.
\n \n - \n
\n Sexual – Describes language or a statement that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.
\n \n - \n
\n Violence – Describes language or a statement that includes glorification of or threats to inflict physical pain, hurt, or injury toward a person, group or thing.
\n \n
\n Content filtering depends on the confidence classification of user inputs and FM\n responses across each of the four harmful categories. All input and output statements are\n classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each\n harmful category. For example, if a statement is classified as\n Hate with HIGH confidence, the likelihood of the statement\n representing hateful content is high. A single statement can be classified across\n multiple categories with varying confidence levels. For example, a single statement\n can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.
\n For more information, see Guardrails content filters.
"
+ "smithy.api#documentation": "Contains filter strengths for harmful content. Guardrails support the following content filters to detect and filter harmful user inputs and FM-generated outputs.
-
Hate – Describes language or a statement that discriminates, criticizes, insults, denounces, or dehumanizes a person or group on the basis of an identity (such as race, ethnicity, gender, religion, sexual orientation, ability, and national origin).
-
Insults – Describes language or a statement that includes demeaning, humiliating, mocking, insulting, or belittling language. This type of language is also labeled as bullying.
-
Sexual – Describes language or a statement that indicates sexual interest, activity, or arousal using direct or indirect references to body parts, physical traits, or sex.
-
Violence – Describes language or a statement that includes glorification of or threats to inflict physical pain, hurt, or injury toward a person, group or thing.
Content filtering depends on the confidence classification of user inputs and FM responses across each of the four harmful categories. All input and output statements are classified into one of four confidence levels (NONE, LOW, MEDIUM, HIGH) for each harmful category. For example, if a statement is classified as Hate with HIGH confidence, the likelihood of the statement representing hateful content is high. A single statement can be classified across multiple categories with varying confidence levels. For example, a single statement can be classified as Hate with HIGH confidence, Insults with LOW confidence, Sexual with NONE confidence, and Violence with MEDIUM confidence.
For more information, see Guardrails content filters.
"
}
},
"com.amazonaws.bedrock#GuardrailContentFilterType": {
@@ -6682,7 +6856,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains details about how to handle harmful content.
\n This data type is used in the following API operations:
\n "
+ "smithy.api#documentation": "Contains details about how to handle harmful content.
This data type is used in the following API operations:
"
}
},
"com.amazonaws.bedrock#GuardrailContentPolicyConfig": {
@@ -6743,7 +6917,7 @@
"action": {
"target": "com.amazonaws.bedrock#GuardrailContextualGroundingAction",
"traits": {
- "smithy.api#documentation": "The action to take when content fails the contextual grounding evaluation. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when content fails the contextual grounding evaluation. Supported values include:
"
}
},
"enabled": {
@@ -6780,7 +6954,7 @@
"action": {
"target": "com.amazonaws.bedrock#GuardrailContextualGroundingAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when content fails the contextual grounding evaluation. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when content fails the contextual grounding evaluation. Supported values include:
"
}
},
"enabled": {
@@ -6875,7 +7049,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases.
\n For more information, see the Amazon Bedrock User Guide.
"
+ "smithy.api#documentation": "The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases.
For more information, see the Amazon Bedrock User Guide.
"
}
},
"com.amazonaws.bedrock#GuardrailCrossRegionDetails": {
@@ -6884,7 +7058,7 @@
"guardrailProfileId": {
"target": "com.amazonaws.bedrock#GuardrailCrossRegionGuardrailProfileId",
"traits": {
- "smithy.api#documentation": "The ID of the guardrail profile that your guardrail is using. Profile availability\n depends on your current Amazon Web Services Region. For more information, see the Amazon Bedrock User Guide.
"
+ "smithy.api#documentation": "The ID of the guardrail profile that your guardrail is using. Profile availability depends on your current Amazon Web Services Region. For more information, see the Amazon Bedrock User Guide.
"
}
},
"guardrailProfileArn": {
@@ -6895,7 +7069,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains details about the system-defined guardrail profile that you're using with your guardrail for cross-Region inference.
\n For more information, see the Amazon Bedrock User Guide.
"
+ "smithy.api#documentation": "Contains details about the system-defined guardrail profile that you're using with your guardrail for cross-Region inference.
For more information, see the Amazon Bedrock User Guide.
"
}
},
"com.amazonaws.bedrock#GuardrailCrossRegionGuardrailProfileArn": {
@@ -7034,37 +7208,37 @@
"type": {
"target": "com.amazonaws.bedrock#GuardrailManagedWordsType",
"traits": {
- "smithy.api#documentation": "ManagedWords$type\n The managed word type that was configured for the guardrail.\n (For now, we only offer profanity word list)
",
+ "smithy.api#documentation": "ManagedWords$type The managed word type that was configured for the guardrail. (For now, we only offer profanity word list)
",
"smithy.api#required": {}
}
},
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailWordAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailWordAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The managed word list that was configured for the guardrail.\n (This is a list of words that are pre-defined and managed by guardrails only.)
"
+ "smithy.api#documentation": "The managed word list that was configured for the guardrail. (This is a list of words that are pre-defined and managed by guardrails only.)
"
}
},
"com.amazonaws.bedrock#GuardrailManagedWordsConfig": {
@@ -7080,25 +7254,25 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailWordAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailWordAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
@@ -7210,25 +7384,25 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailSensitiveInformationAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
\n \n - \n
\n BLOCK – Block the content and replace it with blocked\n messaging.
\n \n - \n
\n ANONYMIZE – Mask the content and replace it with identifier\n tags.
\n \n - \n
\n NONE – Take no action but return detection information in the\n trace response.
\n \n
"
+ "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
-
BLOCK – Block the content and replace it with blocked messaging.
-
ANONYMIZE – Mask the content and replace it with identifier tags.
-
NONE – Take no action but return detection information in the trace response.
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailSensitiveInformationAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
\n \n - \n
\n BLOCK – Block the content and replace it with blocked\n messaging.
\n \n - \n
\n ANONYMIZE – Mask the content and replace it with identifier\n tags.
\n \n - \n
\n NONE – Take no action but return detection information in the\n trace response.
\n \n
"
+ "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
-
BLOCK – Block the content and replace it with blocked messaging.
-
ANONYMIZE – Mask the content and replace it with identifier tags.
-
NONE – Take no action but return detection information in the trace response.
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
@@ -7242,7 +7416,7 @@
"type": {
"target": "com.amazonaws.bedrock#GuardrailPiiEntityType",
"traits": {
- "smithy.api#documentation": "Configure guardrail type when the PII entity is detected.
\n The following PIIs are used to block or mask sensitive information:
\n \n - \n
\n General\n
\n \n - \n
\n ADDRESS\n
\n A physical address, such as \"100 Main Street, Anytown, USA\" \n or \"Suite #12, Building 123\". An address can include information \n such as the street, building, location, city, state, country, county, \n zip code, precinct, and neighborhood.
\n \n - \n
\n AGE\n
\n An individual's age, including the quantity and unit of time. For \n example, in the phrase \"I am 40 years old,\" Guardrails recognizes \"40 years\" \n as an age.\n
\n \n - \n
\n NAME\n
\n An individual's name. This entity type does not include titles, such as \n Dr., Mr., Mrs., or Miss. guardrails doesn't apply this entity type to names that \n are part of organizations or addresses. For example, guardrails recognizes \n the \"John Doe Organization\" as an organization, and it recognizes \"Jane Doe \n Street\" as an address.\n
\n \n - \n
\n EMAIL\n
\n An email address, such as marymajor@email.com.
\n \n - \n
\n PHONE\n
\n A phone number. This entity type also includes fax and pager numbers.\n
\n \n - \n
\n USERNAME\n
\n A user name that identifies an account, such as a login name, screen name, \n nick name, or handle.\n
\n \n - \n
\n PASSWORD\n
\n An alphanumeric string that is used as a password, such as \n \"*very20special#pass*\".\n
\n \n - \n
\n DRIVER_ID\n
\n The number assigned to a driver's license, which is an official \n document permitting an individual to operate one or more motorized \n vehicles on a public road. A driver's license number consists of \n alphanumeric characters.\n
\n \n - \n
\n LICENSE_PLATE\n
\n A license plate for a vehicle is issued by the state or country where \n the vehicle is registered. The format for passenger vehicles is typically \n five to eight digits, consisting of upper-case letters and numbers. The \n format varies depending on the location of the issuing state or country.\n
\n \n - \n
\n VEHICLE_IDENTIFICATION_NUMBER\n
\n A Vehicle Identification Number (VIN) uniquely identifies a vehicle. \n VIN content and format are defined in the ISO 3779 specification. \n Each country has specific codes and formats for VINs.\n
\n \n
\n \n - \n
\n Finance\n
\n \n - \n
\n CREDIT_DEBIT_CARD_CVV\n
\n A three-digit card verification code (CVV) that is present on VISA, \n MasterCard, and Discover credit and debit cards. For American Express \n credit or debit cards, the CVV is a four-digit numeric code.\n
\n \n - \n
\n CREDIT_DEBIT_CARD_EXPIRY\n
\n The expiration date for a credit or debit card. This number is usually \n four digits long and is often formatted as month/year or \n MM/YY. Guardrails recognizes expiration dates such as \n 01/21, 01/2021, and Jan 2021.\n
\n \n - \n
\n CREDIT_DEBIT_CARD_NUMBER\n
\n The number for a credit or debit card. These numbers can vary from 13 to 16 \n digits in length. However, Amazon Comprehend also recognizes credit or debit \n card numbers when only the last four digits are present.\n
\n \n - \n
\n PIN\n
\n A four-digit personal identification number (PIN) with which you can \n access your bank account.\n
\n \n - \n
\n INTERNATIONAL_BANK_ACCOUNT_NUMBER\n
\n An International Bank Account Number has specific formats in each country. \n For more information, see www.iban.com/structure.
\n \n - \n
\n SWIFT_CODE\n
\n A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify \n a particular bank or branch. Banks use these codes for money transfers such as \n international wire transfers.
\n SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific \n branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the \n head or primary office.
\n \n
\n \n - \n
\n IT\n
\n \n - \n
\n IP_ADDRESS\n
\n An IPv4 address, such as 198.51.100.0.\n
\n \n - \n
\n MAC_ADDRESS\n
\n A media access control (MAC) address is a unique identifier \n assigned to a network interface controller (NIC).\n
\n \n - \n
\n URL\n
\n A web address, such as www.example.com.\n
\n \n - \n
\n AWS_ACCESS_KEY\n
\n A unique identifier that's associated with a secret access key; \n you use the access key ID and secret access key to sign programmatic \n Amazon Web Services requests cryptographically.\n
\n \n - \n
\n AWS_SECRET_KEY\n
\n A unique identifier that's associated with an access key. You use the \n access key ID and secret access key to sign programmatic Amazon Web Services \n requests cryptographically.\n
\n \n
\n \n - \n
\n USA specific\n
\n \n - \n
\n US_BANK_ACCOUNT_NUMBER\n
\n A US bank account number, which is typically 10 to 12 digits long. \n
\n \n - \n
\n US_BANK_ROUTING_NUMBER\n
\n A US bank account routing number. These are typically nine digits long, \n
\n \n - \n
\n US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER\n
\n A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number \n that starts with a \"9\" and contain a \"7\" or \"8\" as the fourth digit. An ITIN \n can be formatted with a space or a dash after the third and forth digits.\n
\n \n - \n
\n US_PASSPORT_NUMBER\n
\n A US passport number. Passport numbers range from six to nine alphanumeric \n characters.\n
\n \n - \n
\n US_SOCIAL_SECURITY_NUMBER\n
\n A US Social Security Number (SSN) is a nine-digit number that is issued to \n US citizens, permanent residents, and temporary working residents. \n
\n \n
\n \n - \n
\n Canada specific\n
\n \n - \n
\n CA_HEALTH_NUMBER\n
\n A Canadian Health Service Number is a 10-digit unique identifier, \n required for individuals to access healthcare benefits.\n
\n \n - \n
\n CA_SOCIAL_INSURANCE_NUMBER\n
\n A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, \n required for individuals to access government programs and benefits.
\n The SIN is formatted as three groups of three digits, such as \n 123-456-789. A SIN can be validated through a simple \n check-digit process called the Luhn algorithm.
\n \n
\n \n - \n
\n UK Specific\n
\n \n - \n
\n UK_NATIONAL_HEALTH_SERVICE_NUMBER\n
\n A UK National Health Service Number is a 10-17 digit number, \n such as 485 777 3456. The current system formats the 10-digit \n number with spaces after the third and sixth digits. The final digit is an \n error-detecting checksum.
\n \n - \n
\n UK_NATIONAL_INSURANCE_NUMBER\n
\n A UK National Insurance Number (NINO) provides individuals with access to National \n Insurance (social security) benefits. It is also used for some purposes in the UK \n tax system.
\n The number is nine digits long and starts with two letters, followed by six \n numbers and one letter. A NINO can be formatted with a space or a dash after \n the two letters and after the second, forth, and sixth digits.
\n \n - \n
\n UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER\n
\n A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a business.\n
\n \n
\n \n - \n
\n Custom\n
\n \n \n
",
+ "smithy.api#documentation": "Configure guardrail type when the PII entity is detected.
The following PIIs are used to block or mask sensitive information:
-
General
-
ADDRESS
A physical address, such as \"100 Main Street, Anytown, USA\" or \"Suite #12, Building 123\". An address can include information such as the street, building, location, city, state, country, county, zip code, precinct, and neighborhood.
-
AGE
An individual's age, including the quantity and unit of time. For example, in the phrase \"I am 40 years old,\" Guardrails recognizes \"40 years\" as an age.
-
NAME
An individual's name. This entity type does not include titles, such as Dr., Mr., Mrs., or Miss. guardrails doesn't apply this entity type to names that are part of organizations or addresses. For example, guardrails recognizes the \"John Doe Organization\" as an organization, and it recognizes \"Jane Doe Street\" as an address.
-
EMAIL
An email address, such as marymajor@email.com.
-
PHONE
A phone number. This entity type also includes fax and pager numbers.
-
USERNAME
A user name that identifies an account, such as a login name, screen name, nick name, or handle.
-
PASSWORD
An alphanumeric string that is used as a password, such as \"*very20special#pass*\".
-
DRIVER_ID
The number assigned to a driver's license, which is an official document permitting an individual to operate one or more motorized vehicles on a public road. A driver's license number consists of alphanumeric characters.
-
LICENSE_PLATE
A license plate for a vehicle is issued by the state or country where the vehicle is registered. The format for passenger vehicles is typically five to eight digits, consisting of upper-case letters and numbers. The format varies depending on the location of the issuing state or country.
-
VEHICLE_IDENTIFICATION_NUMBER
A Vehicle Identification Number (VIN) uniquely identifies a vehicle. VIN content and format are defined in the ISO 3779 specification. Each country has specific codes and formats for VINs.
-
Finance
-
CREDIT_DEBIT_CARD_CVV
A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards. For American Express credit or debit cards, the CVV is a four-digit numeric code.
-
CREDIT_DEBIT_CARD_EXPIRY
The expiration date for a credit or debit card. This number is usually four digits long and is often formatted as month/year or MM/YY. Guardrails recognizes expiration dates such as 01/21, 01/2021, and Jan 2021.
-
CREDIT_DEBIT_CARD_NUMBER
The number for a credit or debit card. These numbers can vary from 13 to 16 digits in length. However, Amazon Comprehend also recognizes credit or debit card numbers when only the last four digits are present.
-
PIN
A four-digit personal identification number (PIN) with which you can access your bank account.
-
INTERNATIONAL_BANK_ACCOUNT_NUMBER
An International Bank Account Number has specific formats in each country. For more information, see www.iban.com/structure.
-
SWIFT_CODE
A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular bank or branch. Banks use these codes for money transfers such as international wire transfers.
SWIFT codes consist of eight or 11 characters. The 11-digit codes refer to specific branches, while eight-digit codes (or 11-digit codes ending in 'XXX') refer to the head or primary office.
-
IT
-
IP_ADDRESS
An IPv4 address, such as 198.51.100.0.
-
MAC_ADDRESS
A media access control (MAC) address is a unique identifier assigned to a network interface controller (NIC).
-
URL
A web address, such as www.example.com.
-
AWS_ACCESS_KEY
A unique identifier that's associated with a secret access key; you use the access key ID and secret access key to sign programmatic Amazon Web Services requests cryptographically.
-
AWS_SECRET_KEY
A unique identifier that's associated with an access key. You use the access key ID and secret access key to sign programmatic Amazon Web Services requests cryptographically.
-
USA specific
-
US_BANK_ACCOUNT_NUMBER
A US bank account number, which is typically 10 to 12 digits long.
-
US_BANK_ROUTING_NUMBER
A US bank account routing number. These are typically nine digits long,
-
US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER
A US Individual Taxpayer Identification Number (ITIN) is a nine-digit number that starts with a \"9\" and contain a \"7\" or \"8\" as the fourth digit. An ITIN can be formatted with a space or a dash after the third and forth digits.
-
US_PASSPORT_NUMBER
A US passport number. Passport numbers range from six to nine alphanumeric characters.
-
US_SOCIAL_SECURITY_NUMBER
A US Social Security Number (SSN) is a nine-digit number that is issued to US citizens, permanent residents, and temporary working residents.
-
Canada specific
-
CA_HEALTH_NUMBER
A Canadian Health Service Number is a 10-digit unique identifier, required for individuals to access healthcare benefits.
-
CA_SOCIAL_INSURANCE_NUMBER
A Canadian Social Insurance Number (SIN) is a nine-digit unique identifier, required for individuals to access government programs and benefits.
The SIN is formatted as three groups of three digits, such as 123-456-789. A SIN can be validated through a simple check-digit process called the Luhn algorithm.
-
UK Specific
-
UK_NATIONAL_HEALTH_SERVICE_NUMBER
A UK National Health Service Number is a 10-17 digit number, such as 485 777 3456. The current system formats the 10-digit number with spaces after the third and sixth digits. The final digit is an error-detecting checksum.
-
UK_NATIONAL_INSURANCE_NUMBER
A UK National Insurance Number (NINO) provides individuals with access to National Insurance (social security) benefits. It is also used for some purposes in the UK tax system.
The number is nine digits long and starts with two letters, followed by six numbers and one letter. A NINO can be formatted with a space or a dash after the two letters and after the second, forth, and sixth digits.
-
UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER
A UK Unique Taxpayer Reference (UTR) is a 10-digit number that identifies a taxpayer or a business.
-
Custom
",
"smithy.api#required": {}
}
},
@@ -7256,25 +7430,25 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailSensitiveInformationAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
\n \n - \n
\n BLOCK – Block the content and replace it with blocked\n messaging.
\n \n - \n
\n ANONYMIZE – Mask the content and replace it with identifier\n tags.
\n \n - \n
\n NONE – Take no action but return detection information in the\n trace response.
\n \n
"
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
-
BLOCK – Block the content and replace it with blocked messaging.
-
ANONYMIZE – Mask the content and replace it with identifier tags.
-
NONE – Take no action but return detection information in the trace response.
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailSensitiveInformationAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
\n \n - \n
\n BLOCK – Block the content and replace it with blocked\n messaging.
\n \n - \n
\n ANONYMIZE – Mask the content and replace it with identifier\n tags.
\n \n - \n
\n NONE – Take no action but return detection information in the\n trace response.
\n \n
"
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
-
BLOCK – Block the content and replace it with blocked messaging.
-
ANONYMIZE – Mask the content and replace it with identifier tags.
-
NONE – Take no action but return detection information in the trace response.
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
@@ -7518,25 +7692,25 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailSensitiveInformationAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailSensitiveInformationAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
@@ -7589,25 +7763,25 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailSensitiveInformationAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailSensitiveInformationAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
@@ -7835,7 +8009,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains details about a guardrail.
\n This data type is used in the following API operations:
\n "
+ "smithy.api#documentation": "Contains details about a guardrail.
This data type is used in the following API operations:
"
}
},
"com.amazonaws.bedrock#GuardrailTopic": {
@@ -7870,30 +8044,30 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailTopicAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailTopicAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Details about topics for the guardrail to identify and deny.
\n This data type is used in the following API operations:
\n "
+ "smithy.api#documentation": "Details about topics for the guardrail to identify and deny.
This data type is used in the following API operations:
"
}
},
"com.amazonaws.bedrock#GuardrailTopicAction": {
@@ -7949,25 +8123,25 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailTopicAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailTopicAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
@@ -8030,7 +8204,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains details about topics that the guardrail should identify and deny.
\n This data type is used in the following API operations:
\n "
+ "smithy.api#documentation": "Contains details about topics that the guardrail should identify and deny.
This data type is used in the following API operations:
"
}
},
"com.amazonaws.bedrock#GuardrailTopicPolicyConfig": {
@@ -8106,25 +8280,25 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailWordAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailWordAction",
"traits": {
- "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "The action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't\n charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
@@ -8169,25 +8343,25 @@
"inputAction": {
"target": "com.amazonaws.bedrock#GuardrailWordAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the input. Supported values include:
"
}
},
"outputAction": {
"target": "com.amazonaws.bedrock#GuardrailWordAction",
"traits": {
- "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
\n "
+ "smithy.api#documentation": "Specifies the action to take when harmful content is detected in the output. Supported values include:
"
}
},
"inputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the intput. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the intput. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
},
"outputEnabled": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you\n aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
+ "smithy.api#documentation": "Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
"
}
}
},
@@ -8316,7 +8490,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Specifies the custom metrics, how tasks will be rated, the flow definition ARN, and your custom prompt datasets. Model evaluation jobs use human workers only support the use of custom prompt datasets. To learn more about custom prompt datasets and the required format, see Custom prompt datasets.
\n When you create custom metrics in HumanEvaluationCustomMetric you must specify the metric's name. The list of names specified in the HumanEvaluationCustomMetric array, must match the metricNames array of strings specified in EvaluationDatasetMetricConfig. For example, if in the HumanEvaluationCustomMetric array your specified the names \"accuracy\", \"toxicity\", \"readability\" as custom metrics then the metricNames array would need to look like the following [\"accuracy\", \"toxicity\", \"readability\"] in EvaluationDatasetMetricConfig.
"
+ "smithy.api#documentation": "Specifies the custom metrics, how tasks will be rated, the flow definition ARN, and your custom prompt datasets. Model evaluation jobs use human workers only support the use of custom prompt datasets. To learn more about custom prompt datasets and the required format, see Custom prompt datasets.
When you create custom metrics in HumanEvaluationCustomMetric you must specify the metric's name. The list of names specified in the HumanEvaluationCustomMetric array, must match the metricNames array of strings specified in EvaluationDatasetMetricConfig. For example, if in the HumanEvaluationCustomMetric array your specified the names \"accuracy\", \"toxicity\", \"readability\" as custom metrics then the metricNames array would need to look like the following [\"accuracy\", \"toxicity\", \"readability\"] in EvaluationDatasetMetricConfig.
"
}
},
"com.amazonaws.bedrock#HumanEvaluationCustomMetric": {
@@ -8338,13 +8512,13 @@
"ratingMethod": {
"target": "com.amazonaws.bedrock#EvaluationRatingMethod",
"traits": {
- "smithy.api#documentation": "Choose how you want your human workers to evaluation your model. Valid values for rating methods are ThumbsUpDown, IndividualLikertScale,ComparisonLikertScale, ComparisonChoice, and ComparisonRank\n
",
+ "smithy.api#documentation": "Choose how you want your human workers to evaluation your model. Valid values for rating methods are ThumbsUpDown, IndividualLikertScale,ComparisonLikertScale, ComparisonChoice, and ComparisonRank
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "In a model evaluation job that uses human workers you must \n define the name of the metric, and how you want that metric rated\n ratingMethod, and an optional description of the metric.
"
+ "smithy.api#documentation": "In a model evaluation job that uses human workers you must define the name of the metric, and how you want that metric rated ratingMethod, and an optional description of the metric.
"
}
},
"com.amazonaws.bedrock#HumanEvaluationCustomMetrics": {
@@ -8690,7 +8864,7 @@
"type": {
"target": "com.amazonaws.bedrock#InferenceProfileType",
"traits": {
- "smithy.api#documentation": "The type of the inference profile. The following types are possible:
\n \n - \n
\n SYSTEM_DEFINED – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
\n \n - \n
\n APPLICATION – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
\n \n
",
+ "smithy.api#documentation": "The type of the inference profile. The following types are possible:
-
SYSTEM_DEFINED – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
-
APPLICATION – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
",
"smithy.api#required": {}
}
}
@@ -8871,7 +9045,7 @@
"textInferenceConfig": {
"target": "com.amazonaws.bedrock#TextInferenceConfig",
"traits": {
- "smithy.api#documentation": "Contains configuration details for text generation using a language model via the \n RetrieveAndGenerate function.
"
+ "smithy.api#documentation": "Contains configuration details for text generation using a language model via the RetrieveAndGenerate function.
"
}
}
},
@@ -8964,7 +9138,7 @@
"modelArn": {
"target": "com.amazonaws.bedrock#BedrockModelArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the foundation model or inference profile \n used to generate responses.
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the foundation model or inference profile used to generate responses.
",
"smithy.api#required": {}
}
},
@@ -9007,7 +9181,7 @@
"overrideSearchType": {
"target": "com.amazonaws.bedrock#SearchType",
"traits": {
- "smithy.api#documentation": "By default, Amazon Bedrock decides a search strategy for you. If you're using an \n Amazon OpenSearch Serverless vector store that contains a filterable text field, you \n can specify whether to query the knowledge base with a HYBRID search \n using both vector embeddings and raw text, or SEMANTIC search using \n only vector embeddings. For other vector store configurations, only SEMANTIC \n search is available.
"
+ "smithy.api#documentation": "By default, Amazon Bedrock decides a search strategy for you. If you're using an Amazon OpenSearch Serverless vector store that contains a filterable text field, you can specify whether to query the knowledge base with a HYBRID search using both vector embeddings and raw text, or SEMANTIC search using only vector embeddings. For other vector store configurations, only SEMANTIC search is available.
"
}
},
"filter": {
@@ -9044,7 +9218,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation.
\n For more information, see Custom models in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation.
For more information, see Custom models in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -9131,6 +9305,13 @@
"smithy.api#documentation": "Return custom models depending on if the current account owns them (true) or if they were shared with the current account (false).
",
"smithy.api#httpQuery": "isOwned"
}
+ },
+ "modelStatus": {
+ "target": "com.amazonaws.bedrock#ModelStatus",
+ "traits": {
+ "smithy.api#documentation": "The status of them model to filter results by. Possible values include:
-
Creating - Include only models that are currently being created and validated.
-
Active - Include only models that have been successfully created and are ready for use.
-
Failed - Include only models where the creation process failed.
If you don't specify a status, the API returns models in all states.
",
+ "smithy.api#httpQuery": "modelStatus"
+ }
}
},
"traits": {
@@ -9394,7 +9575,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists details about all the guardrails in an account. To list the DRAFT version of all your guardrails, don't specify the guardrailIdentifier field. To list all versions of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field.
\n You can set the maximum number of results to return in a response in the maxResults field. If there are more results than the number you set, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results.
",
+ "smithy.api#documentation": "Lists details about all the guardrails in an account. To list the DRAFT version of all your guardrails, don't specify the guardrailIdentifier field. To list all versions of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field.
You can set the maximum number of results to return in a response in the maxResults field. If there are more results than the number you set, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -9415,7 +9596,7 @@
"guardrailIdentifier": {
"target": "com.amazonaws.bedrock#GuardrailIdentifier",
"traits": {
- "smithy.api#documentation": "The unique identifier of the guardrail. This can be an ID or the ARN.
",
+ "smithy.api#documentation": "The unique identifier of the guardrail. This can be an ID or the ARN.
",
"smithy.api#httpQuery": "guardrailIdentifier"
}
},
@@ -9482,7 +9663,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of models you've imported. You can filter the results to return based on one or more criteria. \n For more information, \n see Import a customized model in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Returns a list of models you've imported. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -9632,7 +9813,7 @@
"typeEquals": {
"target": "com.amazonaws.bedrock#InferenceProfileType",
"traits": {
- "smithy.api#documentation": "Filters for inference profiles that match the type you specify.
\n \n - \n
\n SYSTEM_DEFINED – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
\n \n - \n
\n APPLICATION – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
\n \n
",
+ "smithy.api#documentation": "Filters for inference profiles that match the type you specify.
-
SYSTEM_DEFINED – The inference profile is defined by Amazon Bedrock. You can route inference requests across regions with these inference profiles.
-
APPLICATION – The inference profile was created by a user. This type of inference profile can track metrics and costs when invoking the model in it. The inference profile may route requests to one or multiple regions.
",
"smithy.api#httpQuery": "type"
}
}
@@ -9687,7 +9868,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services\n account.
",
+ "smithy.api#documentation": "Lists the endpoints for models from Amazon Bedrock Marketplace in your Amazon Web Services account.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -9708,21 +9889,21 @@
"maxResults": {
"target": "com.amazonaws.bedrock#MaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results to return in a single call. If more results are\n available, the operation returns a NextToken value.
",
+ "smithy.api#documentation": "The maximum number of results to return in a single call. If more results are available, the operation returns a NextToken value.
",
"smithy.api#httpQuery": "maxResults"
}
},
"nextToken": {
"target": "com.amazonaws.bedrock#PaginationToken",
"traits": {
- "smithy.api#documentation": "The token for the next set of results. You receive this token from a previous\n ListMarketplaceModelEndpoints call.
",
+ "smithy.api#documentation": "The token for the next set of results. You receive this token from a previous ListMarketplaceModelEndpoints call.
",
"smithy.api#httpQuery": "nextToken"
}
},
"modelSourceEquals": {
"target": "com.amazonaws.bedrock#ModelSourceIdentifier",
"traits": {
- "smithy.api#documentation": "If specified, only endpoints for the given model source identifier are\n returned.
",
+ "smithy.api#documentation": "If specified, only endpoints for the given model source identifier are returned.
",
"smithy.api#httpQuery": "modelSourceIdentifier"
}
}
@@ -9743,7 +9924,7 @@
"nextToken": {
"target": "com.amazonaws.bedrock#PaginationToken",
"traits": {
- "smithy.api#documentation": "The token for the next set of results. Use this token to get the next set of\n results.
"
+ "smithy.api#documentation": "The token for the next set of results. Use this token to get the next set of results.
"
}
}
},
@@ -9777,7 +9958,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of model copy jobs that you have submitted. You can filter the jobs to return based on\n one or more criteria. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Returns a list of model copy jobs that you have submitted. You can filter the jobs to return based on one or more criteria. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -9913,7 +10094,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on\n one or more criteria.
\n For more information, see Custom models in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria.
For more information, see Custom models in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -10035,7 +10216,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria. \n For more information, \n see Import a customized model in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "GET",
@@ -10192,7 +10373,7 @@
"statusEquals": {
"target": "com.amazonaws.bedrock#ModelInvocationJobStatus",
"traits": {
- "smithy.api#documentation": "Specify a status to filter for batch inference jobs whose statuses match the string you specify.
\n The following statuses are possible:
\n \n - \n
Submitted – This job has been submitted to a queue for validation.
\n \n - \n
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
\n \n - \n
Your IAM service role has access to the Amazon S3 buckets containing your files.
\n \n - \n
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the modelInput value matches the request body for the model.
\n \n - \n
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
\n \n
\n \n - \n
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
\n \n - \n
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
\n \n - \n
InProgress – This job has begun. You can start viewing the results in the output S3 location.
\n \n - \n
Completed – This job has successfully completed. View the output files in the output S3 location.
\n \n - \n
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
\n \n - \n
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web ServicesSupport Center.
\n \n - \n
Stopped – This job was stopped by a user.
\n \n - \n
Stopping – This job is being stopped by a user.
\n \n
",
+ "smithy.api#documentation": "Specify a status to filter for batch inference jobs whose statuses match the string you specify.
The following statuses are possible:
-
Submitted – This job has been submitted to a queue for validation.
-
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
-
Your IAM service role has access to the Amazon S3 buckets containing your files.
-
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the modelInput value matches the request body for the model.
-
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
-
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
-
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
-
InProgress – This job has begun. You can start viewing the results in the output S3 location.
-
Completed – This job has successfully completed. View the output files in the output S3 location.
-
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
-
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web ServicesSupport Center.
-
Stopped – This job was stopped by a user.
-
Stopping – This job is being stopped by a user.
",
"smithy.api#httpQuery": "statusEquals"
}
},
@@ -10213,7 +10394,7 @@
"nextToken": {
"target": "com.amazonaws.bedrock#PaginationToken",
"traits": {
- "smithy.api#documentation": "If there were more results than the value you specified\n in the maxResults field in a previous ListModelInvocationJobs request, the response would have returned a nextToken\n value. To see the next batch of results, send the\n nextToken value in another\n request.
",
+ "smithy.api#documentation": "If there were more results than the value you specified in the maxResults field in a previous ListModelInvocationJobs request, the response would have returned a nextToken value. To see the next batch of results, send the nextToken value in another request.
",
"smithy.api#httpQuery": "nextToken"
}
},
@@ -10423,14 +10604,14 @@
"maxResults": {
"target": "com.amazonaws.bedrock#MaxResults",
"traits": {
- "smithy.api#documentation": "THe maximum number of results to return in the response. If there are more results than the number you specified, the response returns a nextToken\n value. To see the next batch of results, send the nextToken value in another list request.
",
+ "smithy.api#documentation": "THe maximum number of results to return in the response. If there are more results than the number you specified, the response returns a nextToken value. To see the next batch of results, send the nextToken value in another list request.
",
"smithy.api#httpQuery": "maxResults"
}
},
"nextToken": {
"target": "com.amazonaws.bedrock#PaginationToken",
"traits": {
- "smithy.api#documentation": "If there are more results than the number you specified in the maxResults field, the response returns a nextToken\n value. To see the next batch of results, specify the nextToken value in this field.
",
+ "smithy.api#documentation": "If there are more results than the number you specified in the maxResults field, the response returns a nextToken value. To see the next batch of results, specify the nextToken value in this field.
",
"smithy.api#httpQuery": "nextToken"
}
},
@@ -10499,7 +10680,7 @@
}
],
"traits": {
- "smithy.api#documentation": "List the tags associated with the specified resource.
\n For more information, see Tagging resources in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "List the tags associated with the specified resource.
For more information, see Tagging resources in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -10623,7 +10804,7 @@
"status": {
"target": "com.amazonaws.bedrock#Status",
"traits": {
- "smithy.api#documentation": "The overall status of the endpoint in Amazon Bedrock Marketplace (e.g., ACTIVE,\n INACTIVE).
"
+ "smithy.api#documentation": "The overall status of the endpoint in Amazon Bedrock Marketplace (e.g., ACTIVE, INACTIVE).
"
}
},
"statusMessage": {
@@ -10649,14 +10830,14 @@
"endpointConfig": {
"target": "com.amazonaws.bedrock#EndpointConfig",
"traits": {
- "smithy.api#documentation": "The configuration of the endpoint, including the number and type of instances\n used.
",
+ "smithy.api#documentation": "The configuration of the endpoint, including the number and type of instances used.
",
"smithy.api#required": {}
}
},
"endpointStatus": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The current status of the endpoint (e.g., Creating, InService, Updating,\n Failed).
",
+ "smithy.api#documentation": "The current status of the endpoint (e.g., Creating, InService, Updating, Failed).
",
"smithy.api#required": {}
}
},
@@ -10781,7 +10962,7 @@
"min": 20,
"max": 1011
},
- "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}))$"
+ "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/((imported)|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}))$"
}
},
"com.amazonaws.bedrock#ModelCopyJobArn": {
@@ -10899,7 +11080,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains details about each model copy job.
\n This data type is used in the following API operations:
\n "
+ "smithy.api#documentation": "Contains details about each model copy job.
This data type is used in the following API operations:
"
}
},
"com.amazonaws.bedrock#ModelCopyResource": {
@@ -11038,18 +11219,18 @@
"smithy.api#required": {}
}
},
- "lastModifiedTime": {
- "target": "com.amazonaws.bedrock#Timestamp",
- "traits": {
- "smithy.api#documentation": "Time that the customization job was last modified.
"
- }
- },
"statusDetails": {
"target": "com.amazonaws.bedrock#StatusDetails",
"traits": {
"smithy.api#documentation": "Details about the status of the data processing sub-task of the job.
"
}
},
+ "lastModifiedTime": {
+ "target": "com.amazonaws.bedrock#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "Time that the customization job was last modified.
"
+ }
+ },
"creationTime": {
"target": "com.amazonaws.bedrock#Timestamp",
"traits": {
@@ -11098,12 +11279,12 @@
"s3DataSource": {
"target": "com.amazonaws.bedrock#S3DataSource",
"traits": {
- "smithy.api#documentation": "The Amazon S3 data source of the imported model.
"
+ "smithy.api#documentation": "The Amazon S3 data source of the model to import.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Data source for the imported model.
"
+ "smithy.api#documentation": "The data source of the model to import.
"
}
},
"com.amazonaws.bedrock#ModelId": {
@@ -11123,7 +11304,7 @@
"min": 1,
"max": 2048
},
- "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})))|(([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}))|(([0-9a-zA-Z][_-]?)+)$"
+ "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/((imported)|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})))|(([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}))|(([0-9a-zA-Z][_-]?)+)$"
}
},
"com.amazonaws.bedrock#ModelImportJobArn": {
@@ -11491,7 +11672,7 @@
"clientRequestToken": {
"target": "com.amazonaws.bedrock#ModelInvocationIdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,\n Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
"
+ "smithy.api#documentation": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
"
}
},
"roleArn": {
@@ -11504,7 +11685,7 @@
"status": {
"target": "com.amazonaws.bedrock#ModelInvocationJobStatus",
"traits": {
- "smithy.api#documentation": "The status of the batch inference job.
\n The following statuses are possible:
\n \n - \n
Submitted – This job has been submitted to a queue for validation.
\n \n - \n
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
\n \n - \n
Your IAM service role has access to the Amazon S3 buckets containing your files.
\n \n - \n
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the modelInput value matches the request body for the model.
\n \n - \n
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
\n \n
\n \n - \n
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
\n \n - \n
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
\n \n - \n
InProgress – This job has begun. You can start viewing the results in the output S3 location.
\n \n - \n
Completed – This job has successfully completed. View the output files in the output S3 location.
\n \n - \n
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
\n \n - \n
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web ServicesSupport Center.
\n \n - \n
Stopped – This job was stopped by a user.
\n \n - \n
Stopping – This job is being stopped by a user.
\n \n
"
+ "smithy.api#documentation": "The status of the batch inference job.
The following statuses are possible:
-
Submitted – This job has been submitted to a queue for validation.
-
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
-
Your IAM service role has access to the Amazon S3 buckets containing your files.
-
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the modelInput value matches the request body for the model.
-
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
-
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
-
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
-
InProgress – This job has begun. You can start viewing the results in the output S3 location.
-
Completed – This job has successfully completed. View the output files in the output S3 location.
-
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
-
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web ServicesSupport Center.
-
Stopped – This job was stopped by a user.
-
Stopping – This job is being stopped by a user.
"
}
},
"message": {
@@ -11620,18 +11801,9 @@
"com.amazonaws.bedrock#ModelResource": {
"type": "resource",
"operations": [
- {
- "target": "com.amazonaws.bedrock#DeleteCustomModel"
- },
- {
- "target": "com.amazonaws.bedrock#GetCustomModel"
- },
{
"target": "com.amazonaws.bedrock#GetFoundationModel"
},
- {
- "target": "com.amazonaws.bedrock#ListCustomModels"
- },
{
"target": "com.amazonaws.bedrock#ListFoundationModels"
}
@@ -11646,6 +11818,29 @@
"smithy.api#pattern": "arn:aws:sagemaker:.*:hub-content/SageMakerPublicHub/Model/.*"
}
},
+ "com.amazonaws.bedrock#ModelStatus": {
+ "type": "enum",
+ "members": {
+ "ACTIVE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Active"
+ }
+ },
+ "CREATING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Creating"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Failed"
+ }
+ }
+ }
+ },
"com.amazonaws.bedrock#NonBlankString": {
"type": "string",
"traits": {
@@ -11929,7 +12124,7 @@
"textPromptTemplate": {
"target": "com.amazonaws.bedrock#TextPromptTemplate",
"traits": {
- "smithy.api#documentation": "The template for the prompt that's sent to the model for response generation. You can include \n prompt placeholders, which become replaced before the prompt is sent to the model to provide \n instructions and context to the model. In addition, you can include XML tags to delineate \n meaningful sections of the prompt template.
\n For more information, see Knowledge base prompt template and \n Use XML tags with Anthropic Claude models.
"
+ "smithy.api#documentation": "The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.
For more information, see Knowledge base prompt template and Use XML tags with Anthropic Claude models.
"
}
}
},
@@ -12087,7 +12282,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A summary of information about a Provisioned Throughput.
\n This data type is used in the following API operations:
\n "
+ "smithy.api#documentation": "A summary of information about a Provisioned Throughput.
This data type is used in the following API operations:
"
}
},
"com.amazonaws.bedrock#ProvisionedModelThroughputResource": {
@@ -12336,7 +12531,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with\n Amazon Bedrock APIs.
",
+ "smithy.api#documentation": "Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -12431,7 +12626,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Rules for filtering invocation logs. A filter can be a mapping of a metadata\n key to a value that it should or should not equal (a base filter), or a list of base filters\n that are all applied with AND or OR logical operators
"
+ "smithy.api#documentation": "Rules for filtering invocation logs. A filter can be a mapping of a metadata key to a value that it should or should not equal (a base filter), or a list of base filters that are all applied with AND or OR logical operators
"
}
},
"com.amazonaws.bedrock#RequestMetadataFiltersList": {
@@ -12495,84 +12690,84 @@
"equals": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose \n name matches the key and whose value matches the value in this object.
\n The following example would return data sources with an animal attribute whose value is 'cat':\n \"equals\": { \"key\": \"animal\", \"value\": \"cat\" }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value matches the value in this object.
The following example would return data sources with an animal attribute whose value is 'cat': \"equals\": { \"key\": \"animal\", \"value\": \"cat\" }
"
}
},
"notEquals": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value \n doesn't match the value in this object are returned.
\n The following example would return data sources that don't contain an animal attribute whose value is 'cat': \n \"notEquals\": { \"key\": \"animal\", \"value\": \"cat\" }\n
"
+ "smithy.api#documentation": "Knowledge base data sources that contain a metadata attribute whose name matches the key and whose value doesn't match the value in this object are returned.
The following example would return data sources that don't contain an animal attribute whose value is 'cat': \"notEquals\": { \"key\": \"animal\", \"value\": \"cat\" }
"
}
},
"greaterThan": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name \n matches the key and whose value is greater than the value in this object.
\n The following example would return data sources with an year attribute whose value is \n greater than '1989': \"greaterThan\": { \"key\": \"year\", \"value\": 1989 }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value is greater than the value in this object.
The following example would return data sources with an year attribute whose value is greater than '1989': \"greaterThan\": { \"key\": \"year\", \"value\": 1989 }
"
}
},
"greaterThanOrEquals": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name \n matches the key and whose value is greater than or equal to the value in this object.
\n The following example would return data sources with an year attribute whose value is \n greater than or equal to '1989': \"greaterThanOrEquals\": { \"key\": \"year\", \"value\": 1989 }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value is greater than or equal to the value in this object.
The following example would return data sources with an year attribute whose value is greater than or equal to '1989': \"greaterThanOrEquals\": { \"key\": \"year\", \"value\": 1989 }
"
}
},
"lessThan": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the \n key and whose value is less than the value in this object.
\n The following example would return data sources with an year attribute whose value is less than to '1989':\n \"lessThan\": { \"key\": \"year\", \"value\": 1989 }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value is less than the value in this object.
The following example would return data sources with an year attribute whose value is less than to '1989': \"lessThan\": { \"key\": \"year\", \"value\": 1989 }
"
}
},
"lessThanOrEquals": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key \n and whose value is less than or equal to the value in this object.
\n The following example would return data sources with an year attribute whose value is less than or equal \n to '1989': \"lessThanOrEquals\": { \"key\": \"year\", \"value\": 1989 }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value is less than or equal to the value in this object.
The following example would return data sources with an year attribute whose value is less than or equal to '1989': \"lessThanOrEquals\": { \"key\": \"year\", \"value\": 1989 }
"
}
},
"in": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose \n name matches the key and whose value is in the list specified in the value in this object.
\n The following example would return data sources with an animal attribute that is either 'cat' or 'dog':\n \"in\": { \"key\": \"animal\", \"value\": [\"cat\", \"dog\"] }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value is in the list specified in the value in this object.
The following example would return data sources with an animal attribute that is either 'cat' or 'dog': \"in\": { \"key\": \"animal\", \"value\": [\"cat\", \"dog\"] }
"
}
},
"notIn": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key \n and whose value isn't in the list specified in the value in this object.
\n The following example would return data sources whose animal attribute is neither 'cat' nor 'dog':\n \"notIn\": { \"key\": \"animal\", \"value\": [\"cat\", \"dog\"] }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value isn't in the list specified in the value in this object.
The following example would return data sources whose animal attribute is neither 'cat' nor 'dog': \"notIn\": { \"key\": \"animal\", \"value\": [\"cat\", \"dog\"] }
"
}
},
"startsWith": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key \n and whose value starts with the value in this object. This filter is currently only supported for \n Amazon OpenSearch Serverless vector stores.
\n The following example would return data sources with an animal attribute starts with 'ca' (for example, 'cat' or 'camel').\n \"startsWith\": { \"key\": \"animal\", \"value\": \"ca\" }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value starts with the value in this object. This filter is currently only supported for Amazon OpenSearch Serverless vector stores.
The following example would return data sources with an animal attribute starts with 'ca' (for example, 'cat' or 'camel'). \"startsWith\": { \"key\": \"animal\", \"value\": \"ca\" }
"
}
},
"listContains": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key \n and whose value is a list that contains the value as one of its members.
\n The following example would return data sources with an animals attribute that is a list containing a cat \n member (for example, [\"dog\", \"cat\"]): \"listContains\": { \"key\": \"animals\", \"value\": \"cat\" }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value is a list that contains the value as one of its members.
The following example would return data sources with an animals attribute that is a list containing a cat member (for example, [\"dog\", \"cat\"]): \"listContains\": { \"key\": \"animals\", \"value\": \"cat\" }
"
}
},
"stringContains": {
"target": "com.amazonaws.bedrock#FilterAttribute",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key \n and whose value is one of the following:
\n A string that contains the value as a substring. The following example would return data sources with an \n animal attribute that contains the substring at (for example, 'cat'): \n \"stringContains\": { \"key\": \"animal\", \"value\": \"at\" }\n
\n A list with a member that contains the value as a substring. The following example would return data \n sources with an animals attribute that is a list containing a member that contains the substring at \n (for example, [\"dog\", \"cat\"]): \"stringContains\": { \"key\": \"animals\", \"value\": \"at\" }\n
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value is one of the following:
A string that contains the value as a substring. The following example would return data sources with an animal attribute that contains the substring at (for example, 'cat'): \"stringContains\": { \"key\": \"animal\", \"value\": \"at\" }
A list with a member that contains the value as a substring. The following example would return data sources with an animals attribute that is a list containing a member that contains the substring at (for example, [\"dog\", \"cat\"]): \"stringContains\": { \"key\": \"animals\", \"value\": \"at\" }
"
}
},
"andAll": {
"target": "com.amazonaws.bedrock#RetrievalFilterList",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if their metadata attributes fulfill all the \n filter conditions inside this list.
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list.
"
}
},
"orAll": {
"target": "com.amazonaws.bedrock#RetrievalFilterList",
"traits": {
- "smithy.api#documentation": "Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter \n conditions inside this list.
"
+ "smithy.api#documentation": "Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Specifies the filters to use on the metadata attributes/fields in the knowledge base data \n sources before returning results.
",
+ "smithy.api#documentation": "Specifies the filters to use on the metadata attributes/fields in the knowledge base data sources before returning results.
",
"smithy.api#sensitive": {}
}
},
@@ -12593,7 +12788,7 @@
"type": {
"target": "com.amazonaws.bedrock#RetrieveAndGenerateType",
"traits": {
- "smithy.api#documentation": "The type of resource that contains your data for retrieving information and generating responses.
\n If you choose to use EXTERNAL_SOURCES, then currently only Claude 3 Sonnet models for knowledge bases are supported.
",
+ "smithy.api#documentation": "The type of resource that contains your data for retrieving information and generating responses.
If you choose to use EXTERNAL_SOURCES, then currently only Claude 3 Sonnet models for knowledge bases are supported.
",
"smithy.api#required": {}
}
},
@@ -12606,7 +12801,7 @@
"externalSourcesConfiguration": {
"target": "com.amazonaws.bedrock#ExternalSourcesRetrieveAndGenerateConfiguration",
"traits": {
- "smithy.api#documentation": "The configuration for the external source wrapper object in the \n retrieveAndGenerate function.
"
+ "smithy.api#documentation": "The configuration for the external source wrapper object in the retrieveAndGenerate function.
"
}
}
},
@@ -12715,7 +12910,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The Amazon S3 data source of the imported job.
"
+ "smithy.api#documentation": "The Amazon S3 data source of the model to import.
"
}
},
"com.amazonaws.bedrock#S3InputFormat": {
@@ -12760,7 +12955,7 @@
"initialInstanceCount": {
"target": "com.amazonaws.bedrock#InstanceCount",
"traits": {
- "smithy.api#documentation": "The number of Amazon EC2 compute instances to deploy for initial endpoint\n creation.
",
+ "smithy.api#documentation": "The number of Amazon EC2 compute instances to deploy for initial endpoint creation.
",
"smithy.api#required": {}
}
},
@@ -12774,14 +12969,14 @@
"executionRole": {
"target": "com.amazonaws.bedrock#RoleArn",
"traits": {
- "smithy.api#documentation": "The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts\n and docker image for deployment on Amazon EC2 compute instances or for batch\n transform jobs.
",
+ "smithy.api#documentation": "The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on Amazon EC2 compute instances or for batch transform jobs.
",
"smithy.api#required": {}
}
},
"kmsEncryptionKey": {
"target": "com.amazonaws.bedrock#KmsKeyId",
"traits": {
- "smithy.api#documentation": "The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt data on the storage volume\n attached to the Amazon EC2 compute instance that hosts the endpoint.
"
+ "smithy.api#documentation": "The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the Amazon EC2 compute instance that hosts the endpoint.
"
}
},
"vpc": {
@@ -12958,7 +13153,7 @@
}
},
"traits": {
- "smithy.api#documentation": "For a Distillation job, the status details for sub-tasks of the job. Possible statuses for each sub-task include the following:
\n \n - \n
NotStarted
\n \n - \n
InProgress
\n \n - \n
Completed
\n \n - \n
Stopping
\n \n - \n
Stopped
\n \n - \n
Failed
\n \n
"
+ "smithy.api#documentation": "For a Distillation job, the status details for sub-tasks of the job. Possible statuses for each sub-task include the following:
-
NotStarted
-
InProgress
-
Completed
-
Stopping
-
Stopped
-
Failed
"
}
},
"com.amazonaws.bedrock#StopEvaluationJob": {
@@ -13251,7 +13446,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -13305,7 +13500,7 @@
"min": 20,
"max": 1011
},
- "smithy.api#pattern": "(^[a-zA-Z0-9][a-zA-Z0-9\\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job|custom-model)/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12})$)|(:guardrail/[a-z0-9]+$)|(:automated-reasoning-policy/[a-zA-Z0-9]+(:[a-zA-Z0-9]+)?$)|(:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+$)|(:(provisioned-model|model-invocation-job|model-evaluation-job|evaluation-job|model-import-job|imported-model|async-invoke|provisioned-model-v2|provisioned-model-reservation|prompt-router)/[a-z0-9]{12}$)))"
+ "smithy.api#pattern": "(^[a-zA-Z0-9][a-zA-Z0-9\\-]*$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:custom-model/([a-z0-9-]{1,63}[.][a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?|imported)/[a-z0-9]{12}$)|(^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:([0-9]{12}|)((:(fine-tuning-job|model-customization-job)/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([a-z0-9-]{1,63}[.]){0,2}[a-z0-9-]{1,63}([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12})$)|(:guardrail/[a-z0-9]+$)|(:automated-reasoning-policy/[a-zA-Z0-9]+(:[a-zA-Z0-9]+)?$)|(:(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+$)|(:(provisioned-model|model-invocation-job|model-evaluation-job|evaluation-job|model-import-job|imported-model|async-invoke|provisioned-model-v2|provisioned-model-reservation|prompt-router|custom-model-deployment)/[a-z0-9]{12}$)))"
}
},
"com.amazonaws.bedrock#TaggingResource": {
@@ -13364,30 +13559,30 @@
"temperature": {
"target": "com.amazonaws.bedrock#Temperature",
"traits": {
- "smithy.api#documentation": "Controls the random-ness of text generated by the language model, influencing how \n much the model sticks to the most predictable next words versus exploring more \n surprising options. A lower temperature value (e.g. 0.2 or 0.3) makes model outputs \n more deterministic or predictable, while a higher temperature (e.g. 0.8 or 0.9) makes \n the outputs more creative or unpredictable.
"
+ "smithy.api#documentation": "Controls the random-ness of text generated by the language model, influencing how much the model sticks to the most predictable next words versus exploring more surprising options. A lower temperature value (e.g. 0.2 or 0.3) makes model outputs more deterministic or predictable, while a higher temperature (e.g. 0.8 or 0.9) makes the outputs more creative or unpredictable.
"
}
},
"topP": {
"target": "com.amazonaws.bedrock#TopP",
"traits": {
- "smithy.api#documentation": "A probability distribution threshold which controls what the model considers for \n the set of possible next tokens. The model will only consider the top p% of the \n probability distribution when generating the next token.
"
+ "smithy.api#documentation": "A probability distribution threshold which controls what the model considers for the set of possible next tokens. The model will only consider the top p% of the probability distribution when generating the next token.
"
}
},
"maxTokens": {
"target": "com.amazonaws.bedrock#MaxTokens",
"traits": {
- "smithy.api#documentation": "The maximum number of tokens to generate in the output text. Do not use the minimum of 0 \n or the maximum of 65536. The limit values described here are arbitrary values, for actual \n values consult the limits defined by your specific model.
"
+ "smithy.api#documentation": "The maximum number of tokens to generate in the output text. Do not use the minimum of 0 or the maximum of 65536. The limit values described here are arbitrary values, for actual values consult the limits defined by your specific model.
"
}
},
"stopSequences": {
"target": "com.amazonaws.bedrock#RAGStopSequences",
"traits": {
- "smithy.api#documentation": "A list of sequences of characters that, if generated, will cause the model to stop \n generating further tokens. Do not use a minimum length of 1 or a maximum length of 1000. \n The limit values described here are arbitrary values, for actual values consult the \n limits defined by your specific model.
"
+ "smithy.api#documentation": "A list of sequences of characters that, if generated, will cause the model to stop generating further tokens. Do not use a minimum length of 1 or a maximum length of 1000. The limit values described here are arbitrary values, for actual values consult the limits defined by your specific model.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The configuration details for text generation using a language model via the \n RetrieveAndGenerate function.
"
+ "smithy.api#documentation": "The configuration details for text generation using a language model via the RetrieveAndGenerate function.
"
}
},
"com.amazonaws.bedrock#TextPromptTemplate": {
@@ -13433,7 +13628,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The request contains more tags than can be associated with a resource (50 tags per resource). \n The maximum number of tags includes both existing tags and those included in your current request.
",
+ "smithy.api#documentation": "The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
",
"smithy.api#error": "client",
"smithy.api#httpError": 400
}
@@ -13550,7 +13745,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
",
+ "smithy.api#documentation": "Remove one or more tags from a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -13619,7 +13814,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates a guardrail with the values you specify.
\n \n - \n
Specify a name and optional description.
\n \n - \n
Specify messages for when the guardrail successfully blocks a prompt or a model response in the blockedInputMessaging and blockedOutputsMessaging fields.
\n \n - \n
Specify topics for the guardrail to deny in the topicPolicyConfig object. Each GuardrailTopicConfig object in the topicsConfig list pertains to one topic.
\n \n - \n
Give a name and description so that the guardrail can properly identify the topic.
\n \n - \n
Specify DENY in the type field.
\n \n - \n
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the examples list.
\n \n
\n \n - \n
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the contentPolicyConfig object. Each GuardrailContentFilterConfig object in the filtersConfig list pertains to a harmful category. For more information, see Content filters. For more information about the fields in a content filter, see GuardrailContentFilterConfig.
\n \n \n - \n
(Optional) For security, include the ARN of a KMS key in the kmsKeyId field.
\n \n
",
+ "smithy.api#documentation": "Updates a guardrail with the values you specify.
-
Specify a name and optional description.
-
Specify messages for when the guardrail successfully blocks a prompt or a model response in the blockedInputMessaging and blockedOutputsMessaging fields.
-
Specify topics for the guardrail to deny in the topicPolicyConfig object. Each GuardrailTopicConfig object in the topicsConfig list pertains to one topic.
-
Give a name and description so that the guardrail can properly identify the topic.
-
Specify DENY in the type field.
-
(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the examples list.
-
Specify filter strengths for the harmful categories defined in Amazon Bedrock in the contentPolicyConfig object. Each GuardrailContentFilterConfig object in the filtersConfig list pertains to a harmful category. For more information, see Content filters. For more information about the fields in a content filter, see GuardrailContentFilterConfig.
-
(Optional) For security, include the ARN of a KMS key in the kmsKeyId field.
",
"smithy.api#http": {
"code": 202,
"method": "PUT",
@@ -13634,7 +13829,7 @@
"guardrailIdentifier": {
"target": "com.amazonaws.bedrock#GuardrailIdentifier",
"traits": {
- "smithy.api#documentation": "The unique identifier of the guardrail. This can be an ID or the ARN.
",
+ "smithy.api#documentation": "The unique identifier of the guardrail. This can be an ID or the ARN.
",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
@@ -13685,7 +13880,7 @@
"crossRegionConfig": {
"target": "com.amazonaws.bedrock#GuardrailCrossRegionConfig",
"traits": {
- "smithy.api#documentation": "The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
\n For more information, see the Amazon Bedrock User Guide.
"
+ "smithy.api#documentation": "The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
For more information, see the Amazon Bedrock User Guide.
"
}
},
"blockedInputMessaging": {
@@ -13781,7 +13976,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates the configuration of an existing endpoint for a model from Amazon Bedrock\n Marketplace.
",
+ "smithy.api#documentation": "Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.
",
"smithy.api#http": {
"code": 200,
"method": "PATCH",
@@ -13803,14 +13998,14 @@
"endpointConfig": {
"target": "com.amazonaws.bedrock#EndpointConfig",
"traits": {
- "smithy.api#documentation": "The new configuration for the endpoint, including the number and type of instances to\n use.
",
+ "smithy.api#documentation": "The new configuration for the endpoint, including the number and type of instances to use.
",
"smithy.api#required": {}
}
},
"clientRequestToken": {
"target": "com.amazonaws.bedrock#IdempotencyToken",
"traits": {
- "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request. This token is listed as not required because Amazon Web Services SDKs\n automatically generate it for you and set this parameter. If you're not using the\n Amazon Web Services SDK or the CLI, you must provide this token or the\n action will fail.
",
+ "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is listed as not required because Amazon Web Services SDKs automatically generate it for you and set this parameter. If you're not using the Amazon Web Services SDK or the CLI, you must provide this token or the action will fail.
",
"smithy.api#idempotencyToken": {}
}
}
@@ -13889,7 +14084,7 @@
"desiredModelId": {
"target": "com.amazonaws.bedrock#ModelIdentifier",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the new model to associate with this Provisioned Throughput. You can't specify this field if this Provisioned Throughput is associated with a base model.
\n If this Provisioned Throughput is associated with a custom model, you can specify one of the following options:
\n "
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the new model to associate with this Provisioned Throughput. You can't specify this field if this Provisioned Throughput is associated with a base model.
If this Provisioned Throughput is associated with a custom model, you can specify one of the following options:
"
}
}
},
diff --git a/codegen/sdk-codegen/aws-models/connectcampaignsv2.json b/codegen/sdk-codegen/aws-models/connectcampaignsv2.json
index e6aa863c930..ba4ac1f13de 100644
--- a/codegen/sdk-codegen/aws-models/connectcampaignsv2.json
+++ b/codegen/sdk-codegen/aws-models/connectcampaignsv2.json
@@ -70,6 +70,9 @@
{
"target": "com.amazonaws.connectcampaignsv2#GetConnectInstanceConfig"
},
+ {
+ "target": "com.amazonaws.connectcampaignsv2#GetInstanceCommunicationLimits"
+ },
{
"target": "com.amazonaws.connectcampaignsv2#GetInstanceOnboardingJobStatus"
},
@@ -88,6 +91,9 @@
{
"target": "com.amazonaws.connectcampaignsv2#PutConnectInstanceIntegration"
},
+ {
+ "target": "com.amazonaws.connectcampaignsv2#PutInstanceCommunicationLimits"
+ },
{
"target": "com.amazonaws.connectcampaignsv2#PutOutboundRequestBatch"
},
@@ -1289,6 +1295,9 @@
"members": {
"allChannelSubtypes": {
"target": "com.amazonaws.connectcampaignsv2#CommunicationLimits"
+ },
+ "instanceLimitsHandling": {
+ "target": "com.amazonaws.connectcampaignsv2#InstanceLimitsHandling"
}
},
"traits": {
@@ -2563,6 +2572,65 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.connectcampaignsv2#GetInstanceCommunicationLimits": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.connectcampaignsv2#GetInstanceCommunicationLimitsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.connectcampaignsv2#GetInstanceCommunicationLimitsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.connectcampaignsv2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.connectcampaignsv2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.connectcampaignsv2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.connectcampaignsv2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Get the instance communication limits.",
+ "smithy.api#http": {
+ "uri": "/v2/connect-instance/{connectInstanceId}/communication-limits",
+ "method": "GET"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.connectcampaignsv2#GetInstanceCommunicationLimitsRequest": {
+ "type": "structure",
+ "members": {
+ "connectInstanceId": {
+ "target": "com.amazonaws.connectcampaignsv2#InstanceId",
+ "traits": {
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request for GetInstanceCommunicationLimits API.",
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.connectcampaignsv2#GetInstanceCommunicationLimitsResponse": {
+ "type": "structure",
+ "members": {
+ "communicationLimitsConfig": {
+ "target": "com.amazonaws.connectcampaignsv2#InstanceCommunicationLimitsConfig"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The response for GetInstanceCommunicationLimits API.",
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.connectcampaignsv2#GetInstanceOnboardingJobStatus": {
"type": "operation",
"input": {
@@ -2622,6 +2690,17 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.connectcampaignsv2#InstanceCommunicationLimitsConfig": {
+ "type": "structure",
+ "members": {
+ "allChannelSubtypes": {
+ "target": "com.amazonaws.connectcampaignsv2#CommunicationLimits"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Instance Communication limits config"
+ }
+ },
"com.amazonaws.connectcampaignsv2#InstanceConfig": {
"type": "structure",
"members": {
@@ -2692,6 +2771,22 @@
]
}
},
+ "com.amazonaws.connectcampaignsv2#InstanceLimitsHandling": {
+ "type": "string",
+ "traits": {
+ "smithy.api#documentation": "Instance limits handling",
+ "smithy.api#enum": [
+ {
+ "value": "OPT_IN",
+ "name": "OPT_IN"
+ },
+ {
+ "value": "OPT_OUT",
+ "name": "OPT_OUT"
+ }
+ ]
+ }
+ },
"com.amazonaws.connectcampaignsv2#InstanceOnboardingJobFailureCode": {
"type": "string",
"traits": {
@@ -3096,8 +3191,7 @@
"smithy.api#http": {
"uri": "/v2/tags/{arn}",
"method": "GET"
- },
- "smithy.api#readonly": {}
+ }
}
},
"com.amazonaws.connectcampaignsv2#ListTagsForResourceRequest": {
@@ -3488,6 +3582,62 @@
"smithy.api#input": {}
}
},
+ "com.amazonaws.connectcampaignsv2#PutInstanceCommunicationLimits": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.connectcampaignsv2#PutInstanceCommunicationLimitsRequest"
+ },
+ "output": {
+ "target": "smithy.api#Unit"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.connectcampaignsv2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.connectcampaignsv2#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.connectcampaignsv2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.connectcampaignsv2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.connectcampaignsv2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Put the instance communication limits. This API is idempotent.",
+ "smithy.api#http": {
+ "uri": "/v2/connect-instance/{connectInstanceId}/communication-limits",
+ "method": "PUT"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.connectcampaignsv2#PutInstanceCommunicationLimitsRequest": {
+ "type": "structure",
+ "members": {
+ "connectInstanceId": {
+ "target": "com.amazonaws.connectcampaignsv2#InstanceId",
+ "traits": {
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "communicationLimitsConfig": {
+ "target": "com.amazonaws.connectcampaignsv2#InstanceCommunicationLimitsConfig",
+ "traits": {
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request for PutInstanceCommunicationLimits API.",
+ "smithy.api#input": {}
+ }
+ },
"com.amazonaws.connectcampaignsv2#PutOutboundRequestBatch": {
"type": "operation",
"input": {
diff --git a/codegen/sdk-codegen/aws-models/controlcatalog.json b/codegen/sdk-codegen/aws-models/controlcatalog.json
index e29b1fb745f..b27abeff5f2 100644
--- a/codegen/sdk-codegen/aws-models/controlcatalog.json
+++ b/codegen/sdk-codegen/aws-models/controlcatalog.json
@@ -64,13 +64,25 @@
"smithy.api#pattern": "^arn:(aws(?:[-a-z]*)?):controlcatalog:::common-control/[0-9a-z]+$"
}
},
+ "com.amazonaws.controlcatalog#CommonControlArnFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.controlcatalog#CommonControlArn"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1
+ }
+ }
+ },
"com.amazonaws.controlcatalog#CommonControlFilter": {
"type": "structure",
"members": {
"Objectives": {
"target": "com.amazonaws.controlcatalog#ObjectiveResourceFilterList",
"traits": {
- "smithy.api#documentation": "The objective that's used as filter criteria.
\n You can use this parameter to specify one objective ARN at a time. Passing multiple ARNs\n in the CommonControlFilter isn’t currently supported.
"
+ "smithy.api#documentation": "The objective that's used as filter criteria.
You can use this parameter to specify one objective ARN at a time. Passing multiple ARNs in the CommonControlFilter isn’t supported.
"
}
}
},
@@ -78,6 +90,21 @@
"smithy.api#documentation": "An optional filter that narrows the results to a specific objective.
"
}
},
+ "com.amazonaws.controlcatalog#CommonControlMappingDetails": {
+ "type": "structure",
+ "members": {
+ "CommonControlArn": {
+ "target": "com.amazonaws.controlcatalog#CommonControlArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) that identifies the common control in the mapping.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A structure that contains details about a common control mapping. In particular, it returns the Amazon Resource Name (ARN) of the common control.
"
+ }
+ },
"com.amazonaws.controlcatalog#CommonControlResource": {
"type": "resource",
"identifiers": {
@@ -163,6 +190,18 @@
"target": "com.amazonaws.controlcatalog#CommonControlSummary"
}
},
+ "com.amazonaws.controlcatalog#ControlAlias": {
+ "type": "string",
+ "traits": {
+ "smithy.api#pattern": "^[a-zA-Z0-9](?:[a-zA-Z0-9_.-]{0,254}[a-zA-Z0-9])$"
+ }
+ },
+ "com.amazonaws.controlcatalog#ControlAliases": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.controlcatalog#ControlAlias"
+ }
+ },
"com.amazonaws.controlcatalog#ControlArn": {
"type": "string",
"traits": {
@@ -173,6 +212,18 @@
"smithy.api#pattern": "^arn:(aws(?:[-a-z]*)?):(controlcatalog|controltower):[a-zA-Z0-9-]*::control/[0-9a-zA-Z_\\-]+$"
}
},
+ "com.amazonaws.controlcatalog#ControlArnFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.controlcatalog#ControlArn"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1
+ }
+ }
+ },
"com.amazonaws.controlcatalog#ControlBehavior": {
"type": "enum",
"members": {
@@ -199,6 +250,11 @@
"com.amazonaws.controlcatalog#ControlCatalog": {
"type": "service",
"version": "2018-05-10",
+ "operations": [
+ {
+ "target": "com.amazonaws.controlcatalog#ListControlMappings"
+ }
+ ],
"resources": [
{
"target": "com.amazonaws.controlcatalog#CommonControlResource"
@@ -249,7 +305,7 @@
"X-Amzn-Trace-Id"
]
},
- "smithy.api#documentation": "Welcome to the Amazon Web Services Control Catalog API reference. This guide is for \n developers who need detailed information about how to programmatically identify and filter \n the common controls and related metadata that are available to Amazon Web Services customers. This API reference provides \n descriptions, syntax, and usage examples for each of the actions and data types that are \n supported by Amazon Web Services Control Catalog.
\n Use the following links to get started with the Amazon Web Services Control Catalog API:
\n \n - \n
\n Actions: An\n alphabetical list of all Control Catalog API operations.
\n \n - \n
\n Data types: An\n alphabetical list of all Control Catalog data types.
\n \n - \n
\n Common\n parameters: Parameters that all operations can use.
\n \n - \n
\n Common errors:\n Client and server errors that all operations can return.
\n \n
",
+ "smithy.api#documentation": "Welcome to the Control Catalog API reference. This guide is for developers who need detailed information about how to programmatically identify and filter the common controls and related metadata that are available to Amazon Web Services customers. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types that are supported by Control Catalog.
Use the following links to get started with the Control Catalog API:
-
Actions: An alphabetical list of all Control Catalog API operations.
-
Data types: An alphabetical list of all Control Catalog data types.
-
Common parameters: Parameters that all operations can use.
-
Common errors: Client and server errors that all operations can return.
",
"smithy.api#title": "AWS Control Catalog",
"smithy.rules#endpointRuleSet": {
"version": "1.0",
@@ -917,19 +973,94 @@
}
}
},
+ "com.amazonaws.controlcatalog#ControlFilter": {
+ "type": "structure",
+ "members": {
+ "Implementations": {
+ "target": "com.amazonaws.controlcatalog#ImplementationFilter",
+ "traits": {
+ "smithy.api#documentation": "A filter that narrows the results to controls with specific implementation types or identifiers. This field allows you to find controls that are implemented by specific Amazon Web Services services or with specific service identifiers.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A structure that defines filtering criteria for the ListControls operation. You can use this filter to narrow down the list of controls based on their implementation details.
"
+ }
+ },
+ "com.amazonaws.controlcatalog#ControlMapping": {
+ "type": "structure",
+ "members": {
+ "ControlArn": {
+ "target": "com.amazonaws.controlcatalog#ControlArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) that identifies the control in the mapping.
",
+ "smithy.api#required": {}
+ }
+ },
+ "MappingType": {
+ "target": "com.amazonaws.controlcatalog#MappingType",
+ "traits": {
+ "smithy.api#documentation": "The type of mapping relationship between the control and other entities. Indicates whether the mapping is to a framework or common control.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Mapping": {
+ "target": "com.amazonaws.controlcatalog#Mapping",
+ "traits": {
+ "smithy.api#documentation": "The details of the mapping relationship, containing either framework or common control information.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A structure that contains information about a control mapping, including the control ARN, mapping type, and mapping details.
"
+ }
+ },
+ "com.amazonaws.controlcatalog#ControlMappingFilter": {
+ "type": "structure",
+ "members": {
+ "ControlArns": {
+ "target": "com.amazonaws.controlcatalog#ControlArnFilterList",
+ "traits": {
+ "smithy.api#documentation": "A list of control ARNs to filter the mappings. When specified, only mappings associated with these controls are returned.
"
+ }
+ },
+ "CommonControlArns": {
+ "target": "com.amazonaws.controlcatalog#CommonControlArnFilterList",
+ "traits": {
+ "smithy.api#documentation": "A list of common control ARNs to filter the mappings. When specified, only mappings associated with these common controls are returned.
"
+ }
+ },
+ "MappingTypes": {
+ "target": "com.amazonaws.controlcatalog#MappingTypeFilterList",
+ "traits": {
+ "smithy.api#documentation": "A list of mapping types to filter the mappings. When specified, only mappings of these types are returned.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A structure that defines filtering criteria for the ListControlMappings operation. You can use this filter to narrow down the list of control mappings based on control ARNs, common control ARNs, or mapping types.
"
+ }
+ },
+ "com.amazonaws.controlcatalog#ControlMappings": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.controlcatalog#ControlMapping"
+ }
+ },
"com.amazonaws.controlcatalog#ControlParameter": {
"type": "structure",
"members": {
"Name": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The parameter name. This name is the parameter key when you call \n EnableControl\n or \n UpdateEnabledControl\n .
",
+ "smithy.api#documentation": "The parameter name. This name is the parameter key when you call EnableControl or UpdateEnabledControl .
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "Five types of control parameters are supported.
\n \n - \n
\n AllowedRegions: List of Amazon Web Services Regions exempted from the\n control. Each string is expected to be an Amazon Web Services Region code. This parameter is mandatory for the OU Region deny control, CT.MULTISERVICE.PV.1.
\n Example: [\"us-east-1\",\"us-west-2\"]\n
\n \n - \n
\n ExemptedActions: List of Amazon Web Services IAM actions exempted\n from the control. Each string is expected to be an IAM action.
\n Example:\n [\"logs:DescribeLogGroups\",\"logs:StartQuery\",\"logs:GetQueryResults\"]\n
\n \n - \n
\n ExemptedPrincipalArns: List of Amazon Web Services IAM principal ARNs\n exempted from the control. Each string is expected to be an IAM principal that follows\n the pattern ^arn:(aws|aws-us-gov):(iam|sts)::.+:.+$\n
\n Example:\n [\"arn:aws:iam::*:role/ReadOnly\",\"arn:aws:sts::*:assumed-role/ReadOnly/*\"]\n
\n \n - \n
\n ExemptedResourceArns: List of resource ARNs exempted\n from the control. Each string is expected to be a resource ARN.
\n Example: [\"arn:aws:s3:::my-bucket-name\"]\n
\n \n - \n
\n ExemptAssumeRoot: A parameter that lets you choose\n whether to exempt requests made with AssumeRoot from this control, for this\n OU. For member accounts, the AssumeRoot property is included in requests\n initiated by IAM centralized root access. This parameter applies only to the\n AWS-GR_RESTRICT_ROOT_USER control. If you add the parameter when enabling\n the control, the AssumeRoot exemption is allowed. If you omit the parameter,\n the AssumeRoot exception is not permitted. The parameter does not accept\n False as a value.
\n \n Example: Enabling the control and allowing AssumeRoot\n \n
\n \n {\n \"controlIdentifier\": \"arn:aws:controlcatalog:::control/5kvme4m5d2b4d7if2fs5yg2ui\",\n \"parameters\": [\n {\n \"key\": \"ExemptAssumeRoot\",\n \"value\": true\n }\n ],\n \"targetIdentifier\": \"arn:aws:organizations::8633900XXXXX:ou/o-6jmn81636m/ou-qsah-jtiihcla\"\n }\n
\n \n
"
+ "smithy.api#documentation": "Five types of control parameters are supported.
-
AllowedRegions: List of Amazon Web Services Regions exempted from the control. Each string is expected to be an Amazon Web Services Region code. This parameter is mandatory for the OU Region deny control, CT.MULTISERVICE.PV.1.
Example: [\"us-east-1\",\"us-west-2\"]
-
ExemptedActions: List of Amazon Web Services IAM actions exempted from the control. Each string is expected to be an IAM action.
Example: [\"logs:DescribeLogGroups\",\"logs:StartQuery\",\"logs:GetQueryResults\"]
-
ExemptedPrincipalArns: List of Amazon Web Services IAM principal ARNs exempted from the control. Each string is expected to be an IAM principal that follows the pattern ^arn:(aws|aws-us-gov):(iam|sts)::.+:.+$
Example: [\"arn:aws:iam::*:role/ReadOnly\",\"arn:aws:sts::*:assumed-role/ReadOnly/*\"]
-
ExemptedResourceArns: List of resource ARNs exempted from the control. Each string is expected to be a resource ARN.
Example: [\"arn:aws:s3:::my-bucket-name\"]
-
ExemptAssumeRoot: A parameter that lets you choose whether to exempt requests made with AssumeRoot from this control, for this OU. For member accounts, the AssumeRoot property is included in requests initiated by IAM centralized root access. This parameter applies only to the AWS-GR_RESTRICT_ROOT_USER control. If you add the parameter when enabling the control, the AssumeRoot exemption is allowed. If you omit the parameter, the AssumeRoot exception is not permitted. The parameter does not accept False as a value.
Example: Enabling the control and allowing AssumeRoot
{ \"controlIdentifier\": \"arn:aws:controlcatalog:::control/5kvme4m5d2b4d7if2fs5yg2ui\", \"parameters\": [ { \"key\": \"ExemptAssumeRoot\", \"value\": true } ], \"targetIdentifier\": \"arn:aws:organizations::8633900XXXXX:ou/o-6jmn81636m/ou-qsah-jtiihcla\" }
"
}
},
"com.amazonaws.controlcatalog#ControlParameters": {
@@ -1018,6 +1149,12 @@
"smithy.api#required": {}
}
},
+ "Aliases": {
+ "target": "com.amazonaws.controlcatalog#ControlAliases",
+ "traits": {
+ "smithy.api#documentation": "A list of alternative identifiers for the control. These are human-readable designators, such as SH.S3.1. Several aliases can refer to the same control across different Amazon Web Services services or compliance frameworks.
"
+ }
+ },
"Name": {
"target": "smithy.api#String",
"traits": {
@@ -1055,6 +1192,12 @@
"traits": {
"smithy.api#documentation": "A timestamp that notes the time when the control was released (start of its life) as a governance capability in Amazon Web Services.
"
}
+ },
+ "GovernedResources": {
+ "target": "com.amazonaws.controlcatalog#GovernedResources",
+ "traits": {
+ "smithy.api#documentation": "A list of Amazon Web Services resource types that are governed by this control. This information helps you understand which controls can govern certain types of resources, and conversely, which resources are affected when the control is implemented. The resources are represented as Amazon Web Services CloudFormation resource types. If GovernedResources cannot be represented by available CloudFormation resource types, it’s returned as an empty list.
"
+ }
}
},
"traits": {
@@ -1174,6 +1317,46 @@
"target": "com.amazonaws.controlcatalog#DomainSummary"
}
},
+ "com.amazonaws.controlcatalog#FrameworkItem": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 3,
+ "max": 250
+ }
+ }
+ },
+ "com.amazonaws.controlcatalog#FrameworkMappingDetails": {
+ "type": "structure",
+ "members": {
+ "Name": {
+ "target": "com.amazonaws.controlcatalog#FrameworkName",
+ "traits": {
+ "smithy.api#documentation": "The name of the compliance framework that the control maps to.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Item": {
+ "target": "com.amazonaws.controlcatalog#FrameworkItem",
+ "traits": {
+ "smithy.api#documentation": "The specific item or requirement within the framework that the control maps to.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A structure that contains details about a framework mapping, including the framework name and specific item within the framework that the control maps to.
"
+ }
+ },
+ "com.amazonaws.controlcatalog#FrameworkName": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 3,
+ "max": 250
+ }
+ }
+ },
"com.amazonaws.controlcatalog#GetControl": {
"type": "operation",
"input": {
@@ -1200,7 +1383,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns details about a specific control, most notably a list of Amazon Web Services Regions where this control is supported. Input a value for the ControlArn parameter, in ARN form. GetControl accepts controltower or controlcatalog control ARNs as input. Returns a controlcatalog ARN format.
\n In the API response, controls that have the value GLOBAL in the Scope field do not show the DeployableRegions field, because it does not apply. Controls that have the value REGIONAL in the Scope field return a value for the DeployableRegions field, as shown in the example.
",
+ "smithy.api#documentation": "Returns details about a specific control, most notably a list of Amazon Web Services Regions where this control is supported. Input a value for the ControlArn parameter, in ARN form. GetControl accepts controltower or controlcatalog control ARNs as input. Returns a controlcatalog ARN format.
In the API response, controls that have the value GLOBAL in the Scope field do not show the DeployableRegions field, because it does not apply. Controls that have the value REGIONAL in the Scope field return a value for the DeployableRegions field, as shown in the example.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1215,7 +1398,7 @@
"ControlArn": {
"target": "com.amazonaws.controlcatalog#ControlArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the control. It has one of the following formats:
\n \n Global format\n
\n \n arn:{PARTITION}:controlcatalog:::control/{CONTROL_CATALOG_OPAQUE_ID}\n
\n \n Or Regional format\n
\n \n arn:{PARTITION}:controltower:{REGION}::control/{CONTROL_TOWER_OPAQUE_ID}\n
\n Here is a more general pattern that covers Amazon Web Services Control Tower and Control Catalog ARNs:
\n \n ^arn:(aws(?:[-a-z]*)?):(controlcatalog|controltower):[a-zA-Z0-9-]*::control/[0-9a-zA-Z_\\\\-]+$\n
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the control. It has one of the following formats:
Global format
arn:{PARTITION}:controlcatalog:::control/{CONTROL_CATALOG_OPAQUE_ID}
Or Regional format
arn:{PARTITION}:controltower:{REGION}::control/{CONTROL_TOWER_OPAQUE_ID}
Here is a more general pattern that covers Amazon Web Services Control Tower and Control Catalog ARNs:
^arn:(aws(?:[-a-z]*)?):(controlcatalog|controltower):[a-zA-Z0-9-]*::control/[0-9a-zA-Z_\\\\-]+$
",
"smithy.api#required": {}
}
}
@@ -1234,6 +1417,12 @@
"smithy.api#required": {}
}
},
+ "Aliases": {
+ "target": "com.amazonaws.controlcatalog#ControlAliases",
+ "traits": {
+ "smithy.api#documentation": "A list of alternative identifiers for the control. These are human-readable designators, such as SH.S3.1. Several aliases can refer to the same control across different Amazon Web Services services or compliance frameworks.
"
+ }
+ },
"Name": {
"target": "smithy.api#String",
"traits": {
@@ -1251,7 +1440,7 @@
"Behavior": {
"target": "com.amazonaws.controlcatalog#ControlBehavior",
"traits": {
- "smithy.api#documentation": "A term that identifies the control's functional behavior. One of Preventive, Detective, Proactive\n
",
+ "smithy.api#documentation": "A term that identifies the control's functional behavior. One of Preventive, Detective, Proactive
",
"smithy.api#required": {}
}
},
@@ -1276,7 +1465,7 @@
"Parameters": {
"target": "com.amazonaws.controlcatalog#ControlParameters",
"traits": {
- "smithy.api#documentation": "Returns an array of ControlParameter objects that specify the parameters a control supports. An empty list is returned for controls that don’t support parameters.\n
"
+ "smithy.api#documentation": "Returns an array of ControlParameter objects that specify the parameters a control supports. An empty list is returned for controls that don’t support parameters.
"
}
},
"CreateTime": {
@@ -1284,12 +1473,30 @@
"traits": {
"smithy.api#documentation": "A timestamp that notes the time when the control was released (start of its life) as a governance capability in Amazon Web Services.
"
}
+ },
+ "GovernedResources": {
+ "target": "com.amazonaws.controlcatalog#GovernedResources",
+ "traits": {
+ "smithy.api#documentation": "A list of Amazon Web Services resource types that are governed by this control. This information helps you understand which controls can govern certain types of resources, and conversely, which resources are affected when the control is implemented. The resources are represented as Amazon Web Services CloudFormation resource types. If GovernedResources cannot be represented by available CloudFormation resource types, it’s returned as an empty list.
"
+ }
}
},
"traits": {
"smithy.api#output": {}
}
},
+ "com.amazonaws.controlcatalog#GovernedResource": {
+ "type": "string",
+ "traits": {
+ "smithy.api#pattern": "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$"
+ }
+ },
+ "com.amazonaws.controlcatalog#GovernedResources": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.controlcatalog#GovernedResource"
+ }
+ },
"com.amazonaws.controlcatalog#ImplementationDetails": {
"type": "structure",
"members": {
@@ -1308,7 +1515,27 @@
}
},
"traits": {
- "smithy.api#documentation": "An object that describes the implementation type for a control.
\n Our ImplementationDetails\n Type format has three required segments:
\n \n For example, AWS::Config::ConfigRule\n or\n AWS::SecurityHub::SecurityControl resources have the format with three required segments.
\n Our ImplementationDetails\n Type format has an optional fourth segment, which is present for applicable \n implementation types. The format is as follows:
\n \n For example, AWS::Organizations::Policy::SERVICE_CONTROL_POLICY\n or\n AWS::CloudFormation::Type::HOOK have the format with four segments.
\n Although the format is similar, the values for the Type field do not match any Amazon Web Services CloudFormation values.
"
+ "smithy.api#documentation": "An object that describes the implementation type for a control.
Our ImplementationDetails Type format has three required segments:
For example, AWS::Config::ConfigRule or AWS::SecurityHub::SecurityControl resources have the format with three required segments.
Our ImplementationDetails Type format has an optional fourth segment, which is present for applicable implementation types. The format is as follows:
For example, AWS::Organizations::Policy::SERVICE_CONTROL_POLICY or AWS::CloudFormation::Type::HOOK have the format with four segments.
Although the format is similar, the values for the Type field do not match any Amazon Web Services CloudFormation values.
"
+ }
+ },
+ "com.amazonaws.controlcatalog#ImplementationFilter": {
+ "type": "structure",
+ "members": {
+ "Types": {
+ "target": "com.amazonaws.controlcatalog#ImplementationTypeFilterList",
+ "traits": {
+ "smithy.api#documentation": "A list of implementation types that can serve as filters. For example, you can filter for controls implemented as Amazon Web Services Config Rules by specifying AWS::Config::ConfigRule as a type.
"
+ }
+ },
+ "Identifiers": {
+ "target": "com.amazonaws.controlcatalog#ImplementationIdentifierFilterList",
+ "traits": {
+ "smithy.api#documentation": "A list of service-specific identifiers that can serve as filters. For example, you can filter for controls with specific Amazon Web Services Config Rule IDs or Security Hub Control IDs.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A structure that defines filtering criteria for control implementations. You can use this filter to find controls that are implemented by specific Amazon Web Services services or with specific service identifiers.
"
}
},
"com.amazonaws.controlcatalog#ImplementationIdentifier": {
@@ -1318,7 +1545,19 @@
"min": 1,
"max": 256
},
- "smithy.api#pattern": "^[a-z0-9-]+$"
+ "smithy.api#pattern": "^[a-zA-Z0-9_\\.-]+$"
+ }
+ },
+ "com.amazonaws.controlcatalog#ImplementationIdentifierFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.controlcatalog#ImplementationIdentifier"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1
+ }
}
},
"com.amazonaws.controlcatalog#ImplementationSummary": {
@@ -1352,6 +1591,18 @@
"smithy.api#pattern": "^[A-Za-z0-9]+(::[A-Za-z0-9_]+){2,3}$"
}
},
+ "com.amazonaws.controlcatalog#ImplementationTypeFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.controlcatalog#ImplementationType"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1
+ }
+ }
+ },
"com.amazonaws.controlcatalog#InternalServerException": {
"type": "structure",
"members": {
@@ -1389,7 +1640,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a paginated list of common controls from the Amazon Web Services Control\n Catalog.
\n You can apply an optional filter to see common controls that have a specific objective. If\n you don’t provide a filter, the operation returns all common controls.
",
+ "smithy.api#documentation": "Returns a paginated list of common controls from the Amazon Web Services Control Catalog.
You can apply an optional filter to see common controls that have a specific objective. If you don’t provide a filter, the operation returns all common controls.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1424,7 +1675,7 @@
"CommonControlFilter": {
"target": "com.amazonaws.controlcatalog#CommonControlFilter",
"traits": {
- "smithy.api#documentation": "An optional filter that narrows the results to a specific objective.
\n This filter allows you to specify one objective ARN at a time. Passing multiple ARNs in\n the CommonControlFilter isn’t currently supported.
"
+ "smithy.api#documentation": "An optional filter that narrows the results to a specific objective.
This filter allows you to specify one objective ARN at a time. Passing multiple ARNs in the CommonControlFilter isn’t supported.
"
}
}
},
@@ -1453,6 +1704,93 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.controlcatalog#ListControlMappings": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.controlcatalog#ListControlMappingsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.controlcatalog#ListControlMappingsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.controlcatalog#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.controlcatalog#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.controlcatalog#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.controlcatalog#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns a paginated list of control mappings from the Control Catalog. Control mappings show relationships between controls and other entities, such as common controls or compliance frameworks.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/list-control-mappings"
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "pageSize": "MaxResults",
+ "items": "ControlMappings"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.controlcatalog#ListControlMappingsRequest": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.controlcatalog#PaginationToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token that's used to fetch the next set of results.
",
+ "smithy.api#httpQuery": "nextToken"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.controlcatalog#MaxListControlMappingsResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results on a page or for an API request call.
",
+ "smithy.api#httpQuery": "maxResults"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.controlcatalog#ControlMappingFilter",
+ "traits": {
+ "smithy.api#documentation": "An optional filter that narrows the results to specific control mappings based on control ARNs, common control ARNs, or mapping types.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.controlcatalog#ListControlMappingsResponse": {
+ "type": "structure",
+ "members": {
+ "ControlMappings": {
+ "target": "com.amazonaws.controlcatalog#ControlMappings",
+ "traits": {
+ "smithy.api#documentation": "The list of control mappings that the ListControlMappings API returns.
",
+ "smithy.api#required": {}
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.controlcatalog#PaginationToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token that's used to fetch the next set of results.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.controlcatalog#ListControls": {
"type": "operation",
"input": {
@@ -1476,7 +1814,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a paginated list of all available controls in the Amazon Web Services Control Catalog library. Allows you to discover available controls. The list of controls is given as structures of type controlSummary. The ARN is returned in the global controlcatalog format, as shown in the examples.
",
+ "smithy.api#documentation": "Returns a paginated list of all available controls in the Control Catalog library. Allows you to discover available controls. The list of controls is given as structures of type controlSummary. The ARN is returned in the global controlcatalog format, as shown in the examples.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1507,6 +1845,12 @@
"smithy.api#documentation": "The maximum number of results on a page or for an API request call.
",
"smithy.api#httpQuery": "maxResults"
}
+ },
+ "Filter": {
+ "target": "com.amazonaws.controlcatalog#ControlFilter",
+ "traits": {
+ "smithy.api#documentation": "An optional filter that narrows the results to controls with specific implementation types or identifiers. If you don't provide a filter, the operation returns all available controls.
"
+ }
}
},
"traits": {
@@ -1557,7 +1901,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a paginated list of domains from the Amazon Web Services Control Catalog.
",
+ "smithy.api#documentation": "Returns a paginated list of domains from the Control Catalog.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1638,7 +1982,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a paginated list of objectives from the Amazon Web Services Control Catalog.
\n You can apply an optional filter to see the objectives that belong to a specific domain.\n If you don’t provide a filter, the operation returns all objectives.
",
+ "smithy.api#documentation": "Returns a paginated list of objectives from the Control Catalog.
You can apply an optional filter to see the objectives that belong to a specific domain. If you don’t provide a filter, the operation returns all objectives.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1673,7 +2017,7 @@
"ObjectiveFilter": {
"target": "com.amazonaws.controlcatalog#ObjectiveFilter",
"traits": {
- "smithy.api#documentation": "An optional filter that narrows the results to a specific domain.
\n This filter allows you to specify one domain ARN at a time. \n Passing multiple ARNs in the ObjectiveFilter isn’t currently supported.
"
+ "smithy.api#documentation": "An optional filter that narrows the results to a specific domain.
This filter allows you to specify one domain ARN at a time. Passing multiple ARNs in the ObjectiveFilter isn’t supported.
"
}
}
},
@@ -1702,6 +2046,55 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.controlcatalog#Mapping": {
+ "type": "union",
+ "members": {
+ "Framework": {
+ "target": "com.amazonaws.controlcatalog#FrameworkMappingDetails",
+ "traits": {
+ "smithy.api#documentation": "The framework mapping details when the mapping type relates to a compliance framework.
"
+ }
+ },
+ "CommonControl": {
+ "target": "com.amazonaws.controlcatalog#CommonControlMappingDetails",
+ "traits": {
+ "smithy.api#documentation": "The common control mapping details when the mapping type relates to a common control.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A structure that contains the details of a mapping relationship, which can be either to a framework or to a common control.
"
+ }
+ },
+ "com.amazonaws.controlcatalog#MappingType": {
+ "type": "enum",
+ "members": {
+ "FRAMEWORK": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FRAMEWORK"
+ }
+ },
+ "COMMON_CONTROL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "COMMON_CONTROL"
+ }
+ }
+ }
+ },
+ "com.amazonaws.controlcatalog#MappingTypeFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.controlcatalog#MappingType"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1
+ }
+ }
+ },
"com.amazonaws.controlcatalog#MaxListCommonControlsResults": {
"type": "integer",
"traits": {
@@ -1711,6 +2104,15 @@
}
}
},
+ "com.amazonaws.controlcatalog#MaxListControlMappingsResults": {
+ "type": "integer",
+ "traits": {
+ "smithy.api#range": {
+ "min": 1,
+ "max": 1000
+ }
+ }
+ },
"com.amazonaws.controlcatalog#MaxListControlsResults": {
"type": "integer",
"traits": {
@@ -1754,7 +2156,7 @@
"Domains": {
"target": "com.amazonaws.controlcatalog#DomainResourceFilterList",
"traits": {
- "smithy.api#documentation": "The domain that's used as filter criteria.
\n You can use this parameter to specify one domain ARN at a time. Passing multiple ARNs in\n the ObjectiveFilter isn’t currently supported.
"
+ "smithy.api#documentation": "The domain that's used as filter criteria.
You can use this parameter to specify one domain ARN at a time. Passing multiple ARNs in the ObjectiveFilter isn’t supported.
"
}
}
},
@@ -1880,7 +2282,7 @@
"Scope": {
"target": "com.amazonaws.controlcatalog#ControlScope",
"traits": {
- "smithy.api#documentation": "The coverage of the control, if deployed. Scope is an enumerated type, with value Regional, or Global. A control with Global scope is effective in all Amazon Web Services Regions, regardless of the Region from which it is enabled, or to which it is deployed. A control implemented by an SCP is usually Global in scope. A control with Regional scope has operations that are restricted specifically to the Region from which it is enabled and to which it is deployed. Controls implemented by Config rules and CloudFormation hooks usually are Regional in scope. Security Hub controls usually are Regional in scope.
",
+ "smithy.api#documentation": "The coverage of the control, if deployed. Scope is an enumerated type, with value Regional, or Global. A control with Global scope is effective in all Amazon Web Services Regions, regardless of the Region from which it is enabled, or to which it is deployed. A control implemented by an SCP is usually Global in scope. A control with Regional scope has operations that are restricted specifically to the Region from which it is enabled and to which it is deployed. Controls implemented by Config rules and CloudFormation hooks usually are Regional in scope. Security Hub controls usually are Regional in scope.
",
"smithy.api#required": {}
}
},
@@ -1892,7 +2294,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Returns information about the control, including the scope of the control, if enabled, and the Regions in which the control currently is available for deployment. For more information about scope, see Global services.
\n If you are applying controls through an Amazon Web Services Control Tower landing zone environment, remember that the values returned in the RegionConfiguration API operation are not related to the governed Regions in your landing zone. For example, if you are governing Regions A,B,and C while the control is available in Regions A, B, C, and D, you'd see a response with DeployableRegions of A, B, C, and D for a control with REGIONAL scope, even though you may not intend to deploy the control in Region D, because you do not govern it through your landing zone.
"
+ "smithy.api#documentation": "Returns information about the control, including the scope of the control, if enabled, and the Regions in which the control is available for deployment. For more information about scope, see Global services.
If you are applying controls through an Amazon Web Services Control Tower landing zone environment, remember that the values returned in the RegionConfiguration API operation are not related to the governed Regions in your landing zone. For example, if you are governing Regions A,B,and C while the control is available in Regions A, B, C, and D, you'd see a response with DeployableRegions of A, B, C, and D for a control with REGIONAL scope, even though you may not intend to deploy the control in Region D, because you do not govern it through your landing zone.
"
}
},
"com.amazonaws.controlcatalog#ResourceNotFoundException": {
diff --git a/codegen/sdk-codegen/aws-models/database-migration-service.json b/codegen/sdk-codegen/aws-models/database-migration-service.json
index fe25d69a97a..17ba4e22c5e 100644
--- a/codegen/sdk-codegen/aws-models/database-migration-service.json
+++ b/codegen/sdk-codegen/aws-models/database-migration-service.json
@@ -1771,7 +1771,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Starts the analysis of up to 20 source databases to recommend target engines for each\n source database. This is a batch version of StartRecommendations.
\n The result of analysis of each source database is reported individually in the\n response. Because the batch request can result in a combination of successful and\n unsuccessful actions, you should check for batch errors even when the call returns an\n HTTP status code of 200.
"
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Starts the analysis of up to 20 source databases to recommend target engines for each\n source database. This is a batch version of StartRecommendations.
\n The result of analysis of each source database is reported individually in the\n response. Because the batch request can result in a combination of successful and\n unsuccessful actions, you should check for batch errors even when the call returns an\n HTTP status code of 200.
"
}
},
"com.amazonaws.databasemigrationservice#BatchStartRecommendationsErrorEntry": {
@@ -2562,6 +2562,12 @@
"smithy.api#required": {}
}
},
+ "Virtual": {
+ "target": "com.amazonaws.databasemigrationservice#BooleanOptional",
+ "traits": {
+ "smithy.api#documentation": "Indicates whether the data provider is virtual.
"
+ }
+ },
"Settings": {
"target": "com.amazonaws.databasemigrationservice#DataProviderSettings",
"traits": {
@@ -3037,7 +3043,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a Fleet Advisor collector using the specified parameters.
"
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Creates a Fleet Advisor collector using the specified parameters.
"
}
},
"com.amazonaws.databasemigrationservice#CreateFleetAdvisorCollectorRequest": {
@@ -3173,7 +3179,6 @@
"output": {
"InstanceProfile": {
"SubnetGroupIdentifier": "public-subnets",
- "VpcIdentifier": "vpc-0a1b2c3d4e5f6g7h8",
"VpcSecurityGroups": [
"sg-0123456"
],
@@ -3882,7 +3887,7 @@
"ReplicationSubnetGroupDescription": {
"target": "com.amazonaws.databasemigrationservice#String",
"traits": {
- "smithy.api#documentation": "The description for the subnet group.
",
+ "smithy.api#documentation": "The description for the subnet group.\n
\n Constraints: This parameter Must not contain non-printable control characters.
",
"smithy.api#required": {}
}
},
@@ -4363,6 +4368,12 @@
"smithy.api#documentation": "The type of database engine for the data provider. Valid values include \"aurora\", \n \"aurora-postgresql\", \"mysql\", \"oracle\", \"postgres\", \n \"sqlserver\", redshift, mariadb, mongodb, db2, db2-zos and docdb. A value of \"aurora\" represents Amazon Aurora MySQL-Compatible Edition.
"
}
},
+ "Virtual": {
+ "target": "com.amazonaws.databasemigrationservice#BooleanOptional",
+ "traits": {
+ "smithy.api#documentation": "Indicates whether the data provider is virtual.
"
+ }
+ },
"Settings": {
"target": "com.amazonaws.databasemigrationservice#DataProviderSettings",
"traits": {
@@ -5166,7 +5177,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes the specified Fleet Advisor collector.
"
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Deletes the specified Fleet Advisor collector.
"
}
},
"com.amazonaws.databasemigrationservice#DeleteFleetAdvisorDatabases": {
@@ -5189,7 +5200,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes the specified Fleet Advisor collector databases.
"
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Deletes the specified Fleet Advisor collector databases.
"
}
},
"com.amazonaws.databasemigrationservice#DeleteFleetAdvisorDatabasesRequest": {
@@ -5255,7 +5266,6 @@
"output": {
"InstanceProfile": {
"SubnetGroupIdentifier": "public-subnets",
- "VpcIdentifier": "vpc-0a1b2c3d4e5f6g7h8",
"VpcSecurityGroups": [
"sg-0123456"
],
@@ -7084,7 +7094,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of the Fleet Advisor collectors in your account.
",
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Returns a list of the Fleet Advisor collectors in your account.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -7152,7 +7162,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of Fleet Advisor databases in your account.
",
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Returns a list of Fleet Advisor databases in your account.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -7220,7 +7230,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Provides descriptions of large-scale assessment (LSA) analyses produced by your Fleet\n Advisor collectors.
",
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Provides descriptions of large-scale assessment (LSA) analyses produced by your Fleet\n Advisor collectors.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -7282,7 +7292,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Provides descriptions of the schemas discovered by your Fleet Advisor\n collectors.
",
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Provides descriptions of the schemas discovered by your Fleet Advisor\n collectors.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -7302,7 +7312,7 @@
"MaxRecords": {
"target": "com.amazonaws.databasemigrationservice#IntegerOptional",
"traits": {
- "smithy.api#documentation": "Sets the maximum number of records returned in the response.
"
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Sets the maximum number of records returned in the response.
"
}
},
"NextToken": {
@@ -7350,7 +7360,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of schemas detected by Fleet Advisor Collectors in your account.
",
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Returns a list of schemas detected by Fleet Advisor Collectors in your account.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -7446,7 +7456,6 @@
"InstanceProfiles": [
{
"SubnetGroupIdentifier": "public-subnets",
- "VpcIdentifier": "vpc-0a1b2c3d4e5f6g7h8",
"PubliclyAccessible": true,
"KmsKeyArn": "arn:aws:kms:us-east-1:012345678901:key/01234567-89ab-cdef-0123-456789abcdef",
"InstanceProfileCreationTime": "2022-12-16T09:44:43.543246Z",
@@ -8320,7 +8329,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a paginated list of limitations for recommendations of target Amazon Web Services\n engines.
",
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Returns a paginated list of limitations for recommendations of target Amazon Web Services\n engines.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -8391,7 +8400,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a paginated list of target engine recommendations for your source\n databases.
",
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Returns a paginated list of target engine recommendations for your source\n databases.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -11257,6 +11266,18 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the certificate used for SSL connection.
"
}
+ },
+ "S3Path": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The path for the Amazon S3 bucket that the application uses for accessing the user-defined schema.
"
+ }
+ },
+ "S3AccessRoleArn": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The ARN for the role the application uses to access its Amazon S3 bucket.
"
+ }
}
},
"traits": {
@@ -11295,6 +11316,18 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the certificate used for SSL connection.
"
}
+ },
+ "S3Path": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The path for the Amazon S3 bucket that the application uses for accessing the user-defined schema.
"
+ }
+ },
+ "S3AccessRoleArn": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The ARN for the role the application uses to access its Amazon S3 bucket.
"
+ }
}
},
"traits": {
@@ -12149,6 +12182,18 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the certificate used for SSL connection.
"
}
+ },
+ "S3Path": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The path for the Amazon S3 bucket that the application uses for accessing the user-defined schema.
"
+ }
+ },
+ "S3AccessRoleArn": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The ARN for the role the application uses to access its Amazon S3 bucket.
"
+ }
}
},
"traits": {
@@ -12329,6 +12374,18 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the certificate used for SSL connection.
"
}
+ },
+ "S3Path": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The path for the Amazon S3 bucket that the application uses for accessing the user-defined schema.
"
+ }
+ },
+ "S3AccessRoleArn": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The ARN for the role the application uses to access its Amazon S3 bucket.
"
+ }
}
},
"traits": {
@@ -12703,6 +12760,12 @@
"smithy.api#documentation": "The type of database engine for the data provider. Valid values include \"aurora\", \n \"aurora-postgresql\", \"mysql\", \"oracle\", \"postgres\", \n \"sqlserver\", redshift, mariadb, mongodb, db2, db2-zos and docdb. A value of \"aurora\" represents Amazon Aurora MySQL-Compatible Edition.
"
}
},
+ "Virtual": {
+ "target": "com.amazonaws.databasemigrationservice#BooleanOptional",
+ "traits": {
+ "smithy.api#documentation": "Indicates whether the data provider is virtual.
"
+ }
+ },
"ExactSettings": {
"target": "com.amazonaws.databasemigrationservice#BooleanOptional",
"traits": {
@@ -13162,7 +13225,6 @@
"output": {
"InstanceProfile": {
"SubnetGroupIdentifier": "public-subnets",
- "VpcIdentifier": "vpc-0a1b2c3d4e5f6g7h8",
"VpcSecurityGroups": [
"sg-0123456"
],
@@ -14311,6 +14373,18 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the certificate used for SSL connection.
"
}
+ },
+ "S3Path": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The path for the Amazon S3 bucket that the application uses for accessing the user-defined schema.
"
+ }
+ },
+ "S3AccessRoleArn": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The ARN for the role the application uses to access its Amazon S3 bucket.
"
+ }
}
},
"traits": {
@@ -14465,6 +14539,18 @@
"traits": {
"smithy.api#documentation": "The ARN of the IAM role that provides access to the secret in Secrets Manager \n that contains the TDE password.
"
}
+ },
+ "S3Path": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The path for the Amazon S3 bucket that the application uses for accessing the user-defined schema.
"
+ }
+ },
+ "S3AccessRoleArn": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The ARN for the role the application uses to access its Amazon S3 bucket.
"
+ }
}
},
"traits": {
@@ -15156,6 +15242,18 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the certificate used for SSL connection.
"
}
+ },
+ "S3Path": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The path for the Amazon S3 bucket that the application uses for accessing the user-defined schema.
"
+ }
+ },
+ "S3AccessRoleArn": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The ARN for the role the application uses to access its Amazon S3 bucket.
"
+ }
}
},
"traits": {
@@ -15673,6 +15771,18 @@
"traits": {
"smithy.api#documentation": "The database name on the Amazon Redshift data provider.
"
}
+ },
+ "S3Path": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The path for the Amazon S3 bucket that the application uses for accessing the user-defined schema.
"
+ }
+ },
+ "S3AccessRoleArn": {
+ "target": "com.amazonaws.databasemigrationservice#String",
+ "traits": {
+ "smithy.api#documentation": "The ARN for the role the application uses to access its Amazon S3 bucket.
"
+ }
}
},
"traits": {
@@ -17477,7 +17587,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account.
"
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account.
"
}
},
"com.amazonaws.databasemigrationservice#RunFleetAdvisorLsaAnalysisResponse": {
@@ -17752,7 +17862,7 @@
"DatePartitionTimezone": {
"target": "com.amazonaws.databasemigrationservice#String",
"traits": {
- "smithy.api#documentation": "When creating an S3 target endpoint, set DatePartitionTimezone to convert\n the current UTC time into a specified time zone. The conversion occurs when a date\n partition folder is created and a CDC filename is generated. The time zone format is\n Area/Location. Use this parameter when DatePartitionedEnabled is set to\n true, as shown in the following example.
\n \n s3-settings='{\"DatePartitionEnabled\": true, \"DatePartitionSequence\": \"YYYYMMDDHH\",\n \"DatePartitionDelimiter\": \"SLASH\",\n \"DatePartitionTimezone\":\"Asia/Seoul\", \"BucketName\":\n \"dms-nattarat-test\"}'\n
"
+ "smithy.api#documentation": "When creating an S3 target endpoint, set DatePartitionTimezone to convert the current UTC time into a specified time zone. The conversion occurs when a date partition folder is created and a CDC filename is generated. The time zone format is Area/Location. Use this parameter when DatePartitionedEnabled is set to true, as shown in the following example:
\n \n s3-settings='{\"DatePartitionEnabled\": true, \"DatePartitionSequence\": \"YYYYMMDDHH\", \"DatePartitionDelimiter\": \"SLASH\", \"DatePartitionTimezone\":\"Asia/Seoul\", \"BucketName\": \"dms-nattarat-test\"}'\n
"
}
},
"AddTrailingPaddingCharacter": {
@@ -18753,7 +18863,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Starts the analysis of your source database to provide recommendations of target\n engines.
\n You can create recommendations for multiple source databases using BatchStartRecommendations.
"
+ "smithy.api#documentation": "\n \nEnd of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.\n
\n \n Starts the analysis of your source database to provide recommendations of target\n engines.
\n You can create recommendations for multiple source databases using BatchStartRecommendations.
"
}
},
"com.amazonaws.databasemigrationservice#StartRecommendationsRequest": {
@@ -19164,7 +19274,7 @@
"StartReplicationTaskType": {
"target": "com.amazonaws.databasemigrationservice#StartReplicationTaskTypeValue",
"traits": {
- "smithy.api#documentation": "The type of replication task to start.
\n When the migration type is full-load or full-load-and-cdc, the\n only valid value for the first run of the task is start-replication. This\n option will start the migration.
\n You can also use ReloadTables to reload specific tables that failed\n during migration instead of restarting the task.
\n The resume-processing option isn't applicable for a full-load task, because\n you can't resume partially loaded tables during the full load phase.
\n For a full-load-and-cdc task, DMS migrates table data, and then applies\n data changes that occur on the source. To load all the tables again, and start capturing\n source changes, use reload-target. Otherwise use\n resume-processing, to replicate the changes from the last stop\n position.
",
+ "smithy.api#documentation": "The type of replication task to start.
\n \n start-replication is the only valid action that can be used for the first time a task with the migration type of full-loadfull-load, full-load-and-cdc or cdc is run. Any other action used for the first time on a given task, such as resume-processing and reload-target will result in data errors.
\n You can also use ReloadTables to reload specific tables that failed during migration instead of restarting the task.
\n For a full-load task, the resume-processing option will reload any tables that were partially loaded or not yet loaded during the full load phase.
\n For a full-load-and-cdc task, DMS migrates table data, and then applies data changes that occur on the source. To load all the tables again, and start capturing source changes, use reload-target. Otherwise use resume-processing, to replicate the changes from the last stop position.
\n For a cdc only task, to start from a specific position, you must use start-replication and also specify the start position. Check the source endpoint DMS documentation for any limitations. For example, not all sources support starting from a time.
\n \n \n resume-processing is only available for previously executed tasks.
\n ",
"smithy.api#required": {}
}
},
diff --git a/codegen/sdk-codegen/aws-models/ecr.json b/codegen/sdk-codegen/aws-models/ecr.json
index 858a8fcb95c..e2705943b1c 100644
--- a/codegen/sdk-codegen/aws-models/ecr.json
+++ b/codegen/sdk-codegen/aws-models/ecr.json
@@ -2095,6 +2095,18 @@
"smithy.api#documentation": "The date and time the Amazon ECR container image was pushed.
"
}
},
+ "lastInUseAt": {
+ "target": "com.amazonaws.ecr#Date",
+ "traits": {
+ "smithy.api#documentation": "The most recent date and time a cluster was running the image.
"
+ }
+ },
+ "inUseCount": {
+ "target": "com.amazonaws.ecr#InUseCount",
+ "traits": {
+ "smithy.api#documentation": "The number of Amazon ECS or Amazon EKS clusters currently running the\n image.
"
+ }
+ },
"registry": {
"target": "com.amazonaws.ecr#RegistryId",
"traits": {
@@ -2645,7 +2657,7 @@
"upstreamRegistryUrl": {
"target": "com.amazonaws.ecr#Url",
"traits": {
- "smithy.api#documentation": "The registry URL of the upstream public registry to use as the source for the pull\n through cache rule. The following is the syntax to use for each supported upstream\n registry.
\n \n - \n
Amazon ECR (ecr) –\n dkr.ecr..amazonaws.com\n
\n \n - \n
Amazon ECR Public (ecr-public) – public.ecr.aws\n
\n \n - \n
Docker Hub (docker-hub) –\n registry-1.docker.io\n
\n \n - \n
GitHub Container Registry (github-container-registry) –\n ghcr.io\n
\n \n - \n
GitLab Container Registry (gitlab-container-registry) –\n registry.gitlab.com\n
\n \n - \n
Kubernetes (k8s) – registry.k8s.io\n
\n \n - \n
Microsoft Azure Container Registry (azure-container-registry) –\n .azurecr.io\n
\n \n - \n
Quay (quay) – quay.io\n
\n \n
",
+ "smithy.api#documentation": "The registry URL of the upstream public registry to use as the source for the pull\n through cache rule. The following is the syntax to use for each supported upstream\n registry.
\n \n - \n
Amazon ECR (ecr) –\n .dkr.ecr..amazonaws.com\n
\n \n - \n
Amazon ECR Public (ecr-public) – public.ecr.aws\n
\n \n - \n
Docker Hub (docker-hub) –\n registry-1.docker.io\n
\n \n - \n
GitHub Container Registry (github-container-registry) –\n ghcr.io\n
\n \n - \n
GitLab Container Registry (gitlab-container-registry) –\n registry.gitlab.com\n
\n \n - \n
Kubernetes (k8s) – registry.k8s.io\n
\n \n - \n
Microsoft Azure Container Registry (azure-container-registry) –\n .azurecr.io\n
\n \n - \n
Quay (quay) – quay.io\n
\n \n
",
"smithy.api#required": {}
}
},
@@ -3807,7 +3819,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns metadata about the images in a repository.
\n \n Beginning with Docker version 1.9, the Docker client compresses image layers\n before pushing them to a V2 Docker registry. The output of the docker\n images command shows the uncompressed image size, so it may return a\n larger image size than the image sizes returned by DescribeImages.
\n ",
+ "smithy.api#documentation": "Returns metadata about the images in a repository.
\n \n Starting with Docker version 1.9, the Docker client compresses image layers before\n pushing them to a V2 Docker registry. The output of the docker images\n command shows the uncompressed image size. Therefore, Docker might return a larger\n image than the image shown in the Amazon Web Services Management Console.
\n \n \n The new version of Amazon ECR Basic Scanning doesn't use the\n ImageDetail$imageScanFindingsSummary and\n ImageDetail$imageScanStatus\n attributes from the API response to return scan results.\n Use the DescribeImageScanFindings API instead. For more\n information about Amazon Web Services native basic scanning, see Scan images for software\n vulnerabilities in Amazon ECR.
\n ",
"smithy.api#paginated": {
"inputToken": "nextToken",
"outputToken": "nextToken",
@@ -4623,7 +4635,7 @@
"authorizationData": {
"target": "com.amazonaws.ecr#AuthorizationDataList",
"traits": {
- "smithy.api#documentation": "A list of authorization token data objects that correspond to the\n registryIds values in the request.
"
+ "smithy.api#documentation": "A list of authorization token data objects that correspond to the\n registryIds values in the request.
\n \n The size of the authorization token returned by Amazon ECR is not fixed. We recommend\n that you don't make assumptions about the maximum size.
\n "
}
}
},
@@ -4834,7 +4846,7 @@
"maxResults": {
"target": "com.amazonaws.ecr#LifecyclePreviewMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of repository results returned by\n GetLifecyclePolicyPreviewRequest in\u2028 paginated output. When this\n parameter is used, GetLifecyclePolicyPreviewRequest only returns\u2028\n maxResults results in a single page along with a\n nextToken\u2028 response element. The remaining results of the initial request\n can be seen by sending\u2028 another GetLifecyclePolicyPreviewRequest request\n with the returned nextToken\u2028 value. This value can be between\n 1 and 1000. If this\u2028 parameter is not used, then\n GetLifecyclePolicyPreviewRequest returns up to\u2028 100\n results and a nextToken value, if\u2028 applicable. This option cannot be used\n when you specify images with imageIds.
"
+ "smithy.api#documentation": "The maximum number of repository results returned by\n GetLifecyclePolicyPreviewRequest in\u2028 paginated output. When this\n parameter is used, GetLifecyclePolicyPreviewRequest only returns\u2028\n maxResults results in a single page along with a\n nextToken\u2028 response element. The remaining results of the initial request\n can be seen by sending\u2028 another GetLifecyclePolicyPreviewRequest request\n with the returned nextToken\u2028 value. This value can be between\n 1 and 100. If this\u2028 parameter is not used, then\n GetLifecyclePolicyPreviewRequest returns up to\u2028100\n results and a nextToken value, if\u2028 applicable. This option cannot be used\n when you specify images with imageIds.
"
}
},
"filter": {
@@ -5243,7 +5255,7 @@
"imageSizeInBytes": {
"target": "com.amazonaws.ecr#ImageSizeInBytes",
"traits": {
- "smithy.api#documentation": "The size, in bytes, of the image in the repository.
\n If the image is a manifest list, this will be the max size of all manifests in the\n list.
\n \n Starting with Docker version 1.9, the Docker client compresses image layers before\n pushing them to a V2 Docker registry. The output of the docker images\n command shows the uncompressed image size. Therefore, Docker might return a larger\n image than the image sizes returned by DescribeImages.
\n "
+ "smithy.api#documentation": "The size, in bytes, of the image in the repository.
\n If the image is a manifest list, this will be the max size of all manifests in the\n list.
\n \n Starting with Docker version 1.9, the Docker client compresses image layers before\n pushing them to a V2 Docker registry. The output of the docker images\n command shows the uncompressed image size. Therefore, Docker might return a larger\n image than the image shown in the Amazon Web Services Management Console.
\n "
}
},
"imagePushedAt": {
@@ -5701,6 +5713,14 @@
"target": "com.amazonaws.ecr#ImageTag"
}
},
+ "com.amazonaws.ecr#InUseCount": {
+ "type": "long",
+ "traits": {
+ "smithy.api#range": {
+ "min": 0
+ }
+ }
+ },
"com.amazonaws.ecr#InitiateLayerUpload": {
"type": "operation",
"input": {
@@ -7699,7 +7719,7 @@
"imageTagMutability": {
"target": "com.amazonaws.ecr#ImageTagMutability",
"traits": {
- "smithy.api#documentation": "The tag mutability setting for the repository. If this parameter is omitted, the\n default setting of MUTABLE will be used which will allow image tags to be overwritten.\n If IMMUTABLE is specified, all image tags within the repository will be immutable which\n will prevent them from being overwritten.
"
+ "smithy.api#documentation": "The tag mutability setting for the repository. If this parameter is omitted, the\n default setting of MUTABLE will be used which will allow image tags to be overwritten.\n If IMMUTABLE is specified, all image tags within the repository will be immutable which\n will prevent them from being overwritten.
"
}
},
"repositoryPolicy": {
diff --git a/codegen/sdk-codegen/aws-models/ecs.json b/codegen/sdk-codegen/aws-models/ecs.json
index a937e6738d1..8e290d0909a 100644
--- a/codegen/sdk-codegen/aws-models/ecs.json
+++ b/codegen/sdk-codegen/aws-models/ecs.json
@@ -6970,7 +6970,7 @@
}
},
"traits": {
- "smithy.api#documentation": "An object representing a container health check. Health check parameters that are\n\t\t\tspecified in a container definition override any Docker health checks that exist in the\n\t\t\tcontainer image (such as those specified in a parent image or from the image's\n\t\t\tDockerfile). This configuration maps to the HEALTHCHECK parameter of docker\n\t\t\trun.
\n \n The Amazon ECS container agent only monitors and reports on the health checks specified\n\t\t\t\tin the task definition. Amazon ECS does not monitor Docker health checks that are\n\t\t\t\tembedded in a container image and not specified in the container definition. Health\n\t\t\t\tcheck parameters that are specified in a container definition override any Docker\n\t\t\t\thealth checks that exist in the container image.
\n \n You can view the health status of both individual containers and a task with the\n\t\t\tDescribeTasks API operation or when viewing the task details in the console.
\n The health check is designed to make sure that your containers survive agent restarts,\n\t\t\tupgrades, or temporary unavailability.
\n Amazon ECS performs health checks on containers with the default that launched the\n\t\t\tcontainer instance or the task.
\n The following describes the possible healthStatus values for a\n\t\t\tcontainer:
\n \n - \n
\n HEALTHY-The container health check has passed\n\t\t\t\t\tsuccessfully.
\n \n - \n
\n UNHEALTHY-The container health check has failed.
\n \n - \n
\n UNKNOWN-The container health check is being evaluated,\n\t\t\t\t\tthere's no container health check defined, or Amazon ECS doesn't have the health\n\t\t\t\t\tstatus of the container.
\n \n
\n The following describes the possible healthStatus values based on the\n\t\t\tcontainer health checker status of essential containers in the task with the following\n\t\t\tpriority order (high to low):
\n \n - \n
\n UNHEALTHY-One or more essential containers have failed\n\t\t\t\t\ttheir health check.
\n \n - \n
\n UNKNOWN-Any essential container running within the task is\n\t\t\t\t\tin an UNKNOWN state and no other essential containers have an\n\t\t\t\t\t\tUNHEALTHY state.
\n \n - \n
\n HEALTHY-All essential containers within the task have\n\t\t\t\t\tpassed their health checks.
\n \n
\n Consider the following task health example with 2 containers.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tUNKNOWN, the task health is UNHEALTHY.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tHEALTHY, the task health is UNHEALTHY.
\n \n - \n
If Container1 is HEALTHY and Container2 is UNKNOWN,\n\t\t\t\t\tthe task health is UNKNOWN.
\n \n - \n
If Container1 is HEALTHY and Container2 is HEALTHY,\n\t\t\t\t\tthe task health is HEALTHY.
\n \n
\n Consider the following task health example with 3 containers.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tUNKNOWN, and Container3 is UNKNOWN, the task health is\n\t\t\t\t\t\tUNHEALTHY.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tUNKNOWN, and Container3 is HEALTHY, the task health is\n\t\t\t\t\t\tUNHEALTHY.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tHEALTHY, and Container3 is HEALTHY, the task health is\n\t\t\t\t\t\tUNHEALTHY.
\n \n - \n
If Container1 is HEALTHY and Container2 is UNKNOWN,\n\t\t\t\t\tand Container3 is HEALTHY, the task health is\n\t\t\t\t\tUNKNOWN.
\n \n - \n
If Container1 is HEALTHY and Container2 is UNKNOWN,\n\t\t\t\t\tand Container3 is UNKNOWN, the task health is\n\t\t\t\t\tUNKNOWN.
\n \n - \n
If Container1 is HEALTHY and Container2 is HEALTHY,\n\t\t\t\t\tand Container3 is HEALTHY, the task health is\n\t\t\t\t\tHEALTHY.
\n \n
\n If a task is run manually, and not as part of a service, the task will continue its\n\t\t\tlifecycle regardless of its health status. For tasks that are part of a service, if the\n\t\t\ttask reports as unhealthy then the task will be stopped and the service scheduler will\n\t\t\treplace it.
\n The following are notes about container health check support:
\n \n - \n
If the Amazon ECS container agent becomes disconnected from the Amazon ECS service, this\n\t\t\t\t\twon't cause a container to transition to an UNHEALTHY status. This\n\t\t\t\t\tis by design, to ensure that containers remain running during agent restarts or\n\t\t\t\t\ttemporary unavailability. The health check status is the \"last heard from\"\n\t\t\t\t\tresponse from the Amazon ECS agent, so if the container was considered\n\t\t\t\t\t\tHEALTHY prior to the disconnect, that status will remain until\n\t\t\t\t\tthe agent reconnects and another health check occurs. There are no assumptions\n\t\t\t\t\tmade about the status of the container health checks.
\n \n - \n
Container health checks require version 1.17.0 or greater of the\n\t\t\t\t\tAmazon ECS container agent. For more information, see Updating the\n\t\t\t\t\t\tAmazon ECS container agent.
\n \n - \n
Container health checks are supported for Fargate tasks if\n\t\t\t\t\tyou're using platform version 1.1.0 or greater. For more\n\t\t\t\t\tinformation, see Fargate\n\t\t\t\t\t\tplatform versions.
\n \n - \n
Container health checks aren't supported for tasks that are part of a service\n\t\t\t\t\tthat's configured to use a Classic Load Balancer.
\n \n
\n For an example of how to specify a task definition with multiple containers where\n\t\t\tcontainer dependency is specified, see Container dependency in the Amazon Elastic Container Service Developer Guide.
"
+ "smithy.api#documentation": "An object representing a container health check. Health check parameters that are\n\t\t\tspecified in a container definition override any Docker health checks that exist in the\n\t\t\tcontainer image (such as those specified in a parent image or from the image's\n\t\t\tDockerfile). This configuration maps to the HEALTHCHECK parameter of docker\n\t\t\trun.
\n \n The Amazon ECS container agent only monitors and reports on the health checks specified\n\t\t\t\tin the task definition. Amazon ECS does not monitor Docker health checks that are\n\t\t\t\tembedded in a container image and not specified in the container definition. Health\n\t\t\t\tcheck parameters that are specified in a container definition override any Docker\n\t\t\t\thealth checks that exist in the container image.
\n \n You can view the health status of both individual containers and a task with the\n\t\t\tDescribeTasks API operation or when viewing the task details in the console.
\n The health check is designed to make sure that your containers survive agent restarts,\n\t\t\tupgrades, or temporary unavailability.
\n Amazon ECS performs health checks on containers with the default that launched the\n\t\t\tcontainer instance or the task.
\n The following describes the possible healthStatus values for a\n\t\t\tcontainer:
\n \n - \n
\n HEALTHY-The container health check has passed\n\t\t\t\t\tsuccessfully.
\n \n - \n
\n UNHEALTHY-The container health check has failed.
\n \n - \n
\n UNKNOWN-The container health check is being evaluated,\n\t\t\t\t\tthere's no container health check defined, or Amazon ECS doesn't have the health\n\t\t\t\t\tstatus of the container.
\n \n
\n The following describes the possible healthStatus values based on the\n\t\t\tcontainer health checker status of essential containers in the task with the following\n\t\t\tpriority order (high to low):
\n \n - \n
\n UNHEALTHY-One or more essential containers have failed\n\t\t\t\t\ttheir health check.
\n \n - \n
\n UNKNOWN-Any essential container running within the task is\n\t\t\t\t\tin an UNKNOWN state and no other essential containers have an\n\t\t\t\t\t\tUNHEALTHY state.
\n \n - \n
\n HEALTHY-All essential containers within the task have\n\t\t\t\t\tpassed their health checks.
\n \n
\n Consider the following task health example with 2 containers.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tUNKNOWN, the task health is UNHEALTHY.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tHEALTHY, the task health is UNHEALTHY.
\n \n - \n
If Container1 is HEALTHY and Container2 is UNKNOWN,\n\t\t\t\t\tthe task health is UNKNOWN.
\n \n - \n
If Container1 is HEALTHY and Container2 is HEALTHY,\n\t\t\t\t\tthe task health is HEALTHY.
\n \n
\n Consider the following task health example with 3 containers.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tUNKNOWN, and Container3 is UNKNOWN, the task health is\n\t\t\t\t\t\tUNHEALTHY.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tUNKNOWN, and Container3 is HEALTHY, the task health is\n\t\t\t\t\t\tUNHEALTHY.
\n \n - \n
If Container1 is UNHEALTHY and Container2 is\n\t\t\t\t\tHEALTHY, and Container3 is HEALTHY, the task health is\n\t\t\t\t\t\tUNHEALTHY.
\n \n - \n
If Container1 is HEALTHY and Container2 is UNKNOWN,\n\t\t\t\t\tand Container3 is HEALTHY, the task health is\n\t\t\t\t\tUNKNOWN.
\n \n - \n
If Container1 is HEALTHY and Container2 is UNKNOWN,\n\t\t\t\t\tand Container3 is UNKNOWN, the task health is\n\t\t\t\t\tUNKNOWN.
\n \n - \n
If Container1 is HEALTHY and Container2 is HEALTHY,\n\t\t\t\t\tand Container3 is HEALTHY, the task health is\n\t\t\t\t\tHEALTHY.
\n \n
\n If a task is run manually, and not as part of a service, the task will continue its\n\t\t\tlifecycle regardless of its health status. For tasks that are part of a service, if the\n\t\t\ttask reports as unhealthy then the task will be stopped and the service scheduler will\n\t\t\treplace it.
\n When a container health check fails for a task that is part of a service, the following process occurs:
\n \n - \n
The task is marked as UNHEALTHY.
\n \n - \n
The unhealthy task will be stopped, and during the stopping process, it will go through the following states:
\n \n - \n
\n DEACTIVATING - In this state, Amazon ECS performs additional steps before stopping the\n\t\t\t\t\t\t\ttask. For example, for tasks that are part of services configured to use\n\t\t\t\t\t\t\tElastic Load Balancing target groups, target groups will be deregistered\n\t\t\t\t\t\t\tin this state.
\n \n - \n
\n STOPPING - The task is in the process of being stopped.
\n \n - \n
\n DEPROVISIONING - Resources associated with the task are being cleaned up.
\n \n - \n
\n STOPPED - The task has been completely stopped.
\n \n
\n \n - \n
After the old task stops, a new task will be launched to ensure service operation, and the new task will go through the following lifecycle:
\n \n - \n
\n PROVISIONING - Resources required for the task are being provisioned.
\n \n - \n
\n PENDING - The task is waiting to be placed on a container instance.
\n \n - \n
\n ACTIVATING - In this state, Amazon ECS pulls container images, creates containers,\n\t\t\t\t\t\t\tconfigures task networking, registers load balancer target groups, and\n\t\t\t\t\t\t\tconfigures service discovery status.
\n \n - \n
\n RUNNING - The task is running and performing its work.
\n \n
\n \n
\n For more detailed information about task lifecycle states, see Task lifecycle in the Amazon Elastic Container Service Developer Guide.
\n The following are notes about container health check support:
\n \n - \n
If the Amazon ECS container agent becomes disconnected from the Amazon ECS service, this\n\t\t\t\t\twon't cause a container to transition to an UNHEALTHY status. This\n\t\t\t\t\tis by design, to ensure that containers remain running during agent restarts or\n\t\t\t\t\ttemporary unavailability. The health check status is the \"last heard from\"\n\t\t\t\t\tresponse from the Amazon ECS agent, so if the container was considered\n\t\t\t\t\t\tHEALTHY prior to the disconnect, that status will remain until\n\t\t\t\t\tthe agent reconnects and another health check occurs. There are no assumptions\n\t\t\t\t\tmade about the status of the container health checks.
\n \n - \n
Container health checks require version 1.17.0 or greater of the\n\t\t\t\t\tAmazon ECS container agent. For more information, see Updating the\n\t\t\t\t\t\tAmazon ECS container agent.
\n \n - \n
Container health checks are supported for Fargate tasks if\n\t\t\t\t\tyou're using platform version 1.1.0 or greater. For more\n\t\t\t\t\tinformation, see Fargate\n\t\t\t\t\t\tplatform versions.
\n \n - \n
Container health checks aren't supported for tasks that are part of a service\n\t\t\t\t\tthat's configured to use a Classic Load Balancer.
\n \n
\n For an example of how to specify a task definition with multiple containers where\n\t\t\tcontainer dependency is specified, see Container dependency in the Amazon Elastic Container Service Developer Guide.
"
}
},
"com.amazonaws.ecs#HealthStatus": {
@@ -15221,7 +15221,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Modifies the parameters of a service.
\n \n On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.
\n \n For services using the rolling update (ECS) you can update the desired\n\t\t\tcount, deployment configuration, network configuration, load balancers, service\n\t\t\tregistries, enable ECS managed tags option, propagate tags option, task placement\n\t\t\tconstraints and strategies, and task definition. When you update any of these\n\t\t\tparameters, Amazon ECS starts new tasks with the new configuration.
\n You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or\n\t\t\trunning a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide. You can update\n\t\t\tyour volume configurations and trigger a new deployment.\n\t\t\t\tvolumeConfigurations is only supported for REPLICA service and not\n\t\t\tDAEMON service. If you leave volumeConfigurations\n null, it doesn't trigger a new deployment. For more infomation on volumes,\n\t\t\tsee Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.
\n For services using the blue/green (CODE_DEPLOY) deployment controller,\n\t\t\tonly the desired count, deployment configuration, health check grace period, task\n\t\t\tplacement constraints and strategies, enable ECS managed tags option, and propagate tags\n\t\t\tcan be updated using this API. If the network configuration, platform version, task\n\t\t\tdefinition, or load balancer need to be updated, create a new CodeDeploy deployment. For more\n\t\t\tinformation, see CreateDeployment in the CodeDeploy API Reference.
\n For services using an external deployment controller, you can update only the desired\n\t\t\tcount, task placement constraints and strategies, health check grace period, enable ECS\n\t\t\tmanaged tags option, and propagate tags option, using this API. If the launch type, load\n\t\t\tbalancer, network configuration, platform version, or task definition need to be\n\t\t\tupdated, create a new task set For more information, see CreateTaskSet.
\n You can add to or subtract from the number of instantiations of a task definition in a\n\t\t\tservice by specifying the cluster that the service is running in and a new\n\t\t\t\tdesiredCount parameter.
\n You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or\n\t\t\trunning a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.
\n If you have updated the container image of your application, you can create a new task\n\t\t\tdefinition with that image and deploy it to your service. The service scheduler uses the\n\t\t\tminimum healthy percent and maximum percent parameters (in the service's deployment\n\t\t\tconfiguration) to determine the deployment strategy.
\n \n If your updated Docker image uses the same tag as what is in the existing task\n\t\t\t\tdefinition for your service (for example, my_image:latest), you don't\n\t\t\t\tneed to create a new revision of your task definition. You can update the service\n\t\t\t\tusing the forceNewDeployment option. The new tasks launched by the\n\t\t\t\tdeployment pull the current image/tag combination from your repository when they\n\t\t\t\tstart.
\n \n You can also update the deployment configuration of a service. When a deployment is\n\t\t\ttriggered by updating the task definition of a service, the service scheduler uses the\n\t\t\tdeployment configuration parameters, minimumHealthyPercent and\n\t\t\t\tmaximumPercent, to determine the deployment strategy.
\n \n - \n
If minimumHealthyPercent is below 100%, the scheduler can ignore\n\t\t\t\t\t\tdesiredCount temporarily during a deployment. For example, if\n\t\t\t\t\t\tdesiredCount is four tasks, a minimum of 50% allows the\n\t\t\t\t\tscheduler to stop two existing tasks before starting two new tasks. Tasks for\n\t\t\t\t\tservices that don't use a load balancer are considered healthy if they're in the\n\t\t\t\t\t\tRUNNING state. Tasks for services that use a load balancer are\n\t\t\t\t\tconsidered healthy if they're in the RUNNING state and are reported\n\t\t\t\t\tas healthy by the load balancer.
\n \n - \n
The maximumPercent parameter represents an upper limit on the\n\t\t\t\t\tnumber of running tasks during a deployment. You can use it to define the\n\t\t\t\t\tdeployment batch size. For example, if desiredCount is four tasks,\n\t\t\t\t\ta maximum of 200% starts four new tasks before stopping the four older tasks\n\t\t\t\t\t(provided that the cluster resources required to do this are available).
\n \n
\n When UpdateService\n\t\t\tstops a task during a deployment, the equivalent of docker stop is issued\n\t\t\tto the containers running in the task. This results in a SIGTERM and a\n\t\t\t30-second timeout. After this, SIGKILL is sent and the containers are\n\t\t\tforcibly stopped. If the container handles the SIGTERM gracefully and exits\n\t\t\twithin 30 seconds from receiving it, no SIGKILL is sent.
\n When the service scheduler launches new tasks, it determines task placement in your\n\t\t\tcluster with the following logic.
\n \n - \n
Determine which of the container instances in your cluster can support your\n\t\t\t\t\tservice's task definition. For example, they have the required CPU, memory,\n\t\t\t\t\tports, and container instance attributes.
\n \n - \n
By default, the service scheduler attempts to balance tasks across\n\t\t\t\t\tAvailability Zones in this manner even though you can choose a different\n\t\t\t\t\tplacement strategy.
\n \n - \n
Sort the valid container instances by the fewest number of running\n\t\t\t\t\t\t\ttasks for this service in the same Availability Zone as the instance.\n\t\t\t\t\t\t\tFor example, if zone A has one running service task and zones B and C\n\t\t\t\t\t\t\teach have zero, valid container instances in either zone B or C are\n\t\t\t\t\t\t\tconsidered optimal for placement.
\n \n - \n
Place the new service task on a valid container instance in an optimal\n\t\t\t\t\t\t\tAvailability Zone (based on the previous steps), favoring container\n\t\t\t\t\t\t\tinstances with the fewest number of running tasks for this\n\t\t\t\t\t\t\tservice.
\n \n
\n \n
\n When the service scheduler stops running tasks, it attempts to maintain balance across\n\t\t\tthe Availability Zones in your cluster using the following logic:
\n \n - \n
Sort the container instances by the largest number of running tasks for this\n\t\t\t\t\tservice in the same Availability Zone as the instance. For example, if zone A\n\t\t\t\t\thas one running service task and zones B and C each have two, container\n\t\t\t\t\tinstances in either zone B or C are considered optimal for termination.
\n \n - \n
Stop the task on a container instance in an optimal Availability Zone (based\n\t\t\t\t\ton the previous steps), favoring container instances with the largest number of\n\t\t\t\t\trunning tasks for this service.
\n \n
\n \n You must have a service-linked role when you update any of the following service\n\t\t\t\tproperties:
\n \n - \n
\n loadBalancers,
\n \n - \n
\n serviceRegistries\n
\n \n
\n For more information about the role see the CreateService request\n\t\t\t\tparameter \n role\n .
\n ",
+ "smithy.api#documentation": "Modifies the parameters of a service.
\n \n On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.
\n \n For services using the rolling update (ECS) you can update the desired\n\t\t\tcount, deployment configuration, network configuration, load balancers, service\n\t\t\tregistries, enable ECS managed tags option, propagate tags option, task placement\n\t\t\tconstraints and strategies, and task definition. When you update any of these\n\t\t\tparameters, Amazon ECS starts new tasks with the new configuration.
\n You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or\n\t\t\trunning a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide. You can update\n\t\t\tyour volume configurations and trigger a new deployment.\n\t\t\t\tvolumeConfigurations is only supported for REPLICA service and not\n\t\t\tDAEMON service. If you leave volumeConfigurations\n null, it doesn't trigger a new deployment. For more infomation on volumes,\n\t\t\tsee Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.
\n For services using the blue/green (CODE_DEPLOY) deployment controller,\n\t\t\tonly the desired count, deployment configuration, health check grace period, task\n\t\t\tplacement constraints and strategies, enable ECS managed tags option, and propagate tags\n\t\t\tcan be updated using this API. If the network configuration, platform version, task\n\t\t\tdefinition, or load balancer need to be updated, create a new CodeDeploy deployment. For more\n\t\t\tinformation, see CreateDeployment in the CodeDeploy API Reference.
\n For services using an external deployment controller, you can update only the desired\n\t\t\tcount, task placement constraints and strategies, health check grace period, enable ECS\n\t\t\tmanaged tags option, and propagate tags option, using this API. If the launch type, load\n\t\t\tbalancer, network configuration, platform version, or task definition need to be\n\t\t\tupdated, create a new task set For more information, see CreateTaskSet.
\n You can add to or subtract from the number of instantiations of a task definition in a\n\t\t\tservice by specifying the cluster that the service is running in and a new\n\t\t\t\tdesiredCount parameter.
\n You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or\n\t\t\trunning a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.
\n If you have updated the container image of your application, you can create a new task\n\t\t\tdefinition with that image and deploy it to your service. The service scheduler uses the\n\t\t\tminimum healthy percent and maximum percent parameters (in the service's deployment\n\t\t\tconfiguration) to determine the deployment strategy.
\n \n If your updated Docker image uses the same tag as what is in the existing task\n\t\t\t\tdefinition for your service (for example, my_image:latest), you don't\n\t\t\t\tneed to create a new revision of your task definition. You can update the service\n\t\t\t\tusing the forceNewDeployment option. The new tasks launched by the\n\t\t\t\tdeployment pull the current image/tag combination from your repository when they\n\t\t\t\tstart.
\n \n You can also update the deployment configuration of a service. When a deployment is\n\t\t\ttriggered by updating the task definition of a service, the service scheduler uses the\n\t\t\tdeployment configuration parameters, minimumHealthyPercent and\n\t\t\t\tmaximumPercent, to determine the deployment strategy.
\n \n - \n
If minimumHealthyPercent is below 100%, the scheduler can ignore\n\t\t\t\t\t\tdesiredCount temporarily during a deployment. For example, if\n\t\t\t\t\t\tdesiredCount is four tasks, a minimum of 50% allows the\n\t\t\t\t\tscheduler to stop two existing tasks before starting two new tasks. Tasks for\n\t\t\t\t\tservices that don't use a load balancer are considered healthy if they're in the\n\t\t\t\t\t\tRUNNING state. Tasks for services that use a load balancer are\n\t\t\t\t\tconsidered healthy if they're in the RUNNING state and are reported\n\t\t\t\t\tas healthy by the load balancer.
\n \n - \n
The maximumPercent parameter represents an upper limit on the\n\t\t\t\t\tnumber of running tasks during a deployment. You can use it to define the\n\t\t\t\t\tdeployment batch size. For example, if desiredCount is four tasks,\n\t\t\t\t\ta maximum of 200% starts four new tasks before stopping the four older tasks\n\t\t\t\t\t(provided that the cluster resources required to do this are available).
\n \n
\n When UpdateService\n\t\t\tstops a task during a deployment, the equivalent of docker stop is issued\n\t\t\tto the containers running in the task. This results in a SIGTERM and a\n\t\t\t30-second timeout. After this, SIGKILL is sent and the containers are\n\t\t\tforcibly stopped. If the container handles the SIGTERM gracefully and exits\n\t\t\twithin 30 seconds from receiving it, no SIGKILL is sent.
\n When the service scheduler launches new tasks, it determines task placement in your\n\t\t\tcluster with the following logic.
\n \n - \n
Determine which of the container instances in your cluster can support your\n\t\t\t\t\tservice's task definition. For example, they have the required CPU, memory,\n\t\t\t\t\tports, and container instance attributes.
\n \n - \n
By default, the service scheduler attempts to balance tasks across\n\t\t\t\t\tAvailability Zones in this manner even though you can choose a different\n\t\t\t\t\tplacement strategy.
\n \n - \n
Sort the valid container instances by the fewest number of running\n\t\t\t\t\t\t\ttasks for this service in the same Availability Zone as the instance.\n\t\t\t\t\t\t\tFor example, if zone A has one running service task and zones B and C\n\t\t\t\t\t\t\teach have zero, valid container instances in either zone B or C are\n\t\t\t\t\t\t\tconsidered optimal for placement.
\n \n - \n
Place the new service task on a valid container instance in an optimal\n\t\t\t\t\t\t\tAvailability Zone (based on the previous steps), favoring container\n\t\t\t\t\t\t\tinstances with the fewest number of running tasks for this\n\t\t\t\t\t\t\tservice.
\n \n
\n \n
\n When the service scheduler stops running tasks, it attempts to maintain balance across\n\t\t\tthe Availability Zones in your cluster using the following logic:
\n \n - \n
Sort the container instances by the largest number of running tasks for this\n\t\t\t\t\tservice in the same Availability Zone as the instance. For example, if zone A\n\t\t\t\t\thas one running service task and zones B and C each have two, container\n\t\t\t\t\tinstances in either zone B or C are considered optimal for termination.
\n \n - \n
Stop the task on a container instance in an optimal Availability Zone (based\n\t\t\t\t\ton the previous steps), favoring container instances with the largest number of\n\t\t\t\t\trunning tasks for this service.
\n \n
",
"smithy.api#examples": [
{
"title": "To change the number of tasks in a service",
@@ -15378,7 +15378,7 @@
"cluster": {
"target": "com.amazonaws.ecs#String",
"traits": {
- "smithy.api#documentation": "The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.
"
+ "smithy.api#documentation": "The short name or full Amazon Resource Name (ARN) of the cluster that your service runs on.\n\t\t\tIf you do not specify a cluster, the default cluster is assumed.
\n You can't change the cluster name.
"
}
},
"service": {
@@ -15403,7 +15403,7 @@
"capacityProviderStrategy": {
"target": "com.amazonaws.ecs#CapacityProviderStrategy",
"traits": {
- "smithy.api#documentation": "The capacity provider strategy to update the service to use.
\n if the service uses the default capacity provider strategy for the cluster, the\n\t\t\tservice can be updated to use one or more capacity providers as opposed to the default\n\t\t\tcapacity provider strategy. However, when a service is using a capacity provider\n\t\t\tstrategy that's not the default capacity provider strategy, the service can't be updated\n\t\t\tto use the cluster's default capacity provider strategy.
\n A capacity provider strategy consists of one or more capacity providers along with the\n\t\t\t\tbase and weight to assign to them. A capacity provider\n\t\t\tmust be associated with the cluster to be used in a capacity provider strategy. The\n\t\t\t\tPutClusterCapacityProviders API is used to associate a capacity provider\n\t\t\twith a cluster. Only capacity providers with an ACTIVE or\n\t\t\t\tUPDATING status can be used.
\n If specifying a capacity provider that uses an Auto Scaling group, the capacity\n\t\t\tprovider must already be created. New capacity providers can be created with the CreateClusterCapacityProvider API operation.
\n To use a Fargate capacity provider, specify either the FARGATE or\n\t\t\t\tFARGATE_SPOT capacity providers. The Fargate capacity providers are\n\t\t\tavailable to all accounts and only need to be associated with a cluster to be\n\t\t\tused.
\n The PutClusterCapacityProvidersAPI operation is used to update the list of\n\t\t\tavailable capacity providers for a cluster after the cluster is created.
\n "
+ "smithy.api#documentation": "The details of a capacity provider strategy. You can set a capacity provider when you\n\t\t\tcreate a cluster, run a task, or update a service.
\n When you use Fargate, the capacity providers are FARGATE or\n\t\t\t\tFARGATE_SPOT.
\n When you use Amazon EC2, the capacity providers are Auto Scaling groups.
\n You can change capacity providers for rolling deployments and blue/green\n\t\t\tdeployments.
\n The following list provides the valid transitions:
\n \n - \n
Update the Fargate launch type to an EC2 capacity provider.
\n \n - \n
Update the Amazon EC2 launch type to a Fargate capacity provider.
\n \n - \n
Update the Fargate capacity provider to an EC2 capacity provider.
\n \n - \n
Update the Amazon EC2 capacity provider to a Fargate capacity provider.
\n \n - \n
Update the EC2 or Fargate capacity provider back to the launch type.
\n Pass an empty list in the capacityProvider parameter.
\n \n
\n For information about Amazon Web Services CDK considerations, see Amazon Web Services CDK considerations.
"
}
},
"deploymentConfiguration": {
@@ -15470,7 +15470,7 @@
"loadBalancers": {
"target": "com.amazonaws.ecs#LoadBalancers",
"traits": {
- "smithy.api#documentation": "A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the\n\t\t\tcontainer name, and the container port to access from the load balancer. The container\n\t\t\tname is as it appears in a container definition.
\n When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks\n\t\t\twith the updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks\n\t\t\tare running.
\n For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target\n\t\t\tgroups. You can update from a single target group to multiple target groups and from\n\t\t\tmultiple target groups to a single target group.
\n For services that use blue/green deployments, you can update Elastic Load Balancing target groups by\n\t\t\tusing \n CreateDeployment\n through CodeDeploy. Note that multiple target groups\n\t\t\tare not supported for blue/green deployments. For more information see Register\n\t\t\t\tmultiple target groups with a service in the Amazon Elastic Container Service Developer Guide.
\n For services that use the external deployment controller, you can add, update, or\n\t\t\tremove load balancers by using CreateTaskSet.\n\t\t\tNote that multiple target groups are not supported for external deployments. For more\n\t\t\tinformation see Register\n\t\t\t\tmultiple target groups with a service in the Amazon Elastic Container Service Developer Guide.
\n You can remove existing loadBalancers by passing an empty list.
"
+ "smithy.api#documentation": "\n You must have a service-linked role when you update this property
\n \n A list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the\n\t\t\tcontainer name, and the container port to access from the load balancer. The container\n\t\t\tname is as it appears in a container definition.
\n When you add, update, or remove a load balancer configuration, Amazon ECS starts new tasks\n\t\t\twith the updated Elastic Load Balancing configuration, and then stops the old tasks when the new tasks\n\t\t\tare running.
\n For services that use rolling updates, you can add, update, or remove Elastic Load Balancing target\n\t\t\tgroups. You can update from a single target group to multiple target groups and from\n\t\t\tmultiple target groups to a single target group.
\n For services that use blue/green deployments, you can update Elastic Load Balancing target groups by\n\t\t\tusing \n CreateDeployment\n through CodeDeploy. Note that multiple target groups\n\t\t\tare not supported for blue/green deployments. For more information see Register\n\t\t\t\tmultiple target groups with a service in the Amazon Elastic Container Service Developer Guide.
\n For services that use the external deployment controller, you can add, update, or\n\t\t\tremove load balancers by using CreateTaskSet.\n\t\t\tNote that multiple target groups are not supported for external deployments. For more\n\t\t\tinformation see Register\n\t\t\t\tmultiple target groups with a service in the Amazon Elastic Container Service Developer Guide.
\n You can remove existing loadBalancers by passing an empty list.
"
}
},
"propagateTags": {
@@ -15482,7 +15482,7 @@
"serviceRegistries": {
"target": "com.amazonaws.ecs#ServiceRegistries",
"traits": {
- "smithy.api#documentation": "The details for the service discovery registries to assign to this service. For more\n\t\t\tinformation, see Service\n\t\t\t\tDiscovery.
\n When you add, update, or remove the service registries configuration, Amazon ECS starts new\n\t\t\ttasks with the updated service registries configuration, and then stops the old tasks\n\t\t\twhen the new tasks are running.
\n You can remove existing serviceRegistries by passing an empty\n\t\t\tlist.
"
+ "smithy.api#documentation": "\n You must have a service-linked role when you update this property.
\n For more information about the role see the CreateService request\n\t\t\t\tparameter \n role\n .
\n \n The details for the service discovery registries to assign to this service. For more\n\t\t\tinformation, see Service\n\t\t\t\tDiscovery.
\n When you add, update, or remove the service registries configuration, Amazon ECS starts new\n\t\t\ttasks with the updated service registries configuration, and then stops the old tasks\n\t\t\twhen the new tasks are running.
\n You can remove existing serviceRegistries by passing an empty\n\t\t\tlist.
"
}
},
"serviceConnectConfiguration": {
diff --git a/codegen/sdk-codegen/aws-models/eks.json b/codegen/sdk-codegen/aws-models/eks.json
index a29d82400da..4ff2bfff37e 100644
--- a/codegen/sdk-codegen/aws-models/eks.json
+++ b/codegen/sdk-codegen/aws-models/eks.json
@@ -1629,7 +1629,7 @@
"podIdentityAssociations": {
"target": "com.amazonaws.eks#StringList",
"traits": {
- "smithy.api#documentation": "An array of Pod Identity Assocations owned by the Addon. Each EKS Pod Identity\n association maps a role to a service account in a namespace in the cluster.
\n For more information, see Attach an IAM Role to an Amazon EKS add-on\n using Pod Identity in the Amazon EKS User Guide.
"
+ "smithy.api#documentation": "An array of EKS Pod Identity associations owned by the add-on. Each association maps a role to a service\n account in a namespace in the cluster.
\n For more information, see Attach an IAM Role to an Amazon EKS add-on\n using EKS Pod Identity in the Amazon EKS User Guide.
"
}
}
},
@@ -1837,7 +1837,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A type of Pod Identity Association owned by an Amazon EKS Add-on.
\n Each EKS Pod Identity Association maps a role to a service account in a namespace in\n the cluster.
\n For more information, see Attach an IAM Role to an Amazon EKS add-on\n using Pod Identity in the Amazon EKS User Guide.
"
+ "smithy.api#documentation": "A type of EKS Pod Identity association owned by an Amazon EKS add-on.
\n Each association maps a role to a service account in a namespace in\n the cluster.
\n For more information, see Attach an IAM Role to an Amazon EKS add-on\n using EKS Pod Identity in the Amazon EKS User Guide.
"
}
},
"com.amazonaws.eks#AddonPodIdentityAssociationsList": {
@@ -1852,18 +1852,18 @@
"serviceAccount": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "The Kubernetes Service Account name used by the addon.
"
+ "smithy.api#documentation": "The Kubernetes Service Account name used by the add-on.
"
}
},
"recommendedManagedPolicies": {
"target": "com.amazonaws.eks#StringList",
"traits": {
- "smithy.api#documentation": "A suggested IAM Policy for the addon.
"
+ "smithy.api#documentation": "A suggested IAM Policy for the add-on.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Information about how to configure IAM for an Addon.
"
+ "smithy.api#documentation": "Information about how to configure IAM for an add-on.
"
}
},
"com.amazonaws.eks#AddonPodIdentityConfigurationList": {
@@ -1943,7 +1943,7 @@
"computeTypes": {
"target": "com.amazonaws.eks#StringList",
"traits": {
- "smithy.api#documentation": "Indicates the compute type of the addon version.
"
+ "smithy.api#documentation": "Indicates the compute type of the add-on version.
"
}
},
"compatibilities": {
@@ -1963,7 +1963,7 @@
"target": "com.amazonaws.eks#Boolean",
"traits": {
"smithy.api#default": false,
- "smithy.api#documentation": "Indicates if the Addon requires IAM Permissions to operate, such as networking\n permissions.
"
+ "smithy.api#documentation": "Indicates if the add-on requires IAM Permissions to operate, such as networking\n permissions.
"
}
}
},
@@ -3443,7 +3443,7 @@
"podIdentityAssociations": {
"target": "com.amazonaws.eks#AddonPodIdentityAssociationsList",
"traits": {
- "smithy.api#documentation": "An array of Pod Identity Assocations to be created. Each EKS Pod Identity association\n maps a Kubernetes service account to an IAM Role.
\n For more information, see Attach an IAM Role to an Amazon EKS add-on\n using Pod Identity in the Amazon EKS User Guide.
"
+ "smithy.api#documentation": "An array of EKS Pod Identity associations to be created. Each association maps a Kubernetes service account to\n an IAM role.
\n For more information, see Attach an IAM Role to an Amazon EKS add-on\n using EKS Pod Identity in the Amazon EKS User Guide.
"
}
}
},
@@ -3494,7 +3494,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates an Amazon EKS control plane.
\n The Amazon EKS control plane consists of control plane instances that run the Kubernetes\n software, such as etcd and the API server. The control plane runs in an\n account managed by Amazon Web Services, and the Kubernetes API is exposed by the Amazon EKS API server endpoint.\n Each Amazon EKS cluster control plane is single tenant and unique. It runs on its own set of\n Amazon EC2 instances.
\n The cluster control plane is provisioned across multiple Availability Zones and fronted by an Elastic Load Balancing\n Network Load Balancer. Amazon EKS also provisions elastic network interfaces in your VPC subnets to provide\n connectivity from the control plane instances to the nodes (for example, to support\n kubectl exec, logs, and proxy data\n flows).
\n Amazon EKS nodes run in your Amazon Web Services account and connect to your cluster's control plane over\n the Kubernetes API server endpoint and a certificate file that is created for your\n cluster.
\n You can use the endpointPublicAccess and\n endpointPrivateAccess parameters to enable or disable public and\n private access to your cluster's Kubernetes API server endpoint. By default, public access is\n enabled, and private access is disabled. For more information, see Amazon EKS Cluster\n Endpoint Access Control in the \n Amazon EKS User Guide\n .
\n You can use the logging parameter to enable or disable exporting the\n Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane\n logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS\n Cluster Control Plane Logs in the\n \n Amazon EKS User Guide\n .
\n \n CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported\n control plane logs. For more information, see CloudWatch Pricing.
\n \n In most cases, it takes several minutes to create a cluster. After you create an Amazon EKS\n cluster, you must configure your Kubernetes tooling to communicate with the API server and\n launch nodes into your cluster. For more information, see Allowing users to\n access your cluster and Launching Amazon EKS\n nodes in the Amazon EKS User Guide.
",
+ "smithy.api#documentation": "Creates an Amazon EKS control plane.
\n The Amazon EKS control plane consists of control plane instances that run the Kubernetes\n software, such as etcd and the API server. The control plane runs in an\n account managed by Amazon Web Services, and the Kubernetes API is exposed by the Amazon EKS API server endpoint.\n Each Amazon EKS cluster control plane is single tenant and unique. It runs on its own set of\n Amazon EC2 instances.
\n The cluster control plane is provisioned across multiple Availability Zones and fronted by an Elastic Load Balancing\n Network Load Balancer. Amazon EKS also provisions elastic network interfaces in your VPC subnets to provide\n connectivity from the control plane instances to the nodes (for example, to support\n kubectl exec, logs, and proxy data\n flows).
\n Amazon EKS nodes run in your Amazon Web Services account and connect to your cluster's control plane over\n the Kubernetes API server endpoint and a certificate file that is created for your\n cluster.
\n You can use the endpointPublicAccess and\n endpointPrivateAccess parameters to enable or disable public and\n private access to your cluster's Kubernetes API server endpoint. By default, public access is\n enabled, and private access is disabled. The\n endpoint domain name and IP address family depends on the value of the\n ipFamily for the cluster. For more information, see Amazon EKS Cluster\n Endpoint Access Control in the \n Amazon EKS User Guide\n .
\n You can use the logging parameter to enable or disable exporting the\n Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane\n logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS\n Cluster Control Plane Logs in the\n \n Amazon EKS User Guide\n .
\n \n CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported\n control plane logs. For more information, see CloudWatch Pricing.
\n \n In most cases, it takes several minutes to create a cluster. After you create an Amazon EKS\n cluster, you must configure your Kubernetes tooling to communicate with the API server and\n launch nodes into your cluster. For more information, see Allowing users to\n access your cluster and Launching Amazon EKS\n nodes in the Amazon EKS User Guide.
",
"smithy.api#examples": [
{
"title": "To create a new cluster",
@@ -3600,7 +3600,7 @@
"bootstrapSelfManagedAddons": {
"target": "com.amazonaws.eks#BoxedBoolean",
"traits": {
- "smithy.api#documentation": "If you set this value to False when creating a cluster, the default\n networking add-ons will not be installed.
\n The default networking addons include vpc-cni, coredns, and kube-proxy.
\n Use this option when you plan to install third-party alternative add-ons or\n self-manage the default networking add-ons.
"
+ "smithy.api#documentation": "If you set this value to False when creating a cluster, the default\n networking add-ons will not be installed.
\n The default networking add-ons include vpc-cni, coredns, and\n kube-proxy.
\n Use this option when you plan to install third-party alternative add-ons or\n self-manage the default networking add-ons.
"
}
},
"upgradePolicy": {
@@ -4072,7 +4072,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates an EKS Pod Identity association between a service account in an Amazon EKS cluster and an IAM role\n with EKS Pod Identity. Use EKS Pod Identity to give temporary IAM credentials to\n pods and the credentials are rotated automatically.
\n Amazon EKS Pod Identity associations provide the ability to manage credentials for your applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon EC2 instances.
\n If a pod uses a service account that has an association, Amazon EKS sets environment variables\n in the containers of the pod. The environment variables configure the Amazon Web Services SDKs,\n including the Command Line Interface, to use the EKS Pod Identity credentials.
\n Pod Identity is a simpler method than IAM roles for service\n accounts, as this method doesn't use OIDC identity providers.\n Additionally, you can configure a role for Pod Identity once, and reuse it across\n clusters.
",
+ "smithy.api#documentation": "Creates an EKS Pod Identity association between a service account in an Amazon EKS cluster and an IAM role\n with EKS Pod Identity. Use EKS Pod Identity to give temporary IAM credentials to\n Pods and the credentials are rotated automatically.
\n Amazon EKS Pod Identity associations provide the ability to manage credentials for your applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon EC2 instances.
\n If a Pod uses a service account that has an association, Amazon EKS sets environment variables\n in the containers of the Pod. The environment variables configure the Amazon Web Services SDKs,\n including the Command Line Interface, to use the EKS Pod Identity credentials.
\n EKS Pod Identity is a simpler method than IAM roles for service\n accounts, as this method doesn't use OIDC identity providers.\n Additionally, you can configure a role for EKS Pod Identity once, and reuse it across\n clusters.
\n Similar to Amazon Web Services IAM behavior, EKS Pod Identity associations are eventually consistent,\n and may take several seconds to be effective after the initial API call returns\n successfully. You must design your applications to account for these potential delays.\n We recommend that you don’t include association create/updates in the\n critical, high-availability code paths of your application. Instead, make changes in a\n separate initialization or setup routine that you run less frequently.
\n You can set a target IAM role in the same or a different\n account for advanced scenarios. With a target role, EKS Pod Identity automatically performs two\n role assumptions in sequence: first assuming the role in the association that is in this\n account, then using those credentials to assume the target IAM role. This process\n provides your Pod with temporary credentials that have the permissions defined in the\n target role, allowing secure access to resources in another Amazon Web Services account.
",
"smithy.api#http": {
"method": "POST",
"uri": "/clusters/{clusterName}/pod-identity-associations",
@@ -4086,7 +4086,7 @@
"clusterName": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "The name of the cluster to create the association in.
",
+ "smithy.api#documentation": "The name of the cluster to create the EKS Pod Identity association in.
",
"smithy.api#httpLabel": {},
"smithy.api#required": {}
}
@@ -4094,7 +4094,7 @@
"namespace": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "The name of the Kubernetes namespace inside the cluster to create the association in. The\n service account and the pods that use the service account must be in this\n namespace.
",
+ "smithy.api#documentation": "The name of the Kubernetes namespace inside the cluster to create the EKS Pod Identity association in. The\n service account and the Pods that use the service account must be in this\n namespace.
",
"smithy.api#required": {}
}
},
@@ -4108,7 +4108,7 @@
"roleArn": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity\n agent manages credentials to assume this role for applications in the containers in the\n pods that use this service account.
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity\n agent manages credentials to assume this role for applications in the containers in the\n Pods that use this service account.
",
"smithy.api#required": {}
}
},
@@ -4124,6 +4124,18 @@
"traits": {
"smithy.api#documentation": "Metadata that assists with categorization and organization.\n Each tag consists of a key and an optional value. You define both. Tags don't\n propagate to any other cluster or Amazon Web Services resources.
\n The following basic restrictions apply to tags:
\n \n - \n
Maximum number of tags per resource – 50
\n \n - \n
For each resource, each tag key must be unique, and each tag key can have only\n one value.
\n \n - \n
Maximum key length – 128 Unicode characters in UTF-8
\n \n - \n
Maximum value length – 256 Unicode characters in UTF-8
\n \n - \n
If your tagging schema is used across multiple services and resources,\n remember that other services may have restrictions on allowed characters.\n Generally allowed characters are: letters, numbers, and spaces representable in\n UTF-8, and the following characters: + - = . _ : / @.
\n \n - \n
Tag keys and values are case-sensitive.
\n \n - \n
Do not use aws:, AWS:, or any upper or lowercase\n combination of such as a prefix for either keys or values as it is reserved for\n Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with\n this prefix do not count against your tags per resource limit.
\n \n
"
}
+ },
+ "disableSessionTags": {
+ "target": "com.amazonaws.eks#BoxedBoolean",
+ "traits": {
+ "smithy.api#documentation": "Disable the automatic sessions tags that are appended by EKS Pod Identity.
\n EKS Pod Identity adds a pre-defined set of session tags when it assumes the role. You\n can use these tags to author a single role that can work across resources by allowing\n access to Amazon Web Services resources based on matching tags. By default, EKS Pod Identity attaches\n six tags, including tags for cluster name, namespace, and service account name. For the\n list of tags added by EKS Pod Identity, see List of session tags\n added by EKS Pod Identity in the Amazon EKS User Guide.
\n Amazon Web Services compresses inline session policies, managed policy ARNs, and session tags into a\n packed binary format that has a separate limit. If you receive a\n PackedPolicyTooLarge error indicating the packed binary format has\n exceeded the size limit, you can attempt to reduce the size by disabling the session\n tags added by EKS Pod Identity.
"
+ }
+ },
+ "targetRoleArn": {
+ "target": "com.amazonaws.eks#String",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the target IAM role to associate with the service account. This role\n is assumed by using the EKS Pod Identity association role, then the credentials for this\n role are injected into the Pod.
\n When you run applications on Amazon EKS, your application might need to access Amazon Web Services\n resources from a different role that exists in the same or different Amazon Web Services account. For\n example, your application running in “Account A” might need to access resources, such as\n Amazon S3 buckets in “Account B” or within “Account A” itself. You can create a association\n to access Amazon Web Services resources in “Account B” by creating two IAM roles: a role in “Account\n A” and a role in “Account B” (which can be the same or different account), each with the\n necessary trust and permission policies. After you provide these roles in the\n IAM role and Target IAM role fields, EKS\n will perform role chaining to ensure your application gets the required permissions.\n This means Role A will assume Role B, allowing your Pods to securely access resources\n like S3 buckets in the target account.
"
+ }
}
},
"traits": {
@@ -4970,7 +4982,7 @@
"podIdentityConfiguration": {
"target": "com.amazonaws.eks#AddonPodIdentityConfigurationList",
"traits": {
- "smithy.api#documentation": "The Kubernetes service account name used by the addon, and any suggested IAM policies.\n Use this information to create an IAM Role for the Addon.
"
+ "smithy.api#documentation": "The Kubernetes service account name used by the add-on, and any suggested IAM policies.\n Use this information to create an IAM Role for the add-on.
"
}
}
},
@@ -9545,7 +9557,7 @@
"namespace": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "The name of the Kubernetes namespace inside the cluster to create the association in. The\n service account and the pods that use the service account must be in this\n namespace.
"
+ "smithy.api#documentation": "The name of the Kubernetes namespace inside the cluster to create the association in. The\n service account and the Pods that use the service account must be in this\n namespace.
"
}
},
"serviceAccount": {
@@ -9557,7 +9569,7 @@
"roleArn": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity\n agent manages credentials to assume this role for applications in the containers in the\n pods that use this service account.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the IAM role to associate with the service account. The EKS Pod Identity\n agent manages credentials to assume this role for applications in the containers in the\n Pods that use this service account.
"
}
},
"associationArn": {
@@ -9587,13 +9599,31 @@
"modifiedAt": {
"target": "com.amazonaws.eks#Timestamp",
"traits": {
- "smithy.api#documentation": "The most recent timestamp that the association was modified at
"
+ "smithy.api#documentation": "The most recent timestamp that the association was modified at.
"
}
},
"ownerArn": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
"
+ "smithy.api#documentation": "If defined, the EKS Pod Identity association is owned by an Amazon EKS add-on.
"
+ }
+ },
+ "disableSessionTags": {
+ "target": "com.amazonaws.eks#BoxedBoolean",
+ "traits": {
+ "smithy.api#documentation": "The state of the automatic sessions tags. The value of true\n disables these tags.
\n EKS Pod Identity adds a pre-defined set of session tags when it assumes the role. You\n can use these tags to author a single role that can work across resources by allowing\n access to Amazon Web Services resources based on matching tags. By default, EKS Pod Identity attaches\n six tags, including tags for cluster name, namespace, and service account name. For the\n list of tags added by EKS Pod Identity, see List of session tags\n added by EKS Pod Identity in the Amazon EKS User Guide.
"
+ }
+ },
+ "targetRoleArn": {
+ "target": "com.amazonaws.eks#String",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the target IAM role to associate with the service account. This\n role is assumed by using the EKS Pod Identity association role, then the credentials for this\n role are injected into the Pod.
"
+ }
+ },
+ "externalId": {
+ "target": "com.amazonaws.eks#String",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier for this EKS Pod Identity association for a target IAM role. You put this value\n in the trust policy of the target role, in a Condition to match the\n sts.ExternalId. This ensures that the target role can only be assumed\n by this association. This prevents the confused deputy problem. For\n more information about the confused deputy problem, see The confused deputy\n problem in the IAM User Guide.
\n If you want to use the same target role with multiple associations or\n other roles, use independent statements in the trust policy to allow\n sts:AssumeRole access from each role.
"
}
}
},
@@ -9619,7 +9649,7 @@
"namespace": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "The name of the Kubernetes namespace inside the cluster to create the association in. The\n service account and the pods that use the service account must be in this\n namespace.
"
+ "smithy.api#documentation": "The name of the Kubernetes namespace inside the cluster to create the association in. The\n service account and the Pods that use the service account must be in this\n namespace.
"
}
},
"serviceAccount": {
@@ -9643,7 +9673,7 @@
"ownerArn": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
"
+ "smithy.api#documentation": "If defined, the association is owned by an Amazon EKS add-on.
"
}
}
},
@@ -9780,13 +9810,13 @@
"remoteNodeNetworks": {
"target": "com.amazonaws.eks#RemoteNodeNetworkList",
"traits": {
- "smithy.api#documentation": "The list of network CIDRs that can contain hybrid nodes.
\n These CIDR blocks define the expected IP address range of the hybrid nodes that join\n the cluster. These blocks are typically determined by your network administrator.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /24, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n - \n
Each block must have a route to the VPC that uses the VPC CIDR blocks, not\n public IPs or Elastic IPs. There are many options including Transit Gateway,\n Site-to-Site VPN, or Direct Connect.
\n \n - \n
Each host must allow outbound connection to the EKS cluster control plane on\n TCP ports 443 and 10250.
\n \n - \n
Each host must allow inbound connection from the EKS cluster control plane on\n TCP port 10250 for logs, exec and port-forward operations.
\n \n - \n
Each host must allow TCP and UDP network connectivity to and from other hosts\n that are running CoreDNS on UDP port 53 for service and pod DNS\n names.
\n \n
"
+ "smithy.api#documentation": "The list of network CIDRs that can contain hybrid nodes.
\n These CIDR blocks define the expected IP address range of the hybrid nodes that join\n the cluster. These blocks are typically determined by your network administrator.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /32, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n - \n
Each block must have a route to the VPC that uses the VPC CIDR blocks, not\n public IPs or Elastic IPs. There are many options including Transit Gateway,\n Site-to-Site VPN, or Direct Connect.
\n \n - \n
Each host must allow outbound connection to the EKS cluster control plane on\n TCP ports 443 and 10250.
\n \n - \n
Each host must allow inbound connection from the EKS cluster control plane on\n TCP port 10250 for logs, exec and port-forward operations.
\n \n - \n
Each host must allow TCP and UDP network connectivity to and from other hosts\n that are running CoreDNS on UDP port 53 for service and pod DNS\n names.
\n \n
"
}
},
"remotePodNetworks": {
"target": "com.amazonaws.eks#RemotePodNetworkList",
"traits": {
- "smithy.api#documentation": "The list of network CIDRs that can contain pods that run Kubernetes webhooks on hybrid\n nodes.
\n These CIDR blocks are determined by configuring your Container Network Interface (CNI)\n plugin. We recommend the Calico CNI or Cilium CNI. Note that the Amazon VPC CNI plugin for Kubernetes isn't\n available for on-premises and edge locations.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /24, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n
"
+ "smithy.api#documentation": "The list of network CIDRs that can contain pods that run Kubernetes webhooks on hybrid\n nodes.
\n These CIDR blocks are determined by configuring your Container Network Interface (CNI)\n plugin. We recommend the Calico CNI or Cilium CNI. Note that the Amazon VPC CNI plugin for Kubernetes isn't\n available for on-premises and edge locations.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /32, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n
"
}
}
},
@@ -9820,12 +9850,12 @@
"cidrs": {
"target": "com.amazonaws.eks#StringList",
"traits": {
- "smithy.api#documentation": "A network CIDR that can contain hybrid nodes.
\n These CIDR blocks define the expected IP address range of the hybrid nodes that join\n the cluster. These blocks are typically determined by your network administrator.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /24, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n - \n
Each block must have a route to the VPC that uses the VPC CIDR blocks, not\n public IPs or Elastic IPs. There are many options including Transit Gateway,\n Site-to-Site VPN, or Direct Connect.
\n \n - \n
Each host must allow outbound connection to the EKS cluster control plane on\n TCP ports 443 and 10250.
\n \n - \n
Each host must allow inbound connection from the EKS cluster control plane on\n TCP port 10250 for logs, exec and port-forward operations.
\n \n - \n
Each host must allow TCP and UDP network connectivity to and from other hosts\n that are running CoreDNS on UDP port 53 for service and pod DNS\n names.
\n \n
"
+ "smithy.api#documentation": "A network CIDR that can contain hybrid nodes.
\n These CIDR blocks define the expected IP address range of the hybrid nodes that join\n the cluster. These blocks are typically determined by your network administrator.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /32, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n - \n
Each block must have a route to the VPC that uses the VPC CIDR blocks, not\n public IPs or Elastic IPs. There are many options including Transit Gateway,\n Site-to-Site VPN, or Direct Connect.
\n \n - \n
Each host must allow outbound connection to the EKS cluster control plane on\n TCP ports 443 and 10250.
\n \n - \n
Each host must allow inbound connection from the EKS cluster control plane on\n TCP port 10250 for logs, exec and port-forward operations.
\n \n - \n
Each host must allow TCP and UDP network connectivity to and from other hosts\n that are running CoreDNS on UDP port 53 for service and pod DNS\n names.
\n \n
"
}
}
},
"traits": {
- "smithy.api#documentation": "A network CIDR that can contain hybrid nodes.
\n These CIDR blocks define the expected IP address range of the hybrid nodes that join\n the cluster. These blocks are typically determined by your network administrator.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /24, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n - \n
Each block must have a route to the VPC that uses the VPC CIDR blocks, not\n public IPs or Elastic IPs. There are many options including Transit Gateway,\n Site-to-Site VPN, or Direct Connect.
\n \n - \n
Each host must allow outbound connection to the EKS cluster control plane on\n TCP ports 443 and 10250.
\n \n - \n
Each host must allow inbound connection from the EKS cluster control plane on\n TCP port 10250 for logs, exec and port-forward operations.
\n \n - \n
Each host must allow TCP and UDP network connectivity to and from other hosts\n that are running CoreDNS on UDP port 53 for service and pod DNS\n names.
\n \n
"
+ "smithy.api#documentation": "A network CIDR that can contain hybrid nodes.
\n These CIDR blocks define the expected IP address range of the hybrid nodes that join\n the cluster. These blocks are typically determined by your network administrator.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /32, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n - \n
Each block must have a route to the VPC that uses the VPC CIDR blocks, not\n public IPs or Elastic IPs. There are many options including Transit Gateway,\n Site-to-Site VPN, or Direct Connect.
\n \n - \n
Each host must allow outbound connection to the EKS cluster control plane on\n TCP ports 443 and 10250.
\n \n - \n
Each host must allow inbound connection from the EKS cluster control plane on\n TCP port 10250 for logs, exec and port-forward operations.
\n \n - \n
Each host must allow TCP and UDP network connectivity to and from other hosts\n that are running CoreDNS on UDP port 53 for service and pod DNS\n names.
\n \n
"
}
},
"com.amazonaws.eks#RemoteNodeNetworkList": {
@@ -9846,12 +9876,12 @@
"cidrs": {
"target": "com.amazonaws.eks#StringList",
"traits": {
- "smithy.api#documentation": "A network CIDR that can contain pods that run Kubernetes webhooks on hybrid nodes.
\n These CIDR blocks are determined by configuring your Container Network Interface (CNI)\n plugin. We recommend the Calico CNI or Cilium CNI. Note that the Amazon VPC CNI plugin for Kubernetes isn't\n available for on-premises and edge locations.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /24, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n
"
+ "smithy.api#documentation": "A network CIDR that can contain pods that run Kubernetes webhooks on hybrid nodes.
\n These CIDR blocks are determined by configuring your Container Network Interface (CNI)\n plugin. We recommend the Calico CNI or Cilium CNI. Note that the Amazon VPC CNI plugin for Kubernetes isn't\n available for on-premises and edge locations.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /32, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n
"
}
}
},
"traits": {
- "smithy.api#documentation": "A network CIDR that can contain pods that run Kubernetes webhooks on hybrid nodes.
\n These CIDR blocks are determined by configuring your Container Network Interface (CNI)\n plugin. We recommend the Calico CNI or Cilium CNI. Note that the Amazon VPC CNI plugin for Kubernetes isn't\n available for on-premises and edge locations.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /24, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n
"
+ "smithy.api#documentation": "A network CIDR that can contain pods that run Kubernetes webhooks on hybrid nodes.
\n These CIDR blocks are determined by configuring your Container Network Interface (CNI)\n plugin. We recommend the Calico CNI or Cilium CNI. Note that the Amazon VPC CNI plugin for Kubernetes isn't\n available for on-premises and edge locations.
\n Enter one or more IPv4 CIDR blocks in decimal dotted-quad notation (for example,\n 10.2.0.0/16).
\n It must satisfy the following requirements:
\n \n - \n
Each block must be within an IPv4 RFC-1918 network range. Minimum\n allowed size is /32, maximum allowed size is /8. Publicly-routable addresses\n aren't supported.
\n \n - \n
Each block cannot overlap with the range of the VPC CIDR blocks for your EKS\n resources, or the block of the Kubernetes service IP range.
\n \n
"
}
},
"com.amazonaws.eks#RemotePodNetworkList": {
@@ -10638,7 +10668,7 @@
"podIdentityAssociations": {
"target": "com.amazonaws.eks#AddonPodIdentityAssociationsList",
"traits": {
- "smithy.api#documentation": "An array of Pod Identity Assocations to be updated. Each EKS Pod Identity association\n maps a Kubernetes service account to an IAM Role. If this value is left blank, no change.\n If an empty array is provided, existing Pod Identity Assocations owned by the Addon are\n deleted.
\n For more information, see Attach an IAM Role to an Amazon EKS add-on\n using Pod Identity in the Amazon EKS User Guide.
"
+ "smithy.api#documentation": "An array of EKS Pod Identity associations to be updated. Each association\n maps a Kubernetes service account to an IAM role. If this value is left blank, no change.\n If an empty array is provided, existing associations owned by the add-on are\n deleted.
\n For more information, see Attach an IAM Role to an Amazon EKS add-on\n using EKS Pod Identity in the Amazon EKS User Guide.
"
}
}
},
@@ -10689,7 +10719,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates an Amazon EKS cluster configuration. Your cluster continues to function during the\n update. The response output includes an update ID that you can use to track the status\n of your cluster update with DescribeUpdate.
\n You can use this operation to do the following actions:
\n \n - \n
You can use this API operation to enable or disable exporting the Kubernetes\n control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane\n logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster control plane logs in the\n \n Amazon EKS User Guide\n .
\n \n CloudWatch Logs ingestion, archive storage, and data scanning rates apply to\n exported control plane logs. For more information, see CloudWatch Pricing.
\n \n \n - \n
You can also use this API operation to enable or disable public and private\n access to your cluster's Kubernetes API server endpoint. By default, public access is\n enabled, and private access is disabled. For more information, see Amazon EKS\n cluster endpoint access control in the\n \n Amazon EKS User Guide\n .
\n \n - \n
You can also use this API operation to choose different subnets and security\n groups for the cluster. You must specify at least two subnets that are in\n different Availability Zones. You can't change which VPC the subnets are from, the subnets\n must be in the same VPC as the subnets that the cluster was created with. For\n more information about the VPC requirements, see https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html in the\n \n Amazon EKS User Guide\n .
\n \n - \n
You can also use this API operation to enable or disable ARC zonal shift. If\n zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.
\n \n - \n
You can also use this API operation to add, change, or remove the\n configuration in the cluster for EKS Hybrid Nodes. To remove the configuration,\n use the remoteNetworkConfig key with an object containing both\n subkeys with empty arrays for each. Here is an inline example:\n \"remoteNetworkConfig\": { \"remoteNodeNetworks\": [],\n \"remotePodNetworks\": [] }.
\n \n
\n Cluster updates are asynchronous, and they should finish within a few minutes. During\n an update, the cluster status moves to UPDATING (this status transition is\n eventually consistent). When the update is complete (either Failed or\n Successful), the cluster status moves to Active.
",
+ "smithy.api#documentation": "Updates an Amazon EKS cluster configuration. Your cluster continues to function during the\n update. The response output includes an update ID that you can use to track the status\n of your cluster update with DescribeUpdate.
\n You can use this operation to do the following actions:
\n \n - \n
You can use this API operation to enable or disable exporting the Kubernetes\n control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane\n logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster control plane logs in the\n \n Amazon EKS User Guide\n .
\n \n CloudWatch Logs ingestion, archive storage, and data scanning rates apply to\n exported control plane logs. For more information, see CloudWatch Pricing.
\n \n \n - \n
You can also use this API operation to enable or disable public and private\n access to your cluster's Kubernetes API server endpoint. By default, public access is\n enabled, and private access is disabled. For more information, see \n Cluster API server endpoint in the\n \n Amazon EKS User Guide\n .
\n \n - \n
You can also use this API operation to choose different subnets and security\n groups for the cluster. You must specify at least two subnets that are in\n different Availability Zones. You can't change which VPC the subnets are from, the subnets\n must be in the same VPC as the subnets that the cluster was created with. For\n more information about the VPC requirements, see https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html in the\n \n Amazon EKS User Guide\n .
\n \n - \n
You can also use this API operation to enable or disable ARC zonal shift. If\n zonal shift is enabled, Amazon Web Services configures zonal autoshift for the cluster.
\n \n - \n
You can also use this API operation to add, change, or remove the\n configuration in the cluster for EKS Hybrid Nodes. To remove the configuration,\n use the remoteNetworkConfig key with an object containing both\n subkeys with empty arrays for each. Here is an inline example:\n \"remoteNetworkConfig\": { \"remoteNodeNetworks\": [],\n \"remotePodNetworks\": [] }.
\n \n
\n Cluster updates are asynchronous, and they should finish within a few minutes. During\n an update, the cluster status moves to UPDATING (this status transition is\n eventually consistent). When the update is complete (either Failed or\n Successful), the cluster status moves to Active.
",
"smithy.api#http": {
"method": "POST",
"uri": "/clusters/{name}/update-config",
@@ -11452,7 +11482,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates a EKS Pod Identity association. Only the IAM role can be changed; an association can't be moved\n between clusters, namespaces, or service accounts. If you need to edit the namespace\n or service account, you need to delete the association and then create a new\n association with your desired settings.
",
+ "smithy.api#documentation": "Updates a EKS Pod Identity association. In an update, you can change the IAM role, the target IAM role, or disableSessionTags.\n You must change at least one of these in an update. An association can't be moved\n between clusters, namespaces, or service accounts. If you need to edit the namespace\n or service account, you need to delete the association and then create a new\n association with your desired settings.
\n Similar to Amazon Web Services IAM behavior, EKS Pod Identity associations are eventually consistent,\n and may take several seconds to be effective after the initial API call returns\n successfully. You must design your applications to account for these potential delays.\n We recommend that you don’t include association create/updates in the\n critical, high-availability code paths of your application. Instead, make changes in a\n separate initialization or setup routine that you run less frequently.
\n You can set a target IAM role in the same or a different\n account for advanced scenarios. With a target role, EKS Pod Identity automatically performs two\n role assumptions in sequence: first assuming the role in the association that is in this\n account, then using those credentials to assume the target IAM role. This process\n provides your Pod with temporary credentials that have the permissions defined in the\n target role, allowing secure access to resources in another Amazon Web Services account.
",
"smithy.api#http": {
"method": "POST",
"uri": "/clusters/{clusterName}/pod-identity-associations/{associationId}",
@@ -11482,7 +11512,7 @@
"roleArn": {
"target": "com.amazonaws.eks#String",
"traits": {
- "smithy.api#documentation": "The new IAM role to change the
"
+ "smithy.api#documentation": "The new IAM role to change in the association.
"
}
},
"clientRequestToken": {
@@ -11491,6 +11521,18 @@
"smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure\nthe idempotency of the request.
",
"smithy.api#idempotencyToken": {}
}
+ },
+ "disableSessionTags": {
+ "target": "com.amazonaws.eks#BoxedBoolean",
+ "traits": {
+ "smithy.api#documentation": "Disable the automatic sessions tags that are appended by EKS Pod Identity.
\n EKS Pod Identity adds a pre-defined set of session tags when it assumes the role. You\n can use these tags to author a single role that can work across resources by allowing\n access to Amazon Web Services resources based on matching tags. By default, EKS Pod Identity attaches\n six tags, including tags for cluster name, namespace, and service account name. For the\n list of tags added by EKS Pod Identity, see List of session tags\n added by EKS Pod Identity in the Amazon EKS User Guide.
\n Amazon Web Services compresses inline session policies, managed policy ARNs, and session tags into a\n packed binary format that has a separate limit. If you receive a PackedPolicyTooLarge error\n indicating the packed binary format has exceeded the size limit, you can attempt to reduce\n the size by disabling the session tags added by EKS Pod Identity.
"
+ }
+ },
+ "targetRoleArn": {
+ "target": "com.amazonaws.eks#String",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the target IAM role to associate with the service account. This\n role is assumed by using the EKS Pod Identity association role, then the credentials for this\n role are injected into the Pod.
\n When you run applications on Amazon EKS, your application might need to access Amazon Web Services\n resources from a different role that exists in the same or different Amazon Web Services account. For\n example, your application running in “Account A” might need to access resources, such as\n buckets in “Account B” or within “Account A” itself. You can create a association to\n access Amazon Web Services resources in “Account B” by creating two IAM roles: a role in “Account A”\n and a role in “Account B” (which can be the same or different account), each with the\n necessary trust and permission policies. After you provide these roles in the IAM role\n and Target IAM role fields, EKS will perform role chaining to ensure your application\n gets the required permissions. This means Role A will assume Role B, allowing your Pods\n to securely access resources like S3 buckets in the target account.
"
+ }
}
},
"traits": {
@@ -11503,7 +11545,7 @@
"association": {
"target": "com.amazonaws.eks#PodIdentityAssociation",
"traits": {
- "smithy.api#documentation": "The full description of the EKS Pod Identity association that was updated.
"
+ "smithy.api#documentation": "The full description of the association that was updated.
"
}
}
},
@@ -11718,19 +11760,19 @@
"endpointPublicAccess": {
"target": "com.amazonaws.eks#BoxedBoolean",
"traits": {
- "smithy.api#documentation": "Set this value to false to disable public access to your cluster's Kubernetes\n API server endpoint. If you disable public access, your cluster's Kubernetes API server can\n only receive requests from within the cluster VPC. The default value for this parameter\n is true, which enables public access for your Kubernetes API server. For more\n information, see Amazon EKS cluster endpoint access control in the\n \n Amazon EKS User Guide\n .
"
+ "smithy.api#documentation": "Set this value to false to disable public access to your cluster's Kubernetes\n API server endpoint. If you disable public access, your cluster's Kubernetes API server can\n only receive requests from within the cluster VPC. The default value for this parameter\n is true, which enables public access for your Kubernetes API server. The\n endpoint domain name and IP address family depends on the value of the\n ipFamily for the cluster. For more information, see Cluster API\n server endpoint in the \n Amazon EKS User Guide\n .
"
}
},
"endpointPrivateAccess": {
"target": "com.amazonaws.eks#BoxedBoolean",
"traits": {
- "smithy.api#documentation": "Set this value to true to enable private access for your cluster's Kubernetes\n API server endpoint. If you enable private access, Kubernetes API requests from within your\n cluster's VPC use the private VPC endpoint. The default value for this parameter is\n false, which disables private access for your Kubernetes API server. If you\n disable private access and you have nodes or Fargate pods in the cluster, then\n ensure that publicAccessCidrs includes the necessary CIDR blocks for\n communication with the nodes or Fargate pods. For more information, see Amazon EKS cluster\n endpoint access control in the \n Amazon EKS User Guide\n .
"
+ "smithy.api#documentation": "Set this value to true to enable private access for your cluster's Kubernetes\n API server endpoint. If you enable private access, Kubernetes API requests from within your\n cluster's VPC use the private VPC endpoint. The default value for this parameter is\n false, which disables private access for your Kubernetes API server. If you\n disable private access and you have nodes or Fargate pods in the cluster, then\n ensure that publicAccessCidrs includes the necessary CIDR blocks for\n communication with the nodes or Fargate pods. For more information, see Cluster\n API server endpoint in the \n Amazon EKS User Guide\n .
"
}
},
"publicAccessCidrs": {
"target": "com.amazonaws.eks#StringList",
"traits": {
- "smithy.api#documentation": "The CIDR blocks that are allowed access to your cluster's public Kubernetes API server\n endpoint. Communication to the endpoint from addresses outside of the CIDR blocks that\n you specify is denied. The default value is 0.0.0.0/0. If you've disabled\n private endpoint access, make sure that you specify the necessary CIDR blocks for every\n node and Fargate Pod in the cluster. For more information, see Amazon EKS cluster\n endpoint access control in the \n Amazon EKS User Guide\n .
"
+ "smithy.api#documentation": "The CIDR blocks that are allowed access to your cluster's public Kubernetes API server\n endpoint. Communication to the endpoint from addresses outside of the CIDR blocks that\n you specify is denied. The default value is 0.0.0.0/0 and additionally\n ::/0 for dual-stack `IPv6` clusters. If you've disabled private\n endpoint access, make sure that you specify the necessary CIDR blocks for every node and\n Fargate Pod in the cluster. For more information, see Cluster\n API server endpoint in the \n Amazon EKS User Guide\n .
\n Note that the public endpoints are dual-stack for only IPv6 clusters that\n are made after October 2024. You can't add IPv6 CIDR blocks to\n IPv4 clusters or IPv6 clusters that were made before\n October 2024.
"
}
}
},
@@ -11776,13 +11818,13 @@
"target": "com.amazonaws.eks#Boolean",
"traits": {
"smithy.api#default": false,
- "smithy.api#documentation": "This parameter indicates whether the Amazon EKS private API server endpoint is enabled. If\n the Amazon EKS private API server endpoint is enabled, Kubernetes API requests that originate from\n within your cluster's VPC use the private VPC endpoint instead of traversing the\n internet. If this value is disabled and you have nodes or Fargate pods in the\n cluster, then ensure that publicAccessCidrs includes the necessary CIDR\n blocks for communication with the nodes or Fargate pods. For more information, see\n Amazon EKS\n cluster endpoint access control in the\n \n Amazon EKS User Guide\n .
"
+ "smithy.api#documentation": "This parameter indicates whether the Amazon EKS private API server endpoint is enabled. If\n the Amazon EKS private API server endpoint is enabled, Kubernetes API requests that originate from\n within your cluster's VPC use the private VPC endpoint instead of traversing the\n internet. If this value is disabled and you have nodes or Fargate pods in the\n cluster, then ensure that publicAccessCidrs includes the necessary CIDR\n blocks for communication with the nodes or Fargate pods. For more information, see\n Cluster\n API server endpoint in the \n Amazon EKS User Guide\n .
"
}
},
"publicAccessCidrs": {
"target": "com.amazonaws.eks#StringList",
"traits": {
- "smithy.api#documentation": "The CIDR blocks that are allowed access to your cluster's public Kubernetes API server\n endpoint.
"
+ "smithy.api#documentation": "The CIDR blocks that are allowed access to your cluster's public Kubernetes API server\n endpoint. Communication to the endpoint from addresses outside of the CIDR blocks that\n you specify is denied. The default value is 0.0.0.0/0 and additionally\n ::/0 for dual-stack `IPv6` clusters. If you've disabled private\n endpoint access, make sure that you specify the necessary CIDR blocks for every node and\n Fargate Pod in the cluster. For more information, see Cluster\n API server endpoint in the \n Amazon EKS User Guide\n .
\n Note that the public endpoints are dual-stack for only IPv6 clusters that\n are made after October 2024. You can't add IPv6 CIDR blocks to\n IPv4 clusters or IPv6 clusters that were made before\n October 2024.
"
}
}
},
diff --git a/codegen/sdk-codegen/aws-models/emr-serverless.json b/codegen/sdk-codegen/aws-models/emr-serverless.json
index 996b775212d..fcef6df3223 100644
--- a/codegen/sdk-codegen/aws-models/emr-serverless.json
+++ b/codegen/sdk-codegen/aws-models/emr-serverless.json
@@ -1204,7 +1204,7 @@
"target": "com.amazonaws.emrserverless#ShutdownGracePeriodInSeconds",
"traits": {
"smithy.api#default": null,
- "smithy.api#documentation": "The duration (in seconds) to wait before forcefully terminating the job after cancellation is requested.",
+ "smithy.api#documentation": "The duration in seconds to wait before forcefully terminating the job after cancellation is requested.
",
"smithy.api#httpQuery": "shutdownGracePeriodInSeconds"
}
}
@@ -2157,6 +2157,9 @@
"smithy.api#required": {}
}
},
+ "executionIamPolicy": {
+ "target": "com.amazonaws.emrserverless#JobRunExecutionIamPolicy"
+ },
"state": {
"target": "com.amazonaws.emrserverless#JobRunState",
"traits": {
diff --git a/codegen/sdk-codegen/aws-models/guardduty.json b/codegen/sdk-codegen/aws-models/guardduty.json
index a8be041d895..bcce1fb4c6c 100644
--- a/codegen/sdk-codegen/aws-models/guardduty.json
+++ b/codegen/sdk-codegen/aws-models/guardduty.json
@@ -323,7 +323,7 @@
"target": "com.amazonaws.guardduty#Email",
"traits": {
"smithy.api#clientOptional": {},
- "smithy.api#documentation": "The email address of the member account.
",
+ "smithy.api#documentation": "The email address of the member account.
\n The rules for a valid email address:
\n \n - \n
The email address must be a minimum of 6 and a maximum of 64 characters long.
\n \n - \n
All characters must be 7-bit ASCII characters.
\n \n - \n
There must be one and only one @ symbol, which separates the local name from the domain name.
\n \n - \n
The local name can't contain any of the following characters:
\n whitespace, \" ' ( ) < > [ ] : ' , \\ | % &
\n \n - \n
The local name can't begin with a dot (.).
\n \n - \n
The domain name can consist of only the characters [a-z], [A-Z], [0-9], hyphen (-), or dot (.).
\n \n - \n
The domain name can't begin or end with a dot (.) or hyphen (-).
\n \n - \n
The domain name must contain at least one dot.
\n \n
",
"smithy.api#jsonName": "email",
"smithy.api#required": {}
}
@@ -551,6 +551,13 @@
"smithy.api#documentation": "Contains information about the user session where the activity initiated.
",
"smithy.api#jsonName": "session"
}
+ },
+ "Process": {
+ "target": "com.amazonaws.guardduty#ActorProcess",
+ "traits": {
+ "smithy.api#documentation": "Contains information about the process associated with the threat actor.\n This includes details such as process name, path, execution time, and\n unique identifiers that help track the actor's activities within the system.
",
+ "smithy.api#jsonName": "process"
+ }
}
},
"traits": {
@@ -569,6 +576,39 @@
}
}
},
+ "com.amazonaws.guardduty#ActorProcess": {
+ "type": "structure",
+ "members": {
+ "Name": {
+ "target": "com.amazonaws.guardduty#ProcessName",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The name of the process as it appears in the system.
",
+ "smithy.api#jsonName": "name",
+ "smithy.api#required": {}
+ }
+ },
+ "Path": {
+ "target": "com.amazonaws.guardduty#ProcessPath",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The full file path to the process executable on the system.
",
+ "smithy.api#jsonName": "path",
+ "smithy.api#required": {}
+ }
+ },
+ "Sha256": {
+ "target": "com.amazonaws.guardduty#ProcessSha256",
+ "traits": {
+ "smithy.api#documentation": "The SHA256 hash of the process executable file, which can be used for identification\n and verification purposes.
",
+ "smithy.api#jsonName": "sha256"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about a process involved in a GuardDuty finding, including process identification,\n execution details, and file information.
"
+ }
+ },
"com.amazonaws.guardduty#Actors": {
"type": "list",
"member": {
@@ -581,6 +621,12 @@
}
}
},
+ "com.amazonaws.guardduty#AdditionalSequenceTypes": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.guardduty#FindingType"
+ }
+ },
"com.amazonaws.guardduty#AddonDetails": {
"type": "structure",
"members": {
@@ -1161,6 +1207,47 @@
"smithy.api#documentation": "Contains information on the status of CloudTrail as a data source for the detector.
"
}
},
+ "com.amazonaws.guardduty#ClusterStatus": {
+ "type": "enum",
+ "members": {
+ "CREATING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CREATING"
+ }
+ },
+ "ACTIVE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACTIVE"
+ }
+ },
+ "DELETING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETING"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED"
+ }
+ },
+ "UPDATING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "UPDATING"
+ }
+ },
+ "PENDING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING"
+ }
+ }
+ }
+ },
"com.amazonaws.guardduty#Condition": {
"type": "structure",
"members": {
@@ -1340,6 +1427,39 @@
"smithy.api#documentation": "Details of a container.
"
}
},
+ "com.amazonaws.guardduty#ContainerFindingResource": {
+ "type": "structure",
+ "members": {
+ "Image": {
+ "target": "com.amazonaws.guardduty#String",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The container image information, including the image name and tag used to run the container\n that was involved in the finding.
",
+ "smithy.api#jsonName": "image",
+ "smithy.api#required": {}
+ }
+ },
+ "ImageUid": {
+ "target": "com.amazonaws.guardduty#ContainerImageUid",
+ "traits": {
+ "smithy.api#documentation": "The unique ID associated with the container image.
",
+ "smithy.api#jsonName": "imageUid"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about container resources involved in a GuardDuty finding.\n This structure provides details about containers that were identified as part of\n suspicious or malicious activity.
"
+ }
+ },
+ "com.amazonaws.guardduty#ContainerImageUid": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1024
+ }
+ }
+ },
"com.amazonaws.guardduty#ContainerInstanceDetails": {
"type": "structure",
"members": {
@@ -1362,6 +1482,21 @@
"smithy.api#documentation": "Contains information about the Amazon EC2 instance that is running \n the Amazon ECS container.
"
}
},
+ "com.amazonaws.guardduty#ContainerUid": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 256
+ }
+ }
+ },
+ "com.amazonaws.guardduty#ContainerUids": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.guardduty#ContainerUid"
+ }
+ },
"com.amazonaws.guardduty#Containers": {
"type": "list",
"member": {
@@ -4746,6 +4881,27 @@
"smithy.api#documentation": "Details about the potentially impacted Amazon EC2 instance resource.
"
}
},
+ "com.amazonaws.guardduty#Ec2InstanceUid": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 256
+ }
+ }
+ },
+ "com.amazonaws.guardduty#Ec2InstanceUids": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.guardduty#Ec2InstanceUid"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 25
+ }
+ }
+ },
"com.amazonaws.guardduty#Ec2NetworkInterface": {
"type": "structure",
"members": {
@@ -4951,6 +5107,49 @@
"smithy.api#documentation": "Contains information about the task in an ECS cluster.
"
}
},
+ "com.amazonaws.guardduty#EksCluster": {
+ "type": "structure",
+ "members": {
+ "Arn": {
+ "target": "com.amazonaws.guardduty#String",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) that uniquely identifies the Amazon EKS cluster involved in the finding.
",
+ "smithy.api#jsonName": "arn"
+ }
+ },
+ "CreatedAt": {
+ "target": "com.amazonaws.guardduty#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp indicating when the Amazon EKS cluster was created, in UTC format.
",
+ "smithy.api#jsonName": "createdAt"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.guardduty#ClusterStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the Amazon EKS cluster.
",
+ "smithy.api#jsonName": "status"
+ }
+ },
+ "VpcId": {
+ "target": "com.amazonaws.guardduty#String",
+ "traits": {
+ "smithy.api#documentation": "The ID of the Amazon Virtual Private Cloud (Amazon VPC) associated with the Amazon EKS cluster.
",
+ "smithy.api#jsonName": "vpcId"
+ }
+ },
+ "Ec2InstanceUids": {
+ "target": "com.amazonaws.guardduty#Ec2InstanceUids",
+ "traits": {
+ "smithy.api#documentation": "A list of unique identifiers for the Amazon EC2 instances that serve as worker nodes in the Amazon EKS cluster.
",
+ "smithy.api#jsonName": "ec2InstanceUids"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about the Amazon EKS cluster involved in a GuardDuty finding,\n including cluster identification, status, and network configuration.
"
+ }
+ },
"com.amazonaws.guardduty#EksClusterDetails": {
"type": "structure",
"members": {
@@ -5005,9 +5204,10 @@
"type": "string",
"traits": {
"smithy.api#length": {
- "min": 1,
+ "min": 6,
"max": 64
},
+ "smithy.api#pattern": "^See rules in parameter description$",
"smithy.api#sensitive": {}
}
},
@@ -5257,7 +5457,7 @@
"CriterionKey": {
"target": "com.amazonaws.guardduty#CriterionKey",
"traits": {
- "smithy.api#documentation": "An enum value representing possible scan properties to match with given scan\n entries.
\n \n Replace the enum value CLUSTER_NAME with EKS_CLUSTER_NAME.\n CLUSTER_NAME has been deprecated.
\n ",
+ "smithy.api#documentation": "An enum value representing possible scan properties to match with given scan\n entries.
",
"smithy.api#jsonName": "criterionKey"
}
},
@@ -5388,7 +5588,7 @@
"target": "com.amazonaws.guardduty#String",
"traits": {
"smithy.api#clientOptional": {},
- "smithy.api#documentation": "The Region where the finding was generated.
",
+ "smithy.api#documentation": "The Region where the finding was generated. For findings generated\n from Global Service Events, the Region value in the finding might differ from the Region where\n GuardDuty identifies the potential threat. For more information,\n see How GuardDuty\n handles Amazon Web Services CloudTrail global events in the Amazon GuardDuty User Guide.
",
"smithy.api#jsonName": "region",
"smithy.api#required": {}
}
@@ -5553,6 +5753,24 @@
"traits": {
"smithy.api#enumValue": "ACCESS_KEY"
}
+ },
+ "EKS_CLUSTER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "EKS_CLUSTER"
+ }
+ },
+ "KUBERNETES_WORKLOAD": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "KUBERNETES_WORKLOAD"
+ }
+ },
+ "CONTAINER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CONTAINER"
+ }
}
}
},
@@ -5855,7 +6073,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Provides the details of the GuardDuty administrator account associated with the current\n GuardDuty member account.
\n \n If the organization's management account or a delegated administrator runs this API, \n it will return success (HTTP 200) but no content.
\n ",
+ "smithy.api#documentation": "Provides the details of the GuardDuty administrator account associated with the current\n GuardDuty member account.
\n Based on the type of account that runs this API, the following list shows how the API behavior varies:
\n \n - \n
When the GuardDuty administrator account runs this API, it will return success (HTTP 200) but no content.
\n \n - \n
When a member account runs this API, it will return the details of the GuardDuty administrator account that is associated\n with this calling member account.
\n \n - \n
When an individual account (not associated with an organization) runs this API, it will return success (HTTP 200)\n but no content.
\n \n
",
"smithy.api#http": {
"method": "GET",
"uri": "/detector/{DetectorId}/administrator",
@@ -8751,6 +8969,42 @@
"traits": {
"smithy.api#enumValue": "UNUSUAL_ASN_FOR_USER"
}
+ },
+ "SUSPICIOUS_PROCESS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SUSPICIOUS_PROCESS"
+ }
+ },
+ "MALICIOUS_DOMAIN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "MALICIOUS_DOMAIN"
+ }
+ },
+ "MALICIOUS_PROCESS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "MALICIOUS_PROCESS"
+ }
+ },
+ "CRYPTOMINING_IP": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CRYPTOMINING_IP"
+ }
+ },
+ "CRYPTOMINING_DOMAIN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CRYPTOMINING_DOMAIN"
+ }
+ },
+ "CRYPTOMINING_PROCESS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CRYPTOMINING_PROCESS"
+ }
}
}
},
@@ -9441,6 +9695,59 @@
"smithy.api#documentation": "Information about the Kubernetes API for which you check if you have permission to call.
"
}
},
+ "com.amazonaws.guardduty#KubernetesResourcesTypes": {
+ "type": "enum",
+ "members": {
+ "PODS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PODS"
+ }
+ },
+ "JOBS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "JOBS"
+ }
+ },
+ "CRONJOBS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CRONJOBS"
+ }
+ },
+ "DEPLOYMENTS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DEPLOYMENTS"
+ }
+ },
+ "DAEMONSETS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DAEMONSETS"
+ }
+ },
+ "STATEFULSETS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "STATEFULSETS"
+ }
+ },
+ "REPLICASETS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "REPLICASETS"
+ }
+ },
+ "REPLICATIONCONTROLLERS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "REPLICATIONCONTROLLERS"
+ }
+ }
+ }
+ },
"com.amazonaws.guardduty#KubernetesRoleBindingDetails": {
"type": "structure",
"members": {
@@ -9556,6 +9863,35 @@
"smithy.api#documentation": "Details about the Kubernetes user involved in a Kubernetes finding.
"
}
},
+ "com.amazonaws.guardduty#KubernetesWorkload": {
+ "type": "structure",
+ "members": {
+ "ContainerUids": {
+ "target": "com.amazonaws.guardduty#ContainerUids",
+ "traits": {
+ "smithy.api#documentation": "A list of unique identifiers for the containers that are part of the Kubernetes workload.
",
+ "smithy.api#jsonName": "containerUids"
+ }
+ },
+ "Namespace": {
+ "target": "com.amazonaws.guardduty#String",
+ "traits": {
+ "smithy.api#documentation": "The Kubernetes namespace in which the workload is running, providing logical isolation within the cluster.
",
+ "smithy.api#jsonName": "namespace"
+ }
+ },
+ "KubernetesResourcesTypes": {
+ "target": "com.amazonaws.guardduty#KubernetesResourcesTypes",
+ "traits": {
+ "smithy.api#documentation": "The types of Kubernetes resources involved in the workload.
",
+ "smithy.api#jsonName": "kubernetesResourcesTypes"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about Kubernetes workloads involved in a GuardDuty finding,\n including pods, deployments, and other Kubernetes resources.
"
+ }
+ },
"com.amazonaws.guardduty#KubernetesWorkloadDetails": {
"type": "structure",
"members": {
@@ -12698,6 +13034,33 @@
"smithy.api#documentation": "Information about the observed process.
"
}
},
+ "com.amazonaws.guardduty#ProcessName": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 4096
+ }
+ }
+ },
+ "com.amazonaws.guardduty#ProcessPath": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 4096
+ }
+ }
+ },
+ "com.amazonaws.guardduty#ProcessSha256": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 1024
+ }
+ }
+ },
"com.amazonaws.guardduty#ProductCode": {
"type": "structure",
"members": {
@@ -13315,6 +13678,27 @@
"smithy.api#documentation": "Contains information about the Amazon S3 object.
",
"smithy.api#jsonName": "s3Object"
}
+ },
+ "EksCluster": {
+ "target": "com.amazonaws.guardduty#EksCluster",
+ "traits": {
+ "smithy.api#documentation": "Contains detailed information about the Amazon EKS cluster associated with the activity that\n prompted GuardDuty to generate a finding.
",
+ "smithy.api#jsonName": "eksCluster"
+ }
+ },
+ "KubernetesWorkload": {
+ "target": "com.amazonaws.guardduty#KubernetesWorkload",
+ "traits": {
+ "smithy.api#documentation": "Contains detailed information about the Kubernetes workload associated with the activity that\n prompted GuardDuty to generate a finding.
",
+ "smithy.api#jsonName": "kubernetesWorkload"
+ }
+ },
+ "Container": {
+ "target": "com.amazonaws.guardduty#ContainerFindingResource",
+ "traits": {
+ "smithy.api#documentation": "Contains detailed information about the container associated with the activity that\n prompted GuardDuty to generate a finding.
",
+ "smithy.api#jsonName": "container"
+ }
}
},
"traits": {
@@ -14581,6 +14965,13 @@
"smithy.api#documentation": "Contains information about the indicators observed in the attack sequence.
",
"smithy.api#jsonName": "sequenceIndicators"
}
+ },
+ "AdditionalSequenceTypes": {
+ "target": "com.amazonaws.guardduty#AdditionalSequenceTypes",
+ "traits": {
+ "smithy.api#documentation": "Additional types of sequences that may be associated with the attack sequence finding,\n providing further context about the nature of the detected threat.
",
+ "smithy.api#jsonName": "additionalSequenceTypes"
+ }
}
},
"traits": {
@@ -14960,6 +15351,30 @@
"traits": {
"smithy.api#enumValue": "S3_DATA_EVENTS"
}
+ },
+ "EKS_AUDIT_LOGS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "EKS_AUDIT_LOGS"
+ }
+ },
+ "FLOW_LOGS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FLOW_LOGS"
+ }
+ },
+ "DNS_LOGS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DNS_LOGS"
+ }
+ },
+ "RUNTIME_MONITORING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "RUNTIME_MONITORING"
+ }
}
}
},
diff --git a/codegen/sdk-codegen/aws-models/inspector2.json b/codegen/sdk-codegen/aws-models/inspector2.json
index e8620ec1abf..9b7eeaee478 100644
--- a/codegen/sdk-codegen/aws-models/inspector2.json
+++ b/codegen/sdk-codegen/aws-models/inspector2.json
@@ -12,7 +12,7 @@
}
},
"traits": {
- "smithy.api#documentation": "You do not have sufficient access to perform this action.
",
+ "smithy.api#documentation": "You do not have sufficient access to perform this action.
\n For Enable, you receive this error if you attempt to use a feature in an\n unsupported Amazon Web Services Region.
",
"smithy.api#error": "client",
"smithy.api#httpError": 403
}
@@ -96,13 +96,13 @@
"exploitAvailableCount": {
"target": "smithy.api#Long",
"traits": {
- "smithy.api#documentation": "\n The number of findings that have an exploit available.\n
"
+ "smithy.api#documentation": " The number of findings that have an exploit available.
"
}
},
"fixAvailableCount": {
"target": "smithy.api#Long",
"traits": {
- "smithy.api#documentation": "\n Details about the number of fixes.\n
"
+ "smithy.api#documentation": " Details about the number of fixes.
"
}
}
},
@@ -196,7 +196,7 @@
}
},
"traits": {
- "smithy.api#documentation": "An object with details the status of an Amazon Web Services account within your Amazon Inspector environment.
"
+ "smithy.api#documentation": "An object with details the status of an Amazon Web Services account within your Amazon Inspector\n environment.
"
}
},
"com.amazonaws.inspector2#AccountStateList": {
@@ -266,7 +266,7 @@
"findingTypeAggregation": {
"target": "com.amazonaws.inspector2#FindingTypeAggregation",
"traits": {
- "smithy.api#documentation": "An object that contains details about an aggregation request based on finding types.
"
+ "smithy.api#documentation": "An object that contains details about an aggregation request based on finding\n types.
"
}
},
"imageLayerAggregation": {
@@ -284,13 +284,13 @@
"repositoryAggregation": {
"target": "com.amazonaws.inspector2#RepositoryAggregation",
"traits": {
- "smithy.api#documentation": "An object that contains details about an aggregation request based on Amazon ECR repositories.
"
+ "smithy.api#documentation": "An object that contains details about an aggregation request based on Amazon ECR\n repositories.
"
}
},
"titleAggregation": {
"target": "com.amazonaws.inspector2#TitleAggregation",
"traits": {
- "smithy.api#documentation": "An object that contains details about an aggregation request based on finding title.
"
+ "smithy.api#documentation": "An object that contains details about an aggregation request based on finding\n title.
"
}
},
"lambdaLayerAggregation": {
@@ -304,6 +304,12 @@
"traits": {
"smithy.api#documentation": "Returns an object with findings aggregated by Amazon Web Services Lambda function.
"
}
+ },
+ "codeRepositoryAggregation": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryAggregation",
+ "traits": {
+ "smithy.api#documentation": "An object that contains details about an aggregation request based on code\n repositories.
"
+ }
}
},
"traits": {
@@ -359,7 +365,7 @@
"findingTypeAggregation": {
"target": "com.amazonaws.inspector2#FindingTypeAggregationResponse",
"traits": {
- "smithy.api#documentation": "An object that contains details about an aggregation response based on finding types.
"
+ "smithy.api#documentation": "An object that contains details about an aggregation response based on finding\n types.
"
}
},
"imageLayerAggregation": {
@@ -383,7 +389,7 @@
"titleAggregation": {
"target": "com.amazonaws.inspector2#TitleAggregationResponse",
"traits": {
- "smithy.api#documentation": "An object that contains details about an aggregation response based on finding title.
"
+ "smithy.api#documentation": "An object that contains details about an aggregation response based on finding\n title.
"
}
},
"lambdaLayerAggregation": {
@@ -397,6 +403,12 @@
"traits": {
"smithy.api#documentation": "An aggregation of findings by Amazon Web Services Lambda function.
"
}
+ },
+ "codeRepositoryAggregation": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryAggregationResponse",
+ "traits": {
+ "smithy.api#documentation": "An object that contains details about an aggregation response based on code\n repositories.
"
+ }
}
},
"traits": {
@@ -456,6 +468,10 @@
{
"value": "LAMBDA_LAYER",
"name": "LAMBDA_LAYER"
+ },
+ {
+ "value": "CODE_REPOSITORY",
+ "name": "CODE_REPOSITORY"
}
]
}
@@ -584,6 +600,39 @@
}
}
},
+ "com.amazonaws.inspector2#AssociateConfigurationRequest": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "resource": {
+ "target": "com.amazonaws.inspector2#CodeSecurityResource",
+ "traits": {
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details about a request to associate a code repository with a scan\n configuration.
"
+ }
+ },
+ "com.amazonaws.inspector2#AssociateConfigurationRequestList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#AssociateConfigurationRequest"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 25
+ }
+ }
+ },
"com.amazonaws.inspector2#AssociateMember": {
"type": "operation",
"input": {
@@ -610,7 +659,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using ListMembers for multiple accounts or GetMembers for a single account.
",
+ "smithy.api#documentation": "Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response\n indicates the association was successfully started, but doesn’t indicate whether it was\n completed. You can check if the association completed by using ListMembers for multiple\n accounts or GetMembers for a single account.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -642,6 +691,55 @@
}
}
},
+ "com.amazonaws.inspector2#AssociationResultStatusCode": {
+ "type": "enum",
+ "members": {
+ "INTERNAL_ERROR": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "INTERNAL_ERROR"
+ }
+ },
+ "ACCESS_DENIED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACCESS_DENIED"
+ }
+ },
+ "SCAN_CONFIGURATION_NOT_FOUND": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SCAN_CONFIGURATION_NOT_FOUND"
+ }
+ },
+ "INVALID_INPUT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "INVALID_INPUT"
+ }
+ },
+ "RESOURCE_NOT_FOUND": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "RESOURCE_NOT_FOUND"
+ }
+ },
+ "QUOTA_EXCEEDED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "QUOTA_EXCEEDED"
+ }
+ }
+ }
+ },
+ "com.amazonaws.inspector2#AssociationResultStatusMessage": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1
+ }
+ }
+ },
"com.amazonaws.inspector2#AtigData": {
"type": "structure",
"members": {
@@ -666,12 +764,18 @@
"ttps": {
"target": "com.amazonaws.inspector2#Ttps",
"traits": {
- "smithy.api#documentation": "The MITRE ATT&CK tactics, techniques, and procedures (TTPs) associated with vulnerability.
"
+ "smithy.api#documentation": "The MITRE ATT&CK tactics, techniques,\n and procedures (TTPs) associated with vulnerability.
"
}
}
},
"traits": {
- "smithy.api#documentation": "The Amazon Web Services Threat Intel Group (ATIG) details for a specific vulnerability.
"
+ "smithy.api#documentation": "The Amazon Web Services Threat Intel Group (ATIG) details for a specific\n vulnerability.
"
+ }
+ },
+ "com.amazonaws.inspector2#AuthorizationUrl": {
+ "type": "string",
+ "traits": {
+ "smithy.api#sensitive": {}
}
},
"com.amazonaws.inspector2#AutoEnable": {
@@ -694,18 +798,24 @@
"lambda": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Represents whether Amazon Web Services Lambda standard scans are automatically enabled for new members of your Amazon Inspector organization.\n
"
+ "smithy.api#documentation": "Represents whether Amazon Web Services Lambda standard scans are automatically enabled\n for new members of your Amazon Inspector organization.
"
}
},
"lambdaCode": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Represents whether Lambda code scans are automatically enabled for new members of your Amazon Inspector organization.\n \n
"
+ "smithy.api#documentation": "Represents whether Lambda code scans are automatically enabled for new members of your\n Amazon Inspector organization.
"
+ }
+ },
+ "codeRepository": {
+ "target": "smithy.api#Boolean",
+ "traits": {
+ "smithy.api#documentation": "Represents whether code repository scans are automatically enabled for new members of\n your Amazon Inspector organization.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Represents which scan types are automatically enabled for new members of your Amazon Inspector organization.
"
+ "smithy.api#documentation": "Represents which scan types are automatically enabled for new members of your Amazon Inspector\n organization.
"
}
},
"com.amazonaws.inspector2#AwsEc2InstanceDetails": {
@@ -824,7 +934,7 @@
"lastInUseAt": {
"target": "com.amazonaws.inspector2#DateFilterList",
"traits": {
- "smithy.api#documentation": "The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS pod.
"
+ "smithy.api#documentation": "The last time an Amazon ECR image was used in an Amazon ECS task or\n Amazon EKS pod.
"
}
},
"inUseCount": {
@@ -887,7 +997,7 @@
"lastInUseAt": {
"target": "com.amazonaws.inspector2#DateTimeTimestamp",
"traits": {
- "smithy.api#documentation": "The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS pod.
"
+ "smithy.api#documentation": "The last time an Amazon ECR image was used in an Amazon ECS task or\n Amazon EKS pod.
"
}
},
"inUseCount": {
@@ -958,7 +1068,7 @@
"lastInUseAt": {
"target": "com.amazonaws.inspector2#DateTimeTimestamp",
"traits": {
- "smithy.api#documentation": "The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS pod.
"
+ "smithy.api#documentation": "The last time an Amazon ECR image was used in an Amazon ECS task or\n Amazon EKS pod.
"
}
},
"inUseCount": {
@@ -1042,7 +1152,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The metadata for an Amazon EKS pod where an Amazon ECR image is in use.
"
+ "smithy.api#documentation": "The metadata for an Amazon EKS pod where an Amazon ECR image is in\n use.
"
}
},
"com.amazonaws.inspector2#AwsEksWorkloadInfo": {
@@ -1127,7 +1237,7 @@
"layers": {
"target": "com.amazonaws.inspector2#LayerList",
"traits": {
- "smithy.api#documentation": "The Amazon Web Services Lambda function's \n layers. A Lambda function can have up to five layers.
"
+ "smithy.api#documentation": "The Amazon Web Services Lambda function's layers. A\n Lambda function can have up to five layers.
"
}
},
"vpcConfig": {
@@ -1139,19 +1249,19 @@
"packageType": {
"target": "com.amazonaws.inspector2#PackageType",
"traits": {
- "smithy.api#documentation": "The type of deployment package. Set to Image for container image and set Zip for .zip file archive.
"
+ "smithy.api#documentation": "The type of deployment package. Set to Image for container image and set\n Zip for .zip file archive.
"
}
},
"architectures": {
"target": "com.amazonaws.inspector2#ArchitectureList",
"traits": {
- "smithy.api#documentation": "The instruction set architecture that the Amazon Web Services Lambda function supports. Architecture is a string array with one of the \n valid values. The default architecture value is x86_64.
"
+ "smithy.api#documentation": "The instruction set architecture that the Amazon Web Services Lambda function supports.\n Architecture is a string array with one of the valid values. The default architecture value\n is x86_64.
"
}
},
"lastModifiedAt": {
"target": "smithy.api#Timestamp",
"traits": {
- "smithy.api#documentation": "The date and time that a user last updated the configuration, in ISO 8601 format\n
"
+ "smithy.api#documentation": "The date and time that a user last updated the configuration, in ISO 8601\n format\n
"
}
}
},
@@ -1175,6 +1285,150 @@
"smithy.api#httpError": 400
}
},
+ "com.amazonaws.inspector2#BatchAssociateCodeSecurityScanConfiguration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#BatchAssociateCodeSecurityScanConfigurationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#BatchAssociateCodeSecurityScanConfigurationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Associates multiple code repositories with an Amazon Inspector code security scan\n configuration.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/scan-configuration/batch/associate"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#BatchAssociateCodeSecurityScanConfigurationRequest": {
+ "type": "structure",
+ "members": {
+ "associateConfigurationRequests": {
+ "target": "com.amazonaws.inspector2#AssociateConfigurationRequestList",
+ "traits": {
+ "smithy.api#documentation": "A list of code repositories to associate with the specified scan configuration.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#BatchAssociateCodeSecurityScanConfigurationResponse": {
+ "type": "structure",
+ "members": {
+ "failedAssociations": {
+ "target": "com.amazonaws.inspector2#FailedAssociationResultList",
+ "traits": {
+ "smithy.api#documentation": "Details of any code repositories that failed to be associated with the scan\n configuration.
"
+ }
+ },
+ "successfulAssociations": {
+ "target": "com.amazonaws.inspector2#SuccessfulAssociationResultList",
+ "traits": {
+ "smithy.api#documentation": "Details of code repositories that were successfully associated with the scan\n configuration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.inspector2#BatchDisassociateCodeSecurityScanConfiguration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#BatchDisassociateCodeSecurityScanConfigurationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#BatchDisassociateCodeSecurityScanConfigurationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Disassociates multiple code repositories from an Amazon Inspector code security scan\n configuration.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/scan-configuration/batch/disassociate"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#BatchDisassociateCodeSecurityScanConfigurationRequest": {
+ "type": "structure",
+ "members": {
+ "disassociateConfigurationRequests": {
+ "target": "com.amazonaws.inspector2#DisassociateConfigurationRequestList",
+ "traits": {
+ "smithy.api#documentation": "A list of code repositories to disassociate from the specified scan\n configuration.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#BatchDisassociateCodeSecurityScanConfigurationResponse": {
+ "type": "structure",
+ "members": {
+ "failedAssociations": {
+ "target": "com.amazonaws.inspector2#FailedAssociationResultList",
+ "traits": {
+ "smithy.api#documentation": "Details of any code repositories that failed to be disassociated from the scan\n configuration.
"
+ }
+ },
+ "successfulAssociations": {
+ "target": "com.amazonaws.inspector2#SuccessfulAssociationResultList",
+ "traits": {
+ "smithy.api#documentation": "Details of code repositories that were successfully disassociated from the scan\n configuration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.inspector2#BatchGetAccountStatus": {
"type": "operation",
"input": {
@@ -1226,7 +1480,7 @@
"accounts": {
"target": "com.amazonaws.inspector2#AccountStateList",
"traits": {
- "smithy.api#documentation": "An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.
",
+ "smithy.api#documentation": "An array of objects that provide details on the status of Amazon Inspector for each of the\n requested accounts.
",
"smithy.api#required": {}
}
},
@@ -1261,7 +1515,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities in.
",
+ "smithy.api#documentation": "Retrieves code snippets from findings that Amazon Inspector detected code vulnerabilities\n in.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1275,7 +1529,7 @@
"findingArns": {
"target": "com.amazonaws.inspector2#FindingArns",
"traits": {
- "smithy.api#documentation": "An array of finding ARNs for the findings you want to retrieve code snippets from.
",
+ "smithy.api#documentation": "An array of finding ARNs for the findings you want to retrieve code snippets\n from.
",
"smithy.api#length": {
"min": 1,
"max": 10
@@ -1300,7 +1554,7 @@
"errors": {
"target": "com.amazonaws.inspector2#CodeSnippetErrorList",
"traits": {
- "smithy.api#documentation": "Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.
"
+ "smithy.api#documentation": "Any errors Amazon Inspector encountered while trying to retrieve the requested code\n snippets.
"
}
}
},
@@ -1483,14 +1737,14 @@
"accounts": {
"target": "com.amazonaws.inspector2#FreeTrialAccountInfoList",
"traits": {
- "smithy.api#documentation": "An array of objects that provide Amazon Inspector free trial details for each of the requested accounts.\n
",
+ "smithy.api#documentation": "An array of objects that provide Amazon Inspector free trial details for each of the requested\n accounts.
",
"smithy.api#required": {}
}
},
"failedAccounts": {
"target": "com.amazonaws.inspector2#FreeTrialInfoErrorList",
"traits": {
- "smithy.api#documentation": "An array of objects detailing any accounts that free trial data could not be returned for.
",
+ "smithy.api#documentation": "An array of objects detailing any accounts that free trial data could not be returned\n for.
",
"smithy.api#required": {}
}
}
@@ -1519,7 +1773,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
",
+ "smithy.api#documentation": "Retrieves Amazon Inspector deep inspection activation status of multiple member accounts within\n your organization. You must be the delegated administrator of an organization in Amazon Inspector to\n use this API.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1533,7 +1787,7 @@
"accountIds": {
"target": "com.amazonaws.inspector2#AccountIdSet",
"traits": {
- "smithy.api#documentation": "The unique identifiers for the Amazon Web Services accounts to retrieve Amazon Inspector deep inspection activation status for.\n \n
"
+ "smithy.api#documentation": "The unique identifiers for the Amazon Web Services accounts to retrieve Amazon Inspector deep inspection\n activation status for.
"
}
}
},
@@ -1547,13 +1801,13 @@
"accountIds": {
"target": "com.amazonaws.inspector2#MemberAccountEc2DeepInspectionStatusStateList",
"traits": {
- "smithy.api#documentation": "An array of objects that provide details on the activation status of Amazon Inspector deep inspection for each of the requested accounts.\n \n
"
+ "smithy.api#documentation": "An array of objects that provide details on the activation status of Amazon Inspector deep\n inspection for each of the requested accounts.
"
}
},
"failedAccountIds": {
"target": "com.amazonaws.inspector2#FailedMemberAccountEc2DeepInspectionStatusStateList",
"traits": {
- "smithy.api#documentation": "An array of objects that provide details on any accounts that failed to activate Amazon Inspector deep inspection and why.\n \n
"
+ "smithy.api#documentation": "An array of objects that provide details on any accounts that failed to activate Amazon Inspector\n deep inspection and why.
"
}
}
},
@@ -1584,7 +1838,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your organization. You must be the delegated administrator of an organization in Amazon Inspector to use this API.
",
+ "smithy.api#documentation": "Activates or deactivates Amazon Inspector deep inspection for the provided member accounts in your\n organization. You must be the delegated administrator of an organization in Amazon Inspector to use\n this API.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -1598,7 +1852,7 @@
"accountIds": {
"target": "com.amazonaws.inspector2#MemberAccountEc2DeepInspectionStatusList",
"traits": {
- "smithy.api#documentation": "The unique identifiers for the Amazon Web Services accounts to change Amazon Inspector deep inspection status for.
",
+ "smithy.api#documentation": "The unique identifiers for the Amazon Web Services accounts to change Amazon Inspector deep inspection status\n for.
",
"smithy.api#required": {}
}
}
@@ -1613,13 +1867,13 @@
"accountIds": {
"target": "com.amazonaws.inspector2#MemberAccountEc2DeepInspectionStatusStateList",
"traits": {
- "smithy.api#documentation": "An array of objects that provide details for each of the accounts that Amazon Inspector deep inspection status was successfully changed for. \n
"
+ "smithy.api#documentation": "An array of objects that provide details for each of the accounts that Amazon Inspector deep\n inspection status was successfully changed for.
"
}
},
"failedAccountIds": {
"target": "com.amazonaws.inspector2#FailedMemberAccountEc2DeepInspectionStatusStateList",
"traits": {
- "smithy.api#documentation": "An array of objects that provide details for each of the accounts that Amazon Inspector deep inspection status could not be successfully changed for. \n
"
+ "smithy.api#documentation": "An array of objects that provide details for each of the accounts that Amazon Inspector deep\n inspection status could not be successfully changed for.
"
}
}
},
@@ -2241,7 +2495,7 @@
"securityLevel": {
"target": "com.amazonaws.inspector2#CisSecurityLevel",
"traits": {
- "smithy.api#documentation": "\n The security level for the CIS scan. \n Security level refers to the Benchmark levels that CIS assigns to a profile.\n
"
+ "smithy.api#documentation": " The security level for the CIS scan. Security level refers to the Benchmark levels that\n CIS assigns to a profile.
"
}
}
},
@@ -2513,7 +2767,7 @@
"securityLevelFilters": {
"target": "com.amazonaws.inspector2#CisSecurityLevelFilterList",
"traits": {
- "smithy.api#documentation": "\n The criteria's security level filters. . \n Security level refers to the Benchmark levels that CIS assigns to a profile.\n
"
+ "smithy.api#documentation": " The criteria's security level filters. . Security level refers to the Benchmark levels\n that CIS assigns to a profile.
"
}
},
"findingArnFilters": {
@@ -2881,7 +3135,7 @@
}
},
"traits": {
- "smithy.api#documentation": "\n The CIS security level filter. \n Security level refers to the Benchmark levels that CIS assigns to a profile.\n
"
+ "smithy.api#documentation": " The CIS security level filter. Security level refers to the Benchmark levels that CIS\n assigns to a profile.
"
}
},
"com.amazonaws.inspector2#CisSecurityLevelFilterList": {
@@ -3229,7 +3483,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.
"
+ "smithy.api#documentation": "The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific\n vulnerability.
"
}
},
"com.amazonaws.inspector2#CisaDateAdded": {
@@ -3253,7 +3507,7 @@
"lastInUse": {
"target": "smithy.api#Timestamp",
"traits": {
- "smithy.api#documentation": "The last timestamp when Amazon Inspector recorded the image in use in the task or pod in the cluster.
",
+ "smithy.api#documentation": "The last timestamp when Amazon Inspector recorded the image in use in the task or pod\n in the cluster.
",
"smithy.api#required": {}
}
},
@@ -3266,7 +3520,7 @@
"stoppedUnitCount": {
"target": "smithy.api#Long",
"traits": {
- "smithy.api#documentation": "The number of tasks or pods where an image was stopped on the cluster in the last 24 hours.
"
+ "smithy.api#documentation": "The number of tasks or pods where an image was stopped on the cluster in the last 24\n hours.
"
}
},
"clusterMetadata": {
@@ -3399,7 +3653,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information on where a code vulnerability is located in your Lambda function.
"
+ "smithy.api#documentation": "Contains information on where a code vulnerability is located in your Lambda\n function.
"
}
},
"com.amazonaws.inspector2#CodeLine": {
@@ -3440,81 +3694,575 @@
}
}
},
- "com.amazonaws.inspector2#CodeSnippetError": {
+ "com.amazonaws.inspector2#CodeRepositoryAggregation": {
"type": "structure",
"members": {
- "findingArn": {
- "target": "com.amazonaws.inspector2#FindingArn",
+ "projectNames": {
+ "target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "The ARN of the finding that a code snippet couldn't be retrieved for.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "The project names to include in the aggregation results.
"
}
},
- "errorCode": {
- "target": "com.amazonaws.inspector2#CodeSnippetErrorCode",
+ "providerTypes": {
+ "target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "The error code for the error that prevented a code snippet from being retrieved.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "The repository provider types to include in the aggregation results.
"
}
},
- "errorMessage": {
- "target": "com.amazonaws.inspector2#NonEmptyString",
+ "sortOrder": {
+ "target": "com.amazonaws.inspector2#SortOrder",
"traits": {
- "smithy.api#documentation": "The error message received when Amazon Inspector failed to retrieve a code snippet.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "The order to sort results by (ascending or descending) in the code repository\n aggregation.
"
+ }
+ },
+ "sortBy": {
+ "target": "com.amazonaws.inspector2#CodeRepositorySortBy",
+ "traits": {
+ "smithy.api#documentation": "The value to sort results by in the code repository aggregation.
"
+ }
+ },
+ "resourceIds": {
+ "target": "com.amazonaws.inspector2#StringFilterList",
+ "traits": {
+ "smithy.api#documentation": "The resource IDs to include in the aggregation results.
"
}
}
},
"traits": {
- "smithy.api#documentation": "Contains information about any errors encountered while trying to retrieve a code snippet.
"
- }
- },
- "com.amazonaws.inspector2#CodeSnippetErrorCode": {
- "type": "string",
- "traits": {
- "smithy.api#enum": [
- {
- "value": "INTERNAL_ERROR",
- "name": "INTERNAL_ERROR"
- },
- {
- "value": "ACCESS_DENIED",
- "name": "ACCESS_DENIED"
- },
- {
- "value": "CODE_SNIPPET_NOT_FOUND",
- "name": "CODE_SNIPPET_NOT_FOUND"
- },
- {
- "value": "INVALID_INPUT",
- "name": "INVALID_INPUT"
- }
- ]
- }
- },
- "com.amazonaws.inspector2#CodeSnippetErrorList": {
- "type": "list",
- "member": {
- "target": "com.amazonaws.inspector2#CodeSnippetError"
+ "smithy.api#documentation": "The details that define an aggregation based on code repositories.
"
}
},
- "com.amazonaws.inspector2#CodeSnippetResult": {
+ "com.amazonaws.inspector2#CodeRepositoryAggregationResponse": {
"type": "structure",
"members": {
- "findingArn": {
- "target": "com.amazonaws.inspector2#FindingArn",
+ "projectNames": {
+ "target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The ARN of a finding that the code snippet is associated with.
"
+ "smithy.api#documentation": "The names of the projects associated with the code repository.
",
+ "smithy.api#required": {}
}
},
- "startLine": {
- "target": "smithy.api#Integer",
+ "providerType": {
+ "target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The line number of the first line of a code snippet.
"
+ "smithy.api#documentation": "The type of repository provider for the code repository.
"
}
},
- "endLine": {
- "target": "smithy.api#Integer",
+ "severityCounts": {
+ "target": "com.amazonaws.inspector2#SeverityCounts"
+ },
+ "exploitAvailableActiveFindingsCount": {
+ "target": "smithy.api#Long",
+ "traits": {
+ "smithy.api#documentation": "The number of active findings that have an exploit available for the code\n repository.
"
+ }
+ },
+ "fixAvailableActiveFindingsCount": {
+ "target": "smithy.api#Long",
+ "traits": {
+ "smithy.api#documentation": "The number of active findings that have a fix available for the code repository.
"
+ }
+ },
+ "accountId": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services account ID associated with the code repository.
"
+ }
+ },
+ "resourceId": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The resource ID of the code repository.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A response that contains the results of a finding aggregation by code repository.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeRepositoryDetails": {
+ "type": "structure",
+ "members": {
+ "projectName": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryProjectName",
+ "traits": {
+ "smithy.api#documentation": "The name of the project in the code repository.
"
+ }
+ },
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the code security integration associated with the\n repository.
"
+ }
+ },
+ "providerType": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryProviderType",
+ "traits": {
+ "smithy.api#documentation": "The type of repository provider (such as GitHub, GitLab, etc.).
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details about a code repository associated with a finding.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeRepositoryIntegrationArn": {
+ "type": "string",
+ "traits": {
+ "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:codesecurity-integration\\/[a-f0-9-]{36}$"
+ }
+ },
+ "com.amazonaws.inspector2#CodeRepositoryMetadata": {
+ "type": "structure",
+ "members": {
+ "projectName": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The name of the project in the code repository.
",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 300
+ },
+ "smithy.api#required": {}
+ }
+ },
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the code security integration associated with the\n repository.
"
+ }
+ },
+ "providerType": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The type of repository provider (such as GitHub, GitLab, etc.).
",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 300
+ },
+ "smithy.api#required": {}
+ }
+ },
+ "providerTypeVisibility": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The visibility setting of the repository (public or private).
",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 300
+ },
+ "smithy.api#required": {}
+ }
+ },
+ "lastScannedCommitId": {
+ "target": "com.amazonaws.inspector2#CommitId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last commit that was scanned in the repository.
"
+ }
+ },
+ "scanConfiguration": {
+ "target": "com.amazonaws.inspector2#ProjectCodeSecurityScanConfiguration",
+ "traits": {
+ "smithy.api#documentation": "The scan configuration settings applied to the code repository.
"
+ }
+ },
+ "onDemandScan": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryOnDemandScan",
+ "traits": {
+ "smithy.api#documentation": "Information about on-demand scans performed on the repository.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains metadata information about a code repository that is being scanned by Amazon\n Inspector.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeRepositoryOnDemandScan": {
+ "type": "structure",
+ "members": {
+ "lastScannedCommitId": {
+ "target": "com.amazonaws.inspector2#CommitId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last commit that was scanned during an on-demand scan.
"
+ }
+ },
+ "lastScanAt": {
+ "target": "com.amazonaws.inspector2#DateTimeTimestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the last on-demand scan was performed.
"
+ }
+ },
+ "scanStatus": {
+ "target": "com.amazonaws.inspector2#ScanStatus"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about on-demand scans performed on a code repository.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeRepositoryProjectName": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 512
+ }
+ }
+ },
+ "com.amazonaws.inspector2#CodeRepositoryProviderType": {
+ "type": "string",
+ "traits": {
+ "smithy.api#enum": [
+ {
+ "value": "GITHUB",
+ "name": "GITHUB"
+ },
+ {
+ "value": "GITLAB_SELF_MANAGED",
+ "name": "GITLAB_SELF_MANAGED"
+ }
+ ]
+ }
+ },
+ "com.amazonaws.inspector2#CodeRepositorySortBy": {
+ "type": "string",
+ "traits": {
+ "smithy.api#enum": [
+ {
+ "value": "CRITICAL",
+ "name": "CRITICAL"
+ },
+ {
+ "value": "HIGH",
+ "name": "HIGH"
+ },
+ {
+ "value": "ALL",
+ "name": "ALL"
+ }
+ ]
+ }
+ },
+ "com.amazonaws.inspector2#CodeScanStatus": {
+ "type": "enum",
+ "members": {
+ "IN_PROGRESS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "IN_PROGRESS"
+ }
+ },
+ "SUCCESSFUL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SUCCESSFUL"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED"
+ }
+ },
+ "SKIPPED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SKIPPED"
+ }
+ }
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityClientToken": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 64
+ },
+ "smithy.api#pattern": "^[\\S]+$"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityIntegrationArn": {
+ "type": "string",
+ "traits": {
+ "smithy.api#documentation": "arn:aws:inspector2:::codesecurity-integration/",
+ "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:codesecurity-integration/[a-f0-9-]{36}$"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityIntegrationSummary": {
+ "type": "structure",
+ "members": {
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the code security integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "name": {
+ "target": "com.amazonaws.inspector2#IntegrationName",
+ "traits": {
+ "smithy.api#documentation": "The name of the code security integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "type": {
+ "target": "com.amazonaws.inspector2#IntegrationType",
+ "traits": {
+ "smithy.api#documentation": "The type of repository provider for the integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "status": {
+ "target": "com.amazonaws.inspector2#IntegrationStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the code security integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "statusReason": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The reason for the current status of the code security integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "createdOn": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the code security integration was created.
",
+ "smithy.api#required": {}
+ }
+ },
+ "lastUpdateOn": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the code security integration was last updated.
",
+ "smithy.api#required": {}
+ }
+ },
+ "tags": {
+ "target": "com.amazonaws.inspector2#TagMap",
+ "traits": {
+ "smithy.api#documentation": "The tags associated with the code security integration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A summary of information about a code security integration.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityResource": {
+ "type": "union",
+ "members": {
+ "projectId": {
+ "target": "com.amazonaws.inspector2#ProjectId",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the project in the code repository.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Identifies a specific resource in a code repository that will be scanned.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityScanConfiguration": {
+ "type": "structure",
+ "members": {
+ "periodicScanConfiguration": {
+ "target": "com.amazonaws.inspector2#PeriodicScanConfiguration",
+ "traits": {
+ "smithy.api#documentation": "Configuration settings for periodic scans that run on a scheduled basis.
"
+ }
+ },
+ "continuousIntegrationScanConfiguration": {
+ "target": "com.amazonaws.inspector2#ContinuousIntegrationScanConfiguration",
+ "traits": {
+ "smithy.api#documentation": "Configuration settings for continuous integration scans that run automatically when code\n changes are made.
"
+ }
+ },
+ "ruleSetCategories": {
+ "target": "com.amazonaws.inspector2#RuleSetCategories",
+ "traits": {
+ "smithy.api#documentation": "The categories of security rules to be applied during the scan.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains the configuration settings for code security scans.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityScanConfigurationAssociationSummaries": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#CodeSecurityScanConfigurationAssociationSummary"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityScanConfigurationAssociationSummary": {
+ "type": "structure",
+ "members": {
+ "resource": {
+ "target": "com.amazonaws.inspector2#CodeSecurityResource"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A summary of an association between a code repository and a scan configuration.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityScanConfigurationSummaries": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#CodeSecurityScanConfigurationSummary"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityScanConfigurationSummary": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "name": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationName",
+ "traits": {
+ "smithy.api#documentation": "The name of the scan configuration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "ownerAccountId": {
+ "target": "com.amazonaws.inspector2#OwnerId",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services account ID that owns the scan configuration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "periodicScanFrequency": {
+ "target": "com.amazonaws.inspector2#PeriodicScanFrequency",
+ "traits": {
+ "smithy.api#documentation": "The frequency at which periodic scans are performed.
"
+ }
+ },
+ "frequencyExpression": {
+ "target": "com.amazonaws.inspector2#FrequencyExpression",
+ "traits": {
+ "smithy.api#documentation": "The schedule expression for periodic scans, in cron format.
"
+ }
+ },
+ "continuousIntegrationScanSupportedEvents": {
+ "target": "com.amazonaws.inspector2#ContinuousIntegrationScanSupportedEvents",
+ "traits": {
+ "smithy.api#documentation": "The repository events that trigger continuous integration scans.
"
+ }
+ },
+ "ruleSetCategories": {
+ "target": "com.amazonaws.inspector2#RuleSetCategories",
+ "traits": {
+ "smithy.api#documentation": "The categories of security rules applied during the scan.
",
+ "smithy.api#required": {}
+ }
+ },
+ "scopeSettings": {
+ "target": "com.amazonaws.inspector2#ScopeSettings",
+ "traits": {
+ "smithy.api#documentation": "The scope settings that define which repositories will be scanned. If the\n ScopeSetting parameter is ALL the scan configuration applies\n to all existing and future projects imported into Amazon Inspector.
"
+ }
+ },
+ "tags": {
+ "target": "com.amazonaws.inspector2#TagMap",
+ "traits": {
+ "smithy.api#documentation": "The tags associated with the scan configuration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A summary of information about a code security scan configuration.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSecurityUuid": {
+ "type": "string",
+ "traits": {
+ "smithy.api#pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSnippetError": {
+ "type": "structure",
+ "members": {
+ "findingArn": {
+ "target": "com.amazonaws.inspector2#FindingArn",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the finding that a code snippet couldn't be retrieved for.
",
+ "smithy.api#required": {}
+ }
+ },
+ "errorCode": {
+ "target": "com.amazonaws.inspector2#CodeSnippetErrorCode",
+ "traits": {
+ "smithy.api#documentation": "The error code for the error that prevented a code snippet from being retrieved.
",
+ "smithy.api#required": {}
+ }
+ },
+ "errorMessage": {
+ "target": "com.amazonaws.inspector2#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The error message received when Amazon Inspector failed to retrieve a code snippet.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about any errors encountered while trying to retrieve a code\n snippet.
"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSnippetErrorCode": {
+ "type": "string",
+ "traits": {
+ "smithy.api#enum": [
+ {
+ "value": "INTERNAL_ERROR",
+ "name": "INTERNAL_ERROR"
+ },
+ {
+ "value": "ACCESS_DENIED",
+ "name": "ACCESS_DENIED"
+ },
+ {
+ "value": "CODE_SNIPPET_NOT_FOUND",
+ "name": "CODE_SNIPPET_NOT_FOUND"
+ },
+ {
+ "value": "INVALID_INPUT",
+ "name": "INVALID_INPUT"
+ }
+ ]
+ }
+ },
+ "com.amazonaws.inspector2#CodeSnippetErrorList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#CodeSnippetError"
+ }
+ },
+ "com.amazonaws.inspector2#CodeSnippetResult": {
+ "type": "structure",
+ "members": {
+ "findingArn": {
+ "target": "com.amazonaws.inspector2#FindingArn",
+ "traits": {
+ "smithy.api#documentation": "The ARN of a finding that the code snippet is associated with.
"
+ }
+ },
+ "startLine": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The line number of the first line of a code snippet.
"
+ }
+ },
+ "endLine": {
+ "target": "smithy.api#Integer",
"traits": {
"smithy.api#documentation": "The line number of the last line of a code snippet.
"
}
@@ -3533,7 +4281,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Contains information on a code snippet retrieved by Amazon Inspector from a code vulnerability finding.
"
+ "smithy.api#documentation": "Contains information on a code snippet retrieved by Amazon Inspector from a code vulnerability\n finding.
"
}
},
"com.amazonaws.inspector2#CodeSnippetResultList": {
@@ -3555,7 +4303,7 @@
"detectorTags": {
"target": "com.amazonaws.inspector2#DetectorTagList",
"traits": {
- "smithy.api#documentation": "The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see Java tags, or Python tags.
"
+ "smithy.api#documentation": "The detector tag associated with the vulnerability. Detector tags group related\n vulnerabilities by common themes or tactics. For a list of available tags by programming\n language, see Java\n tags, or Python tags.
"
}
},
"referenceUrls": {
@@ -3573,33 +4321,42 @@
"sourceLambdaLayerArn": {
"target": "com.amazonaws.inspector2#LambdaLayerArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was\n detected in.
"
}
},
"detectorId": {
"target": "com.amazonaws.inspector2#NonEmptyString",
"traits": {
- "smithy.api#documentation": "The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see Amazon CodeGuru\n Detector Library.
",
+ "smithy.api#documentation": "The ID for the Amazon CodeGuru detector associated with the finding. For more\n information on detectors see Amazon CodeGuru Detector Library.
",
"smithy.api#required": {}
}
},
"detectorName": {
"target": "com.amazonaws.inspector2#NonEmptyString",
"traits": {
- "smithy.api#documentation": "The name of the detector used to identify the code vulnerability. For more information on detectors see CodeGuru Detector Library.
",
+ "smithy.api#documentation": "The name of the detector used to identify the code vulnerability. For more information\n on detectors see CodeGuru\n Detector Library.
",
"smithy.api#required": {}
}
},
"cwes": {
"target": "com.amazonaws.inspector2#CweList",
"traits": {
- "smithy.api#documentation": "The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
",
+ "smithy.api#documentation": "The Common Weakness Enumeration (CWE) item associated with the detected\n vulnerability.
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "Contains information on the code vulnerability identified in your Lambda function.
"
+ "smithy.api#documentation": "Contains information on the code vulnerability identified in your Lambda\n function.
"
+ }
+ },
+ "com.amazonaws.inspector2#CommitId": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "max": 40
+ },
+ "smithy.api#pattern": "^([a-f0-9]{40})$"
}
},
"com.amazonaws.inspector2#Component": {
@@ -3637,6 +4394,23 @@
"smithy.api#documentation": "A compute platform.
"
}
},
+ "com.amazonaws.inspector2#ConfigurationLevel": {
+ "type": "enum",
+ "members": {
+ "ORGANIZATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ORGANIZATION"
+ }
+ },
+ "ACCOUNT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACCOUNT"
+ }
+ }
+ }
+ },
"com.amazonaws.inspector2#ConflictException": {
"type": "structure",
"members": {
@@ -3649,22 +4423,66 @@
"resourceId": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The ID of the conflicting resource.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "The ID of the conflicting resource.",
+ "smithy.api#required": {}
+ }
+ },
+ "resourceType": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The type of the conflicting resource.",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A conflict occurred. This exception occurs when the same resource is being modified by\n concurrent requests.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 409
+ }
+ },
+ "com.amazonaws.inspector2#ContinuousIntegrationScanConfiguration": {
+ "type": "structure",
+ "members": {
+ "supportedEvents": {
+ "target": "com.amazonaws.inspector2#ContinuousIntegrationScanSupportedEvents",
+ "traits": {
+ "smithy.api#documentation": "The repository events that trigger continuous integration scans, such as pull requests\n or commits.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Configuration settings for continuous integration scans that run automatically when code\n changes are made.
"
+ }
+ },
+ "com.amazonaws.inspector2#ContinuousIntegrationScanEvent": {
+ "type": "enum",
+ "members": {
+ "PULL_REQUEST": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PULL_REQUEST"
}
},
- "resourceType": {
- "target": "smithy.api#String",
+ "PUSH": {
+ "target": "smithy.api#Unit",
"traits": {
- "smithy.api#documentation": "The type of the conflicting resource.
",
- "smithy.api#required": {}
+ "smithy.api#enumValue": "PUSH"
}
}
+ }
+ },
+ "com.amazonaws.inspector2#ContinuousIntegrationScanSupportedEvents": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#ContinuousIntegrationScanEvent"
},
"traits": {
- "smithy.api#documentation": "A conflict occurred.
",
- "smithy.api#error": "client",
- "smithy.api#httpError": 409
+ "smithy.api#length": {
+ "min": 1,
+ "max": 2
+ }
}
},
"com.amazonaws.inspector2#Counts": {
@@ -3738,7 +4556,7 @@
"scanStatusCode": {
"target": "com.amazonaws.inspector2#CoverageStringFilterList",
"traits": {
- "smithy.api#documentation": "The scan status code to filter on. Valid values are: ValidationException, InternalServerException, ResourceNotFoundException, BadRequestException, and ThrottlingException.
"
+ "smithy.api#documentation": "The scan status code to filter on. Valid values are: ValidationException,\n InternalServerException, ResourceNotFoundException,\n BadRequestException, and ThrottlingException.
"
}
},
"scanStatusReason": {
@@ -3762,7 +4580,7 @@
"resourceType": {
"target": "com.amazonaws.inspector2#CoverageStringFilterList",
"traits": {
- "smithy.api#documentation": "An array of Amazon Web Services resource types to return coverage statistics for. The values can be AWS_EC2_INSTANCE, AWS_LAMBDA_FUNCTION, AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY or AWS_ACCOUNT.
"
+ "smithy.api#documentation": "An array of Amazon Web Services resource types to return coverage statistics for. The values can be\n AWS_EC2_INSTANCE, AWS_LAMBDA_FUNCTION,\n AWS_ECR_CONTAINER_IMAGE, AWS_ECR_REPOSITORY or\n AWS_ACCOUNT.
"
}
},
"scanType": {
@@ -3792,31 +4610,31 @@
"lambdaFunctionName": {
"target": "com.amazonaws.inspector2#CoverageStringFilterList",
"traits": {
- "smithy.api#documentation": "Returns coverage statistics for Amazon Web Services Lambda functions filtered by function names.
"
+ "smithy.api#documentation": "Returns coverage statistics for Amazon Web Services Lambda functions filtered by function\n names.
"
}
},
"lambdaFunctionTags": {
"target": "com.amazonaws.inspector2#CoverageMapFilterList",
"traits": {
- "smithy.api#documentation": "Returns coverage statistics for Amazon Web Services Lambda functions filtered by tag.
"
+ "smithy.api#documentation": "Returns coverage statistics for Amazon Web Services Lambda functions filtered by\n tag.
"
}
},
"lambdaFunctionRuntime": {
"target": "com.amazonaws.inspector2#CoverageStringFilterList",
"traits": {
- "smithy.api#documentation": "Returns coverage statistics for Amazon Web Services Lambda functions filtered by runtime.
"
+ "smithy.api#documentation": "Returns coverage statistics for Amazon Web Services Lambda functions filtered by\n runtime.
"
}
},
"lastScannedAt": {
"target": "com.amazonaws.inspector2#CoverageDateFilterList",
"traits": {
- "smithy.api#documentation": "Filters Amazon Web Services resources based on whether Amazon Inspector has checked them for vulnerabilities within the specified time range.
"
+ "smithy.api#documentation": "Filters Amazon Web Services resources based on whether Amazon Inspector has checked them for vulnerabilities\n within the specified time range.
"
}
},
"scanMode": {
"target": "com.amazonaws.inspector2#CoverageStringFilterList",
"traits": {
- "smithy.api#documentation": "The filter to search for Amazon EC2 instance coverage by scan mode. Valid values are EC2_SSM_AGENT_BASED and EC2_AGENTLESS.
"
+ "smithy.api#documentation": "The filter to search for Amazon EC2 instance coverage by scan mode. Valid values are\n EC2_SSM_AGENT_BASED and EC2_AGENTLESS.
"
}
},
"imagePulledAt": {
@@ -3836,10 +4654,34 @@
"traits": {
"smithy.api#documentation": "The number of Amazon ECR images in use.
"
}
+ },
+ "codeRepositoryProjectName": {
+ "target": "com.amazonaws.inspector2#CoverageStringFilterList",
+ "traits": {
+ "smithy.api#documentation": "Filter criteria for code repositories based on project name.
"
+ }
+ },
+ "codeRepositoryProviderType": {
+ "target": "com.amazonaws.inspector2#CoverageStringFilterList",
+ "traits": {
+ "smithy.api#documentation": "Filter criteria for code repositories based on provider type (such as GitHub, GitLab,\n etc.).
"
+ }
+ },
+ "codeRepositoryProviderTypeVisibility": {
+ "target": "com.amazonaws.inspector2#CoverageStringFilterList",
+ "traits": {
+ "smithy.api#documentation": "Filter criteria for code repositories based on visibility setting (public or\n private).
"
+ }
+ },
+ "lastScannedCommitId": {
+ "target": "com.amazonaws.inspector2#CoverageStringFilterList",
+ "traits": {
+ "smithy.api#documentation": "Filter criteria for code repositories based on the ID of the last scanned commit.
"
+ }
}
},
"traits": {
- "smithy.api#documentation": "A structure that identifies filter criteria for GetCoverageStatistics.
"
+ "smithy.api#documentation": "A structure that identifies filter criteria for\n GetCoverageStatistics.
"
}
},
"com.amazonaws.inspector2#CoverageMapComparison": {
@@ -3944,6 +4786,10 @@
{
"value": "AWS_LAMBDA_FUNCTION",
"name": "AWS_LAMBDA_FUNCTION"
+ },
+ {
+ "value": "CODE_REPOSITORY",
+ "name": "CODE_REPOSITORY"
}
]
}
@@ -4046,47 +4892,291 @@
"resourceMetadata": {
"target": "com.amazonaws.inspector2#ResourceScanMetadata",
"traits": {
- "smithy.api#documentation": "An object that contains details about the metadata.
"
+ "smithy.api#documentation": "An object that contains details about the metadata.
"
+ }
+ },
+ "lastScannedAt": {
+ "target": "com.amazonaws.inspector2#DateTimeTimestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the resource was last checked for vulnerabilities.
"
+ }
+ },
+ "scanMode": {
+ "target": "com.amazonaws.inspector2#ScanMode",
+ "traits": {
+ "smithy.api#documentation": "The scan method that is applied to the instance.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "An object that contains details about a resource covered by Amazon Inspector.
"
+ }
+ },
+ "com.amazonaws.inspector2#CoveredResources": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#CoveredResource"
+ }
+ },
+ "com.amazonaws.inspector2#CreateCisScanConfiguration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#CreateCisScanConfigurationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#CreateCisScanConfigurationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Creates a CIS scan configuration.
",
+ "smithy.api#examples": [
+ {
+ "title": "Sample CreateCisScanConfiguration Call",
+ "input": {
+ "scanName": "sample",
+ "securityLevel": "LEVEL_1",
+ "schedule": {
+ "daily": {
+ "startTime": {
+ "timeOfDay": "12:34",
+ "timezone": "UTC"
+ }
+ }
+ },
+ "targets": {
+ "accountIds": [
+ "SELF"
+ ],
+ "targetResourceTags": {
+ "key": [
+ "value"
+ ]
+ }
+ }
+ },
+ "output": {
+ "scanConfigurationArn": "arn:aws:inspector2:us-east-1:123412341234:owner/123412341234/cis-configuration/624b746d-e080-44ae-8c1d-48e653365a38"
+ }
+ }
+ ],
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/cis/scan-configuration/create"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#CreateCisScanConfigurationRequest": {
+ "type": "structure",
+ "members": {
+ "scanName": {
+ "target": "com.amazonaws.inspector2#CisScanName",
+ "traits": {
+ "smithy.api#documentation": "The scan name for the CIS scan configuration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "securityLevel": {
+ "target": "com.amazonaws.inspector2#CisSecurityLevel",
+ "traits": {
+ "smithy.api#documentation": " The security level for the CIS scan configuration. Security level refers to the\n Benchmark levels that CIS assigns to a profile.
",
+ "smithy.api#required": {}
+ }
+ },
+ "schedule": {
+ "target": "com.amazonaws.inspector2#Schedule",
+ "traits": {
+ "smithy.api#documentation": "The schedule for the CIS scan configuration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targets": {
+ "target": "com.amazonaws.inspector2#CreateCisTargets",
+ "traits": {
+ "smithy.api#documentation": "The targets for the CIS scan configuration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "tags": {
+ "target": "com.amazonaws.inspector2#CisTagMap",
+ "traits": {
+ "smithy.api#documentation": "The tags for the CIS scan configuration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#CreateCisScanConfigurationResponse": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#CisScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The scan configuration ARN for the CIS scan configuration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.inspector2#CreateCisTargets": {
+ "type": "structure",
+ "members": {
+ "accountIds": {
+ "target": "com.amazonaws.inspector2#TargetAccountList",
+ "traits": {
+ "smithy.api#documentation": "The CIS target account ids.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targetResourceTags": {
+ "target": "com.amazonaws.inspector2#TargetResourceTags",
+ "traits": {
+ "smithy.api#documentation": "The CIS target resource tags.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Creates CIS targets.
"
+ }
+ },
+ "com.amazonaws.inspector2#CreateCodeSecurityIntegration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#CreateCodeSecurityIntegrationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#CreateCodeSecurityIntegrationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ServiceQuotaExceededException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Creates a code security integration with a source code repository provider.
\n After calling the CreateCodeSecurityIntegration operation, you complete\n authentication and authorization with your provider. Next you call the\n UpdateCodeSecurityIntegration operation to provide the details\n to complete the integration setup
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/integration/create"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#CreateCodeSecurityIntegrationRequest": {
+ "type": "structure",
+ "members": {
+ "name": {
+ "target": "com.amazonaws.inspector2#IntegrationName",
+ "traits": {
+ "smithy.api#documentation": "The name of the code security integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "type": {
+ "target": "com.amazonaws.inspector2#IntegrationType",
+ "traits": {
+ "smithy.api#documentation": "The type of repository provider for the integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "details": {
+ "target": "com.amazonaws.inspector2#CreateIntegrationDetail",
+ "traits": {
+ "smithy.api#documentation": "The integration details specific to the repository provider type.
"
+ }
+ },
+ "tags": {
+ "target": "com.amazonaws.inspector2#TagMap",
+ "traits": {
+ "smithy.api#documentation": "The tags to apply to the code security integration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#CreateCodeSecurityIntegrationResponse": {
+ "type": "structure",
+ "members": {
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the created code security integration.
",
+ "smithy.api#required": {}
}
},
- "lastScannedAt": {
- "target": "com.amazonaws.inspector2#DateTimeTimestamp",
+ "status": {
+ "target": "com.amazonaws.inspector2#IntegrationStatus",
"traits": {
- "smithy.api#documentation": "The date and time the resource was last checked for vulnerabilities.
"
+ "smithy.api#documentation": "The current status of the code security integration.
",
+ "smithy.api#required": {}
}
},
- "scanMode": {
- "target": "com.amazonaws.inspector2#ScanMode",
+ "authorizationUrl": {
+ "target": "com.amazonaws.inspector2#AuthorizationUrl",
"traits": {
- "smithy.api#documentation": "The scan method that is applied to the instance.
"
+ "smithy.api#documentation": "The URL used to authorize the integration with the repository provider.
"
}
}
},
"traits": {
- "smithy.api#documentation": "An object that contains details about a resource covered by Amazon Inspector.
"
- }
- },
- "com.amazonaws.inspector2#CoveredResources": {
- "type": "list",
- "member": {
- "target": "com.amazonaws.inspector2#CoveredResource"
+ "smithy.api#output": {}
}
},
- "com.amazonaws.inspector2#CreateCisScanConfiguration": {
+ "com.amazonaws.inspector2#CreateCodeSecurityScanConfiguration": {
"type": "operation",
"input": {
- "target": "com.amazonaws.inspector2#CreateCisScanConfigurationRequest"
+ "target": "com.amazonaws.inspector2#CreateCodeSecurityScanConfigurationRequest"
},
"output": {
- "target": "com.amazonaws.inspector2#CreateCisScanConfigurationResponse"
+ "target": "com.amazonaws.inspector2#CreateCodeSecurityScanConfigurationResponse"
},
"errors": [
{
"target": "com.amazonaws.inspector2#AccessDeniedException"
},
+ {
+ "target": "com.amazonaws.inspector2#ConflictException"
+ },
{
"target": "com.amazonaws.inspector2#InternalServerException"
},
+ {
+ "target": "com.amazonaws.inspector2#ServiceQuotaExceededException"
+ },
{
"target": "com.amazonaws.inspector2#ThrottlingException"
},
@@ -4095,79 +5185,48 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a CIS scan configuration.
",
- "smithy.api#examples": [
- {
- "title": "Sample CreateCisScanConfiguration Call",
- "input": {
- "scanName": "sample",
- "securityLevel": "LEVEL_1",
- "schedule": {
- "daily": {
- "startTime": {
- "timeOfDay": "12:34",
- "timezone": "UTC"
- }
- }
- },
- "targets": {
- "accountIds": [
- "SELF"
- ],
- "targetResourceTags": {
- "key": [
- "value"
- ]
- }
- }
- },
- "output": {
- "scanConfigurationArn": "arn:aws:inspector2:us-east-1:123412341234:owner/123412341234/cis-configuration/624b746d-e080-44ae-8c1d-48e653365a38"
- }
- }
- ],
+ "smithy.api#documentation": "Creates a scan configuration for code security scanning.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
- "uri": "/cis/scan-configuration/create"
+ "uri": "/codesecurity/scan-configuration/create"
}
}
},
- "com.amazonaws.inspector2#CreateCisScanConfigurationRequest": {
+ "com.amazonaws.inspector2#CreateCodeSecurityScanConfigurationRequest": {
"type": "structure",
"members": {
- "scanName": {
- "target": "com.amazonaws.inspector2#CisScanName",
+ "name": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationName",
"traits": {
- "smithy.api#documentation": "The scan name for the CIS scan configuration.
",
+ "smithy.api#documentation": "The name of the scan configuration.
",
"smithy.api#required": {}
}
},
- "securityLevel": {
- "target": "com.amazonaws.inspector2#CisSecurityLevel",
+ "level": {
+ "target": "com.amazonaws.inspector2#ConfigurationLevel",
"traits": {
- "smithy.api#documentation": "\n The security level for the CIS scan configuration. \n Security level refers to the Benchmark levels that CIS assigns to a profile.\n
",
+ "smithy.api#documentation": "The security level for the scan configuration.
",
"smithy.api#required": {}
}
},
- "schedule": {
- "target": "com.amazonaws.inspector2#Schedule",
+ "configuration": {
+ "target": "com.amazonaws.inspector2#CodeSecurityScanConfiguration",
"traits": {
- "smithy.api#documentation": "The schedule for the CIS scan configuration.
",
+ "smithy.api#documentation": "The configuration settings for the code security scan.
",
"smithy.api#required": {}
}
},
- "targets": {
- "target": "com.amazonaws.inspector2#CreateCisTargets",
+ "scopeSettings": {
+ "target": "com.amazonaws.inspector2#ScopeSettings",
"traits": {
- "smithy.api#documentation": "The targets for the CIS scan configuration.
",
- "smithy.api#required": {}
+ "smithy.api#documentation": "The scope settings that define which repositories will be scanned. Include this\n parameter to create a default scan configuration. Otherwise Amazon Inspector creates a general scan\n configuration.
\n A default scan configuration automatically applies to all existing and future projects\n imported into Amazon Inspector. Use the BatchAssociateCodeSecurityScanConfiguration\n operation to associate a general scan configuration with projects.
"
}
},
"tags": {
- "target": "com.amazonaws.inspector2#CisTagMap",
+ "target": "com.amazonaws.inspector2#TagMap",
"traits": {
- "smithy.api#documentation": "The tags for the CIS scan configuration.
"
+ "smithy.api#documentation": "The tags to apply to the scan configuration.
"
}
}
},
@@ -4175,40 +5234,19 @@
"smithy.api#input": {}
}
},
- "com.amazonaws.inspector2#CreateCisScanConfigurationResponse": {
+ "com.amazonaws.inspector2#CreateCodeSecurityScanConfigurationResponse": {
"type": "structure",
"members": {
"scanConfigurationArn": {
- "target": "com.amazonaws.inspector2#CisScanConfigurationArn",
- "traits": {
- "smithy.api#documentation": "The scan configuration ARN for the CIS scan configuration.
"
- }
- }
- },
- "traits": {
- "smithy.api#output": {}
- }
- },
- "com.amazonaws.inspector2#CreateCisTargets": {
- "type": "structure",
- "members": {
- "accountIds": {
- "target": "com.amazonaws.inspector2#TargetAccountList",
- "traits": {
- "smithy.api#documentation": "The CIS target account ids.
",
- "smithy.api#required": {}
- }
- },
- "targetResourceTags": {
- "target": "com.amazonaws.inspector2#TargetResourceTags",
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
"traits": {
- "smithy.api#documentation": "The CIS target resource tags.
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the created scan configuration.
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "Creates CIS targets.
"
+ "smithy.api#output": {}
}
},
"com.amazonaws.inspector2#CreateFilter": {
@@ -4240,7 +5278,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a filter resource using specified filter criteria. When the filter action is set to SUPPRESS this action creates a suppression rule.
",
+ "smithy.api#documentation": "Creates a filter resource using specified filter criteria. When the filter action is set\n to SUPPRESS this action creates a suppression rule.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -4330,7 +5368,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a finding report. By default only ACTIVE findings are returned in the report. To see SUPRESSED or CLOSED findings you must specify a value for the findingStatus filter criteria.
",
+ "smithy.api#documentation": "Creates a finding report. By default only ACTIVE findings are returned in\n the report. To see SUPRESSED or CLOSED findings you must specify\n a value for the findingStatus filter criteria.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -4374,6 +5412,42 @@
}
}
},
+ "com.amazonaws.inspector2#CreateGitLabSelfManagedIntegrationDetail": {
+ "type": "structure",
+ "members": {
+ "instanceUrl": {
+ "target": "com.amazonaws.inspector2#InstanceUrl",
+ "traits": {
+ "smithy.api#documentation": "The URL of the self-managed GitLab instance.
",
+ "smithy.api#required": {}
+ }
+ },
+ "accessToken": {
+ "target": "com.amazonaws.inspector2#GitLabAccessToken",
+ "traits": {
+ "smithy.api#documentation": "The personal access token used to authenticate with the self-managed GitLab\n instance.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details required to create an integration with a self-managed GitLab\n instance.
"
+ }
+ },
+ "com.amazonaws.inspector2#CreateIntegrationDetail": {
+ "type": "union",
+ "members": {
+ "gitlabSelfManaged": {
+ "target": "com.amazonaws.inspector2#CreateGitLabSelfManagedIntegrationDetail",
+ "traits": {
+ "smithy.api#documentation": "Details specific to creating an integration with a self-managed GitLab instance.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details required to create a code security integration with a specific\n repository provider.
"
+ }
+ },
"com.amazonaws.inspector2#CreateSbomExport": {
"type": "operation",
"input": {
@@ -4480,7 +5554,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The Common Vulnerability Scoring System (CVSS) version 2 details for the vulnerability.
"
+ "smithy.api#documentation": "The Common Vulnerability Scoring System (CVSS) version 2 details for the\n vulnerability.
"
}
},
"com.amazonaws.inspector2#Cvss2BaseScore": {
@@ -4515,7 +5589,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The Common Vulnerability Scoring System (CVSS) version 3 details for the vulnerability.
"
+ "smithy.api#documentation": "The Common Vulnerability Scoring System (CVSS) version 3 details for the\n vulnerability.
"
}
},
"com.amazonaws.inspector2#Cvss3BaseScore": {
@@ -4933,6 +6007,132 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.inspector2#DeleteCodeSecurityIntegration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#DeleteCodeSecurityIntegrationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#DeleteCodeSecurityIntegrationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Deletes a code security integration.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/integration/delete"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#DeleteCodeSecurityIntegrationRequest": {
+ "type": "structure",
+ "members": {
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the code security integration to delete.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#DeleteCodeSecurityIntegrationResponse": {
+ "type": "structure",
+ "members": {
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the deleted code security integration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.inspector2#DeleteCodeSecurityScanConfiguration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#DeleteCodeSecurityScanConfigurationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#DeleteCodeSecurityScanConfigurationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Deletes a code security scan configuration.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/scan-configuration/delete"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#DeleteCodeSecurityScanConfigurationRequest": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration to delete.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#DeleteCodeSecurityScanConfigurationResponse": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the deleted scan configuration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.inspector2#DeleteFilter": {
"type": "operation",
"input": {
@@ -5038,7 +6238,7 @@
"maxAccountLimitReached": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Represents whether your organization has reached the maximum Amazon Web Services account limit for Amazon Inspector.
"
+ "smithy.api#documentation": "Represents whether your organization has reached the maximum Amazon Web Services account limit for\n Amazon Inspector.
"
}
}
}
@@ -5121,7 +6321,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account\n disables the Amazon Inspector service.
",
+ "smithy.api#documentation": "Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an\n account disables the Amazon Inspector service.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -5237,6 +6437,39 @@
}
}
},
+ "com.amazonaws.inspector2#DisassociateConfigurationRequest": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration to disassociate from a code\n repository.
",
+ "smithy.api#required": {}
+ }
+ },
+ "resource": {
+ "target": "com.amazonaws.inspector2#CodeSecurityResource",
+ "traits": {
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details about a request to disassociate a code repository from a scan\n configuration.
"
+ }
+ },
+ "com.amazonaws.inspector2#DisassociateConfigurationRequestList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#DisassociateConfigurationRequest"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 25
+ }
+ }
+ },
"com.amazonaws.inspector2#DisassociateMember": {
"type": "operation",
"input": {
@@ -5356,7 +6589,7 @@
"operatingSystems": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "The operating system types to aggregate findings for. Valid values must be uppercase and\n underscore separated, examples are ORACLE_LINUX_7 and\n ALPINE_LINUX_3_8.
"
+ "smithy.api#documentation": "The operating system types to aggregate findings for. Valid values must be uppercase and\n underscore separated, examples are ORACLE_LINUX_7 and\n ALPINE_LINUX_3_8.
"
}
},
"instanceIds": {
@@ -5620,7 +6853,7 @@
"lastInUseAt": {
"target": "com.amazonaws.inspector2#DateTimeTimestamp",
"traits": {
- "smithy.api#documentation": "The last time an Amazon ECR image was used in an Amazon ECS task or Amazon EKS pod.
"
+ "smithy.api#documentation": "The last time an Amazon ECR image was used in an Amazon ECS task or\n Amazon EKS pod.
"
}
},
"inUseCount": {
@@ -5733,7 +6966,7 @@
"rescanDuration": {
"target": "com.amazonaws.inspector2#EcrRescanDuration",
"traits": {
- "smithy.api#documentation": "The rescan duration configured for image push date.\n \n
"
+ "smithy.api#documentation": "The rescan duration configured for image push date.
"
}
},
"status": {
@@ -5745,7 +6978,7 @@
"updatedAt": {
"target": "com.amazonaws.inspector2#DateTimeTimestamp",
"traits": {
- "smithy.api#documentation": "A timestamp representing when the last time the ECR scan duration setting was changed.
"
+ "smithy.api#documentation": "A timestamp representing when the last time the ECR scan duration setting was\n changed.
"
}
},
"pullDateRescanDuration": {
@@ -5762,7 +6995,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Details about the state of your ECR re-scan duration settings. The ECR re-scan duration defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days since an image was last pushed exceeds the duration configured for image pull date, and the duration configured for image pull date, the monitoring state of that image becomes inactive and all associated findings are scheduled for closure.
"
+ "smithy.api#documentation": "Details about the state of your ECR re-scan duration settings. The ECR re-scan duration\n defines how long an ECR image will be actively scanned by Amazon Inspector. When the number of days\n since an image was last pushed exceeds the duration configured for image pull date, and the\n duration configured for image pull date, the monitoring state of that image becomes\n inactive and all associated findings are scheduled for closure.
"
}
},
"com.amazonaws.inspector2#EcrRescanDurationStatus": {
@@ -6183,7 +7416,7 @@
"lastKnownExploitAt": {
"target": "com.amazonaws.inspector2#DateTimeTimestamp",
"traits": {
- "smithy.api#documentation": "The date and time of the last exploit associated with a finding discovered in your environment.
"
+ "smithy.api#documentation": "The date and time of the last exploit associated with a finding discovered in your\n environment.
"
}
}
},
@@ -6267,31 +7500,66 @@
}
}
},
+ "com.amazonaws.inspector2#FailedAssociationResult": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration that failed to be associated or\n disassociated.
"
+ }
+ },
+ "resource": {
+ "target": "com.amazonaws.inspector2#CodeSecurityResource"
+ },
+ "statusCode": {
+ "target": "com.amazonaws.inspector2#AssociationResultStatusCode",
+ "traits": {
+ "smithy.api#documentation": "The status code indicating why the association or disassociation failed.
"
+ }
+ },
+ "statusMessage": {
+ "target": "com.amazonaws.inspector2#AssociationResultStatusMessage",
+ "traits": {
+ "smithy.api#documentation": "A message explaining why the association or disassociation failed.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Details about a failed attempt to associate or disassociate a code repository with a\n scan configuration.
"
+ }
+ },
+ "com.amazonaws.inspector2#FailedAssociationResultList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#FailedAssociationResult"
+ }
+ },
"com.amazonaws.inspector2#FailedMemberAccountEc2DeepInspectionStatusState": {
"type": "structure",
"members": {
"accountId": {
"target": "com.amazonaws.inspector2#AccountId",
"traits": {
- "smithy.api#documentation": "The unique identifier for the Amazon Web Services account of the organization member that failed to activate Amazon Inspector deep inspection.
",
+ "smithy.api#documentation": "The unique identifier for the Amazon Web Services account of the organization member that failed to\n activate Amazon Inspector deep inspection.
",
"smithy.api#required": {}
}
},
"ec2ScanStatus": {
"target": "com.amazonaws.inspector2#Status",
"traits": {
- "smithy.api#documentation": "The status of EC2 scanning in the account that failed to activate Amazon Inspector deep inspection.
"
+ "smithy.api#documentation": "The status of EC2 scanning in the account that failed to activate Amazon Inspector deep\n inspection.
"
}
},
"errorMessage": {
"target": "com.amazonaws.inspector2#NonEmptyString",
"traits": {
- "smithy.api#documentation": "The error message explaining why the account failed to activate Amazon Inspector deep inspection.
"
+ "smithy.api#documentation": "The error message explaining why the account failed to activate Amazon Inspector deep\n inspection.
"
}
}
},
"traits": {
- "smithy.api#documentation": "An object that contains details about a member account in your organization that failed to activate Amazon Inspector deep inspection.
"
+ "smithy.api#documentation": "An object that contains details about a member account in your organization that failed\n to activate Amazon Inspector deep inspection.
"
}
},
"com.amazonaws.inspector2#FailedMemberAccountEc2DeepInspectionStatusStateList": {
@@ -6462,7 +7730,7 @@
"updatedAt": {
"target": "com.amazonaws.inspector2#DateFilterList",
"traits": {
- "smithy.api#documentation": "Details on the date and time a finding was last updated at used to filter findings.
"
+ "smithy.api#documentation": "Details on the date and time a finding was last updated at used to filter\n findings.
"
}
},
"findingStatus": {
@@ -6564,7 +7832,7 @@
"ecrImageInUseCount": {
"target": "com.amazonaws.inspector2#NumberFilterList",
"traits": {
- "smithy.api#documentation": "Filter criteria indicating when details for an Amazon ECR image include when an Amazon ECR image is in use.
"
+ "smithy.api#documentation": "Filter criteria indicating when details for an Amazon ECR image include when an\n Amazon ECR image is in use.
"
}
},
"portRange": {
@@ -6624,31 +7892,31 @@
"fixAvailable": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.
"
+ "smithy.api#documentation": "Details on whether a fix is available through a version update. This value can be\n YES, NO, or PARTIAL. A PARTIAL fix\n means that some, but not all, of the packages identified in the finding have fixes\n available through updated versions.
"
}
},
"lambdaFunctionName": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda functions by the name of the function.
"
+ "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda functions by the name of the\n function.
"
}
},
"lambdaFunctionLayers": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda functions by the function's \n layers. A Lambda function can have up to five layers.
"
+ "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda functions by the function's layers. A\n Lambda function can have up to five layers.
"
}
},
"lambdaFunctionRuntime": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda functions by the runtime environment for the Lambda function.
"
+ "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda functions by the runtime environment for\n the Lambda function.
"
}
},
"lambdaFunctionLastModifiedAt": {
"target": "com.amazonaws.inspector2#DateFilterList",
"traits": {
- "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda functions by the date and time that a user last updated the configuration, in ISO 8601 format\n
"
+ "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda functions by the date and time that a user\n last updated the configuration, in ISO 8601\n format\n
"
}
},
"lambdaFunctionExecutionRoleArn": {
@@ -6660,25 +7928,25 @@
"exploitAvailable": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda findings by the availability of exploits.
"
+ "smithy.api#documentation": "Filters the list of Amazon Web Services Lambda findings by the availability of\n exploits.
"
}
},
"codeVulnerabilityDetectorName": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "The name of the detector used to identify a code vulnerability in a Lambda function used to filter findings.
"
+ "smithy.api#documentation": "The name of the detector used to identify a code vulnerability in a Lambda function used\n to filter findings.
"
}
},
"codeVulnerabilityDetectorTags": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "The detector type tag associated with the vulnerability used to filter findings. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see Java tags, or Python tags.
"
+ "smithy.api#documentation": "The detector type tag associated with the vulnerability used to filter findings.\n Detector tags group related vulnerabilities by common themes or tactics. For a list of\n available tags by programming language, see Java tags, or Python tags.\n
"
}
},
"codeVulnerabilityFilePath": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "The file path to the file in a Lambda function that contains a code vulnerability used to filter findings.
"
+ "smithy.api#documentation": "The file path to the file in a Lambda function that contains a code vulnerability used\n to filter findings.
"
}
},
"epssScore": {
@@ -6686,6 +7954,18 @@
"traits": {
"smithy.api#documentation": "The EPSS score used to filter findings.
"
}
+ },
+ "codeRepositoryProjectName": {
+ "target": "com.amazonaws.inspector2#StringFilterList",
+ "traits": {
+ "smithy.api#documentation": "Filter criteria for findings based on the project name in a code repository.
"
+ }
+ },
+ "codeRepositoryProviderType": {
+ "target": "com.amazonaws.inspector2#StringFilterList",
+ "traits": {
+ "smithy.api#documentation": "Filter criteria for findings based on the repository provider type (such as GitHub,\n GitLab, etc.).
"
+ }
}
},
"traits": {
@@ -6745,7 +8025,7 @@
"type": {
"target": "com.amazonaws.inspector2#FindingType",
"traits": {
- "smithy.api#documentation": "The type of the finding. The type value determines the valid values for resource in your request. For more information, see Finding types in the Amazon Inspector user guide.
",
+ "smithy.api#documentation": "The type of the finding. The type value determines the valid values for\n resource in your request. For more information, see Finding\n types in the Amazon Inspector user guide.
",
"smithy.api#required": {}
}
},
@@ -6772,7 +8052,7 @@
"severity": {
"target": "com.amazonaws.inspector2#Severity",
"traits": {
- "smithy.api#documentation": "The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings that the vendor has not assigned a severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide.
",
+ "smithy.api#documentation": "The severity of the finding. UNTRIAGED applies to\n PACKAGE_VULNERABILITY type findings that the vendor has not assigned a\n severity yet. For more information, see Severity levels for findings in the Amazon Inspector user guide.
",
"smithy.api#required": {}
}
},
@@ -6786,7 +8066,7 @@
"lastObservedAt": {
"target": "com.amazonaws.inspector2#DateTimeTimestamp",
"traits": {
- "smithy.api#documentation": "\n The date and time the finding was last observed. \n This timestamp for this field remains unchanged until a finding is updated.\n
",
+ "smithy.api#documentation": " The date and time the finding was last observed. This timestamp for this field remains\n unchanged until a finding is updated.
",
"smithy.api#required": {}
}
},
@@ -6806,7 +8086,7 @@
"resources": {
"target": "com.amazonaws.inspector2#ResourceList",
"traits": {
- "smithy.api#documentation": "Contains information on the resources involved in a finding. The resource value determines the valid values for type in your request. For more information, see Finding types in the Amazon Inspector user guide.
",
+ "smithy.api#documentation": "Contains information on the resources involved in a finding. The resource\n value determines the valid values for type in your request. For more\n information, see Finding\n types in the Amazon Inspector user guide.
",
"smithy.api#required": {}
}
},
@@ -6837,7 +8117,7 @@
"fixAvailable": {
"target": "com.amazonaws.inspector2#FixAvailable",
"traits": {
- "smithy.api#documentation": "Details on whether a fix is available through a version update. This value can be YES, NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the packages identified in the finding have fixes available through updated versions.
"
+ "smithy.api#documentation": "Details on whether a fix is available through a version update. This value can be\n YES, NO, or PARTIAL. A PARTIAL fix\n means that some, but not all, of the packages identified in the finding have fixes\n available through updated versions.
"
}
},
"exploitAvailable": {
@@ -6855,7 +8135,7 @@
"codeVulnerabilityDetails": {
"target": "com.amazonaws.inspector2#CodeVulnerabilityDetails",
"traits": {
- "smithy.api#documentation": "Details about the code vulnerability identified in a Lambda function used to filter findings.
"
+ "smithy.api#documentation": "Details about the code vulnerability identified in a Lambda function used to filter\n findings.
"
}
},
"epss": {
@@ -6918,7 +8198,7 @@
"cisaData": {
"target": "com.amazonaws.inspector2#CisaData",
"traits": {
- "smithy.api#documentation": "The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific vulnerability.
"
+ "smithy.api#documentation": "The Cybersecurity and Infrastructure Security Agency (CISA) details for a specific\n vulnerability.
"
}
},
"riskScore": {
@@ -6936,7 +8216,7 @@
"ttps": {
"target": "com.amazonaws.inspector2#Ttps",
"traits": {
- "smithy.api#documentation": "The MITRE adversary tactics, techniques, or procedures (TTPs) associated with the vulnerability.
"
+ "smithy.api#documentation": "The MITRE adversary tactics, techniques, or procedures (TTPs) associated with the\n vulnerability.
"
}
},
"tools": {
@@ -7011,7 +8291,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Details about an error encountered when trying to return vulnerability data for a finding.
"
+ "smithy.api#documentation": "Details about an error encountered when trying to return vulnerability data for a\n finding.
"
}
},
"com.amazonaws.inspector2#FindingDetailsErrorCode": {
@@ -7157,7 +8437,7 @@
"fixAvailableCount": {
"target": "smithy.api#Long",
"traits": {
- "smithy.api#documentation": "\n Details about the number of fixes.\n
"
+ "smithy.api#documentation": " Details about the number of fixes.
"
}
}
},
@@ -7296,7 +8576,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Information about an error received while accessing free trail data for an account.
"
+ "smithy.api#documentation": "Information about an error received while accessing free trail data for an\n account.
"
}
},
"com.amazonaws.inspector2#FreeTrialInfoErrorCode": {
@@ -7360,10 +8640,23 @@
{
"name": "LAMBDA_CODE",
"value": "LAMBDA_CODE"
+ },
+ {
+ "name": "CODE_REPOSITORY",
+ "value": "CODE_REPOSITORY"
}
]
}
},
+ "com.amazonaws.inspector2#FrequencyExpression": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 256
+ }
+ }
+ },
"com.amazonaws.inspector2#FunctionName": {
"type": "string",
"traits": {
@@ -7437,7 +8730,7 @@
"target": "com.amazonaws.inspector2#CisReportFormat",
"traits": {
"smithy.api#default": "PDF",
- "smithy.api#documentation": "\n The format of the report. \n Valid values are PDF and CSV. \n If no value is specified, the report format defaults to PDF.\n
"
+ "smithy.api#documentation": " The format of the report. Valid values are PDF and CSV. If no\n value is specified, the report format defaults to PDF.
"
}
}
},
@@ -7451,7 +8744,7 @@
"url": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "\n The URL where a PDF or CSV of the CIS scan report can be downloaded.\n
"
+ "smithy.api#documentation": " The URL where a PDF or CSV of the CIS scan report can be downloaded.
"
}
},
"status": {
@@ -7537,80 +8830,302 @@
}
}
},
- "com.amazonaws.inspector2#GetCisScanResultDetailsRequest": {
+ "com.amazonaws.inspector2#GetCisScanResultDetailsRequest": {
+ "type": "structure",
+ "members": {
+ "scanArn": {
+ "target": "com.amazonaws.inspector2#CisScanArn",
+ "traits": {
+ "smithy.api#documentation": "The scan ARN.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targetResourceId": {
+ "target": "com.amazonaws.inspector2#ResourceId",
+ "traits": {
+ "smithy.api#documentation": "The target resource ID.
",
+ "smithy.api#required": {}
+ }
+ },
+ "accountId": {
+ "target": "com.amazonaws.inspector2#AccountId",
+ "traits": {
+ "smithy.api#documentation": "The account ID.
",
+ "smithy.api#required": {}
+ }
+ },
+ "filterCriteria": {
+ "target": "com.amazonaws.inspector2#CisScanResultDetailsFilterCriteria",
+ "traits": {
+ "smithy.api#documentation": "The filter criteria.
"
+ }
+ },
+ "sortBy": {
+ "target": "com.amazonaws.inspector2#CisScanResultDetailsSortBy",
+ "traits": {
+ "smithy.api#default": "CHECK_ID",
+ "smithy.api#documentation": "The sort by order.
"
+ }
+ },
+ "sortOrder": {
+ "target": "com.amazonaws.inspector2#CisSortOrder",
+ "traits": {
+ "smithy.api#documentation": "The sort order.
"
+ }
+ },
+ "nextToken": {
+ "target": "com.amazonaws.inspector2#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
+ }
+ },
+ "maxResults": {
+ "target": "com.amazonaws.inspector2#GetCisScanResultDetailsMaxResults",
+ "traits": {
+ "smithy.api#default": 300,
+ "smithy.api#documentation": "The maximum number of CIS scan result details to be returned in a single page of\n results.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#GetCisScanResultDetailsResponse": {
+ "type": "structure",
+ "members": {
+ "scanResultDetails": {
+ "target": "com.amazonaws.inspector2#CisScanResultDetailsList",
+ "traits": {
+ "smithy.api#documentation": "The scan result details.
"
+ }
+ },
+ "nextToken": {
+ "target": "com.amazonaws.inspector2#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.inspector2#GetClustersForImage": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#GetClustersForImageRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#GetClustersForImageResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns a list of clusters and metadata associated with an image.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/cluster/get"
+ },
+ "smithy.api#paginated": {
+ "inputToken": "nextToken",
+ "outputToken": "nextToken",
+ "pageSize": "maxResults",
+ "items": "cluster"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#GetClustersForImageNextToken": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 3000
+ }
+ }
+ },
+ "com.amazonaws.inspector2#GetClustersForImageRequest": {
+ "type": "structure",
+ "members": {
+ "filter": {
+ "target": "com.amazonaws.inspector2#ClusterForImageFilterCriteria",
+ "traits": {
+ "smithy.api#documentation": "The resource Id for the Amazon ECR image.
",
+ "smithy.api#required": {}
+ }
+ },
+ "maxResults": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to be returned in a single page of results.
",
+ "smithy.api#range": {
+ "min": 1,
+ "max": 100
+ }
+ }
+ },
+ "nextToken": {
+ "target": "com.amazonaws.inspector2#GetClustersForImageNextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token from a previous request used to retrieve the next page of\n results.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#GetClustersForImageResponse": {
+ "type": "structure",
+ "members": {
+ "cluster": {
+ "target": "com.amazonaws.inspector2#ClusterInformationList",
+ "traits": {
+ "smithy.api#documentation": "A unit of work inside of a cluster, which can include metadata about the cluster.
",
+ "smithy.api#required": {}
+ }
+ },
+ "nextToken": {
+ "target": "com.amazonaws.inspector2#GetClustersForImageNextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token from a previous request used to retrieve the next page of\n results.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.inspector2#GetCodeSecurityIntegration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#GetCodeSecurityIntegrationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#GetCodeSecurityIntegrationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Retrieves information about a code security integration.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/integration/get"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#GetCodeSecurityIntegrationRequest": {
+ "type": "structure",
+ "members": {
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the code security integration to retrieve.
",
+ "smithy.api#required": {}
+ }
+ },
+ "tags": {
+ "target": "com.amazonaws.inspector2#TagMap",
+ "traits": {
+ "smithy.api#documentation": "The tags associated with the code security integration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#GetCodeSecurityIntegrationResponse": {
"type": "structure",
"members": {
- "scanArn": {
- "target": "com.amazonaws.inspector2#CisScanArn",
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationArn",
"traits": {
- "smithy.api#documentation": "The scan ARN.
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the code security integration.
",
"smithy.api#required": {}
}
},
- "targetResourceId": {
- "target": "com.amazonaws.inspector2#ResourceId",
+ "name": {
+ "target": "com.amazonaws.inspector2#IntegrationName",
"traits": {
- "smithy.api#documentation": "The target resource ID.
",
+ "smithy.api#documentation": "The name of the code security integration.
",
"smithy.api#required": {}
}
},
- "accountId": {
- "target": "com.amazonaws.inspector2#AccountId",
+ "type": {
+ "target": "com.amazonaws.inspector2#IntegrationType",
"traits": {
- "smithy.api#documentation": "The account ID.
",
+ "smithy.api#documentation": "The type of repository provider for the integration.
",
"smithy.api#required": {}
}
},
- "filterCriteria": {
- "target": "com.amazonaws.inspector2#CisScanResultDetailsFilterCriteria",
+ "status": {
+ "target": "com.amazonaws.inspector2#IntegrationStatus",
"traits": {
- "smithy.api#documentation": "The filter criteria.
"
+ "smithy.api#documentation": "The current status of the code security integration.
",
+ "smithy.api#required": {}
}
},
- "sortBy": {
- "target": "com.amazonaws.inspector2#CisScanResultDetailsSortBy",
+ "statusReason": {
+ "target": "smithy.api#String",
"traits": {
- "smithy.api#default": "CHECK_ID",
- "smithy.api#documentation": "The sort by order.
"
+ "smithy.api#documentation": "The reason for the current status of the code security integration.
",
+ "smithy.api#required": {}
}
},
- "sortOrder": {
- "target": "com.amazonaws.inspector2#CisSortOrder",
+ "createdOn": {
+ "target": "smithy.api#Timestamp",
"traits": {
- "smithy.api#documentation": "The sort order.
"
+ "smithy.api#documentation": "The timestamp when the code security integration was created.
",
+ "smithy.api#required": {}
}
},
- "nextToken": {
- "target": "com.amazonaws.inspector2#NextToken",
+ "lastUpdateOn": {
+ "target": "smithy.api#Timestamp",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The timestamp when the code security integration was last updated.
",
+ "smithy.api#required": {}
}
},
- "maxResults": {
- "target": "com.amazonaws.inspector2#GetCisScanResultDetailsMaxResults",
- "traits": {
- "smithy.api#default": 300,
- "smithy.api#documentation": "The maximum number of CIS scan result details to be returned in a single page of results.
"
- }
- }
- },
- "traits": {
- "smithy.api#input": {}
- }
- },
- "com.amazonaws.inspector2#GetCisScanResultDetailsResponse": {
- "type": "structure",
- "members": {
- "scanResultDetails": {
- "target": "com.amazonaws.inspector2#CisScanResultDetailsList",
+ "tags": {
+ "target": "com.amazonaws.inspector2#TagMap",
"traits": {
- "smithy.api#documentation": "The scan result details.
"
+ "smithy.api#documentation": "The tags associated with the code security integration.
"
}
},
- "nextToken": {
- "target": "com.amazonaws.inspector2#NextToken",
+ "authorizationUrl": {
+ "target": "com.amazonaws.inspector2#AuthorizationUrl",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The URL used to authorize the integration with the repository provider. This is only\n returned if reauthorization is required to fix a connection issue. Otherwise, it is\n null.
"
}
}
},
@@ -7618,21 +9133,27 @@
"smithy.api#output": {}
}
},
- "com.amazonaws.inspector2#GetClustersForImage": {
+ "com.amazonaws.inspector2#GetCodeSecurityScan": {
"type": "operation",
"input": {
- "target": "com.amazonaws.inspector2#GetClustersForImageRequest"
+ "target": "com.amazonaws.inspector2#GetCodeSecurityScanRequest"
},
"output": {
- "target": "com.amazonaws.inspector2#GetClustersForImageResponse"
+ "target": "com.amazonaws.inspector2#GetCodeSecurityScanResponse"
},
"errors": [
{
"target": "com.amazonaws.inspector2#AccessDeniedException"
},
+ {
+ "target": "com.amazonaws.inspector2#ConflictException"
+ },
{
"target": "com.amazonaws.inspector2#InternalServerException"
},
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
{
"target": "com.amazonaws.inspector2#ThrottlingException"
},
@@ -7641,74 +9162,191 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of clusters and metadata associated with an image.
",
+ "smithy.api#documentation": "Retrieves information about a specific code security scan.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
- "uri": "/cluster/get"
+ "uri": "/codesecurity/scan/get"
},
- "smithy.api#paginated": {
- "inputToken": "nextToken",
- "outputToken": "nextToken",
- "pageSize": "maxResults",
- "items": "cluster"
- }
+ "smithy.api#readonly": {}
}
},
- "com.amazonaws.inspector2#GetClustersForImageNextToken": {
- "type": "string",
+ "com.amazonaws.inspector2#GetCodeSecurityScanConfiguration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#GetCodeSecurityScanConfigurationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#GetCodeSecurityScanConfigurationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
"traits": {
- "smithy.api#length": {
- "min": 1,
- "max": 3000
+ "smithy.api#documentation": "Retrieves information about a code security scan configuration.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/scan-configuration/get"
}
}
},
- "com.amazonaws.inspector2#GetClustersForImageRequest": {
+ "com.amazonaws.inspector2#GetCodeSecurityScanConfigurationRequest": {
"type": "structure",
"members": {
- "filter": {
- "target": "com.amazonaws.inspector2#ClusterForImageFilterCriteria",
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
"traits": {
- "smithy.api#documentation": "The resource Id for the Amazon ECR image.
",
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration to retrieve.
",
"smithy.api#required": {}
}
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#GetCodeSecurityScanConfigurationResponse": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration.
"
+ }
},
- "maxResults": {
- "target": "smithy.api#Integer",
+ "name": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationName",
"traits": {
- "smithy.api#documentation": "The maximum number of results to be returned in a single page of results.
",
- "smithy.api#range": {
- "min": 1,
- "max": 100
- }
+ "smithy.api#documentation": "The name of the scan configuration.
"
}
},
- "nextToken": {
- "target": "com.amazonaws.inspector2#GetClustersForImageNextToken",
+ "configuration": {
+ "target": "com.amazonaws.inspector2#CodeSecurityScanConfiguration",
+ "traits": {
+ "smithy.api#documentation": "The configuration settings for the code security scan.
"
+ }
+ },
+ "level": {
+ "target": "com.amazonaws.inspector2#ConfigurationLevel",
+ "traits": {
+ "smithy.api#documentation": "The security level for the scan configuration.
"
+ }
+ },
+ "scopeSettings": {
+ "target": "com.amazonaws.inspector2#ScopeSettings",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The scope settings that define which repositories will be scanned. If the\n ScopeSetting parameter is ALL the scan configuration applies\n to all existing and future projects imported into Amazon Inspector.
"
+ }
+ },
+ "createdAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the scan configuration was created.
"
+ }
+ },
+ "lastUpdatedAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the scan configuration was last updated.
"
+ }
+ },
+ "tags": {
+ "target": "com.amazonaws.inspector2#TagMap",
+ "traits": {
+ "smithy.api#documentation": "The tags associated with the scan configuration.
"
}
}
},
"traits": {
- "smithy.api#input": {}
+ "smithy.api#output": {}
}
},
- "com.amazonaws.inspector2#GetClustersForImageResponse": {
+ "com.amazonaws.inspector2#GetCodeSecurityScanRequest": {
"type": "structure",
"members": {
- "cluster": {
- "target": "com.amazonaws.inspector2#ClusterInformationList",
+ "resource": {
+ "target": "com.amazonaws.inspector2#CodeSecurityResource",
"traits": {
- "smithy.api#documentation": "A unit of work inside of a cluster, which can include metadata about the cluster.
",
+ "smithy.api#documentation": "The resource identifier for the code repository that was scanned.
",
"smithy.api#required": {}
}
},
- "nextToken": {
- "target": "com.amazonaws.inspector2#GetClustersForImageNextToken",
+ "scanId": {
+ "target": "com.amazonaws.inspector2#CodeSecurityUuid",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the scan to retrieve.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#GetCodeSecurityScanResponse": {
+ "type": "structure",
+ "members": {
+ "scanId": {
+ "target": "com.amazonaws.inspector2#CodeSecurityUuid",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the scan.
"
+ }
+ },
+ "resource": {
+ "target": "com.amazonaws.inspector2#CodeSecurityResource",
+ "traits": {
+ "smithy.api#documentation": "The resource identifier for the code repository that was scanned.
"
+ }
+ },
+ "accountId": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services account ID associated with the scan.
"
+ }
+ },
+ "status": {
+ "target": "com.amazonaws.inspector2#CodeScanStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the scan.
"
+ }
+ },
+ "statusReason": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "The reason for the current status of the scan.
"
+ }
+ },
+ "createdAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the scan was created.
"
+ }
+ },
+ "updatedAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the scan was last updated.
"
+ }
+ },
+ "lastCommitId": {
+ "target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The identifier of the last commit that was scanned. This is only returned if the scan\n was successful or skipped.
"
}
}
},
@@ -7754,13 +9392,13 @@
"ecrConfiguration": {
"target": "com.amazonaws.inspector2#EcrConfigurationState",
"traits": {
- "smithy.api#documentation": "Specifies how the ECR automated re-scan duration is currently configured for your environment.
"
+ "smithy.api#documentation": "Specifies how the ECR automated re-scan duration is currently configured for your\n environment.
"
}
},
"ec2Configuration": {
"target": "com.amazonaws.inspector2#Ec2ConfigurationState",
"traits": {
- "smithy.api#documentation": "Specifies how the Amazon EC2 automated scan mode is currently configured for your environment.
"
+ "smithy.api#documentation": "Specifies how the Amazon EC2 automated scan mode is currently configured for your\n environment.
"
}
}
}
@@ -7837,7 +9475,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated with your account. \n
",
+ "smithy.api#documentation": "Retrieves the activation status of Amazon Inspector deep inspection and custom paths associated\n with your account.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -7876,7 +9514,7 @@
"errorMessage": {
"target": "com.amazonaws.inspector2#NonEmptyString",
"traits": {
- "smithy.api#documentation": "An error message explaining why Amazon Inspector deep inspection configurations could not be retrieved for your account.
"
+ "smithy.api#documentation": "An error message explaining why Amazon Inspector deep inspection configurations could not be\n retrieved for your account.
"
}
}
},
@@ -8193,7 +9831,7 @@
"filterCriteria": {
"target": "com.amazonaws.inspector2#ResourceFilterCriteria",
"traits": {
- "smithy.api#documentation": "Contains details about the resource filter criteria used for the software bill of materials (SBOM) report.
"
+ "smithy.api#documentation": "Contains details about the resource filter criteria used for the software bill of\n materials (SBOM) report.
"
}
}
},
@@ -8201,6 +9839,41 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.inspector2#GitHubAuthCode": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1024
+ },
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.inspector2#GitHubInstallationId": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1024
+ }
+ }
+ },
+ "com.amazonaws.inspector2#GitLabAccessToken": {
+ "type": "string",
+ "traits": {
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.inspector2#GitLabAuthCode": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1024
+ },
+ "smithy.api#sensitive": {}
+ }
+ },
"com.amazonaws.inspector2#GroupKey": {
"type": "string",
"traits": {
@@ -8303,7 +9976,7 @@
"accountId": {
"target": "com.amazonaws.inspector2#AccountId",
"traits": {
- "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the container image hosting the layer image.
",
+ "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the container image hosting the layer\n image.
",
"smithy.api#required": {}
}
},
@@ -8350,6 +10023,12 @@
{
"target": "com.amazonaws.inspector2#AssociateMember"
},
+ {
+ "target": "com.amazonaws.inspector2#BatchAssociateCodeSecurityScanConfiguration"
+ },
+ {
+ "target": "com.amazonaws.inspector2#BatchDisassociateCodeSecurityScanConfiguration"
+ },
{
"target": "com.amazonaws.inspector2#BatchGetAccountStatus"
},
@@ -8377,6 +10056,12 @@
{
"target": "com.amazonaws.inspector2#CreateCisScanConfiguration"
},
+ {
+ "target": "com.amazonaws.inspector2#CreateCodeSecurityIntegration"
+ },
+ {
+ "target": "com.amazonaws.inspector2#CreateCodeSecurityScanConfiguration"
+ },
{
"target": "com.amazonaws.inspector2#CreateFilter"
},
@@ -8389,6 +10074,12 @@
{
"target": "com.amazonaws.inspector2#DeleteCisScanConfiguration"
},
+ {
+ "target": "com.amazonaws.inspector2#DeleteCodeSecurityIntegration"
+ },
+ {
+ "target": "com.amazonaws.inspector2#DeleteCodeSecurityScanConfiguration"
+ },
{
"target": "com.amazonaws.inspector2#DeleteFilter"
},
@@ -8411,13 +10102,22 @@
"target": "com.amazonaws.inspector2#EnableDelegatedAdminAccount"
},
{
- "target": "com.amazonaws.inspector2#GetCisScanReport"
+ "target": "com.amazonaws.inspector2#GetCisScanReport"
+ },
+ {
+ "target": "com.amazonaws.inspector2#GetCisScanResultDetails"
+ },
+ {
+ "target": "com.amazonaws.inspector2#GetClustersForImage"
+ },
+ {
+ "target": "com.amazonaws.inspector2#GetCodeSecurityIntegration"
},
{
- "target": "com.amazonaws.inspector2#GetCisScanResultDetails"
+ "target": "com.amazonaws.inspector2#GetCodeSecurityScan"
},
{
- "target": "com.amazonaws.inspector2#GetClustersForImage"
+ "target": "com.amazonaws.inspector2#GetCodeSecurityScanConfiguration"
},
{
"target": "com.amazonaws.inspector2#GetConfiguration"
@@ -8455,6 +10155,15 @@
{
"target": "com.amazonaws.inspector2#ListCisScans"
},
+ {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityIntegrations"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationAssociations"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityScanConfigurations"
+ },
{
"target": "com.amazonaws.inspector2#ListCoverage"
},
@@ -8497,6 +10206,9 @@
{
"target": "com.amazonaws.inspector2#StartCisSession"
},
+ {
+ "target": "com.amazonaws.inspector2#StartCodeSecurityScan"
+ },
{
"target": "com.amazonaws.inspector2#StopCisSession"
},
@@ -8509,6 +10221,12 @@
{
"target": "com.amazonaws.inspector2#UpdateCisScanConfiguration"
},
+ {
+ "target": "com.amazonaws.inspector2#UpdateCodeSecurityIntegration"
+ },
+ {
+ "target": "com.amazonaws.inspector2#UpdateCodeSecurityScanConfiguration"
+ },
{
"target": "com.amazonaws.inspector2#UpdateConfiguration"
},
@@ -9424,6 +11142,88 @@
"smithy.api#documentation": "Information about the Amazon Inspector score given to a finding.
"
}
},
+ "com.amazonaws.inspector2#InstanceUrl": {
+ "type": "string",
+ "traits": {
+ "smithy.api#pattern": "^https://[-a-zA-Z0-9()@:%_+.~#?&//=]{1,1024}$",
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.inspector2#IntegrationName": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 60
+ },
+ "smithy.api#pattern": "^[a-zA-Z0-9-_$:.]*$"
+ }
+ },
+ "com.amazonaws.inspector2#IntegrationStatus": {
+ "type": "enum",
+ "members": {
+ "PENDING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING"
+ }
+ },
+ "IN_PROGRESS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "IN_PROGRESS"
+ }
+ },
+ "ACTIVE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACTIVE"
+ }
+ },
+ "INACTIVE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "INACTIVE"
+ }
+ },
+ "DISABLING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DISABLING"
+ }
+ }
+ }
+ },
+ "com.amazonaws.inspector2#IntegrationSummaries": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationSummary"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 100
+ },
+ "smithy.api#uniqueItems": {}
+ }
+ },
+ "com.amazonaws.inspector2#IntegrationType": {
+ "type": "enum",
+ "members": {
+ "GITLAB_SELF_MANAGED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "GITLAB_SELF_MANAGED"
+ }
+ },
+ "GITHUB": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "GITHUB"
+ }
+ }
+ }
+ },
"com.amazonaws.inspector2#InternalServerException": {
"type": "structure",
"members": {
@@ -9497,13 +11297,13 @@
"functionNames": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "The Amazon Web Services Lambda function names to include in the aggregation results.
"
+ "smithy.api#documentation": "The Amazon Web Services Lambda function names to include in the aggregation\n results.
"
}
},
"runtimes": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "Returns findings aggregated by Amazon Web Services Lambda function runtime environments.
"
+ "smithy.api#documentation": "Returns findings aggregated by Amazon Web Services Lambda function runtime\n environments.
"
}
},
"functionTags": {
@@ -9526,7 +11326,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The details that define a findings aggregation based on Amazon Web Services Lambda functions.
"
+ "smithy.api#documentation": "The details that define a findings aggregation based on Amazon Web Services Lambda\n functions.
"
}
},
"com.amazonaws.inspector2#LambdaFunctionAggregationResponse": {
@@ -9560,7 +11360,7 @@
"accountId": {
"target": "com.amazonaws.inspector2#AccountId",
"traits": {
- "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the Amazon Web Services Lambda function.\n
"
+ "smithy.api#documentation": "The ID of the Amazon Web Services account that owns the Amazon Web Services Lambda\n function.
"
}
},
"severityCounts": {
@@ -9572,12 +11372,12 @@
"lastModifiedAt": {
"target": "com.amazonaws.inspector2#DateTimeTimestamp",
"traits": {
- "smithy.api#documentation": "The date that the Amazon Web Services Lambda function included in the aggregation results was last changed.
"
+ "smithy.api#documentation": "The date that the Amazon Web Services Lambda function included in the aggregation results\n was last changed.
"
}
}
},
"traits": {
- "smithy.api#documentation": "A response that contains the results of an Amazon Web Services Lambda function finding aggregation.
"
+ "smithy.api#documentation": "A response that contains the results of an Amazon Web Services Lambda function finding\n aggregation.
"
}
},
"com.amazonaws.inspector2#LambdaFunctionMetadata": {
@@ -9592,7 +11392,7 @@
"layers": {
"target": "com.amazonaws.inspector2#LambdaLayerList",
"traits": {
- "smithy.api#documentation": "The layers for an Amazon Web Services Lambda function. A Lambda function can have up to five layers.
"
+ "smithy.api#documentation": "The layers for an Amazon Web Services Lambda function. A Lambda function can have up to\n five layers.
"
}
},
"functionName": {
@@ -9649,7 +11449,7 @@
"layerArns": {
"target": "com.amazonaws.inspector2#StringFilterList",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function layer.\n
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function layer.
"
}
},
"sortOrder": {
@@ -9666,7 +11466,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The details that define a findings aggregation based on an Amazon Web Services Lambda function's layers.
"
+ "smithy.api#documentation": "The details that define a findings aggregation based on an Amazon Web Services Lambda\n function's layers.
"
}
},
"com.amazonaws.inspector2#LambdaLayerAggregationResponse": {
@@ -9708,7 +11508,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A response that contains the results of an Amazon Web Services Lambda function layer finding aggregation.
"
+ "smithy.api#documentation": "A response that contains the results of an Amazon Web Services Lambda function layer\n finding aggregation.
"
}
},
"com.amazonaws.inspector2#LambdaLayerArn": {
@@ -9760,7 +11560,7 @@
"securityGroupIds": {
"target": "com.amazonaws.inspector2#SecurityGroupIdList",
"traits": {
- "smithy.api#documentation": "The VPC security groups and subnets that are attached to an Amazon Web Services Lambda function. For more information, see VPC Settings.
"
+ "smithy.api#documentation": "The VPC security groups and subnets that are attached to an Amazon Web Services Lambda\n function. For more information, see VPC Settings.
"
}
},
"vpcId": {
@@ -9771,7 +11571,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The VPC security groups and subnets that are attached to an Amazon Web Services Lambda function. For more information, see VPC Settings.
"
+ "smithy.api#documentation": "The VPC security groups and subnets that are attached to an Amazon Web Services Lambda\n function. For more information, see VPC Settings.
"
}
},
"com.amazonaws.inspector2#LastSeen": {
@@ -9847,13 +11647,13 @@
"maxResults": {
"target": "com.amazonaws.inspector2#ListAccountPermissionsMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.
"
+ "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more\n than the maximum the response will return a nextToken value, use this value\n when you call the action again to get the remaining results.
"
}
},
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. If your response returns\n more than the maxResults maximum value it will also return a\n nextToken value. For subsequent calls, use the NextToken value returned\n from the previous request to continue listing results after the first page.
"
}
}
}
@@ -10007,14 +11807,14 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
}
},
"maxResults": {
"target": "com.amazonaws.inspector2#ListCisScanConfigurationsMaxResults",
"traits": {
"smithy.api#default": 100,
- "smithy.api#documentation": "The maximum number of CIS scan configurations to be returned in a single page of results.
"
+ "smithy.api#documentation": "The maximum number of CIS scan configurations to be returned in a single page of\n results.
"
}
}
},
@@ -10034,7 +11834,7 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
}
}
},
@@ -10137,14 +11937,14 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
}
},
"maxResults": {
"target": "com.amazonaws.inspector2#CisScanResultsMaxResults",
"traits": {
"smithy.api#default": 100,
- "smithy.api#documentation": "The maximum number of scan results aggregated by checks to be returned in a single page of results.
"
+ "smithy.api#documentation": "The maximum number of scan results aggregated by checks to be returned in a single page\n of results.
"
}
}
},
@@ -10164,7 +11964,7 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
}
}
},
@@ -10270,14 +12070,14 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
}
},
"maxResults": {
"target": "com.amazonaws.inspector2#CisScanResultsMaxResults",
"traits": {
"smithy.api#default": 100,
- "smithy.api#documentation": "The maximum number of scan results aggregated by a target resource to be returned in a single page of results.
"
+ "smithy.api#documentation": "The maximum number of scan results aggregated by a target resource to be returned in a\n single page of results.
"
}
}
},
@@ -10297,7 +12097,7 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
}
}
},
@@ -10467,45 +12267,238 @@
}
}
},
- "com.amazonaws.inspector2#ListCisScansRequest": {
+ "com.amazonaws.inspector2#ListCisScansRequest": {
+ "type": "structure",
+ "members": {
+ "filterCriteria": {
+ "target": "com.amazonaws.inspector2#ListCisScansFilterCriteria",
+ "traits": {
+ "smithy.api#documentation": "The CIS scan filter criteria.
"
+ }
+ },
+ "detailLevel": {
+ "target": "com.amazonaws.inspector2#ListCisScansDetailLevel",
+ "traits": {
+ "smithy.api#documentation": "The detail applied to the CIS scan.
"
+ }
+ },
+ "sortBy": {
+ "target": "com.amazonaws.inspector2#ListCisScansSortBy",
+ "traits": {
+ "smithy.api#default": "SCAN_START_DATE",
+ "smithy.api#documentation": "The CIS scans sort by order.
"
+ }
+ },
+ "sortOrder": {
+ "target": "com.amazonaws.inspector2#CisSortOrder",
+ "traits": {
+ "smithy.api#documentation": "The CIS scans sort order.
"
+ }
+ },
+ "nextToken": {
+ "target": "com.amazonaws.inspector2#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
+ }
+ },
+ "maxResults": {
+ "target": "com.amazonaws.inspector2#ListCisScansMaxResults",
+ "traits": {
+ "smithy.api#default": 100,
+ "smithy.api#documentation": "The maximum number of results to be returned.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#ListCisScansResponse": {
+ "type": "structure",
+ "members": {
+ "scans": {
+ "target": "com.amazonaws.inspector2#CisScanList",
+ "traits": {
+ "smithy.api#documentation": "The CIS scans.
"
+ }
+ },
+ "nextToken": {
+ "target": "com.amazonaws.inspector2#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of\n results.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.inspector2#ListCisScansSortBy": {
+ "type": "enum",
+ "members": {
+ "STATUS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "STATUS"
+ }
+ },
+ "SCHEDULED_BY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SCHEDULED_BY"
+ }
+ },
+ "SCAN_START_DATE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SCAN_START_DATE"
+ }
+ },
+ "FAILED_CHECKS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED_CHECKS"
+ }
+ }
+ }
+ },
+ "com.amazonaws.inspector2#ListCodeSecurityIntegrations": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityIntegrationsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityIntegrationsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Lists all code security integrations in your account.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/integration/list"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#ListCodeSecurityIntegrationsRequest": {
+ "type": "structure",
+ "members": {
+ "nextToken": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request. For subsequent calls, use the NextToken\n value returned from the previous request to continue listing results after the first\n page.
",
+ "smithy.api#httpQuery": "nextToken"
+ }
+ },
+ "maxResults": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to return in a single call.
",
+ "smithy.api#httpQuery": "maxResults",
+ "smithy.api#range": {
+ "min": 1,
+ "max": 100
+ }
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#ListCodeSecurityIntegrationsResponse": {
+ "type": "structure",
+ "members": {
+ "integrations": {
+ "target": "com.amazonaws.inspector2#IntegrationSummaries",
+ "traits": {
+ "smithy.api#documentation": "A list of code security integration summaries.
"
+ }
+ },
+ "nextToken": {
+ "target": "smithy.api#String",
+ "traits": {
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request. For subsequent calls, use the NextToken\n value returned from the previous request to continue listing results after the first\n page.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationAssociations": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationAssociationsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationAssociationsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Lists the associations between code repositories and Amazon Inspector code security scan\n configurations.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/scan-configuration/associations/list"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationAssociationsRequest": {
"type": "structure",
"members": {
- "filterCriteria": {
- "target": "com.amazonaws.inspector2#ListCisScansFilterCriteria",
- "traits": {
- "smithy.api#documentation": "The CIS scan filter criteria.
"
- }
- },
- "detailLevel": {
- "target": "com.amazonaws.inspector2#ListCisScansDetailLevel",
- "traits": {
- "smithy.api#documentation": "The detail applied to the CIS scan.
"
- }
- },
- "sortBy": {
- "target": "com.amazonaws.inspector2#ListCisScansSortBy",
- "traits": {
- "smithy.api#default": "SCAN_START_DATE",
- "smithy.api#documentation": "The CIS scans sort by order.
"
- }
- },
- "sortOrder": {
- "target": "com.amazonaws.inspector2#CisSortOrder",
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
"traits": {
- "smithy.api#documentation": "The CIS scans sort order.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration to list associations\n for.
",
+ "smithy.api#required": {}
}
},
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. For subsequent calls, use\n the NextToken value returned from the previous request to continue listing\n results after the first page.
",
+ "smithy.api#httpQuery": "nextToken"
}
},
"maxResults": {
- "target": "com.amazonaws.inspector2#ListCisScansMaxResults",
+ "target": "smithy.api#Integer",
"traits": {
- "smithy.api#default": 100,
- "smithy.api#documentation": "The maximum number of results to be returned.
"
+ "smithy.api#documentation": "The maximum number of results to return in the response. If your request would return\n more than the maximum the response will return a nextToken value, use this\n value when you call the action again to get the remaining results.
",
+ "smithy.api#httpQuery": "maxResults",
+ "smithy.api#range": {
+ "min": 1,
+ "max": 100
+ }
}
}
},
@@ -10513,19 +12506,19 @@
"smithy.api#input": {}
}
},
- "com.amazonaws.inspector2#ListCisScansResponse": {
+ "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationAssociationsResponse": {
"type": "structure",
"members": {
- "scans": {
- "target": "com.amazonaws.inspector2#CisScanList",
+ "associations": {
+ "target": "com.amazonaws.inspector2#CodeSecurityScanConfigurationAssociationSummaries",
"traits": {
- "smithy.api#documentation": "The CIS scans.
"
+ "smithy.api#documentation": "A list of associations between code repositories and scan configurations.
"
}
},
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination token from a previous request that's used to retrieve the next page of results.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. For subsequent calls, use\n the NextToken value returned from the previous request to continue listing\n results after the first page.
"
}
}
},
@@ -10533,33 +12526,84 @@
"smithy.api#output": {}
}
},
- "com.amazonaws.inspector2#ListCisScansSortBy": {
- "type": "enum",
+ "com.amazonaws.inspector2#ListCodeSecurityScanConfigurations": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Lists all code security scan configurations in your account.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/scan-configuration/list"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationsRequest": {
+ "type": "structure",
"members": {
- "STATUS": {
- "target": "smithy.api#Unit",
+ "nextToken": {
+ "target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#enumValue": "STATUS"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request. For subsequent calls, use the NextToken\n value returned from the previous request to continue listing results after the first\n page.
",
+ "smithy.api#httpQuery": "nextToken"
}
},
- "SCHEDULED_BY": {
- "target": "smithy.api#Unit",
+ "maxResults": {
+ "target": "smithy.api#Integer",
"traits": {
- "smithy.api#enumValue": "SCHEDULED_BY"
+ "smithy.api#documentation": "The maximum number of results to return in a single call.
",
+ "smithy.api#httpQuery": "maxResults",
+ "smithy.api#range": {
+ "min": 1,
+ "max": 100
+ }
}
- },
- "SCAN_START_DATE": {
- "target": "smithy.api#Unit",
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#ListCodeSecurityScanConfigurationsResponse": {
+ "type": "structure",
+ "members": {
+ "configurations": {
+ "target": "com.amazonaws.inspector2#CodeSecurityScanConfigurationSummaries",
"traits": {
- "smithy.api#enumValue": "SCAN_START_DATE"
+ "smithy.api#documentation": "A list of code security scan configuration summaries.
"
}
},
- "FAILED_CHECKS": {
- "target": "smithy.api#Unit",
+ "nextToken": {
+ "target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#enumValue": "FAILED_CHECKS"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request. For subsequent calls, use the NextToken\n value returned from the previous request to continue listing results after the first\n page.
"
}
}
+ },
+ "traits": {
+ "smithy.api#output": {}
}
},
"com.amazonaws.inspector2#ListCoverage": {
@@ -10611,13 +12655,13 @@
"maxResults": {
"target": "com.amazonaws.inspector2#ListCoverageMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.
"
+ "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more\n than the maximum the response will return a nextToken value, use this value\n when you call the action again to get the remaining results.
"
}
},
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. If your response returns\n more than the maxResults maximum value it will also return a\n nextToken value. For subsequent calls, use the nextToken value\n returned from the previous request to continue listing results after the first page.
"
}
},
"filterCriteria": {
@@ -10748,7 +12792,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists information about the Amazon Inspector delegated administrator of your\n organization.
",
+ "smithy.api#documentation": "Lists information about the Amazon Inspector delegated administrator of your organization.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -10768,13 +12812,13 @@
"maxResults": {
"target": "com.amazonaws.inspector2#ListDelegatedAdminMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.
"
+ "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more\n than the maximum the response will return a nextToken value, use this value\n when you call the action again to get the remaining results.
"
}
},
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. If your response returns\n more than the maxResults maximum value it will also return a\n nextToken value. For subsequent calls, use the nextToken value\n returned from the previous request to continue listing results after the first page.
"
}
}
}
@@ -10869,13 +12913,13 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. If your response returns\n more than the maxResults maximum value it will also return a\n nextToken value. For subsequent calls, use the nextToken value\n returned from the previous request to continue listing results after the first page.
"
}
},
"maxResults": {
"target": "com.amazonaws.inspector2#ListFilterMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.
"
+ "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more\n than the maximum the response will return a nextToken value, use this value\n when you call the action again to get the remaining results.
"
}
}
}
@@ -10954,13 +12998,13 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. If your response returns\n more than the maxResults maximum value it will also return a\n nextToken value. For subsequent calls, use the nextToken value\n returned from the previous request to continue listing results after the first page.
"
}
},
"maxResults": {
"target": "com.amazonaws.inspector2#ListFindingAggregationsMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.
"
+ "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more\n than the maximum the response will return a nextToken value, use this value\n when you call the action again to get the remaining results.
"
}
},
"accountIds": {
@@ -10972,7 +13016,7 @@
"aggregationRequest": {
"target": "com.amazonaws.inspector2#AggregationRequest",
"traits": {
- "smithy.api#documentation": "Details of the aggregation request that is used to filter your aggregation results.
"
+ "smithy.api#documentation": "Details of the aggregation request that is used to filter your aggregation\n results.
"
}
}
}
@@ -11050,13 +13094,13 @@
"maxResults": {
"target": "com.amazonaws.inspector2#ListFindingsMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.
"
+ "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more\n than the maximum the response will return a nextToken value, use this value\n when you call the action again to get the remaining results.
"
}
},
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. If your response returns\n more than the maxResults maximum value it will also return a\n nextToken value. For subsequent calls, use the nextToken value\n returned from the previous request to continue listing results after the first page.
"
}
},
"filterCriteria": {
@@ -11148,13 +13192,13 @@
"maxResults": {
"target": "com.amazonaws.inspector2#ListMembersMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.
"
+ "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more\n than the maximum the response will return a nextToken value, use this value\n when you call the action again to get the remaining results.
"
}
},
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. If your response returns\n more than the maxResults maximum value it will also return a\n nextToken value. For subsequent calls, use the nextToken value\n returned from the previous request to continue listing results after the first page.
"
}
}
}
@@ -11291,13 +13335,13 @@
"maxResults": {
"target": "com.amazonaws.inspector2#ListUsageTotalsMaxResults",
"traits": {
- "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more than the maximum the response will return a nextToken value, use this value when you call the action again to get the remaining results.
"
+ "smithy.api#documentation": "The maximum number of results the response can return. If your request would return more\n than the maximum the response will return a nextToken value, use this value\n when you call the action again to get the remaining results.
"
}
},
"nextToken": {
"target": "com.amazonaws.inspector2#ListUsageTotalsNextToken",
"traits": {
- "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. If your response returns more than the maxResults maximum value it will also return a nextToken value. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.
"
+ "smithy.api#documentation": "A token to use for paginating results that are returned in the response. Set the value\n of this parameter to null for the first request to a list action. If your response returns\n more than the maxResults maximum value it will also return a\n nextToken value. For subsequent calls, use the nextToken value\n returned from the previous request to continue listing results after the first page.
"
}
},
"accountIds": {
@@ -11314,7 +13358,7 @@
"nextToken": {
"target": "com.amazonaws.inspector2#ListUsageTotalsNextToken",
"traits": {
- "smithy.api#documentation": "The pagination parameter to be used on the next list operation to retrieve more items.
"
+ "smithy.api#documentation": "The pagination parameter to be used on the next list operation to retrieve more\n items.
"
}
},
"totals": {
@@ -11411,7 +13455,7 @@
"delegatedAdminAccountId": {
"target": "com.amazonaws.inspector2#AccountId",
"traits": {
- "smithy.api#documentation": "The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member account.
"
+ "smithy.api#documentation": "The Amazon Web Services account ID of the Amazon Inspector delegated administrator for this member\n account.
"
}
},
"updatedAt": {
@@ -11438,13 +13482,13 @@
"activateDeepInspection": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Whether Amazon Inspector deep inspection is active in the account. If TRUE Amazon Inspector deep inspection is active, if FALSE it is not active.
",
+ "smithy.api#documentation": "Whether Amazon Inspector deep inspection is active in the account. If TRUE Amazon Inspector deep\n inspection is active, if FALSE it is not active.
",
"smithy.api#required": {}
}
}
},
"traits": {
- "smithy.api#documentation": "An object that contains details about the status of Amazon Inspector deep inspection for a member account in your organization.
"
+ "smithy.api#documentation": "An object that contains details about the status of Amazon Inspector deep inspection for a member\n account in your organization.
"
}
},
"com.amazonaws.inspector2#MemberAccountEc2DeepInspectionStatusList": {
@@ -11478,12 +13522,12 @@
"errorMessage": {
"target": "com.amazonaws.inspector2#NonEmptyString",
"traits": {
- "smithy.api#documentation": "The error message explaining why the account failed to activate Amazon Inspector deep inspection.
"
+ "smithy.api#documentation": "The error message explaining why the account failed to activate Amazon Inspector deep\n inspection.
"
}
}
},
"traits": {
- "smithy.api#documentation": "An object that contains details about the state of Amazon Inspector deep inspection for a member account.
"
+ "smithy.api#documentation": "An object that contains details about the state of Amazon Inspector deep inspection for a member\n account.
"
}
},
"com.amazonaws.inspector2#MemberAccountEc2DeepInspectionStatusStateList": {
@@ -11588,7 +13632,7 @@
"openPortRange": {
"target": "com.amazonaws.inspector2#PortRange",
"traits": {
- "smithy.api#documentation": "An object that contains details about the open port range associated with a finding.
",
+ "smithy.api#documentation": "An object that contains details about the open port range associated with a\n finding.
",
"smithy.api#required": {}
}
},
@@ -12043,7 +14087,7 @@
"vendorCreatedAt": {
"target": "com.amazonaws.inspector2#DateTimeTimestamp",
"traits": {
- "smithy.api#documentation": "The date and time that this vulnerability was first added to the vendor's database.
"
+ "smithy.api#documentation": "The date and time that this vulnerability was first added to the vendor's\n database.
"
}
},
"vendorUpdatedAt": {
@@ -12084,13 +14128,56 @@
}
}
},
+ "com.amazonaws.inspector2#PeriodicScanConfiguration": {
+ "type": "structure",
+ "members": {
+ "frequency": {
+ "target": "com.amazonaws.inspector2#PeriodicScanFrequency",
+ "traits": {
+ "smithy.api#documentation": "The frequency at which periodic scans are performed (such as weekly or monthly).
\n If you don't provide the frequencyExpression Amazon Inspector chooses day for the scan\n to run. If you provide the frequencyExpression, the schedule must match the\n specified frequency.
"
+ }
+ },
+ "frequencyExpression": {
+ "target": "com.amazonaws.inspector2#FrequencyExpression",
+ "traits": {
+ "smithy.api#documentation": "The schedule expression for periodic scans, in cron format.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Configuration settings for periodic scans that run on a scheduled basis.
"
+ }
+ },
+ "com.amazonaws.inspector2#PeriodicScanFrequency": {
+ "type": "enum",
+ "members": {
+ "WEEKLY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "WEEKLY"
+ }
+ },
+ "MONTHLY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "MONTHLY"
+ }
+ },
+ "NEVER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "NEVER"
+ }
+ }
+ }
+ },
"com.amazonaws.inspector2#Permission": {
"type": "structure",
"members": {
"service": {
"target": "com.amazonaws.inspector2#Service",
"traits": {
- "smithy.api#documentation": "The services that the permissions allow an account to perform the given operations for.
",
+ "smithy.api#documentation": "The services that the permissions allow an account to perform the given operations\n for.
",
"smithy.api#required": {}
}
},
@@ -12218,6 +14305,95 @@
}
}
},
+ "com.amazonaws.inspector2#ProjectCodeSecurityScanConfiguration": {
+ "type": "structure",
+ "members": {
+ "periodicScanConfigurations": {
+ "target": "com.amazonaws.inspector2#ProjectPeriodicScanConfigurationList",
+ "traits": {
+ "smithy.api#documentation": "The periodic scan configurations applied to the project.
"
+ }
+ },
+ "continuousIntegrationScanConfigurations": {
+ "target": "com.amazonaws.inspector2#ProjectContinuousIntegrationScanConfigurationList",
+ "traits": {
+ "smithy.api#documentation": "The continuous integration scan configurations applied to the project.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains the scan configuration settings applied to a specific project in a code\n repository.
"
+ }
+ },
+ "com.amazonaws.inspector2#ProjectContinuousIntegrationScanConfiguration": {
+ "type": "structure",
+ "members": {
+ "supportedEvent": {
+ "target": "com.amazonaws.inspector2#ContinuousIntegrationScanEvent",
+ "traits": {
+ "smithy.api#documentation": "The repository event that triggers continuous integration scans for the project.
"
+ }
+ },
+ "ruleSetCategories": {
+ "target": "com.amazonaws.inspector2#RuleSetCategories",
+ "traits": {
+ "smithy.api#documentation": "The categories of security rules applied during continuous integration scans for the\n project.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains the continuous integration scan configuration settings applied to a specific\n project.
"
+ }
+ },
+ "com.amazonaws.inspector2#ProjectContinuousIntegrationScanConfigurationList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#ProjectContinuousIntegrationScanConfiguration"
+ }
+ },
+ "com.amazonaws.inspector2#ProjectId": {
+ "type": "string",
+ "traits": {
+ "smithy.api#pattern": "^project-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
+ }
+ },
+ "com.amazonaws.inspector2#ProjectPeriodicScanConfiguration": {
+ "type": "structure",
+ "members": {
+ "frequencyExpression": {
+ "target": "com.amazonaws.inspector2#FrequencyExpression",
+ "traits": {
+ "smithy.api#documentation": "The schedule expression for periodic scans, in cron format, applied to the\n project.
"
+ }
+ },
+ "ruleSetCategories": {
+ "target": "com.amazonaws.inspector2#RuleSetCategories",
+ "traits": {
+ "smithy.api#documentation": "The categories of security rules applied during periodic scans for the project.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains the periodic scan configuration settings applied to a specific project.
"
+ }
+ },
+ "com.amazonaws.inspector2#ProjectPeriodicScanConfigurationList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#ProjectPeriodicScanConfiguration"
+ }
+ },
+ "com.amazonaws.inspector2#ProjectSelectionScope": {
+ "type": "enum",
+ "members": {
+ "ALL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ALL"
+ }
+ }
+ }
+ },
"com.amazonaws.inspector2#Reason": {
"type": "string",
"traits": {
@@ -12339,7 +14515,7 @@
"recommendation": {
"target": "com.amazonaws.inspector2#Recommendation",
"traits": {
- "smithy.api#documentation": "An object that contains information about the recommended course of action to remediate the finding.
"
+ "smithy.api#documentation": "An object that contains information about the recommended course of action to remediate\n the finding.
"
}
}
},
@@ -12467,7 +14643,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A response that contains details on the results of a finding aggregation by repository.
"
+ "smithy.api#documentation": "A response that contains details on the results of a finding aggregation by\n repository.
"
}
},
"com.amazonaws.inspector2#RepositorySortBy": {
@@ -12519,7 +14695,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.
",
+ "smithy.api#documentation": "Resets an encryption key. After the key is reset your resources will be encrypted by an\n Amazon Web Services owned key.
",
"smithy.api#http": {
"code": 200,
"method": "PUT",
@@ -12615,13 +14791,19 @@
"awsEcrContainerImage": {
"target": "com.amazonaws.inspector2#AwsEcrContainerImageDetails",
"traits": {
- "smithy.api#documentation": "An object that contains details about the Amazon ECR container image involved in the finding.
"
+ "smithy.api#documentation": "An object that contains details about the Amazon ECR container image involved in the\n finding.
"
}
},
"awsLambdaFunction": {
"target": "com.amazonaws.inspector2#AwsLambdaFunctionDetails",
"traits": {
- "smithy.api#documentation": "A summary of the information about an Amazon Web Services Lambda function affected by a finding.
"
+ "smithy.api#documentation": "A summary of the information about an Amazon Web Services Lambda function affected by a\n finding.
"
+ }
+ },
+ "codeRepository": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryDetails",
+ "traits": {
+ "smithy.api#documentation": "Contains details about a code repository resource associated with a finding.
"
}
}
},
@@ -12692,7 +14874,7 @@
"min": 10,
"max": 341
},
- "smithy.api#pattern": "(^arn:.*:ecr:.*:\\d{12}:repository\\/(?:[a-z0-9]+(?:[._-][a-z0-9]+)*\\/)*[a-z0-9]+(?:[._-][a-z0-9]+)*(\\/sha256:[a-z0-9]{64})?$)|(^i-([a-z0-9]{8}|[a-z0-9]{17}|\\\\*)$|(^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$))"
+ "smithy.api#pattern": "(^arn:.*:ecr:.*:\\d{12}:repository\\/(?:[a-z0-9]+(?:[._-][a-z0-9]+)*\\/)*[a-z0-9]+(?:[._-][a-z0-9]+)*(\\/sha256:[a-z0-9]{64})?$)|(^i-([a-z0-9]{8}|[a-z0-9]{17}|\\\\*)$|(^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$)|(^arn:(aws[a-zA-Z-]*)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:codesecurity-integration\\/[a-f0-9-]{36}\\/project-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$))"
}
},
"com.amazonaws.inspector2#ResourceIdFilterList": {
@@ -12781,7 +14963,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The operation tried to access an invalid resource. Make sure the resource is specified correctly.
",
+ "smithy.api#documentation": "The operation tried to access an invalid resource. Make sure the resource is specified\n correctly.
",
"smithy.api#error": "client",
"smithy.api#httpError": 404
}
@@ -12810,7 +14992,13 @@
"lambdaFunction": {
"target": "com.amazonaws.inspector2#LambdaFunctionMetadata",
"traits": {
- "smithy.api#documentation": "An object that contains metadata details for an Amazon Web Services Lambda function.
"
+ "smithy.api#documentation": "An object that contains metadata details for an Amazon Web Services Lambda\n function.
"
+ }
+ },
+ "codeRepository": {
+ "target": "com.amazonaws.inspector2#CodeRepositoryMetadata",
+ "traits": {
+ "smithy.api#documentation": "Contains metadata about scan coverage for a code repository resource.
"
}
}
},
@@ -12837,6 +15025,10 @@
{
"value": "LAMBDA_CODE",
"name": "LAMBDA_CODE"
+ },
+ {
+ "value": "CODE_REPOSITORY",
+ "name": "CODE_REPOSITORY"
}
]
}
@@ -12869,6 +15061,9 @@
"traits": {
"smithy.api#documentation": "An object that described the state of Amazon Inspector scans for an account.
"
}
+ },
+ "codeRepository": {
+ "target": "com.amazonaws.inspector2#State"
}
},
"traits": {
@@ -12901,7 +15096,13 @@
"lambdaCode": {
"target": "com.amazonaws.inspector2#Status",
"traits": {
- "smithy.api#documentation": "The status of Amazon Inspector scanning for custom application code for Amazon Web Services Lambda functions. \n
"
+ "smithy.api#documentation": "The status of Amazon Inspector scanning for custom application code for Amazon Web Services Lambda\n functions.
"
+ }
+ },
+ "codeRepository": {
+ "target": "com.amazonaws.inspector2#Status",
+ "traits": {
+ "smithy.api#documentation": "The status of Amazon Inspector scanning for code repositories.
"
}
}
},
@@ -12998,6 +15199,10 @@
{
"value": "AWS_LAMBDA_FUNCTION",
"name": "AWS_LAMBDA_FUNCTION"
+ },
+ {
+ "value": "CODE_REPOSITORY",
+ "name": "CODE_REPOSITORY"
}
]
}
@@ -13014,6 +15219,41 @@
}
}
},
+ "com.amazonaws.inspector2#RuleSetCategories": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#RuleSetCategory"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 3
+ }
+ }
+ },
+ "com.amazonaws.inspector2#RuleSetCategory": {
+ "type": "enum",
+ "members": {
+ "SAST": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SAST"
+ }
+ },
+ "IAC": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "IAC"
+ }
+ },
+ "SCA": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SCA"
+ }
+ }
+ }
+ },
"com.amazonaws.inspector2#Runtime": {
"type": "string",
"traits": {
@@ -13120,6 +15360,23 @@
]
}
},
+ "com.amazonaws.inspector2#ScanConfigurationArn": {
+ "type": "string",
+ "traits": {
+ "smithy.api#documentation": "arn:aws:inspector2:::owner//codesecurity-configuration/",
+ "smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:inspector2:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:owner/(\\d{12}|o-[a-z0-9]{10,32})/codesecurity-configuration/[a-f0-9-]{36}$"
+ }
+ },
+ "com.amazonaws.inspector2#ScanConfigurationName": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 60
+ },
+ "smithy.api#pattern": "^[a-zA-Z0-9-_$:.]*$"
+ }
+ },
"com.amazonaws.inspector2#ScanMode": {
"type": "string",
"traits": {
@@ -13148,7 +15405,7 @@
"reason": {
"target": "com.amazonaws.inspector2#ScanStatusReason",
"traits": {
- "smithy.api#documentation": "The scan status. Possible return values and descriptions are:
\n \n PENDING_INITIAL_SCAN - This resource has been identified for scanning, results will be available soon.
\n \n ACCESS_DENIED - Resource access policy restricting Amazon Inspector access. Please update the IAM policy.
\n \n INTERNAL_ERROR - Amazon Inspector has encountered an internal error for this resource. Amazon Inspector service will automatically resolve the issue and resume the scanning. No action required from the user.
\n \n UNMANAGED_EC2_INSTANCE - The EC2 instance is not managed by SSM, please use the following SSM automation to remediate the issue: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html. Once the instance becomes managed by SSM, Inspector will automatically begin scanning this instance.
\n \n UNSUPPORTED_OS - Amazon Inspector does not support this OS, architecture, or image manifest type at this time. To see a complete list of supported operating systems see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.
\n \n SCAN_ELIGIBILITY_EXPIRED - The configured scan duration has lapsed for this image.
\n \n RESOURCE_TERMINATED - This resource has been terminated. The findings and coverage associated with this resource are in the process of being cleaned up.
\n \n SUCCESSFUL - The scan was successful.
\n \n NO_RESOURCES_FOUND - Reserved for future use.
\n \n IMAGE_SIZE_EXCEEDED - Reserved for future use.
\n \n SCAN_FREQUENCY_MANUAL - This image will not be covered by Amazon Inspector due to the repository scan frequency configuration.
\n \n SCAN_FREQUENCY_SCAN_ON_PUSH - This image will be scanned one time and will not new findings because of the scan frequency configuration.
\n \n EC2_INSTANCE_STOPPED - This EC2 instance is in a stopped state, therefore, Amazon Inspector will pause scanning. The existing findings will continue to exist until the instance is terminated. Once the instance is re-started, Inspector will automatically start scanning the instance again. Please note that you will not be charged for this instance while it’s in a stopped state.
\n \n PENDING_DISABLE - This resource is pending cleanup during disablement. The customer will not be billed while a resource is in the pending disable status.
\n \n NO INVENTORY - Amazon Inspector couldn’t find software application inventory to scan for vulnerabilities. This might be caused due to required Amazon Inspector associations being deleted or failing to run on your resource. Please verify the status of InspectorInventoryCollection-do-not-delete association in the SSM console for the resource. Additionally, you can verify the instance’s inventory in the SSM Fleet Manager console.
\n \n STALE_INVENTORY - Amazon Inspector wasn’t able to collect an updated software application inventory in the last 7 days. Please confirm the required Amazon Inspector associations still exist and you can still see an updated inventory in the SSM console.
\n \n EXCLUDED_BY_TAG - This resource was not scanned because it has been excluded by a tag.
\n \n UNSUPPORTED_RUNTIME - The function was not scanned because it has an unsupported runtime. To see a complete list of supported runtimes see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.
\n \n UNSUPPORTED_MEDIA_TYPE - The ECR image has an unsupported media type.
\n \n UNSUPPORTED_CONFIG_FILE - Reserved for future use.
\n \n DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED - The instance has exceeded the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep inspection for this instance you can try to adjust the custom paths associated with the account.
\n \n DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED - The SSM agent couldn't send inventory to Amazon Inspector because the SSM quota for Inventory data collected per instance per day has already been reached for this instance.
\n \n DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED - Amazon Inspector failed to extract the package inventory because the package collection time exceeding the maximum threshold of 15 minutes.
\n \n DEEP_INSPECTION_NO_INVENTORY The Amazon Inspector plugin hasn't yet been able to collect an inventory of packages for this instance. This is usually the result of a pending scan, however, if this status persists after 6 hours, use SSM to ensure that the required Amazon Inspector associations exist and are running for the instance.
\n ",
+ "smithy.api#documentation": "The scan status. Possible return values and descriptions are:
\n \n ACCESS_DENIED - Resource access policy restricting Amazon Inspector access. Please\n update the IAM policy.
\n \n ACCESS_DENIED_TO_ENCRYPTION_KEY - The KMS key policy doesn't allow Amazon Inspector\n access. Update the key policy.
\n \n DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED - Amazon Inspector failed to extract\n the package inventory because the package collection time exceeding the maximum threshold\n of 15 minutes.
\n \n DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED - The SSM agent couldn't\n send inventory to Amazon Inspector because the SSM quota for Inventory data collected per instance per\n day has already been reached for this instance.
\n \n DEEP_INSPECTION_NO_INVENTORY - The Amazon Inspector plugin hasn't yet been able to\n collect an inventory of packages for this instance. This is usually the result of a pending\n scan, however, if this status persists after 6 hours, use SSM to ensure that\n the required Amazon Inspector associations exist and are running for the instance.
\n \n DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED - The instance has\n exceeded the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep inspection for\n this instance you can try to adjust the custom paths associated with the account.
\n \n EC2_INSTANCE_STOPPED - This EC2 instance is in a stopped state, therefore,\n Amazon Inspector will pause scanning. The existing findings will continue to exist until the instance\n is terminated. Once the instance is re-started, Inspector will automatically start scanning\n the instance again. Please note that you will not be charged for this instance while it's\n in a stopped state.
\n \n EXCLUDED_BY_TAG - This resource was not scanned because it has been\n excluded by a tag.
\n \n IMAGE_SIZE_EXCEEDED - Reserved for future use.
\n \n INTEGRATION_CONNNECTION_LOST - Amazon Inspector couldn't communicate with the source\n code management platform.
\n \n INTERNAL_ERROR - Amazon Inspector has encountered an internal error for this resource.\n Amazon Inspector service will automatically resolve the issue and resume the scanning. No action\n required from the user.
\n \n NO INVENTORY - Amazon Inspector couldn't find software application inventory to scan\n for vulnerabilities. This might be caused due to required Amazon Inspector associations being deleted\n or failing to run on your resource. Please verify the status of\n InspectorInventoryCollection-do-not-delete association in the SSM console\n for the resource. Additionally, you can verify the instance's inventory in the SSM Fleet\n Manager console.
\n \n NO_RESOURCES_FOUND - Reserved for future use.
\n \n NO_SCAN_CONFIGURATION_ASSOCIATED - The code repository resource doesn't\n have an associated scan configuration.
\n \n PENDING_DISABLE - This resource is pending cleanup during disablement. The\n customer will not be billed while a resource is in the pending disable status.
\n \n PENDING_INITIAL_SCAN - This resource has been identified for scanning,\n results will be available soon.
\n \n RESOURCE_TERMINATED - This resource has been terminated. The findings and\n coverage associated with this resource are in the process of being cleaned up.
\n \n SCAN_ELIGIBILITY_EXPIRED - The configured scan duration has lapsed for this\n image.
\n \n SCAN_FREQUENCY_MANUAL - This image will not be covered by Amazon Inspector due to the\n repository scan frequency configuration.
\n \n SCAN_FREQUENCY_SCAN_ON_PUSH - This image will be scanned one time and will\n not new findings because of the scan frequency configuration.
\n \n SCAN_IN_PROGRESS - The resource is currently being scanned.
\n \n STALE_INVENTORY - Amazon Inspector wasn't able to collect an updated software\n application inventory in the last 7 days. Please confirm the required Amazon Inspector associations\n still exist and you can still see an updated inventory in the SSM console.
\n \n SUCCESSFUL - The scan was successful.
\n \n UNMANAGED_EC2_INSTANCE - The EC2 instance is not managed by SSM, please use\n the following SSM automation to remediate the issue: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html.\n Once the instance becomes managed by SSM, Inspector will automatically begin scanning this\n instance.
\n \n UNSUPPORTED_CONFIG_FILE - Reserved for future use.
\n \n UNSUPPORTED_LANGUAGE - The scan was unsuccessful because the repository\n contains files in an unsupported programming language.
\n \n UNSUPPORTED_MEDIA_TYPE - The ECR image has an unsupported media\n type.
\n \n UNSUPPORTED_OS - Amazon Inspector does not support this OS, architecture, or image\n manifest type at this time. To see a complete list of supported operating systems see:\n https://docs.aws.amazon.com/inspector/latest/user/supported.html.
\n \n UNSUPPORTED_RUNTIME - The function was not scanned because it has an\n unsupported runtime. To see a complete list of supported runtimes see: https://docs.aws.amazon.com/inspector/latest/user/supported.html.
",
"smithy.api#required": {}
}
}
@@ -13281,8 +15538,28 @@
"name": "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED"
},
{
- "value": "PENDING_REVIVAL_SCAN",
- "name": "PENDING_REVIVAL_SCAN"
+ "value": "PENDING_REVIVAL_SCAN",
+ "name": "PENDING_REVIVAL_SCAN"
+ },
+ {
+ "value": "INTEGRATION_CONNECTION_LOST",
+ "name": "INTEGRATION_CONNECTION_LOST"
+ },
+ {
+ "value": "ACCESS_DENIED_TO_ENCRYPTION_KEY",
+ "name": "ACCESS_DENIED_TO_ENCRYPTION_KEY"
+ },
+ {
+ "value": "UNSUPPORTED_LANGUAGE",
+ "name": "UNSUPPORTED_LANGUAGE"
+ },
+ {
+ "value": "NO_SCAN_CONFIGURATION_ASSOCIATED",
+ "name": "NO_SCAN_CONFIGURATION_ASSOCIATED"
+ },
+ {
+ "value": "SCAN_IN_PROGRESS",
+ "name": "SCAN_IN_PROGRESS"
}
]
}
@@ -13338,6 +15615,20 @@
"smithy.api#documentation": "A schedule.
"
}
},
+ "com.amazonaws.inspector2#ScopeSettings": {
+ "type": "structure",
+ "members": {
+ "projectSelectionScope": {
+ "target": "com.amazonaws.inspector2#ProjectSelectionScope",
+ "traits": {
+ "smithy.api#documentation": "The scope of projects to be selected for scanning within the integrated repositories.\n Setting the value to ALL applies the scope settings to all existing and future\n projects imported into Amazon Inspector.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Defines the scope of repositories to be included in code security scans.
"
+ }
+ },
"com.amazonaws.inspector2#SearchVulnerabilities": {
"type": "operation",
"input": {
@@ -13386,7 +15677,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Details on the criteria used to define the filter for a vulnerability search.\n
"
+ "smithy.api#documentation": "Details on the criteria used to define the filter for a vulnerability search.
"
}
},
"com.amazonaws.inspector2#SearchVulnerabilitiesRequest": {
@@ -13423,7 +15714,7 @@
"nextToken": {
"target": "com.amazonaws.inspector2#NextToken",
"traits": {
- "smithy.api#documentation": "The pagination parameter to be used on the next list operation to retrieve more items.
"
+ "smithy.api#documentation": "The pagination parameter to be used on the next list operation to retrieve more\n items.
"
}
}
},
@@ -13474,7 +15765,7 @@
}
],
"traits": {
- "smithy.api#documentation": "\n Sends a CIS session health. \n This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. \n The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.\n
",
+ "smithy.api#documentation": " Sends a CIS session health. This API is used by the Amazon Inspector SSM plugin to\n communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls\n this API to start a CIS scan session for the scan ID supplied by the service.
",
"smithy.api#examples": [
{
"title": "Sample SendCisSessionHealth Call",
@@ -13548,7 +15839,7 @@
}
],
"traits": {
- "smithy.api#documentation": "\n Sends a CIS session telemetry. \n This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. \n The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.\n
",
+ "smithy.api#documentation": " Sends a CIS session telemetry. This API is used by the Amazon Inspector SSM plugin to\n communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls\n this API to start a CIS scan session for the scan ID supplied by the service.
",
"smithy.api#examples": [
{
"title": "Sample SendCisSessionTelemetry Call",
@@ -13868,7 +16159,7 @@
}
],
"traits": {
- "smithy.api#documentation": "\n Starts a CIS session. \n This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. \n The Amazon Inspector SSM plugin calls this API to start a CIS scan session for the scan ID supplied by the service.\n
",
+ "smithy.api#documentation": " Starts a CIS session. This API is used by the Amazon Inspector SSM plugin to\n communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls\n this API to start a CIS scan session for the scan ID supplied by the service.
",
"smithy.api#examples": [
{
"title": "Sample SendCisSessionHealth Call",
@@ -13933,6 +16224,85 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.inspector2#StartCodeSecurityScan": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#StartCodeSecurityScanRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#StartCodeSecurityScanResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Initiates a code security scan on a specified repository.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/scan/start"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#StartCodeSecurityScanRequest": {
+ "type": "structure",
+ "members": {
+ "clientToken": {
+ "target": "com.amazonaws.inspector2#CodeSecurityClientToken",
+ "traits": {
+ "smithy.api#documentation": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the\n request.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ },
+ "resource": {
+ "target": "com.amazonaws.inspector2#CodeSecurityResource",
+ "traits": {
+ "smithy.api#documentation": "The resource identifier for the code repository to scan.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#StartCodeSecurityScanResponse": {
+ "type": "structure",
+ "members": {
+ "scanId": {
+ "target": "com.amazonaws.inspector2#CodeSecurityUuid",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the initiated scan.
"
+ }
+ },
+ "status": {
+ "target": "com.amazonaws.inspector2#CodeScanStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the initiated scan.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.inspector2#State": {
"type": "structure",
"members": {
@@ -14039,7 +16409,7 @@
"componentArn": {
"target": "com.amazonaws.inspector2#ComponentArn",
"traits": {
- "smithy.api#documentation": "The component ARN. The ARN can be null and is not displayed in the Amazon Web Services console.
"
+ "smithy.api#documentation": "The component ARN. The ARN can be null and is not displayed in the Amazon Web Services\n console.
"
}
}
},
@@ -14149,7 +16519,7 @@
}
],
"traits": {
- "smithy.api#documentation": "\n Stops a CIS session. \n This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. \n The Amazon Inspector SSM plugin calls this API to stop a CIS scan session for the scan ID supplied by the service.\n
",
+ "smithy.api#documentation": " Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to\n communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls\n this API to stop a CIS scan session for the scan ID supplied by the service.
",
"smithy.api#examples": [
{
"title": "Sample StopCisSession Call",
@@ -14385,6 +16755,29 @@
}
}
},
+ "com.amazonaws.inspector2#SuccessfulAssociationResult": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration that was successfully\n associated or disassociated.
"
+ }
+ },
+ "resource": {
+ "target": "com.amazonaws.inspector2#CodeSecurityResource"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Details about a successful association or disassociation between a code repository and a\n scan configuration.
"
+ }
+ },
+ "com.amazonaws.inspector2#SuccessfulAssociationResultList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.inspector2#SuccessfulAssociationResult"
+ }
+ },
"com.amazonaws.inspector2#SuggestedFix": {
"type": "structure",
"members": {
@@ -14806,7 +17199,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A response that contains details on the results of a finding aggregation by title.
"
+ "smithy.api#documentation": "A response that contains details on the results of a finding aggregation by\n title.
"
}
},
"com.amazonaws.inspector2#TitleFilterList": {
@@ -15019,7 +17412,7 @@
"securityLevel": {
"target": "com.amazonaws.inspector2#CisSecurityLevel",
"traits": {
- "smithy.api#documentation": "\n The security level for the CIS scan configuration. \n Security level refers to the Benchmark levels that CIS assigns to a profile.\n
"
+ "smithy.api#documentation": " The security level for the CIS scan configuration. Security level refers to the\n Benchmark levels that CIS assigns to a profile.
"
}
},
"schedule": {
@@ -15074,6 +17467,160 @@
"smithy.api#documentation": "Updates CIS targets.
"
}
},
+ "com.amazonaws.inspector2#UpdateCodeSecurityIntegration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#UpdateCodeSecurityIntegrationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#UpdateCodeSecurityIntegrationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Updates an existing code security integration.
\n After calling the CreateCodeSecurityIntegration operation, you complete\n authentication and authorization with your provider. Next you call the\n UpdateCodeSecurityIntegration operation to provide the details\n to complete the integration setup
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/integration/update"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#UpdateCodeSecurityIntegrationRequest": {
+ "type": "structure",
+ "members": {
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the code security integration to update.
",
+ "smithy.api#required": {}
+ }
+ },
+ "details": {
+ "target": "com.amazonaws.inspector2#UpdateIntegrationDetails",
+ "traits": {
+ "smithy.api#documentation": "The updated integration details specific to the repository provider type.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#UpdateCodeSecurityIntegrationResponse": {
+ "type": "structure",
+ "members": {
+ "integrationArn": {
+ "target": "com.amazonaws.inspector2#CodeSecurityIntegrationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the updated code security integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "status": {
+ "target": "com.amazonaws.inspector2#IntegrationStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the updated code security integration.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.inspector2#UpdateCodeSecurityScanConfiguration": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.inspector2#UpdateCodeSecurityScanConfigurationRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.inspector2#UpdateCodeSecurityScanConfigurationResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.inspector2#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.inspector2#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Updates an existing code security scan configuration.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/codesecurity/scan-configuration/update"
+ }
+ }
+ },
+ "com.amazonaws.inspector2#UpdateCodeSecurityScanConfigurationRequest": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the scan configuration to update.
",
+ "smithy.api#required": {}
+ }
+ },
+ "configuration": {
+ "target": "com.amazonaws.inspector2#CodeSecurityScanConfiguration",
+ "traits": {
+ "smithy.api#documentation": "The updated configuration settings for the code security scan.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.inspector2#UpdateCodeSecurityScanConfigurationResponse": {
+ "type": "structure",
+ "members": {
+ "scanConfigurationArn": {
+ "target": "com.amazonaws.inspector2#ScanConfigurationArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the updated scan configuration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.inspector2#UpdateConfiguration": {
"type": "operation",
"input": {
@@ -15097,7 +17644,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector delegated administrator this updates the setting for all accounts you manage. Member accounts in an organization cannot update this setting.
",
+ "smithy.api#documentation": "Updates setting configurations for your Amazon Inspector account. When you use this API as an Amazon Inspector\n delegated administrator this updates the setting for all accounts you manage. Member\n accounts in an organization cannot update this setting.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -15149,7 +17696,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.
",
+ "smithy.api#documentation": "Activates, deactivates Amazon Inspector deep inspection, or updates custom paths for your account.\n
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -15163,7 +17710,7 @@
"activateDeepInspection": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Specify TRUE to activate Amazon Inspector deep inspection in your account, or FALSE to deactivate. Member accounts in an organization cannot deactivate deep inspection, instead the delegated administrator for the organization can deactivate a member account using BatchUpdateMemberEc2DeepInspectionStatus.
"
+ "smithy.api#documentation": "Specify TRUE to activate Amazon Inspector deep inspection in your account, or\n FALSE to deactivate. Member accounts in an organization cannot deactivate\n deep inspection, instead the delegated administrator for the organization can deactivate a\n member account using BatchUpdateMemberEc2DeepInspectionStatus.
"
}
},
"packagePaths": {
@@ -15201,7 +17748,7 @@
"errorMessage": {
"target": "com.amazonaws.inspector2#NonEmptyString",
"traits": {
- "smithy.api#documentation": "An error message explaining why new Amazon Inspector deep inspection custom paths could not be added.
"
+ "smithy.api#documentation": "An error message explaining why new Amazon Inspector deep inspection custom paths could not be\n added.
"
}
}
},
@@ -15235,7 +17782,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates an encryption key. A ResourceNotFoundException means that an Amazon Web Services owned key is being used for encryption.
",
+ "smithy.api#documentation": "Updates an encryption key. A ResourceNotFoundException means that an\n Amazon Web Services owned key is being used for encryption.
",
"smithy.api#http": {
"code": 200,
"method": "PUT",
@@ -15368,6 +17915,63 @@
}
}
},
+ "com.amazonaws.inspector2#UpdateGitHubIntegrationDetail": {
+ "type": "structure",
+ "members": {
+ "code": {
+ "target": "com.amazonaws.inspector2#GitHubAuthCode",
+ "traits": {
+ "smithy.api#documentation": "The authorization code received from GitHub to update the integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "installationId": {
+ "target": "com.amazonaws.inspector2#GitHubInstallationId",
+ "traits": {
+ "smithy.api#documentation": "The installation ID of the GitHub App associated with the integration.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details required to update an integration with GitHub.
"
+ }
+ },
+ "com.amazonaws.inspector2#UpdateGitLabSelfManagedIntegrationDetail": {
+ "type": "structure",
+ "members": {
+ "authCode": {
+ "target": "com.amazonaws.inspector2#GitLabAuthCode",
+ "traits": {
+ "smithy.api#documentation": "The authorization code received from the self-managed GitLab instance to update the\n integration.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details required to update an integration with a self-managed GitLab\n instance.
"
+ }
+ },
+ "com.amazonaws.inspector2#UpdateIntegrationDetails": {
+ "type": "union",
+ "members": {
+ "gitlabSelfManaged": {
+ "target": "com.amazonaws.inspector2#UpdateGitLabSelfManagedIntegrationDetail",
+ "traits": {
+ "smithy.api#documentation": "Details specific to updating an integration with a self-managed GitLab instance.
"
+ }
+ },
+ "github": {
+ "target": "com.amazonaws.inspector2#UpdateGitHubIntegrationDetail",
+ "traits": {
+ "smithy.api#documentation": "Details specific to updating an integration with GitHub.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details required to update a code security integration with a specific\n repository provider.
"
+ }
+ },
"com.amazonaws.inspector2#UpdateOrgEc2DeepInspectionConfiguration": {
"type": "operation",
"input": {
@@ -15391,7 +17995,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an Amazon Inspector delegated administrator to use this API.
",
+ "smithy.api#documentation": "Updates the Amazon Inspector deep inspection custom paths for your organization. You must be an\n Amazon Inspector delegated administrator to use this API.
",
"smithy.api#http": {
"code": 200,
"method": "POST",
@@ -15458,7 +18062,7 @@
"autoEnable": {
"target": "com.amazonaws.inspector2#AutoEnable",
"traits": {
- "smithy.api#documentation": "Defines which scan types are enabled automatically for new members of your Amazon Inspector organization.
",
+ "smithy.api#documentation": "Defines which scan types are enabled automatically for new members of your Amazon Inspector\n organization.
",
"smithy.api#required": {}
}
}
@@ -15470,7 +18074,7 @@
"autoEnable": {
"target": "com.amazonaws.inspector2#AutoEnable",
"traits": {
- "smithy.api#documentation": "The updated status of scan types automatically enabled for new members of your Amazon Inspector organization.
",
+ "smithy.api#documentation": "The updated status of scan types automatically enabled for new members of your Amazon Inspector\n organization.
",
"smithy.api#required": {}
}
}
@@ -15583,6 +18187,18 @@
{
"name": "LAMBDA_FUNCTION_CODE_HOURS",
"value": "LAMBDA_FUNCTION_CODE_HOURS"
+ },
+ {
+ "name": "CODE_REPOSITORY_SAST",
+ "value": "CODE_REPOSITORY_SAST"
+ },
+ {
+ "name": "CODE_REPOSITORY_IAC",
+ "value": "CODE_REPOSITORY_IAC"
+ },
+ {
+ "name": "CODE_REPOSITORY_SCA",
+ "value": "CODE_REPOSITORY_SCA"
}
]
}
@@ -15756,13 +18372,13 @@
"cisaData": {
"target": "com.amazonaws.inspector2#CisaData",
"traits": {
- "smithy.api#documentation": "An object that contains the Cybersecurity and Infrastructure Security Agency (CISA) details for the vulnerability.
"
+ "smithy.api#documentation": "An object that contains the Cybersecurity and Infrastructure Security Agency (CISA)\n details for the vulnerability.
"
}
},
"source": {
"target": "com.amazonaws.inspector2#VulnerabilitySource",
"traits": {
- "smithy.api#documentation": "The source of the vulnerability information. Possible results are RHEL, AMAZON_CVE, DEBIAN or NVD.
"
+ "smithy.api#documentation": "The source of the vulnerability information. Possible results are RHEL,\n AMAZON_CVE, DEBIAN or NVD.
"
}
},
"description": {
@@ -15774,7 +18390,7 @@
"atigData": {
"target": "com.amazonaws.inspector2#AtigData",
"traits": {
- "smithy.api#documentation": "An object that contains information about the Amazon Web Services Threat Intel Group (ATIG) details for the vulnerability.
"
+ "smithy.api#documentation": "An object that contains information about the Amazon Web Services Threat Intel Group\n (ATIG) details for the vulnerability.
"
}
},
"vendorSeverity": {
@@ -15786,7 +18402,7 @@
"cvss3": {
"target": "com.amazonaws.inspector2#Cvss3",
"traits": {
- "smithy.api#documentation": "An object that contains the Common Vulnerability Scoring System (CVSS) Version 3 details for the vulnerability.
"
+ "smithy.api#documentation": "An object that contains the Common Vulnerability Scoring System (CVSS) Version 3 details\n for the vulnerability.
"
}
},
"relatedVulnerabilities": {
@@ -15798,7 +18414,7 @@
"cvss2": {
"target": "com.amazonaws.inspector2#Cvss2",
"traits": {
- "smithy.api#documentation": "An object that contains the Common Vulnerability Scoring System (CVSS) Version 2 details for the vulnerability.
"
+ "smithy.api#documentation": "An object that contains the Common Vulnerability Scoring System (CVSS) Version 2 details\n for the vulnerability.
"
}
},
"vendorCreatedAt": {
@@ -15840,7 +18456,7 @@
"epss": {
"target": "com.amazonaws.inspector2#Epss",
"traits": {
- "smithy.api#documentation": "An object that contains the Exploit Prediction Scoring System (EPSS) score for a vulnerability.
"
+ "smithy.api#documentation": "An object that contains the Exploit Prediction Scoring System (EPSS) score for a\n vulnerability.
"
}
}
},
@@ -15974,7 +18590,7 @@
"sourceLambdaLayerArn": {
"target": "com.amazonaws.inspector2#LambdaLayerArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Number (ARN) of the Amazon Web Services Lambda function affected by a finding.
"
+ "smithy.api#documentation": "The Amazon Resource Number (ARN) of the Amazon Web Services Lambda function affected by a\n finding.
"
}
}
},
diff --git a/codegen/sdk-codegen/aws-models/iotfleetwise.json b/codegen/sdk-codegen/aws-models/iotfleetwise.json
index c74bd69197e..76ecaf71201 100644
--- a/codegen/sdk-codegen/aws-models/iotfleetwise.json
+++ b/codegen/sdk-codegen/aws-models/iotfleetwise.json
@@ -9335,7 +9335,7 @@
"status": {
"target": "com.amazonaws.iotfleetwise#CampaignStatus",
"traits": {
- "smithy.api#documentation": "The state of a campaign. The status can be one of:
\n \n - \n
\n CREATING - Amazon Web Services IoT FleetWise is processing your request to create the\n campaign.
\n \n - \n
\n WAITING_FOR_APPROVAL - After a campaign is created, it enters the\n WAITING_FOR_APPROVAL state. To allow Amazon Web Services IoT FleetWise to deploy the\n campaign to the target vehicle or fleet, use the API operation to approve the campaign.\n
\n \n - \n
\n RUNNING - The campaign is active.
\n \n - \n
\n SUSPENDED - The campaign is suspended. To resume the campaign, use\n the API operation.
\n \n
"
+ "smithy.api#documentation": "The state of a campaign. The status can be one of:
\n \n - \n
\n CREATING - Amazon Web Services IoT FleetWise is processing your request to create the\n campaign.
\n \n - \n
\n WAITING_FOR_APPROVAL - After you create a campaign, it enters this state. Use the API operation to approve the campaign for deployment to the target vehicle or fleet.\n
\n \n - \n
\n RUNNING - The campaign is active.
\n \n - \n
\n SUSPENDED - The campaign is suspended. To resume the campaign, use\n the API operation.
\n \n
"
}
}
}
@@ -10318,6 +10318,12 @@
"traits": {
"smithy.api#enumValue": "DELETING"
}
+ },
+ "READY_FOR_CHECKIN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "READY_FOR_CHECKIN"
+ }
}
}
},
@@ -10339,7 +10345,7 @@
"status": {
"target": "com.amazonaws.iotfleetwise#VehicleState",
"traits": {
- "smithy.api#documentation": "The status of a campaign, which can be one of the following:
\n \n - \n
\n CREATED - The campaign has been created successfully but has not been\n approved.
\n \n - \n
\n READY - The campaign has been approved but has not been deployed to\n the vehicle.
\n \n - \n
\n HEALTHY - The campaign has been deployed to the vehicle.
\n \n - \n
\n SUSPENDED - The campaign has been suspended and data collection is \n paused.
\n \n - \n
\n DELETING - The campaign is being removed from the vehicle.
\n \n
"
+ "smithy.api#documentation": "The status of a campaign, which can be one of the following:
\n \n - \n
\n CREATED - The campaign exists but is not yet approved.
\n \n - \n
\n READY - The campaign is approved but has not been deployed to the vehicle. Data has not arrived at the vehicle yet.
\n \n - \n
\n HEALTHY - The campaign is deployed to the vehicle.
\n \n - \n
\n SUSPENDED - The campaign is suspended and data collection is paused.
\n \n - \n
\n DELETING - The campaign is being removed from the vehicle.
\n \n - \n
\n READY_FOR_CHECKIN - The campaign is approved and waiting for vehicle check-in before deployment.
\n \n
"
}
}
},
diff --git a/codegen/sdk-codegen/aws-models/kms.json b/codegen/sdk-codegen/aws-models/kms.json
index ac2fa16cb63..78027891102 100644
--- a/codegen/sdk-codegen/aws-models/kms.json
+++ b/codegen/sdk-codegen/aws-models/kms.json
@@ -1006,7 +1006,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a unique customer managed KMS key in your Amazon Web Services account and Region.\n You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services\n services let you use KMS keys that you create and manage to protect your service\n resources.
\n A KMS key is a logical representation of a cryptographic key. In addition to the key\n material used in cryptographic operations, a KMS key includes metadata, such as the key ID,\n key policy, creation date, description, and key state.
\n Use the parameters of CreateKey to specify the type of KMS key, the source of\n its key material, its key policy, description, tags, and other properties.
\n \n KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
\n \n To create different types of KMS keys, use the following guidance:
\n \n - Symmetric encryption KMS key
\n - \n
By default, CreateKey creates a symmetric encryption KMS key with key\n material that KMS generates. This is the basic and most widely used type of KMS key, and\n provides the best performance.
\n To create a symmetric encryption KMS key, you don't need to specify any parameters.\n The default value for KeySpec, SYMMETRIC_DEFAULT, the default\n value for KeyUsage, ENCRYPT_DECRYPT, and the default value for\n Origin, AWS_KMS, create a symmetric encryption KMS key with\n KMS key material.
\n If you need a key for basic encryption and decryption or you are creating a KMS key\n to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key.\n The key material in a symmetric encryption key never leaves KMS unencrypted. You can\n use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but\n they are typically used to generate data keys and data keys pairs. For details, see\n GenerateDataKey and GenerateDataKeyPair.
\n
\n \n - Asymmetric KMS keys
\n - \n
To create an asymmetric KMS key, use the KeySpec parameter to specify\n the type of key material in the KMS key. Then, use the KeyUsage parameter\n to determine whether the KMS key will be used to encrypt and decrypt or sign and verify.\n You can't change these properties after the KMS key is created.
\n Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an\n SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves\n KMS unencrypted. However, you can use the GetPublicKey operation to\n download the public key so it can be used outside of KMS. Each KMS key can have only\n one key usage. KMS keys with RSA key pairs can be used to encrypt and decrypt data or\n sign and verify messages (but not both). KMS keys with NIST-recommended ECC key pairs\n can be used to sign and verify messages or derive shared secrets (but not both). KMS\n keys with ECC_SECG_P256K1 can be used only to sign and verify messages. KMS\n keys with SM2 key pairs (China Regions only) can be used to either encrypt and decrypt\n data, sign and verify messages, or derive shared secrets (you must choose one key usage\n type). For information about asymmetric KMS keys, see Asymmetric KMS keys in the\n Key Management Service Developer Guide.
\n
\n \n - HMAC KMS key
\n - \n
To create an HMAC KMS key, set the KeySpec parameter to a key spec\n value for HMAC KMS keys. Then set the KeyUsage parameter to\n GENERATE_VERIFY_MAC. You must set the key usage even though\n GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys.\n You can't change these properties after the KMS key is created.
\n HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use\n HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.
\n
\n \n - Multi-Region primary keys
\n - Imported key material
\n - \n
To create a multi-Region primary key in the local Amazon Web Services Region,\n use the MultiRegion parameter with a value of True. To create\n a multi-Region replica key, that is, a KMS key with the same key ID\n and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its\n primary key to a replica key, use the UpdatePrimaryRegion\n operation.
\n You can create multi-Region KMS keys for all supported KMS key types: symmetric\n encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric\n signing KMS keys. You can also create multi-Region keys with imported key material.\n However, you can't create multi-Region keys in a custom key store.
\n This operation supports multi-Region keys, an KMS feature that lets you create multiple\n interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key\n material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt\n it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
\n
\n \n - \n
To import your own key material into a KMS key, begin by creating a KMS key with no\n key material. To do this, use the Origin parameter of\n CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use\n the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For\n step-by-step instructions, see Importing Key Material in the \n Key Management Service Developer Guide\n .
\n You can import key material into KMS keys of all supported KMS key types: symmetric\n encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric\n signing KMS keys. You can also create multi-Region keys with imported key material.\n However, you can't import key material into a KMS key in a custom key store.
\n To create a multi-Region primary key with imported key material, use the\n Origin parameter of CreateKey with a value of\n EXTERNAL and the MultiRegion parameter with a value of\n True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material step\n 1. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
\n
\n \n - Custom key store
\n - \n
A custom key store lets you protect your Amazon Web Services resources using keys in a backing key\n store that you own and manage. When you request a cryptographic operation with a KMS key\n in a custom key store, the operation is performed in the backing key store using its\n cryptographic keys.
\n KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an\n external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store,\n KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS\n key. When you create a KMS key in an external key store, you specify an existing\n encryption key in the external key manager.
\n \n Some external key managers provide a simpler method for creating a KMS key in an\n external key store. For details, see your external key manager documentation.
\n \n Before you create a KMS key in a custom key store, the ConnectionState\n of the key store must be CONNECTED. To connect the custom key store, use\n the ConnectCustomKeyStore operation. To find the\n ConnectionState, use the DescribeCustomKeyStores\n operation.
\n To create a KMS key in a custom key store, use the CustomKeyStoreId.\n Use the default KeySpec value, SYMMETRIC_DEFAULT, and the\n default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric\n encryption key. No other key type is supported in a custom key store.
\n To create a KMS key in an CloudHSM key store, use the\n Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM\n cluster that is associated with the custom key store must have at least two active HSMs\n in different Availability Zones in the Amazon Web Services Region.
\n To create a KMS key in an external key store, use the\n Origin parameter with a value of EXTERNAL_KEY_STORE and an\n XksKeyId parameter that identifies an existing external key.
\n \n Some external key managers provide a simpler method for creating a KMS key in an\n external key store. For details, see your external key manager documentation.
\n \n \n
\n \n Cross-account use: No. You cannot use this operation to\n create a KMS key in a different Amazon Web Services account.
\n \n Required permissions: kms:CreateKey (IAM policy). To use the\n Tags parameter, kms:TagResource (IAM policy). For examples and information about related\n permissions, see Allow a user\n to create KMS keys in the Key Management Service Developer Guide.
\n \n Related operations:\n
\n \n \n Eventual consistency: The KMS API follows an eventual consistency model. \n For more information, see KMS eventual consistency.
"
+ "smithy.api#documentation": "Creates a unique customer managed KMS key in your Amazon Web Services account and Region.\n You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services\n services let you use KMS keys that you create and manage to protect your service\n resources.
\n A KMS key is a logical representation of a cryptographic key. In addition to the key\n material used in cryptographic operations, a KMS key includes metadata, such as the key ID,\n key policy, creation date, description, and key state.
\n Use the parameters of CreateKey to specify the type of KMS key, the source of\n its key material, its key policy, description, tags, and other properties.
\n \n KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.
\n \n To create different types of KMS keys, use the following guidance:
\n \n - Symmetric encryption KMS key
\n - \n
By default, CreateKey creates a symmetric encryption KMS key with key\n material that KMS generates. This is the basic and most widely used type of KMS key, and\n provides the best performance.
\n To create a symmetric encryption KMS key, you don't need to specify any parameters.\n The default value for KeySpec, SYMMETRIC_DEFAULT, the default\n value for KeyUsage, ENCRYPT_DECRYPT, and the default value for\n Origin, AWS_KMS, create a symmetric encryption KMS key with\n KMS key material.
\n If you need a key for basic encryption and decryption or you are creating a KMS key\n to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key.\n The key material in a symmetric encryption key never leaves KMS unencrypted. You can\n use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but\n they are typically used to generate data keys and data keys pairs. For details, see\n GenerateDataKey and GenerateDataKeyPair.
\n
\n \n - Asymmetric KMS keys
\n - \n
To create an asymmetric KMS key, use the KeySpec parameter to specify\n the type of key material in the KMS key. Then, use the KeyUsage parameter\n to determine whether the KMS key will be used to encrypt and decrypt or sign and verify.\n You can't change these properties after the KMS key is created.
\n Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, ML-DSA\n key pair or an SM2 key pair (China Regions only). The private key in an asymmetric KMS\n key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used\n outside of KMS. Each KMS key can have only one key usage. KMS keys with RSA key pairs\n can be used to encrypt and decrypt data or sign and verify messages (but not both). KMS\n keys with NIST-recommended ECC key pairs can be used to sign and verify messages or\n derive shared secrets (but not both). KMS keys with ECC_SECG_P256K1 can be\n used only to sign and verify messages. KMS keys with ML-DSA key pairs can be used to\n sign and verify messages. KMS keys with SM2 key pairs (China Regions only) can be used\n to either encrypt and decrypt data, sign and verify messages, or derive shared secrets\n (you must choose one key usage type). For information about asymmetric KMS keys, see\n Asymmetric\n KMS keys in the Key Management Service Developer Guide.
\n
\n \n - HMAC KMS key
\n - \n
To create an HMAC KMS key, set the KeySpec parameter to a key spec\n value for HMAC KMS keys. Then set the KeyUsage parameter to\n GENERATE_VERIFY_MAC. You must set the key usage even though\n GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys.\n You can't change these properties after the KMS key is created.
\n HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use\n HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.
\n
\n \n - Multi-Region primary keys
\n - Imported key material
\n - \n
To create a multi-Region primary key in the local Amazon Web Services Region,\n use the MultiRegion parameter with a value of True. To create\n a multi-Region replica key, that is, a KMS key with the same key ID\n and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its\n primary key to a replica key, use the UpdatePrimaryRegion\n operation.
\n You can create multi-Region KMS keys for all supported KMS key types: symmetric\n encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric\n signing KMS keys. You can also create multi-Region keys with imported key material.\n However, you can't create multi-Region keys in a custom key store.
\n This operation supports multi-Region keys, an KMS feature that lets you create multiple\n interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key\n material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt\n it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
\n
\n \n - \n
To import your own key material into a KMS key, begin by creating a KMS key with no\n key material. To do this, use the Origin parameter of\n CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use\n the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For\n step-by-step instructions, see Importing Key Material in the \n Key Management Service Developer Guide\n .
\n You can import key material into KMS keys of all supported KMS key types: symmetric\n encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric\n signing KMS keys. You can also create multi-Region keys with imported key material.\n However, you can't import key material into a KMS key in a custom key store.
\n To create a multi-Region primary key with imported key material, use the\n Origin parameter of CreateKey with a value of\n EXTERNAL and the MultiRegion parameter with a value of\n True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material step\n 1. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
\n
\n \n - Custom key store
\n - \n
A custom key store lets you protect your Amazon Web Services resources using keys in a backing key\n store that you own and manage. When you request a cryptographic operation with a KMS key\n in a custom key store, the operation is performed in the backing key store using its\n cryptographic keys.
\n KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an\n external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store,\n KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS\n key. When you create a KMS key in an external key store, you specify an existing\n encryption key in the external key manager.
\n \n Some external key managers provide a simpler method for creating a KMS key in an\n external key store. For details, see your external key manager documentation.
\n \n Before you create a KMS key in a custom key store, the ConnectionState\n of the key store must be CONNECTED. To connect the custom key store, use\n the ConnectCustomKeyStore operation. To find the\n ConnectionState, use the DescribeCustomKeyStores\n operation.
\n To create a KMS key in a custom key store, use the CustomKeyStoreId.\n Use the default KeySpec value, SYMMETRIC_DEFAULT, and the\n default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric\n encryption key. No other key type is supported in a custom key store.
\n To create a KMS key in an CloudHSM key store, use the\n Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM\n cluster that is associated with the custom key store must have at least two active HSMs\n in different Availability Zones in the Amazon Web Services Region.
\n To create a KMS key in an external key store, use the\n Origin parameter with a value of EXTERNAL_KEY_STORE and an\n XksKeyId parameter that identifies an existing external key.
\n \n Some external key managers provide a simpler method for creating a KMS key in an\n external key store. For details, see your external key manager documentation.
\n \n \n
\n \n Cross-account use: No. You cannot use this operation to\n create a KMS key in a different Amazon Web Services account.
\n \n Required permissions: kms:CreateKey (IAM policy). To use the\n Tags parameter, kms:TagResource (IAM policy). For examples and information about related\n permissions, see Allow a user\n to create KMS keys in the Key Management Service Developer Guide.
\n \n Related operations:\n
\n \n \n Eventual consistency: The KMS API follows an eventual consistency model. \n For more information, see KMS eventual consistency.
"
}
},
"com.amazonaws.kms#CreateKeyRequest": {
@@ -1015,7 +1015,7 @@
"Policy": {
"target": "com.amazonaws.kms#PolicyType",
"traits": {
- "smithy.api#documentation": "The key policy to attach to the KMS key.
\n If you provide a key policy, it must meet the following criteria:
\n \n - \n
The key policy must allow the calling principal to make a\n subsequent PutKeyPolicy request on the KMS key. This reduces the risk that\n the KMS key becomes unmanageable. For more information, see Default key policy in the Key Management Service Developer Guide. (To omit\n this condition, set BypassPolicyLockoutSafetyCheck to true.)
\n \n - \n
Each statement in the key policy must contain one or more principals. The principals\n in the key policy must exist and be visible to KMS. When you create a new Amazon Web Services\n principal, you might need to enforce a delay before including the new principal in a key\n policy because the new principal might not be immediately visible to KMS. For more\n information, see Changes that I make are not always immediately visible in the Amazon Web Services\n Identity and Access Management User Guide.
\n \n
\n \n If either of the required Resource or Action \n elements are missing from a key policy statement, the policy statement has \n no effect. When a key policy statement is missing one of these elements,\n the KMS console correctly reports an error, but the \n CreateKey and PutKeyPolicy API requests succeed, even though the policy \n statement is ineffective.
\n For more information on required key policy elements, see Elements in a key policy in the Key Management Service Developer Guide.
\n \n If you do not provide a key policy, KMS attaches a default key policy to the KMS key.\n For more information, see Default key policy in the\n Key Management Service Developer Guide.
\n \n If the key policy exceeds the length constraint, KMS returns a\n LimitExceededException.
\n \n For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the \n Identity and Access Management User Guide\n .
"
+ "smithy.api#documentation": "The key policy to attach to the KMS key.
\n If you provide a key policy, it must meet the following criteria:
\n \n - \n
The key policy must allow the calling principal to make a\n subsequent PutKeyPolicy request on the KMS key. This reduces the risk that\n the KMS key becomes unmanageable. For more information, see Default key policy in the Key Management Service Developer Guide. (To omit\n this condition, set BypassPolicyLockoutSafetyCheck to true.)
\n \n - \n
Each statement in the key policy must contain one or more principals. The principals\n in the key policy must exist and be visible to KMS. When you create a new Amazon Web Services\n principal, you might need to enforce a delay before including the new principal in a key\n policy because the new principal might not be immediately visible to KMS. For more\n information, see Changes that I make are not always immediately visible in the Amazon Web Services\n Identity and Access Management User Guide.
\n \n
\n \n If either of the required Resource or Action elements are\n missing from a key policy statement, the policy statement has no effect. When a key policy\n statement is missing one of these elements, the KMS console correctly reports an error,\n but the CreateKey and PutKeyPolicy API requests succeed, even\n though the policy statement is ineffective.
\n For more information on required key policy elements, see Elements in a key\n policy in the Key Management Service Developer Guide.
\n \n If you do not provide a key policy, KMS attaches a default key policy to the KMS key.\n For more information, see Default key policy in the\n Key Management Service Developer Guide.
\n \n If the key policy exceeds the length constraint, KMS returns a\n LimitExceededException.
\n \n For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the \n Identity and Access Management User Guide\n .
"
}
},
"Description": {
@@ -1027,7 +1027,7 @@
"KeyUsage": {
"target": "com.amazonaws.kms#KeyUsageType",
"traits": {
- "smithy.api#documentation": "Determines the cryptographic operations for which you can use the KMS key. The default value is\n ENCRYPT_DECRYPT. This parameter is optional when you are creating a symmetric\n encryption KMS key; otherwise, it is required. You can't change the KeyUsage\n value after the KMS key is created.
\n Select only one valid value.
\n \n - \n
For symmetric encryption KMS keys, omit the parameter or specify\n ENCRYPT_DECRYPT.
\n \n - \n
For HMAC KMS keys (symmetric), specify GENERATE_VERIFY_MAC.
\n \n - \n
For asymmetric KMS keys with RSA key pairs, specify ENCRYPT_DECRYPT or\n SIGN_VERIFY.
\n \n - \n
For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify\n SIGN_VERIFY or KEY_AGREEMENT.
\n \n - \n
For asymmetric KMS keys with ECC_SECG_P256K1 key pairs specify\n SIGN_VERIFY.
\n \n - \n
For asymmetric KMS keys with SM2 key pairs (China Regions only), specify\n ENCRYPT_DECRYPT, SIGN_VERIFY, or\n KEY_AGREEMENT.
\n \n
"
+ "smithy.api#documentation": "Determines the cryptographic operations for which you can use the KMS key. The default value is\n ENCRYPT_DECRYPT. This parameter is optional when you are creating a symmetric\n encryption KMS key; otherwise, it is required. You can't change the KeyUsage\n value after the KMS key is created.
\n Select only one valid value.
\n \n - \n
For symmetric encryption KMS keys, omit the parameter or specify\n ENCRYPT_DECRYPT.
\n \n - \n
For HMAC KMS keys (symmetric), specify GENERATE_VERIFY_MAC.
\n \n - \n
For asymmetric KMS keys with RSA key pairs, specify ENCRYPT_DECRYPT or\n SIGN_VERIFY.
\n \n - \n
For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify\n SIGN_VERIFY or KEY_AGREEMENT.
\n \n - \n
For asymmetric KMS keys with ECC_SECG_P256K1 key pairs, specify\n SIGN_VERIFY.
\n \n - \n
For asymmetric KMS keys with ML-DSA key pairs, specify\n SIGN_VERIFY.
\n \n - \n
For asymmetric KMS keys with SM2 key pairs (China Regions only), specify\n ENCRYPT_DECRYPT, SIGN_VERIFY, or\n KEY_AGREEMENT.
\n \n
"
}
},
"CustomerMasterKeySpec": {
@@ -1042,7 +1042,7 @@
"KeySpec": {
"target": "com.amazonaws.kms#KeySpec",
"traits": {
- "smithy.api#documentation": "Specifies the type of KMS key to create. The default value,\n SYMMETRIC_DEFAULT, creates a KMS key with a 256-bit AES-GCM key that is used for\n encryption and decryption, except in China Regions, where it creates a 128-bit symmetric key\n that uses SM4 encryption. For a detailed description of all supported key specs, see Key spec\n reference in the \n Key Management Service Developer Guide\n .
\n The KeySpec determines whether the KMS key contains a symmetric key or an\n asymmetric key pair. It also determines the algorithms that the KMS key supports. You can't\n change the KeySpec after the KMS key is created. To further restrict the\n algorithms that can be used with the KMS key, use a condition key in its key policy or IAM\n policy. For more information, see kms:EncryptionAlgorithm, kms:MacAlgorithm, kms:KeyAgreementAlgorithm, or kms:SigningAlgorithm in the \n Key Management Service Developer Guide\n .
\n \n \n Amazon Web Services services that\n are integrated with KMS use symmetric encryption KMS keys to protect your data.\n These services do not support asymmetric KMS keys or HMAC KMS keys.
\n \n KMS supports the following key specs for KMS keys:
\n \n - \n
Symmetric encryption key (default)
\n \n - \n
\n SYMMETRIC_DEFAULT\n
\n \n
\n \n - \n
HMAC keys (symmetric)
\n \n - \n
\n HMAC_224\n
\n \n - \n
\n HMAC_256\n
\n \n - \n
\n HMAC_384\n
\n \n - \n
\n HMAC_512\n
\n \n
\n \n - \n
Asymmetric RSA key pairs (encryption and decryption -or- signing and\n verification)
\n \n - \n
\n RSA_2048\n
\n \n - \n
\n RSA_3072\n
\n \n - \n
\n RSA_4096\n
\n \n
\n \n - \n
Asymmetric NIST-recommended elliptic curve key pairs (signing and verification -or-\n deriving shared secrets)
\n \n - \n
\n ECC_NIST_P256 (secp256r1)
\n \n - \n
\n ECC_NIST_P384 (secp384r1)
\n \n - \n
\n ECC_NIST_P521 (secp521r1)
\n \n
\n \n - \n
Other asymmetric elliptic curve key pairs (signing and verification)
\n \n \n - \n
SM2 key pairs (encryption and decryption -or- signing and verification -or- deriving\n shared secrets)
\n \n \n
"
+ "smithy.api#documentation": "Specifies the type of KMS key to create. The default value,\n SYMMETRIC_DEFAULT, creates a KMS key with a 256-bit AES-GCM key that is used for\n encryption and decryption, except in China Regions, where it creates a 128-bit symmetric key\n that uses SM4 encryption. For a detailed description of all supported key specs, see Key spec\n reference in the \n Key Management Service Developer Guide\n .
\n The KeySpec determines whether the KMS key contains a symmetric key or an\n asymmetric key pair. It also determines the algorithms that the KMS key supports. You can't\n change the KeySpec after the KMS key is created. To further restrict the\n algorithms that can be used with the KMS key, use a condition key in its key policy or IAM\n policy. For more information, see kms:EncryptionAlgorithm, kms:MacAlgorithm, kms:KeyAgreementAlgorithm, or kms:SigningAlgorithm in the \n Key Management Service Developer Guide\n .
\n \n \n Amazon Web Services services that\n are integrated with KMS use symmetric encryption KMS keys to protect your data.\n These services do not support asymmetric KMS keys or HMAC KMS keys.
\n \n KMS supports the following key specs for KMS keys:
\n \n - \n
Symmetric encryption key (default)
\n \n - \n
\n SYMMETRIC_DEFAULT\n
\n \n
\n \n - \n
HMAC keys (symmetric)
\n \n - \n
\n HMAC_224\n
\n \n - \n
\n HMAC_256\n
\n \n - \n
\n HMAC_384\n
\n \n - \n
\n HMAC_512\n
\n \n
\n \n - \n
Asymmetric RSA key pairs (encryption and decryption -or- signing and\n verification)
\n \n - \n
\n RSA_2048\n
\n \n - \n
\n RSA_3072\n
\n \n - \n
\n RSA_4096\n
\n \n
\n \n - \n
Asymmetric NIST-recommended elliptic curve key pairs (signing and verification -or-\n deriving shared secrets)
\n \n - \n
\n ECC_NIST_P256 (secp256r1)
\n \n - \n
\n ECC_NIST_P384 (secp384r1)
\n \n - \n
\n ECC_NIST_P521 (secp521r1)
\n \n
\n \n - \n
Other asymmetric elliptic curve key pairs (signing and verification)
\n \n \n - \n
Asymmetric ML-DSA key pairs (signing and verification)
\n \n - \n
\n ML_DSA_44\n
\n \n - \n
\n ML_DSA_65\n
\n \n - \n
\n ML_DSA_87\n
\n \n
\n \n - \n
SM2 key pairs (encryption and decryption -or- signing and verification -or- deriving\n shared secrets)
\n \n \n
"
}
},
"Origin": {
@@ -1503,7 +1503,8 @@
"output": {
"KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
"Plaintext": "",
- "EncryptionAlgorithm": "SYMMETRIC_DEFAULT"
+ "EncryptionAlgorithm": "SYMMETRIC_DEFAULT",
+ "KeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6"
}
}
]
@@ -1741,7 +1742,8 @@
"title": "To delete imported key material",
"documentation": "The following example deletes the imported key material from the specified KMS key.",
"input": {
- "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab"
+ "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab",
+ "KeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6"
}
}
]
@@ -2150,6 +2152,7 @@
"KeyUsage": "ENCRYPT_DECRYPT",
"Origin": "AWS_KMS",
"CustomerMasterKeySpec": "SYMMETRIC_DEFAULT",
+ "CurrentKeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6",
"EncryptionAlgorithms": [
"SYMMETRIC_DEFAULT"
],
@@ -2884,7 +2887,8 @@
"output": {
"CiphertextBlob": "",
"Plaintext": "",
- "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
+ "KeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6"
}
}
]
@@ -2945,6 +2949,7 @@
"PrivateKeyPlaintext": "",
"PublicKey": "",
"KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
+ "KeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6",
"KeyPairSpec": "RSA_3072"
}
}
@@ -2970,7 +2975,7 @@
"KeyPairSpec": {
"target": "com.amazonaws.kms#DataKeyPairSpec",
"traits": {
- "smithy.api#documentation": "Determines the type of data key pair that is generated.
\n The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.
",
+ "smithy.api#documentation": "Determines the type of data key pair that is generated.
\n The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and verify (but not both), the rule that permits you to use ECC KMS keys only to sign and verify, and the rule that permits you to use ML-DSA key pairs to sign and verify only are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.
",
"smithy.api#required": {}
}
},
@@ -3039,7 +3044,7 @@
"KeyMaterialId": {
"target": "com.amazonaws.kms#BackingKeyIdType",
"traits": {
- "smithy.api#documentation": "The identifier of the key material used to encrypt the private key. This field is omitted if the request\n includes the Recipient parameter.
"
+ "smithy.api#documentation": "The identifier of the key material used to encrypt the private key.
"
}
}
},
@@ -3101,6 +3106,7 @@
"PrivateKeyCiphertextBlob": "",
"PublicKey": "",
"KeyId": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
+ "KeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6",
"KeyPairSpec": "ECC_NIST_P521"
}
}
@@ -3126,7 +3132,7 @@
"KeyPairSpec": {
"target": "com.amazonaws.kms#DataKeyPairSpec",
"traits": {
- "smithy.api#documentation": "Determines the type of data key pair that is generated.
\n The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and verify (but not both), and the rule that permits you to use ECC KMS keys only to sign and verify, are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.
",
+ "smithy.api#documentation": "Determines the type of data key pair that is generated.
\n The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to encrypt and decrypt or to sign and verify (but not both), the rule that permits you to use ECC KMS keys only to sign and verify, and the rule that permits you to use ML-DSA key pairs to sign and verify only are not effective on data key pairs, which are used outside of KMS. The SM2 key spec is only available in China Regions.
",
"smithy.api#required": {}
}
},
@@ -3323,7 +3329,8 @@
},
"output": {
"CiphertextBlob": "",
- "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
+ "KeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6"
}
}
]
@@ -4305,6 +4312,10 @@
"ImportToken": "",
"EncryptedKeyMaterial": "",
"ExpirationModel": "KEY_MATERIAL_DOES_NOT_EXPIRE"
+ },
+ "output": {
+ "KeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
+ "KeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6"
}
}
]
@@ -5057,6 +5068,24 @@
"traits": {
"smithy.api#enumValue": "SM2"
}
+ },
+ "ML_DSA_44": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ML_DSA_44"
+ }
+ },
+ "ML_DSA_65": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ML_DSA_65"
+ }
+ },
+ "ML_DSA_87": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ML_DSA_87"
+ }
}
}
},
@@ -6005,6 +6034,12 @@
"traits": {
"smithy.api#enumValue": "DIGEST"
}
+ },
+ "EXTERNAL_MU": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "EXTERNAL_MU"
+ }
}
}
},
@@ -6267,7 +6302,7 @@
"Policy": {
"target": "com.amazonaws.kms#PolicyType",
"traits": {
- "smithy.api#documentation": "The key policy to attach to the KMS key.
\n The key policy must meet the following criteria:
\n \n - \n
The key policy must allow the calling principal to make a\n subsequent PutKeyPolicy request on the KMS key. This reduces the risk that\n the KMS key becomes unmanageable. For more information, see Default key policy in the Key Management Service Developer Guide. (To omit\n this condition, set BypassPolicyLockoutSafetyCheck to true.)
\n \n - \n
Each statement in the key policy must contain one or more principals. The principals\n in the key policy must exist and be visible to KMS. When you create a new Amazon Web Services\n principal, you might need to enforce a delay before including the new principal in a key\n policy because the new principal might not be immediately visible to KMS. For more\n information, see Changes that I make are not always immediately visible in the Amazon Web Services\n Identity and Access Management User Guide.
\n \n
\n \n If either of the required Resource or Action \n elements are missing from a key policy statement, the policy statement has \n no effect. When a key policy statement is missing one of these elements,\n the KMS console correctly reports an error, but the \n PutKeyPolicy API request succeeds, even though the policy \n statement is ineffective.
\n For more information on required key policy elements, see Elements in a key policy in the Key Management Service Developer Guide.
\n \n A key policy document can include only the following characters:
\n \n - \n
Printable ASCII characters from the space character (\\u0020) through the end of the ASCII character range.
\n \n - \n
Printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF).
\n \n - \n
The tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D) special characters
\n \n
\n \n If the key policy exceeds the length constraint, KMS returns a\n LimitExceededException.
\n \n For information about key policies, see Key policies in KMS in the\n Key Management Service Developer Guide.For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the \n Identity and Access Management User Guide\n .
",
+ "smithy.api#documentation": "The key policy to attach to the KMS key.
\n The key policy must meet the following criteria:
\n \n - \n
The key policy must allow the calling principal to make a\n subsequent PutKeyPolicy request on the KMS key. This reduces the risk that\n the KMS key becomes unmanageable. For more information, see Default key policy in the Key Management Service Developer Guide. (To omit\n this condition, set BypassPolicyLockoutSafetyCheck to true.)
\n \n - \n
Each statement in the key policy must contain one or more principals. The principals\n in the key policy must exist and be visible to KMS. When you create a new Amazon Web Services\n principal, you might need to enforce a delay before including the new principal in a key\n policy because the new principal might not be immediately visible to KMS. For more\n information, see Changes that I make are not always immediately visible in the Amazon Web Services\n Identity and Access Management User Guide.
\n \n
\n \n If either of the required Resource or Action elements are\n missing from a key policy statement, the policy statement has no effect. When a key policy\n statement is missing one of these elements, the KMS console correctly reports an error,\n but the PutKeyPolicy API request succeeds, even though the policy statement is\n ineffective.
\n For more information on required key policy elements, see Elements in a key\n policy in the Key Management Service Developer Guide.
\n \n A key policy document can include only the following characters:
\n \n - \n
Printable ASCII characters from the space character (\\u0020) through the end of the ASCII character range.
\n \n - \n
Printable characters in the Basic Latin and Latin-1 Supplement character set (through \\u00FF).
\n \n - \n
The tab (\\u0009), line feed (\\u000A), and carriage return (\\u000D) special characters
\n \n
\n \n If the key policy exceeds the length constraint, KMS returns a\n LimitExceededException.
\n \n For information about key policies, see Key policies in KMS in the\n Key Management Service Developer Guide.For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the \n Identity and Access Management User Guide\n .
",
"smithy.api#required": {}
}
},
@@ -6339,7 +6374,11 @@
"output": {
"CiphertextBlob": "",
"KeyId": "arn:aws:kms:us-east-2:111122223333:key/0987dcba-09fe-87dc-65ba-ab0987654321",
- "SourceKeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
+ "DestinationKeyMaterialId": "0b7fd7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6",
+ "DestinationEncryptionAlgorithm": "SYMMETRIC_DEFAULT",
+ "SourceEncryptionAlgorithm": "SYMMETRIC_DEFAULT",
+ "SourceKeyId": "arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab",
+ "SourceKeyMaterialId": "1c6be7ddbac6eef27907413567cad8c810e2883dc8a7534067a82ee1142fc1e6"
}
}
]
@@ -6841,7 +6880,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Immediately initiates rotation of the key material of the specified symmetric encryption\n KMS key.
\n You can perform on-demand rotation of\n the key material in customer managed KMS keys, regardless of whether or not automatic key\n rotation is enabled. On-demand rotations do not change existing automatic rotation\n schedules. For example, consider a KMS key that has automatic key rotation enabled with a\n rotation period of 730 days. If the key is scheduled to automatically rotate on April 14,\n 2024, and you perform an on-demand rotation on April 10, 2024, the key will automatically\n rotate, as scheduled, on April 14, 2024 and every 730 days thereafter.
\n \n You can perform on-demand key rotation a maximum of 10\n times per KMS key. You can use the KMS console to view the number of\n remaining on-demand rotations available for a KMS key.
\n \n You can use GetKeyRotationStatus to identify any in progress on-demand\n rotations. You can use ListKeyRotations to identify the date that completed\n on-demand rotations were performed. You can monitor rotation of the key material for your KMS\n keys in CloudTrail and Amazon CloudWatch.
\n On-demand key rotation is supported only on symmetric encryption KMS keys. You cannot\n perform on-demand rotation of asymmetric KMS keys,\n HMAC KMS keys, multi-Region KMS keys\n with imported key material,\n or KMS keys in a custom key store. When you initiate on-demand key rotation on a symmetric encryption KMS key\n with imported key material, you must have already imported\n new key material\n and that key material's state should be PENDING_ROTATION. Use the ListKeyRotations\n operation to check the state of all key materials associated with a KMS key. To perform on-demand rotation of\n a set of related multi-Region keys, invoke the on-demand rotation on the primary key.
\n You cannot initiate on-demand rotation of Amazon Web Services managed KMS keys. KMS\n always rotates the key material of Amazon Web Services managed keys every year. Rotation of Amazon Web Services owned KMS\n keys is managed by the Amazon Web Services service that owns the key.
\n The KMS key that you use for this operation must be in a compatible key state. For\ndetails, see Key states of KMS keys in the Key Management Service Developer Guide.
\n \n Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.
\n \n Required permissions: kms:RotateKeyOnDemand (key policy)
\n \n Related operations:\n
\n \n \n Eventual consistency: The KMS API follows an eventual consistency model. \n For more information, see KMS eventual consistency.
",
+ "smithy.api#documentation": "Immediately initiates rotation of the key material of the specified symmetric encryption\n KMS key.
\n You can perform on-demand rotation of the key\n material in customer managed KMS keys, regardless of whether or not automatic key\n rotation is enabled. On-demand rotations do not change existing automatic rotation\n schedules. For example, consider a KMS key that has automatic key rotation enabled with a\n rotation period of 730 days. If the key is scheduled to automatically rotate on April 14,\n 2024, and you perform an on-demand rotation on April 10, 2024, the key will automatically\n rotate, as scheduled, on April 14, 2024 and every 730 days thereafter.
\n \n You can perform on-demand key rotation a maximum of 10\n times per KMS key. You can use the KMS console to view the number of\n remaining on-demand rotations available for a KMS key.
\n \n You can use GetKeyRotationStatus to identify any in progress on-demand\n rotations. You can use ListKeyRotations to identify the date that completed\n on-demand rotations were performed. You can monitor rotation of the key material for your KMS\n keys in CloudTrail and Amazon CloudWatch.
\n On-demand key rotation is supported only on symmetric encryption KMS keys. You cannot\n perform on-demand rotation of asymmetric KMS keys,\n HMAC KMS keys, multi-Region KMS keys\n with imported key material,\n or KMS keys in a custom key store. When you initiate on-demand key rotation on a symmetric encryption KMS key\n with imported key material, you must have already imported\n new key material\n and that key material's state should be PENDING_ROTATION. Use the ListKeyRotations\n operation to check the state of all key materials associated with a KMS key. To perform on-demand rotation of\n a set of related multi-Region keys, invoke the on-demand rotation on the primary key.
\n You cannot initiate on-demand rotation of Amazon Web Services managed KMS keys. KMS\n always rotates the key material of Amazon Web Services managed keys every year. Rotation of Amazon Web Services owned KMS\n keys is managed by the Amazon Web Services service that owns the key.
\n The KMS key that you use for this operation must be in a compatible key state. For\ndetails, see Key states of KMS keys in the Key Management Service Developer Guide.
\n \n Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.
\n \n Required permissions: kms:RotateKeyOnDemand (key policy)
\n \n Related operations:\n
\n \n \n Eventual consistency: The KMS API follows an eventual consistency model. \n For more information, see KMS eventual consistency.
",
"smithy.api#examples": [
{
"title": "To perform on-demand rotation of key material",
@@ -7099,7 +7138,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a digital\n signature for a message or message digest by using the private key in an asymmetric\n signing KMS key. To verify the signature, use the Verify operation, or use\n the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.
\n Digital signatures are generated and verified by using asymmetric key pair, such as an RSA\n or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized\n user) uses their private key to sign a message. Anyone with the public key can verify that the\n message was signed with that particular private key and that the message hasn't changed since\n it was signed.
\n To use the Sign operation, provide the following information:
\n \n - \n
Use the KeyId parameter to identify an asymmetric KMS key with a\n KeyUsage value of SIGN_VERIFY. To get the\n KeyUsage value of a KMS key, use the DescribeKey\n operation. The caller must have kms:Sign permission on the KMS key.
\n \n - \n
Use the Message parameter to specify the message or message digest to\n sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a\n hash digest of the message, and then provide the hash digest in the Message\n parameter. To indicate whether the message is a full message or a digest, use the\n MessageType parameter.
\n \n - \n
Choose a signing algorithm that is compatible with the KMS key.
\n \n
\n \n When signing a message, be sure to record the KMS key and the signing algorithm. This\n information is required to verify the signature.
\n \n \n Best practices recommend that you limit the time during which any signature is\n effective. This deters an attack where the actor uses a signed message to establish validity\n repeatedly or long after the message is superseded. Signatures do not include a timestamp,\n but you can include a timestamp in the signed message to help you detect when its time to\n refresh the signature.
\n \n To verify the signature that this operation generates, use the Verify\n operation. Or use the GetPublicKey operation to download the public key and\n then use the public key to verify the signature outside of KMS.
\n The KMS key that you use for this operation must be in a compatible key state. For\ndetails, see Key states of KMS keys in the Key Management Service Developer Guide.
\n \n Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify\n the key ARN or alias ARN in the value of the KeyId parameter.
\n \n Required permissions: kms:Sign (key policy)
\n \n Related operations: Verify\n
\n \n Eventual consistency: The KMS API follows an eventual consistency model. \n For more information, see KMS eventual consistency.
",
+ "smithy.api#documentation": "Creates a digital\n signature for a message or message digest by using the private key in an asymmetric\n signing KMS key. To verify the signature, use the Verify operation, or use\n the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.
\n Digital signatures are generated and verified by using asymmetric key pair, such as an\n RSA, ECC, or ML-DSA pair that is represented by an asymmetric KMS key. The key owner (or an\n authorized user) uses their private key to sign a message. Anyone with the public key can\n verify that the message was signed with that particular private key and that the message\n hasn't changed since it was signed.
\n To use the Sign operation, provide the following information:
\n \n - \n
Use the KeyId parameter to identify an asymmetric KMS key with a\n KeyUsage value of SIGN_VERIFY. To get the\n KeyUsage value of a KMS key, use the DescribeKey\n operation. The caller must have kms:Sign permission on the KMS key.
\n \n - \n
Use the Message parameter to specify the message or message digest to\n sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a\n hash digest of the message, and then provide the hash digest in the Message\n parameter. To indicate whether the message is a full message, a digest, or an ML-DSA\n EXTERNAL_MU, use the MessageType parameter.
\n \n - \n
Choose a signing algorithm that is compatible with the KMS key.
\n \n
\n \n When signing a message, be sure to record the KMS key and the signing algorithm. This\n information is required to verify the signature.
\n \n \n Best practices recommend that you limit the time during which any signature is\n effective. This deters an attack where the actor uses a signed message to establish validity\n repeatedly or long after the message is superseded. Signatures do not include a timestamp,\n but you can include a timestamp in the signed message to help you detect when its time to\n refresh the signature.
\n \n To verify the signature that this operation generates, use the Verify\n operation. Or use the GetPublicKey operation to download the public key and\n then use the public key to verify the signature outside of KMS.
\n The KMS key that you use for this operation must be in a compatible key state. For\ndetails, see Key states of KMS keys in the Key Management Service Developer Guide.
\n \n Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify\n the key ARN or alias ARN in the value of the KeyId parameter.
\n \n Required permissions: kms:Sign (key policy)
\n \n Related operations: Verify\n
\n \n Eventual consistency: The KMS API follows an eventual consistency model. \n For more information, see KMS eventual consistency.
",
"smithy.api#examples": [
{
"title": "To digitally sign a message digest with an asymmetric KMS key.",
@@ -7154,7 +7193,7 @@
"MessageType": {
"target": "com.amazonaws.kms#MessageType",
"traits": {
- "smithy.api#documentation": "Tells KMS whether the value of the Message parameter should be hashed as\n part of the signing algorithm. Use RAW for unhashed messages; use\n DIGEST for message digests, which are already hashed.
\n When the value of MessageType is RAW, KMS uses the standard\n signing algorithm, which begins with a hash function. When the value is DIGEST,\n KMS skips the hashing step in the signing algorithm.
\n \n Use the DIGEST value only when the value of the Message\n parameter is a message digest. If you use the DIGEST value with an unhashed\n message, the security of the signing operation can be compromised.
\n \n When the value of MessageTypeis DIGEST, the length of the\n Message value must match the length of hashed messages for the specified\n signing algorithm.
\n You can submit a message digest and omit the MessageType or specify\n RAW so the digest is hashed again while signing. However, this can cause\n verification failures when verifying with a system that assumes a single hash.
\n The hashing algorithm in that Sign uses is based on the\n SigningAlgorithm value.
\n \n - \n
Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
\n \n - \n
SM2DSA uses the SM3 hashing algorithm. For details, see Offline\n verification with SM2 key pairs.
\n \n
"
+ "smithy.api#documentation": "Tells KMS whether the value of the Message parameter should be hashed as\n part of the signing algorithm. Use RAW for unhashed messages; use\n DIGEST for message digests, which are already hashed; use\n EXTERNAL_MU for 64-byte representative μ used in ML-DSA signing as defined\n in NIST FIPS 204 Section 6.2.
\n When the value of MessageType is RAW, KMS uses the standard\n signing algorithm, which begins with a hash function. When the value is DIGEST,\n KMS skips the hashing step in the signing algorithm. When the value is\n EXTERNAL_MU KMS skips the concatenated hashing of the public key hash and the\n message done in the ML-DSA signing algorithm.
\n \n Use the DIGEST or EXTERNAL_MU value only when the value of the\n Message parameter is a message digest. If you use the DIGEST\n value with an unhashed message, the security of the signing operation can be\n compromised.
\n \n When the value of MessageType is DIGEST, the length of the\n Message value must match the length of hashed messages for the specified\n signing algorithm.
\n When the value of MessageType is EXTERNAL_MU the length of the\n Message value must be 64 bytes.
\n You can submit a message digest and omit the MessageType or specify\n RAW so the digest is hashed again while signing. However, this can cause\n verification failures when verifying with a system that assumes a single hash.
\n The hashing algorithm that Sign uses is based on the\n SigningAlgorithm value.
\n \n - \n
Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHAKE_256 use the SHAKE_256 hashing algorithm.
\n \n - \n
SM2DSA uses the SM3 hashing algorithm. For details, see Offline\n verification with SM2 key pairs.
\n \n
"
}
},
"GrantTokens": {
@@ -7269,6 +7308,12 @@
"traits": {
"smithy.api#enumValue": "SM2DSA"
}
+ },
+ "ML_DSA_SHAKE_256": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ML_DSA_SHAKE_256"
+ }
}
}
},
@@ -9263,7 +9308,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Changes the primary key of a multi-Region key.
\n This operation changes the replica key in the specified Region to a primary key and\n changes the former primary key to a replica key. For example, suppose you have a primary key\n in us-east-1 and a replica key in eu-west-2. If you run\n UpdatePrimaryRegion with a PrimaryRegion value of\n eu-west-2, the primary key is now the key in eu-west-2, and the\n key in us-east-1 becomes a replica key. For details, see Change the primary key in a set of multi-Region keys in the Key Management Service Developer Guide.
\n This operation supports multi-Region keys, an KMS feature that lets you create multiple\n interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key\n material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt\n it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
\n The primary key of a multi-Region key is the source for properties\n that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material\n origin, and automatic\n key rotation. It's the only key that can be replicated. You cannot delete the primary\n key until all replica keys are deleted.
\n The key ID and primary Region that you specify uniquely identify the replica key that will\n become the primary key. The primary Region must already have a replica key. This operation\n does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica\n key, use the ReplicateKey operation.
\n You can run this operation while using the affected multi-Region keys in cryptographic\n operations. This operation should not delay, interrupt, or cause failures in cryptographic\n operations.
\n Even after this operation completes, the process of updating the primary Region might\n still be in progress for a few more seconds. Operations such as DescribeKey might\n display both the old and new primary keys as replicas. The old and new primary keys have a\n transient key state of Updating. The original key state is restored when the\n update is complete. While the key state is Updating, you can use the keys in\n cryptographic operations, but you cannot replicate the new primary key or perform certain\n management operations, such as enabling or disabling these keys. For details about the\n Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.
\n This operation does not return any output. To verify that primary key is changed, use the\n DescribeKey operation.
\n \n Cross-account use: No. You cannot use this operation in a\n different Amazon Web Services account.
\n \n Required permissions:
\n \n - \n
\n kms:UpdatePrimaryRegion on the current primary key (in the primary key's\n Region). Include this permission primary key's key policy.
\n \n - \n
\n kms:UpdatePrimaryRegion on the current replica key (in the replica key's\n Region). Include this permission in the replica key's key policy.
\n \n
\n \n Related operations\n
\n \n \n Eventual consistency: The KMS API follows an eventual consistency model. \n For more information, see KMS eventual consistency.
",
+ "smithy.api#documentation": "Changes the primary key of a multi-Region key.
\n This operation changes the replica key in the specified Region to a primary key and\n changes the former primary key to a replica key. For example, suppose you have a primary key\n in us-east-1 and a replica key in eu-west-2. If you run\n UpdatePrimaryRegion with a PrimaryRegion value of\n eu-west-2, the primary key is now the key in eu-west-2, and the\n key in us-east-1 becomes a replica key. For details, see Change the primary key in a\n set of multi-Region keys in the Key Management Service Developer Guide.
\n This operation supports multi-Region keys, an KMS feature that lets you create multiple\n interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key\n material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt\n it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
\n The primary key of a multi-Region key is the source for properties\n that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material\n origin, and automatic\n key rotation. It's the only key that can be replicated. You cannot delete the primary\n key until all replica keys are deleted.
\n The key ID and primary Region that you specify uniquely identify the replica key that will\n become the primary key. The primary Region must already have a replica key. This operation\n does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica\n key, use the ReplicateKey operation.
\n You can run this operation while using the affected multi-Region keys in cryptographic\n operations. This operation should not delay, interrupt, or cause failures in cryptographic\n operations.
\n Even after this operation completes, the process of updating the primary Region might\n still be in progress for a few more seconds. Operations such as DescribeKey might\n display both the old and new primary keys as replicas. The old and new primary keys have a\n transient key state of Updating. The original key state is restored when the\n update is complete. While the key state is Updating, you can use the keys in\n cryptographic operations, but you cannot replicate the new primary key or perform certain\n management operations, such as enabling or disabling these keys. For details about the\n Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.
\n This operation does not return any output. To verify that primary key is changed, use the\n DescribeKey operation.
\n \n Cross-account use: No. You cannot use this operation in a\n different Amazon Web Services account.
\n \n Required permissions:
\n \n - \n
\n kms:UpdatePrimaryRegion on the current primary key (in the primary key's\n Region). Include this permission primary key's key policy.
\n \n - \n
\n kms:UpdatePrimaryRegion on the current replica key (in the replica key's\n Region). Include this permission in the replica key's key policy.
\n \n
\n \n Related operations\n
\n \n \n Eventual consistency: The KMS API follows an eventual consistency model. \n For more information, see KMS eventual consistency.
",
"smithy.api#examples": [
{
"title": "To update the primary Region of a multi-Region KMS key",
@@ -9529,7 +9574,7 @@
"MessageType": {
"target": "com.amazonaws.kms#MessageType",
"traits": {
- "smithy.api#documentation": "Tells KMS whether the value of the Message parameter should be hashed as\n part of the signing algorithm. Use RAW for unhashed messages; use\n DIGEST for message digests, which are already hashed.
\n When the value of MessageType is RAW, KMS uses the standard\n signing algorithm, which begins with a hash function. When the value is DIGEST,\n KMS skips the hashing step in the signing algorithm.
\n \n Use the DIGEST value only when the value of the Message\n parameter is a message digest. If you use the DIGEST value with an unhashed\n message, the security of the verification operation can be compromised.
\n \n When the value of MessageTypeis DIGEST, the length of the\n Message value must match the length of hashed messages for the specified\n signing algorithm.
\n You can submit a message digest and omit the MessageType or specify\n RAW so the digest is hashed again while signing. However, if the signed message\n is hashed once while signing, but twice while verifying, verification fails, even when the\n message hasn't changed.
\n The hashing algorithm in that Verify uses is based on the\n SigningAlgorithm value.
\n \n - \n
Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
\n \n - \n
SM2DSA uses the SM3 hashing algorithm. For details, see Offline\n verification with SM2 key pairs.
\n \n
"
+ "smithy.api#documentation": "Tells KMS whether the value of the Message parameter should be hashed as\n part of the signing algorithm. Use RAW for unhashed messages; use\n DIGEST for message digests, which are already hashed; use\n EXTERNAL_MU for 64-byte representative μ used in ML-DSA signing as defined\n in NIST FIPS 204 Section 6.2.
\n When the value of MessageType is RAW, KMS uses the standard\n signing algorithm, which begins with a hash function. When the value is DIGEST,\n KMS skips the hashing step in the signing algorithm. When the value is\n EXTERNAL_MU KMS skips the concatenated hashing of the public key hash and the\n message done in the ML-DSA signing algorithm.
\n \n Use the DIGEST or EXTERNAL_MU value only when the value of the\n Message parameter is a message digest. If you use the DIGEST\n value with an unhashed message, the security of the signing operation can be\n compromised.
\n \n When the value of MessageType is DIGEST, the length of the\n Message value must match the length of hashed messages for the specified\n signing algorithm.
\n When the value of MessageType is EXTERNAL_MU the length of the\n Message value must be 64 bytes.
\n You can submit a message digest and omit the MessageType or specify\n RAW so the digest is hashed again while signing. However, if the signed message\n is hashed once while signing, but twice while verifying, verification fails, even when the\n message hasn't changed.
\n The hashing algorithm that Verify uses is based on the\n SigningAlgorithm value.
\n \n - \n
Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHA_384 use the SHA_384 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
\n \n - \n
Signing algorithms that end in SHAKE_256 use the SHAKE_256 hashing algorithm.
\n \n - \n
SM2DSA uses the SM3 hashing algorithm. For details, see Offline\n verification with SM2 key pairs.
\n \n
"
}
},
"Signature": {
diff --git a/codegen/sdk-codegen/aws-models/lex-models-v2.json b/codegen/sdk-codegen/aws-models/lex-models-v2.json
index f5123acd4e6..68ccbe35ffa 100644
--- a/codegen/sdk-codegen/aws-models/lex-models-v2.json
+++ b/codegen/sdk-codegen/aws-models/lex-models-v2.json
@@ -11222,7 +11222,7 @@
"traits": {
"smithy.api#length": {
"min": 0,
- "max": 200
+ "max": 2000
}
}
},
@@ -18191,6 +18191,22 @@
"com.amazonaws.lexmodelsv2#NextToken": {
"type": "string"
},
+ "com.amazonaws.lexmodelsv2#NluImprovementSpecification": {
+ "type": "structure",
+ "members": {
+ "enabled": {
+ "target": "com.amazonaws.lexmodelsv2#Enabled",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "Specifies whether the assisted nlu feature is enabled.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Specifies whether the assisted nlu feature is turned on or off.
"
+ }
+ },
"com.amazonaws.lexmodelsv2#NonEmptyString": {
"type": "string",
"traits": {
@@ -19167,6 +19183,12 @@
"traits": {
"smithy.api#documentation": "An object containing specifications for the assisted slot resolution feature.
"
}
+ },
+ "nluImprovement": {
+ "target": "com.amazonaws.lexmodelsv2#NluImprovementSpecification",
+ "traits": {
+ "smithy.api#documentation": "An object containing specifications for the assisted nlu feature.
"
+ }
}
},
"traits": {
diff --git a/codegen/sdk-codegen/aws-models/mpa.json b/codegen/sdk-codegen/aws-models/mpa.json
new file mode 100644
index 00000000000..46083531c2b
--- /dev/null
+++ b/codegen/sdk-codegen/aws-models/mpa.json
@@ -0,0 +1,4456 @@
+{
+ "smithy": "2.0",
+ "shapes": {
+ "com.amazonaws.mpa#AWSFluffyCoreService": {
+ "type": "service",
+ "version": "2022-07-26",
+ "operations": [
+ {
+ "target": "com.amazonaws.mpa#GetPolicyVersion"
+ },
+ {
+ "target": "com.amazonaws.mpa#GetResourcePolicy"
+ },
+ {
+ "target": "com.amazonaws.mpa#ListPolicies"
+ },
+ {
+ "target": "com.amazonaws.mpa#ListPolicyVersions"
+ },
+ {
+ "target": "com.amazonaws.mpa#ListResourcePolicies"
+ },
+ {
+ "target": "com.amazonaws.mpa#ListTagsForResource"
+ },
+ {
+ "target": "com.amazonaws.mpa#TagResource"
+ },
+ {
+ "target": "com.amazonaws.mpa#UntagResource"
+ }
+ ],
+ "resources": [
+ {
+ "target": "com.amazonaws.mpa#ApprovalTeam"
+ },
+ {
+ "target": "com.amazonaws.mpa#IdentitySource"
+ },
+ {
+ "target": "com.amazonaws.mpa#Session"
+ }
+ ],
+ "traits": {
+ "aws.api#service": {
+ "sdkId": "MPA",
+ "arnNamespace": "mpa"
+ },
+ "aws.auth#sigv4": {
+ "name": "mpa"
+ },
+ "aws.endpoints#dualStackOnlyEndpoints": {},
+ "aws.endpoints#standardRegionalEndpoints": {},
+ "aws.iam#defineConditionKeys": {
+ "aws:ResourceTag/${TagKey}": {
+ "type": "String",
+ "documentation": "Filters access by a tag key and value pair of a resource",
+ "externalDocumentation": "${DocHomeURL}IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag"
+ },
+ "aws:RequestTag/${TagKey}": {
+ "type": "String",
+ "documentation": "Filters access by a tag key and value pair that is allowed in the request",
+ "externalDocumentation": "${DocHomeURL}IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag"
+ },
+ "aws:TagKeys": {
+ "type": "ArrayOfString",
+ "documentation": "Filters access by a list of tag keys that are allowed in the request",
+ "externalDocumentation": "${DocHomeURL}IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys"
+ },
+ "mpa:RequestedOperation": {
+ "type": "String",
+ "documentation": "Filters access by the requested operation that requires team approval before it can be executed",
+ "externalDocumentation": "${DocHomeURL}mpa/latest/userguide/mpa-concepts.html"
+ },
+ "mpa:ProtectedResourceAccount": {
+ "type": "String",
+ "documentation": "Filters access by the account that owns the resource that is the target of the operation that requires approval",
+ "externalDocumentation": "${DocHomeURL}mpa/latest/userguide/mpa-concepts.html"
+ }
+ },
+ "aws.iam#disableConditionKeyInference": {},
+ "aws.iam#supportedPrincipalTypes": [
+ "Root",
+ "IAMUser",
+ "IAMRole",
+ "FederatedUser"
+ ],
+ "aws.protocols#restJson1": {},
+ "smithy.api#documentation": "Multi-party approval is a capability of Organizations that allows you to protect a predefined list of operations through a distributed approval process. Use Multi-party approval to establish approval workflows and transform security processes into team-based decisions.
When to use Multi-party approval:
-
You need to align with the Zero Trust principle of \"never trust, always verify\"
-
You need to make sure that the right humans have access to the right things in the right way
-
You need distributed decision-making for sensitive or critical operations
-
You need to protect against unintended operations on sensitive or critical resources
-
You need formal reviews and approvals for auditing or compliance reasons
For more information, see What is Multi-party approval in the Multi-party approval User Guide.
",
+ "smithy.api#title": "AWS Multi-party Approval",
+ "smithy.rules#endpointRuleSet": {
+ "version": "1.0",
+ "parameters": {
+ "UseFIPS": {
+ "builtIn": "AWS::UseFIPS",
+ "required": true,
+ "default": false,
+ "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
+ "type": "Boolean"
+ },
+ "Endpoint": {
+ "builtIn": "SDK::Endpoint",
+ "required": false,
+ "documentation": "Override the endpoint used to send this request",
+ "type": "String"
+ },
+ "Region": {
+ "builtIn": "AWS::Region",
+ "required": false,
+ "documentation": "The AWS region used to dispatch the request.",
+ "type": "String"
+ }
+ },
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "isSet",
+ "argv": [
+ {
+ "ref": "Endpoint"
+ }
+ ]
+ }
+ ],
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "booleanEquals",
+ "argv": [
+ {
+ "ref": "UseFIPS"
+ },
+ true
+ ]
+ }
+ ],
+ "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
+ "type": "error"
+ },
+ {
+ "conditions": [],
+ "endpoint": {
+ "url": {
+ "ref": "Endpoint"
+ },
+ "properties": {},
+ "headers": {}
+ },
+ "type": "endpoint"
+ }
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [],
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "isSet",
+ "argv": [
+ {
+ "ref": "Region"
+ }
+ ]
+ }
+ ],
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "aws.partition",
+ "argv": [
+ {
+ "ref": "Region"
+ }
+ ],
+ "assign": "PartitionResult"
+ }
+ ],
+ "rules": [
+ {
+ "conditions": [
+ {
+ "fn": "booleanEquals",
+ "argv": [
+ {
+ "ref": "UseFIPS"
+ },
+ true
+ ]
+ }
+ ],
+ "endpoint": {
+ "url": "https://mpa-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ "properties": {},
+ "headers": {}
+ },
+ "type": "endpoint"
+ },
+ {
+ "conditions": [],
+ "endpoint": {
+ "url": "https://mpa.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ "properties": {},
+ "headers": {}
+ },
+ "type": "endpoint"
+ }
+ ],
+ "type": "tree"
+ }
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [],
+ "error": "Invalid Configuration: Missing Region",
+ "type": "error"
+ }
+ ],
+ "type": "tree"
+ }
+ ]
+ },
+ "smithy.rules#endpointTests": {
+ "testCases": [
+ {
+ "documentation": "For custom endpoint with region not set and fips disabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://example.com"
+ }
+ },
+ "params": {
+ "Endpoint": "https://example.com",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For custom endpoint with fips enabled",
+ "expect": {
+ "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
+ },
+ "params": {
+ "Endpoint": "https://example.com",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa-fips.us-east-1.api.aws"
+ }
+ },
+ "params": {
+ "Region": "us-east-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa.us-east-1.api.aws"
+ }
+ },
+ "params": {
+ "Region": "us-east-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa-fips.cn-northwest-1.api.amazonwebservices.com.cn"
+ }
+ },
+ "params": {
+ "Region": "cn-northwest-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa.cn-northwest-1.api.amazonwebservices.com.cn"
+ }
+ },
+ "params": {
+ "Region": "cn-northwest-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa-fips.us-gov-west-1.api.aws"
+ }
+ },
+ "params": {
+ "Region": "us-gov-west-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa.us-gov-west-1.api.aws"
+ }
+ },
+ "params": {
+ "Region": "us-gov-west-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa-fips.us-iso-east-1.c2s.ic.gov"
+ }
+ },
+ "params": {
+ "Region": "us-iso-east-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa.us-iso-east-1.c2s.ic.gov"
+ }
+ },
+ "params": {
+ "Region": "us-iso-east-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa-fips.us-isob-east-1.sc2s.sgov.gov"
+ }
+ },
+ "params": {
+ "Region": "us-isob-east-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa.us-isob-east-1.sc2s.sgov.gov"
+ }
+ },
+ "params": {
+ "Region": "us-isob-east-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region eu-isoe-west-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa-fips.eu-isoe-west-1.cloud.adc-e.uk"
+ }
+ },
+ "params": {
+ "Region": "eu-isoe-west-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa.eu-isoe-west-1.cloud.adc-e.uk"
+ }
+ },
+ "params": {
+ "Region": "eu-isoe-west-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "For region us-isof-south-1 with FIPS enabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa-fips.us-isof-south-1.csp.hci.ic.gov"
+ }
+ },
+ "params": {
+ "Region": "us-isof-south-1",
+ "UseFIPS": true
+ }
+ },
+ {
+ "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack enabled",
+ "expect": {
+ "endpoint": {
+ "url": "https://mpa.us-isof-south-1.csp.hci.ic.gov"
+ }
+ },
+ "params": {
+ "Region": "us-isof-south-1",
+ "UseFIPS": false
+ }
+ },
+ {
+ "documentation": "Missing region",
+ "expect": {
+ "error": "Invalid Configuration: Missing Region"
+ }
+ }
+ ],
+ "version": "1.0"
+ }
+ }
+ },
+ "com.amazonaws.mpa#AccessDeniedException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the AccessDeniedException error.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "You do not have sufficient access to perform this action. Check your permissions, and try again.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 403
+ }
+ },
+ "com.amazonaws.mpa#AccountId": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "account",
+ "smithy.api#length": {
+ "max": 12
+ },
+ "smithy.api#pattern": "^\\d{12}$"
+ }
+ },
+ "com.amazonaws.mpa#ActionCompletionStrategy": {
+ "type": "enum",
+ "members": {
+ "AUTO_COMPLETION_UPON_APPROVAL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "AUTO_COMPLETION_UPON_APPROVAL"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#ActionName": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "max": 500
+ }
+ }
+ },
+ "com.amazonaws.mpa#ApprovalStrategy": {
+ "type": "union",
+ "members": {
+ "MofN": {
+ "target": "com.amazonaws.mpa#MofNApprovalStrategy",
+ "traits": {
+ "smithy.api#documentation": "Minimum number of approvals (M) required for a total number of approvers (N).
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Strategy for how an approval team grants approval.
"
+ }
+ },
+ "com.amazonaws.mpa#ApprovalStrategyResponse": {
+ "type": "union",
+ "members": {
+ "MofN": {
+ "target": "com.amazonaws.mpa#MofNApprovalStrategy",
+ "traits": {
+ "smithy.api#documentation": "Minimum number of approvals (M) required for a total number of approvers (N).
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details for how an approval team grants approval.
"
+ }
+ },
+ "com.amazonaws.mpa#ApprovalTeam": {
+ "type": "resource",
+ "identifiers": {
+ "Arn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn"
+ }
+ },
+ "create": {
+ "target": "com.amazonaws.mpa#CreateApprovalTeam"
+ },
+ "read": {
+ "target": "com.amazonaws.mpa#GetApprovalTeam"
+ },
+ "update": {
+ "target": "com.amazonaws.mpa#UpdateApprovalTeam"
+ },
+ "delete": {
+ "target": "com.amazonaws.mpa#DeleteInactiveApprovalTeamVersion"
+ },
+ "list": {
+ "target": "com.amazonaws.mpa#ListApprovalTeams"
+ },
+ "operations": [
+ {
+ "target": "com.amazonaws.mpa#StartActiveApprovalTeamDeletion"
+ }
+ ],
+ "traits": {
+ "aws.api#arn": {
+ "template": "approval-team/{Arn}"
+ },
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamResource": {
+ "name": "approval-team",
+ "relativeDocumentation": "mpa-concepts.html"
+ },
+ "smithy.api#documentation": "Represents a team that is responsible for approving protected operations"
+ }
+ },
+ "com.amazonaws.mpa#ApprovalTeamArn": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 20,
+ "max": 2048
+ },
+ "smithy.api#pattern": "^arn:aws(-[^:]+)?:mpa:[a-z0-9-]{1,20}:[0-9]{12}:approval-team/[a-zA-Z0-9._-]+$"
+ }
+ },
+ "com.amazonaws.mpa#ApprovalTeamName": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 64
+ },
+ "smithy.api#pattern": "^[a-zA-Z0-9._-]+$"
+ }
+ },
+ "com.amazonaws.mpa#ApprovalTeamRequestApprover": {
+ "type": "structure",
+ "members": {
+ "PrimaryIdentityId": {
+ "target": "com.amazonaws.mpa#IdentityId",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "ID for the user.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PrimaryIdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Contains details for an approver.
"
+ }
+ },
+ "com.amazonaws.mpa#ApprovalTeamRequestApprovers": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#ApprovalTeamRequestApprover"
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#ApprovalTeamStatus": {
+ "type": "enum",
+ "members": {
+ "ACTIVE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACTIVE"
+ }
+ },
+ "INACTIVE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "INACTIVE"
+ }
+ },
+ "DELETING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETING"
+ }
+ },
+ "PENDING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#ApprovalTeamStatusCode": {
+ "type": "enum",
+ "members": {
+ "VALIDATING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "VALIDATING"
+ }
+ },
+ "PENDING_ACTIVATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING_ACTIVATION"
+ }
+ },
+ "FAILED_VALIDATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED_VALIDATION"
+ }
+ },
+ "FAILED_ACTIVATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED_ACTIVATION"
+ }
+ },
+ "UPDATE_PENDING_APPROVAL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "UPDATE_PENDING_APPROVAL"
+ }
+ },
+ "UPDATE_PENDING_ACTIVATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "UPDATE_PENDING_ACTIVATION"
+ }
+ },
+ "UPDATE_FAILED_APPROVAL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "UPDATE_FAILED_APPROVAL"
+ }
+ },
+ "UPDATE_FAILED_ACTIVATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "UPDATE_FAILED_ACTIVATION"
+ }
+ },
+ "UPDATE_FAILED_VALIDATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "UPDATE_FAILED_VALIDATION"
+ }
+ },
+ "DELETE_PENDING_APPROVAL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETE_PENDING_APPROVAL"
+ }
+ },
+ "DELETE_FAILED_APPROVAL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETE_FAILED_APPROVAL"
+ }
+ },
+ "DELETE_FAILED_VALIDATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETE_FAILED_VALIDATION"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#CancelSession": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#CancelSessionRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#CancelSessionResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}",
+ "mpa:RequestedOperation",
+ "mpa:ProtectedResourceAccount"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to cancel an approval session"
+ },
+ "smithy.api#documentation": "Cancels an approval session. For more information, see Session in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "PUT",
+ "uri": "/sessions/{SessionArn}"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#CancelSessionRequest": {
+ "type": "structure",
+ "members": {
+ "SessionArn": {
+ "target": "com.amazonaws.mpa#SessionArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the session.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#CancelSessionResponse": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#ConflictException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the ConflictException error.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request cannot be completed because it conflicts with the current state of a resource.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 409
+ }
+ },
+ "com.amazonaws.mpa#CreateApprovalTeam": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#CreateApprovalTeamRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#CreateApprovalTeamResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ServiceQuotaExceededException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}",
+ "aws:RequestTag/${TagKey}",
+ "aws:TagKeys"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to create an approval team"
+ },
+ "smithy.api#documentation": "Creates a new approval team. For more information, see Approval team in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/approval-teams"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#CreateApprovalTeamRequest": {
+ "type": "structure",
+ "members": {
+ "ClientToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.
What is idempotency?
When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.
Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ },
+ "ApprovalStrategy": {
+ "target": "com.amazonaws.mpa#ApprovalStrategy",
+ "traits": {
+ "smithy.api#documentation": "An ApprovalStrategy object. Contains details for how the team grants approval.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Approvers": {
+ "target": "com.amazonaws.mpa#ApprovalTeamRequestApprovers",
+ "traits": {
+ "smithy.api#documentation": "An array of ApprovalTeamRequesterApprovers objects. Contains details for the approvers in the team.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.mpa#Description",
+ "traits": {
+ "smithy.api#documentation": "Description for the team.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Policies": {
+ "target": "com.amazonaws.mpa#PoliciesReferences",
+ "traits": {
+ "smithy.api#documentation": "An array of PolicyReference objects. Contains a list of policies that define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.mpa#ApprovalTeamName",
+ "traits": {
+ "smithy.api#documentation": "Name of the team.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Tags": {
+ "target": "com.amazonaws.mpa#Tags",
+ "traits": {
+ "smithy.api#documentation": "Tags you want to attach to the team.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#CreateApprovalTeamResponse": {
+ "type": "structure",
+ "members": {
+ "CreationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the team was created.
"
+ }
+ },
+ "Arn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the team that was created.
"
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Name of the team that was created.
"
+ }
+ },
+ "VersionId": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Version ID for the team that was created. When a team is updated, the version ID changes.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#CreateIdentitySource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#CreateIdentitySourceRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#CreateIdentitySourceResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ServiceQuotaExceededException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}",
+ "aws:RequestTag/${TagKey}",
+ "aws:TagKeys"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to create an identity source"
+ },
+ "smithy.api#documentation": "Creates a new identity source. For more information, see Identity Source in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/identity-sources"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#CreateIdentitySourceRequest": {
+ "type": "structure",
+ "members": {
+ "IdentitySourceParameters": {
+ "target": "com.amazonaws.mpa#IdentitySourceParameters",
+ "traits": {
+ "smithy.api#documentation": "A IdentitySourceParameters object. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.
",
+ "smithy.api#required": {}
+ }
+ },
+ "ClientToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.
What is idempotency?
When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.
Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ },
+ "Tags": {
+ "target": "com.amazonaws.mpa#Tags",
+ "traits": {
+ "smithy.api#documentation": "Tag you want to attach to the identity source.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#CreateIdentitySourceResponse": {
+ "type": "structure",
+ "members": {
+ "IdentitySourceType": {
+ "target": "com.amazonaws.mpa#IdentitySourceType",
+ "traits": {
+ "smithy.api#documentation": "The type of resource that provided identities to the identity source. For example, an IAM Identity Center instance.
"
+ }
+ },
+ "IdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the identity source that was created.
"
+ }
+ },
+ "CreationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the identity source was created.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#DeleteIdentitySource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#DeleteIdentitySourceRequest"
+ },
+ "output": {
+ "target": "smithy.api#Unit"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to delete an identity source"
+ },
+ "smithy.api#documentation": "Deletes an identity source. For more information, see Identity Source in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "DELETE",
+ "uri": "/identity-sources/{IdentitySourceArn}"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#DeleteIdentitySourceRequest": {
+ "type": "structure",
+ "members": {
+ "IdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for identity source.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#DeleteInactiveApprovalTeamVersion": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#DeleteInactiveApprovalTeamVersionRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#DeleteInactiveApprovalTeamVersionResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to delete an inactive approval team"
+ },
+ "smithy.api#documentation": "Deletes an inactive approval team. For more information, see Team health in the Multi-party approval User Guide.
You can also use this operation to delete a team draft. For more information, see Interacting with drafts in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "DELETE",
+ "uri": "/approval-teams/{Arn}/{VersionId}"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#DeleteInactiveApprovalTeamVersionRequest": {
+ "type": "structure",
+ "members": {
+ "Arn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amaazon Resource Name (ARN) for the team.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "VersionId": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Version ID for the team.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#DeleteInactiveApprovalTeamVersionResponse": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#Description": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 256
+ },
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#Filter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.mpa#FilterField",
+ "traits": {
+ "smithy.api#documentation": "Name of the filter to use.
Supported filters
The supported filters for ListSessions are: ActionName, SessionStatus, and InitationTime.
"
+ }
+ },
+ "Operator": {
+ "target": "com.amazonaws.mpa#Operator",
+ "traits": {
+ "smithy.api#documentation": "Operator to use for filtering.
-
EQ: Equal to the specified value
-
NE: Not equal to the specified value
-
GT: Greater than the specified value
-
LT: Less than the specified value
-
GTE: Greater than or equal to the specified value
-
LTE: Less than or equal to the specified value
-
CONTAINS: Contains the specified value
-
NOT_CONTAINS: Does not contain the specified value
-
BETWEEN: Between two values, inclusive of the specified values.
Supported operators for each filter:
"
+ }
+ },
+ "Value": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Value to use for filtering. For the BETWEEN operator, specify values in the format a AND b (AND is case-insensitive).
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains the filter to apply to requests. You can specify up to 10 filters for a request.
"
+ }
+ },
+ "com.amazonaws.mpa#FilterField": {
+ "type": "enum",
+ "members": {
+ "ACTION_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ActionName"
+ }
+ },
+ "APPROVAL_TEAM_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ApprovalTeamName"
+ }
+ },
+ "VOTING_TIME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "VotingTime"
+ }
+ },
+ "VOTE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Vote"
+ }
+ },
+ "SESSION_STATUS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SessionStatus"
+ }
+ },
+ "INITIATION_TIME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "InitiationTime"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#Filters": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#Filter"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 10
+ }
+ }
+ },
+ "com.amazonaws.mpa#GetApprovalTeam": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#GetApprovalTeamRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#GetApprovalTeamResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to retrieve details for an approval team"
+ },
+ "smithy.api#documentation": "Returns details for an approval team.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "GET",
+ "uri": "/approval-teams/{Arn}"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#GetApprovalTeamRequest": {
+ "type": "structure",
+ "members": {
+ "Arn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the team.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#GetApprovalTeamResponse": {
+ "type": "structure",
+ "members": {
+ "CreationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the team was created.
"
+ }
+ },
+ "ApprovalStrategy": {
+ "target": "com.amazonaws.mpa#ApprovalStrategyResponse",
+ "traits": {
+ "smithy.api#documentation": "An ApprovalStrategyResponse object. Contains details for how the team grants approval.
"
+ }
+ },
+ "NumberOfApprovers": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "Total number of approvers in the team.
"
+ }
+ },
+ "Approvers": {
+ "target": "com.amazonaws.mpa#GetApprovalTeamResponseApprovers",
+ "traits": {
+ "smithy.api#documentation": "An array of GetApprovalTeamResponseApprover objects. Contains details for the approvers in the team.
"
+ }
+ },
+ "Arn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the team.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.mpa#Description",
+ "traits": {
+ "smithy.api#documentation": "Description for the team.
"
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Name of the approval team.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#ApprovalTeamStatus",
+ "traits": {
+ "smithy.api#documentation": "Status for the team. For more information, see Team health in the Multi-party approval User Guide.
"
+ }
+ },
+ "StatusCode": {
+ "target": "com.amazonaws.mpa#ApprovalTeamStatusCode",
+ "traits": {
+ "smithy.api#documentation": "Status code for the approval team. For more information, see Team health in the Multi-party approval User Guide.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.mpa#Message",
+ "traits": {
+ "smithy.api#documentation": "Message describing the status for the team.
"
+ }
+ },
+ "UpdateSessionArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the session.
"
+ }
+ },
+ "VersionId": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Version ID for the team.
"
+ }
+ },
+ "Policies": {
+ "target": "com.amazonaws.mpa#PoliciesReferences",
+ "traits": {
+ "smithy.api#documentation": "An array of PolicyReference objects. Contains a list of policies that define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
"
+ }
+ },
+ "LastUpdateTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the team was last updated.
"
+ }
+ },
+ "PendingUpdate": {
+ "target": "com.amazonaws.mpa#PendingUpdate",
+ "traits": {
+ "smithy.api#documentation": "A PendingUpdate object. Contains details for the pending updates for the team, if applicable.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#GetApprovalTeamResponseApprover": {
+ "type": "structure",
+ "members": {
+ "ApproverId": {
+ "target": "com.amazonaws.mpa#ParticipantId",
+ "traits": {
+ "smithy.api#documentation": "ID for the approver.
"
+ }
+ },
+ "ResponseTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the approver responded to an approval team invitation.
"
+ }
+ },
+ "PrimaryIdentityId": {
+ "target": "com.amazonaws.mpa#IdentityId",
+ "traits": {
+ "smithy.api#documentation": "ID for the user.
"
+ }
+ },
+ "PrimaryIdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.
"
+ }
+ },
+ "PrimaryIdentityStatus": {
+ "target": "com.amazonaws.mpa#IdentityStatus",
+ "traits": {
+ "smithy.api#documentation": "Status for the identity source. For example, if an approver has accepted a team invitation with a user authentication method managed by the identity source.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details for an approver.
"
+ }
+ },
+ "com.amazonaws.mpa#GetApprovalTeamResponseApprovers": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#GetApprovalTeamResponseApprover"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#GetIdentitySource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#GetIdentitySourceRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#GetIdentitySourceResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to retrieve details for an identity source"
+ },
+ "smithy.api#documentation": "Returns details for an identity source. For more information, see Identity Source in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "GET",
+ "uri": "/identity-sources/{IdentitySourceArn}"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#GetIdentitySourceRequest": {
+ "type": "structure",
+ "members": {
+ "IdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the identity source.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#GetIdentitySourceResponse": {
+ "type": "structure",
+ "members": {
+ "IdentitySourceType": {
+ "target": "com.amazonaws.mpa#IdentitySourceType",
+ "traits": {
+ "smithy.api#documentation": "The type of resource that provided identities to the identity source. For example, an IAM Identity Center instance.
"
+ }
+ },
+ "IdentitySourceParameters": {
+ "target": "com.amazonaws.mpa#IdentitySourceParametersForGet",
+ "traits": {
+ "smithy.api#documentation": "A IdentitySourceParameters object. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.
"
+ }
+ },
+ "IdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the identity source.
"
+ }
+ },
+ "CreationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the identity source was created.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#IdentitySourceStatus",
+ "traits": {
+ "smithy.api#documentation": "Status for the identity source. For example, if the identity source is ACTIVE.
"
+ }
+ },
+ "StatusCode": {
+ "target": "com.amazonaws.mpa#IdentitySourceStatusCode",
+ "traits": {
+ "smithy.api#documentation": "Status code of the identity source.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message describing the status for the identity source.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#GetPolicyVersion": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#GetPolicyVersionRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#GetPolicyVersionResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to retrieve details for a policy"
+ },
+ "smithy.api#documentation": "Returns details for the version of a policy. Policies define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "GET",
+ "uri": "/policy-versions/{PolicyVersionArn}"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#GetPolicyVersionRequest": {
+ "type": "structure",
+ "members": {
+ "PolicyVersionArn": {
+ "target": "com.amazonaws.mpa#QualifiedPolicyArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the policy.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#GetPolicyVersionResponse": {
+ "type": "structure",
+ "members": {
+ "PolicyVersion": {
+ "target": "com.amazonaws.mpa#PolicyVersion",
+ "traits": {
+ "smithy.api#documentation": "A PolicyVersion object. Contains details for the version of the policy. Policies define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#GetResourcePolicy": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#GetResourcePolicyRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#GetResourcePolicyResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InvalidParameterException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to retrieve details for a specific resource"
+ },
+ "smithy.api#documentation": "Returns details about a policy for a resource.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/GetResourcePolicy"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#GetResourcePolicyRequest": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the resource.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyName": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Name of the policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyType": {
+ "target": "com.amazonaws.mpa#PolicyType",
+ "traits": {
+ "smithy.api#documentation": "The type of policy.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#GetResourcePolicyResponse": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the resource.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyType": {
+ "target": "com.amazonaws.mpa#PolicyType",
+ "traits": {
+ "smithy.api#documentation": "The type of policy
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyVersionArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the policy version.
"
+ }
+ },
+ "PolicyName": {
+ "target": "com.amazonaws.mpa#PolicyName",
+ "traits": {
+ "smithy.api#documentation": "Name of the policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyDocument": {
+ "target": "com.amazonaws.mpa#PolicyDocument",
+ "traits": {
+ "smithy.api#documentation": "Document that contains the contents for the policy.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#GetSession": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#GetSessionRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#GetSessionResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}",
+ "mpa:RequestedOperation",
+ "mpa:ProtectedResourceAccount"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to retrieve details for an approval session"
+ },
+ "smithy.api#documentation": "Returns details for an approval session. For more information, see Session in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "GET",
+ "uri": "/sessions/{SessionArn}"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#GetSessionRequest": {
+ "type": "structure",
+ "members": {
+ "SessionArn": {
+ "target": "com.amazonaws.mpa#SessionArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the session.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#GetSessionResponse": {
+ "type": "structure",
+ "members": {
+ "SessionArn": {
+ "target": "com.amazonaws.mpa#SessionArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the session.
"
+ }
+ },
+ "ApprovalTeamArn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the approval team.
"
+ }
+ },
+ "ApprovalTeamName": {
+ "target": "com.amazonaws.mpa#ApprovalTeamName",
+ "traits": {
+ "smithy.api#documentation": "Name of the approval team.
"
+ }
+ },
+ "ProtectedResourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the protected operation.
"
+ }
+ },
+ "ApprovalStrategy": {
+ "target": "com.amazonaws.mpa#ApprovalStrategyResponse",
+ "traits": {
+ "smithy.api#documentation": "An ApprovalStrategyResponse object. Contains details for how the team grants approval
"
+ }
+ },
+ "NumberOfApprovers": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "Total number of approvers in the session.
"
+ }
+ },
+ "InitiationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the session was initiated.
"
+ }
+ },
+ "ExpirationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the session will expire.
"
+ }
+ },
+ "CompletionTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the session completed.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.mpa#Description",
+ "traits": {
+ "smithy.api#documentation": "Description for the session.
"
+ }
+ },
+ "Metadata": {
+ "target": "com.amazonaws.mpa#SessionMetadata",
+ "traits": {
+ "smithy.api#documentation": "Metadata for the session.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#SessionStatus",
+ "traits": {
+ "smithy.api#documentation": "Status for the session. For example, if the team has approved the requested operation.
"
+ }
+ },
+ "StatusCode": {
+ "target": "com.amazonaws.mpa#SessionStatusCode",
+ "traits": {
+ "smithy.api#documentation": "Status code of the session.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.mpa#Message",
+ "traits": {
+ "smithy.api#documentation": "Message describing the status for session.
"
+ }
+ },
+ "ExecutionStatus": {
+ "target": "com.amazonaws.mpa#SessionExecutionStatus",
+ "traits": {
+ "smithy.api#documentation": "Status for the protected operation. For example, if the operation is PENDING.
"
+ }
+ },
+ "ActionName": {
+ "target": "com.amazonaws.mpa#ActionName",
+ "traits": {
+ "smithy.api#documentation": "Name of the protected operation.
"
+ }
+ },
+ "RequesterServicePrincipal": {
+ "target": "com.amazonaws.mpa#ServicePrincipal",
+ "traits": {
+ "smithy.api#documentation": " Service principal for the service associated with the protected operation.
"
+ }
+ },
+ "RequesterPrincipalArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": " IAM principal that made the operation request.
"
+ }
+ },
+ "RequesterAccountId": {
+ "target": "com.amazonaws.mpa#AccountId",
+ "traits": {
+ "smithy.api#documentation": "ID for the account that made the operation request.
"
+ }
+ },
+ "RequesterRegion": {
+ "target": "com.amazonaws.mpa#Region",
+ "traits": {
+ "smithy.api#documentation": "Amazon Web Services Region where the operation request originated.
"
+ }
+ },
+ "RequesterComment": {
+ "target": "com.amazonaws.mpa#RequesterComment",
+ "traits": {
+ "smithy.api#documentation": "Message from the account that made the operation request
"
+ }
+ },
+ "ActionCompletionStrategy": {
+ "target": "com.amazonaws.mpa#ActionCompletionStrategy",
+ "traits": {
+ "smithy.api#documentation": "Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL means the operation is automatically executed using the requester's permissions, if approved.
"
+ }
+ },
+ "ApproverResponses": {
+ "target": "com.amazonaws.mpa#GetSessionResponseApproverResponses",
+ "traits": {
+ "smithy.api#documentation": "An array of GetSessionResponseApproverResponse objects. Contains details for approver responses in the session.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#GetSessionResponseApproverResponse": {
+ "type": "structure",
+ "members": {
+ "ApproverId": {
+ "target": "com.amazonaws.mpa#ParticipantId",
+ "traits": {
+ "smithy.api#documentation": "ID for the approver.
"
+ }
+ },
+ "IdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.
"
+ }
+ },
+ "IdentityId": {
+ "target": "com.amazonaws.mpa#IdentityId",
+ "traits": {
+ "smithy.api#documentation": "ID for the identity source. The identity source manages the user authentication for approvers.
"
+ }
+ },
+ "Response": {
+ "target": "com.amazonaws.mpa#SessionResponse",
+ "traits": {
+ "smithy.api#documentation": "Response to the operation request.
"
+ }
+ },
+ "ResponseTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when a approver responded to the operation request.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details for an approver response in an approval session.
",
+ "smithy.api#references": [
+ {
+ "resource": "com.amazonaws.mpa#IdentitySource"
+ }
+ ]
+ }
+ },
+ "com.amazonaws.mpa#GetSessionResponseApproverResponses": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#GetSessionResponseApproverResponse"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#IamIdentityCenter": {
+ "type": "structure",
+ "members": {
+ "InstanceArn": {
+ "target": "com.amazonaws.mpa#IdcInstanceArn",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the IAM Identity Center instance.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Region": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Web Services Region where the IAM Identity Center instance is located.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "IAM Identity Center credentials. For more information see, IAM Identity Center .
"
+ }
+ },
+ "com.amazonaws.mpa#IamIdentityCenterForGet": {
+ "type": "structure",
+ "members": {
+ "InstanceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the IAM Identity Center instance.
"
+ }
+ },
+ "ApprovalPortalUrl": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "URL for the approval portal associated with the IAM Identity Center instance.
"
+ }
+ },
+ "Region": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Web Services Region where the IAM Identity Center instance is located.
"
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "IAM Identity Center credentials. For more information see, IAM Identity Center .
"
+ }
+ },
+ "com.amazonaws.mpa#IamIdentityCenterForList": {
+ "type": "structure",
+ "members": {
+ "InstanceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the IAM Identity Center instance.
"
+ }
+ },
+ "ApprovalPortalUrl": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "URL for the approval portal associated with the IAM Identity Center instance.
"
+ }
+ },
+ "Region": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Web Services Region where the IAM Identity Center instance is located.
"
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "IAM Identity Center credentials. For more information see, IAM Identity Center .
"
+ }
+ },
+ "com.amazonaws.mpa#IdcInstanceArn": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 20,
+ "max": 2048
+ },
+ "smithy.api#pattern": "^arn:.+:sso:::instance/(?:sso)?ins-[a-zA-Z0-9-.]{16}$"
+ }
+ },
+ "com.amazonaws.mpa#IdentityId": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 100
+ }
+ }
+ },
+ "com.amazonaws.mpa#IdentitySource": {
+ "type": "resource",
+ "identifiers": {
+ "IdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String"
+ }
+ },
+ "create": {
+ "target": "com.amazonaws.mpa#CreateIdentitySource"
+ },
+ "read": {
+ "target": "com.amazonaws.mpa#GetIdentitySource"
+ },
+ "delete": {
+ "target": "com.amazonaws.mpa#DeleteIdentitySource"
+ },
+ "list": {
+ "target": "com.amazonaws.mpa#ListIdentitySources"
+ },
+ "traits": {
+ "aws.api#arn": {
+ "template": "identity-source/{IdentitySourceArn}"
+ },
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamResource": {
+ "name": "identity-source",
+ "relativeDocumentation": "mpa-concepts.html"
+ },
+ "smithy.api#documentation": "Represents an association with an IAM Identity Center instance that manages the user authentication for approvers"
+ }
+ },
+ "com.amazonaws.mpa#IdentitySourceForList": {
+ "type": "structure",
+ "members": {
+ "IdentitySourceType": {
+ "target": "com.amazonaws.mpa#IdentitySourceType",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "The type of resource that provided identities to the identity source. For example, an IAM Identity Center instance.
"
+ }
+ },
+ "IdentitySourceParameters": {
+ "target": "com.amazonaws.mpa#IdentitySourceParametersForList",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "A IdentitySourceParametersForList object. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.
"
+ }
+ },
+ "IdentitySourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the identity source.
"
+ }
+ },
+ "CreationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Timestamp when the identity source was created.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#IdentitySourceStatus",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Status for the identity source. For example, if the identity source is ACTIVE.
"
+ }
+ },
+ "StatusCode": {
+ "target": "com.amazonaws.mpa#IdentitySourceStatusCode",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Status code of the identity source.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Message describing the status for the identity source.
"
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Contains details for an identity source. For more information, see Identity source in the Multi-party approval User Guide.
"
+ }
+ },
+ "com.amazonaws.mpa#IdentitySourceParameters": {
+ "type": "structure",
+ "members": {
+ "IamIdentityCenter": {
+ "target": "com.amazonaws.mpa#IamIdentityCenter",
+ "traits": {
+ "smithy.api#documentation": "IAM Identity Center credentials.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.
"
+ }
+ },
+ "com.amazonaws.mpa#IdentitySourceParametersForGet": {
+ "type": "union",
+ "members": {
+ "IamIdentityCenter": {
+ "target": "com.amazonaws.mpa#IamIdentityCenterForGet",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "IAM Identity Center credentials.
"
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance. For more information, see Identity source in the Multi-party approval User Guide.
"
+ }
+ },
+ "com.amazonaws.mpa#IdentitySourceParametersForList": {
+ "type": "union",
+ "members": {
+ "IamIdentityCenter": {
+ "target": "com.amazonaws.mpa#IamIdentityCenterForList",
+ "traits": {
+ "smithy.api#documentation": "IAM Identity Center credentials.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance. For more information, see Identity source in the Multi-party approval User Guide.
"
+ }
+ },
+ "com.amazonaws.mpa#IdentitySourceStatus": {
+ "type": "enum",
+ "members": {
+ "CREATING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CREATING"
+ }
+ },
+ "ACTIVE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACTIVE"
+ }
+ },
+ "DELETING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETING"
+ }
+ },
+ "ERROR": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ERROR"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#IdentitySourceStatusCode": {
+ "type": "enum",
+ "members": {
+ "ACCESS_DENIED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACCESS_DENIED"
+ }
+ },
+ "DELETION_FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETION_FAILED"
+ }
+ },
+ "IDC_INSTANCE_NOT_FOUND": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "IDC_INSTANCE_NOT_FOUND"
+ }
+ },
+ "IDC_INSTANCE_NOT_VALID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "IDC_INSTANCE_NOT_VALID"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#IdentitySourceType": {
+ "type": "enum",
+ "members": {
+ "IAM_IDENTITY_CENTER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "IAM_IDENTITY_CENTER"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#IdentitySources": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#IdentitySourceForList",
+ "traits": {
+ "aws.api#data": "usage"
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#IdentityStatus": {
+ "type": "enum",
+ "members": {
+ "PENDING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING"
+ }
+ },
+ "ACCEPTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACCEPTED"
+ }
+ },
+ "REJECTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "REJECTED"
+ }
+ },
+ "INVALID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "INVALID"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#InternalServerException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the InternalServerException error.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.
",
+ "smithy.api#error": "server",
+ "smithy.api#httpError": 500,
+ "smithy.api#retryable": {}
+ }
+ },
+ "com.amazonaws.mpa#InvalidParameterException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the InvalidParameterException error.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request contains an invalid parameter value.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 400
+ }
+ },
+ "com.amazonaws.mpa#IsoTimestamp": {
+ "type": "timestamp",
+ "traits": {
+ "smithy.api#timestampFormat": "date-time"
+ }
+ },
+ "com.amazonaws.mpa#ListApprovalTeams": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#ListApprovalTeamsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#ListApprovalTeamsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to list approval teams"
+ },
+ "smithy.api#documentation": "Returns a list of approval teams.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/approval-teams/?List"
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "pageSize": "MaxResults",
+ "items": "ApprovalTeams"
+ },
+ "smithy.api#readonly": {},
+ "smithy.test#smokeTests": [
+ {
+ "id": "ListApprovalTeamsSuccess",
+ "params": {},
+ "expect": {
+ "success": {}
+ },
+ "vendorParamsShape": "aws.test#AwsVendorParams",
+ "vendorParams": {
+ "region": "us-east-1"
+ }
+ }
+ ]
+ }
+ },
+ "com.amazonaws.mpa#ListApprovalTeamsRequest": {
+ "type": "structure",
+ "members": {
+ "MaxResults": {
+ "target": "com.amazonaws.mpa#MaxResults",
+ "traits": {
+ "smithy.api#default": 20,
+ "smithy.api#documentation": "The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#ListApprovalTeamsResponse": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
"
+ }
+ },
+ "ApprovalTeams": {
+ "target": "com.amazonaws.mpa#ListApprovalTeamsResponseApprovalTeams",
+ "traits": {
+ "smithy.api#documentation": "An array of ListApprovalTeamsResponseApprovalTeam objects. Contains details for approval teams.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#ListApprovalTeamsResponseApprovalTeam": {
+ "type": "structure",
+ "members": {
+ "CreationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the team was created.
"
+ }
+ },
+ "ApprovalStrategy": {
+ "target": "com.amazonaws.mpa#ApprovalStrategyResponse",
+ "traits": {
+ "smithy.api#documentation": "An ApprovalStrategyResponse object. Contains details for how an approval team grants approval.
"
+ }
+ },
+ "NumberOfApprovers": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "Total number of approvers in the team.
"
+ }
+ },
+ "Arn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the team.
"
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.mpa#ApprovalTeamName",
+ "traits": {
+ "smithy.api#documentation": "Name of the team.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.mpa#Description",
+ "traits": {
+ "smithy.api#documentation": "Description for the team.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#ApprovalTeamStatus",
+ "traits": {
+ "smithy.api#documentation": "Status for the team. For more information, see Team health in the Multi-party approval User Guide.
"
+ }
+ },
+ "StatusCode": {
+ "target": "com.amazonaws.mpa#ApprovalTeamStatusCode",
+ "traits": {
+ "smithy.api#documentation": "Status code for the team. For more information, see Team health in the Multi-party approval User Guide.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.mpa#Message",
+ "traits": {
+ "smithy.api#documentation": "Message describing the status for the team.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details for an approval team
"
+ }
+ },
+ "com.amazonaws.mpa#ListApprovalTeamsResponseApprovalTeams": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#ListApprovalTeamsResponseApprovalTeam"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#ListIdentitySources": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#ListIdentitySourcesRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#ListIdentitySourcesResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to list identity sources"
+ },
+ "smithy.api#documentation": "Returns a list of identity sources. For more information, see Identity Source in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/identity-sources/?List"
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "pageSize": "MaxResults",
+ "items": "IdentitySources"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#ListIdentitySourcesRequest": {
+ "type": "structure",
+ "members": {
+ "MaxResults": {
+ "target": "com.amazonaws.mpa#MaxResults",
+ "traits": {
+ "smithy.api#default": 20,
+ "smithy.api#documentation": "The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#ListIdentitySourcesResponse": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
"
+ }
+ },
+ "IdentitySources": {
+ "target": "com.amazonaws.mpa#IdentitySources",
+ "traits": {
+ "smithy.api#documentation": "A IdentitySources. Contains details for identity sources.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#ListPolicies": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#ListPoliciesRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#ListPoliciesResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to list policies"
+ },
+ "smithy.api#documentation": "Returns a list of policies. Policies define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/policies/?List"
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "pageSize": "MaxResults",
+ "items": "Policies"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#ListPoliciesRequest": {
+ "type": "structure",
+ "members": {
+ "MaxResults": {
+ "target": "com.amazonaws.mpa#MaxResults",
+ "traits": {
+ "smithy.api#default": 20,
+ "smithy.api#documentation": "The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#ListPoliciesResponse": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
"
+ }
+ },
+ "Policies": {
+ "target": "com.amazonaws.mpa#Policies",
+ "traits": {
+ "smithy.api#documentation": "An array of Policy objects. Contains a list of policies that define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#ListPolicyVersions": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#ListPolicyVersionsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#ListPolicyVersionsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to list the versions for policies"
+ },
+ "smithy.api#documentation": "Returns a list of the versions for policies. Policies define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/policies/{PolicyArn}/?List"
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "pageSize": "MaxResults",
+ "items": "PolicyVersions"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#ListPolicyVersionsRequest": {
+ "type": "structure",
+ "members": {
+ "MaxResults": {
+ "target": "com.amazonaws.mpa#MaxResults",
+ "traits": {
+ "smithy.api#default": 20,
+ "smithy.api#documentation": "The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ },
+ "PolicyArn": {
+ "target": "com.amazonaws.mpa#UnqualifiedPolicyArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the policy.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#ListPolicyVersionsResponse": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
"
+ }
+ },
+ "PolicyVersions": {
+ "target": "com.amazonaws.mpa#PolicyVersions",
+ "traits": {
+ "smithy.api#documentation": "An array of PolicyVersionSummary objects. Contains details for the version of the policies that define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#ListResourcePolicies": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#ListResourcePoliciesRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#ListResourcePoliciesResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to list policies for a resource"
+ },
+ "smithy.api#documentation": "Returns a list of policies for a resource.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/resource-policies/{ResourceArn}/?List"
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "pageSize": "MaxResults",
+ "items": "ResourcePolicies"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#ListResourcePoliciesRequest": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the resource.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.mpa#MaxResults",
+ "traits": {
+ "smithy.api#default": 20,
+ "smithy.api#documentation": "The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#ListResourcePoliciesResponse": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
"
+ }
+ },
+ "ResourcePolicies": {
+ "target": "com.amazonaws.mpa#ListResourcePoliciesResponseResourcePolicies",
+ "traits": {
+ "smithy.api#documentation": "An array of ListResourcePoliciesResponseResourcePolicy objects. Contains details about the policy for the resource.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#ListResourcePoliciesResponseResourcePolicies": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#ListResourcePoliciesResponseResourcePolicy"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "max": 100
+ }
+ }
+ },
+ "com.amazonaws.mpa#ListResourcePoliciesResponseResourcePolicy": {
+ "type": "structure",
+ "members": {
+ "PolicyArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for policy.
"
+ }
+ },
+ "PolicyType": {
+ "target": "com.amazonaws.mpa#PolicyType",
+ "traits": {
+ "smithy.api#documentation": "The type of policy.
"
+ }
+ },
+ "PolicyName": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Name of the policy.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details about a policy for a resource.
"
+ }
+ },
+ "com.amazonaws.mpa#ListSessions": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#ListSessionsRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#ListSessionsResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to list approval sessions"
+ },
+ "smithy.api#documentation": "Returns a list of approval sessions. For more information, see Session in the Multi-party approval User Guide.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/approval-teams/{ApprovalTeamArn}/sessions/?List"
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "pageSize": "MaxResults",
+ "items": "Sessions"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#ListSessionsRequest": {
+ "type": "structure",
+ "members": {
+ "ApprovalTeamArn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the approval team.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.mpa#MaxResults",
+ "traits": {
+ "smithy.api#default": 20,
+ "smithy.api#documentation": "The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
"
+ }
+ },
+ "Filters": {
+ "target": "com.amazonaws.mpa#Filters",
+ "traits": {
+ "smithy.api#documentation": "An array of Filter objects. Contains the filter to apply when listing sessions.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#ListSessionsResponse": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.mpa#Token",
+ "traits": {
+ "smithy.api#documentation": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.
"
+ }
+ },
+ "Sessions": {
+ "target": "com.amazonaws.mpa#ListSessionsResponseSessions",
+ "traits": {
+ "smithy.api#documentation": "An array of ListSessionsResponseSession objects. Contains details for the sessions.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#ListSessionsResponseSession": {
+ "type": "structure",
+ "members": {
+ "SessionArn": {
+ "target": "com.amazonaws.mpa#SessionArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the session.
"
+ }
+ },
+ "ApprovalTeamName": {
+ "target": "com.amazonaws.mpa#ApprovalTeamName",
+ "traits": {
+ "smithy.api#documentation": "Name of the approval team.
"
+ }
+ },
+ "ApprovalTeamArn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the approval team.
"
+ }
+ },
+ "InitiationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the session was initiated.
"
+ }
+ },
+ "ExpirationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the session was expire.
"
+ }
+ },
+ "CompletionTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the session was completed.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.mpa#Description",
+ "traits": {
+ "smithy.api#documentation": "Description for the team.
"
+ }
+ },
+ "ActionName": {
+ "target": "com.amazonaws.mpa#ActionName",
+ "traits": {
+ "smithy.api#documentation": "Name of the protected operation.
"
+ }
+ },
+ "ProtectedResourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the protected operation.
"
+ }
+ },
+ "RequesterServicePrincipal": {
+ "target": "com.amazonaws.mpa#ServicePrincipal",
+ "traits": {
+ "smithy.api#documentation": " Service principal for the service associated with the protected operation.
"
+ }
+ },
+ "RequesterPrincipalArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": " IAM principal that made the operation request.
"
+ }
+ },
+ "RequesterRegion": {
+ "target": "com.amazonaws.mpa#Region",
+ "traits": {
+ "smithy.api#documentation": "Amazon Web Services Region where the operation request originated.
"
+ }
+ },
+ "RequesterAccountId": {
+ "target": "com.amazonaws.mpa#AccountId",
+ "traits": {
+ "smithy.api#documentation": "ID for the account that made the operation request.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#SessionStatus",
+ "traits": {
+ "smithy.api#documentation": "Status for the protected operation. For example, if the operation is PENDING.
"
+ }
+ },
+ "StatusCode": {
+ "target": "com.amazonaws.mpa#SessionStatusCode",
+ "traits": {
+ "smithy.api#documentation": "Status code of the session.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.mpa#Message",
+ "traits": {
+ "smithy.api#documentation": "Message describing the status for session.
"
+ }
+ },
+ "ActionCompletionStrategy": {
+ "target": "com.amazonaws.mpa#ActionCompletionStrategy",
+ "traits": {
+ "smithy.api#documentation": "Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL means the operation is executed automatically using the requester's permissions, if approved.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains details for an approval session. For more information, see Session in the Multi-party approval User Guide
"
+ }
+ },
+ "com.amazonaws.mpa#ListSessionsResponseSessions": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#ListSessionsResponseSession"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#ListTagsForResource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#ListTagsForResourceRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#ListTagsForResourceResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to list tags for a resource"
+ },
+ "smithy.api#documentation": "Returns a list of the tags for a resource.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "GET",
+ "uri": "/tags/{ResourceArn}"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.mpa#ListTagsForResourceRequest": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the resource.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#ListTagsForResourceResponse": {
+ "type": "structure",
+ "members": {
+ "Tags": {
+ "target": "com.amazonaws.mpa#Tags",
+ "traits": {
+ "smithy.api#documentation": "Tags attached to the resource.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#MaxResults": {
+ "type": "integer",
+ "traits": {
+ "smithy.api#range": {
+ "min": 1,
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#Message": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "max": 500
+ }
+ }
+ },
+ "com.amazonaws.mpa#MofNApprovalStrategy": {
+ "type": "structure",
+ "members": {
+ "MinApprovalsRequired": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "Minimum number of approvals (M) required for a total number of approvers (N).
",
+ "smithy.api#range": {
+ "min": 1
+ },
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Strategy for how an approval team grants approval.
"
+ }
+ },
+ "com.amazonaws.mpa#Operator": {
+ "type": "enum",
+ "members": {
+ "EQUALS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "EQ"
+ }
+ },
+ "NOT_EQUALS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "NE"
+ }
+ },
+ "GREATER_THAN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "GT"
+ }
+ },
+ "LESS_THAN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "LT"
+ }
+ },
+ "GREATER_THAN_OR_EQUAL_TO": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "GTE"
+ }
+ },
+ "LESS_THAN_OR_EQUAL_TO": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "LTE"
+ }
+ },
+ "CONTAINS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CONTAINS"
+ }
+ },
+ "DOES_NOT_CONTAIN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "NOT_CONTAINS"
+ }
+ },
+ "BETWEEN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "BETWEEN"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#ParticipantId": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 100
+ }
+ }
+ },
+ "com.amazonaws.mpa#PendingUpdate": {
+ "type": "structure",
+ "members": {
+ "VersionId": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Version ID for the team.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Description for the team.
"
+ }
+ },
+ "ApprovalStrategy": {
+ "target": "com.amazonaws.mpa#ApprovalStrategyResponse",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "An ApprovalStrategyResponse object. Contains details for how the team grants approval.
"
+ }
+ },
+ "NumberOfApprovers": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Total number of approvers in the team.
"
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#ApprovalTeamStatus",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Status for the team. For more information, see Team health in the Multi-party approval User Guide.
"
+ }
+ },
+ "StatusCode": {
+ "target": "com.amazonaws.mpa#ApprovalTeamStatusCode",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Status code for the update. For more information, see Team health in the Multi-party approval User Guide.
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.mpa#Message",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Message describing the status for the team.
"
+ }
+ },
+ "Approvers": {
+ "target": "com.amazonaws.mpa#GetApprovalTeamResponseApprovers",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "An array of GetApprovalTeamResponseApprover objects. Contains details for the approvers in the team.
"
+ }
+ },
+ "UpdateInitiationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the update request was initiated.
"
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Contains details for the pending updates for an approval team, if applicable.
"
+ }
+ },
+ "com.amazonaws.mpa#Policies": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#Policy",
+ "traits": {
+ "aws.api#data": "usage"
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#PoliciesReferences": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#PolicyReference"
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 10
+ }
+ }
+ },
+ "com.amazonaws.mpa#Policy": {
+ "type": "structure",
+ "members": {
+ "Arn": {
+ "target": "com.amazonaws.mpa#UnqualifiedPolicyArn",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "DefaultVersion": {
+ "target": "com.amazonaws.mpa#PolicyVersionId",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Determines if the specified policy is the default for the team.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyType": {
+ "target": "com.amazonaws.mpa#PolicyType",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "The type of policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.mpa#PolicyName",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Name of the policy.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Contains details for a policy. Policies define what operations a team that define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
"
+ }
+ },
+ "com.amazonaws.mpa#PolicyDocument": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 400000
+ },
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#PolicyName": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 64
+ }
+ }
+ },
+ "com.amazonaws.mpa#PolicyReference": {
+ "type": "structure",
+ "members": {
+ "PolicyArn": {
+ "target": "com.amazonaws.mpa#QualifiedPolicyArn",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the policy.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Contains the Amazon Resource Name (ARN) for a policy. Policies define what operations a team that define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
"
+ }
+ },
+ "com.amazonaws.mpa#PolicyStatus": {
+ "type": "enum",
+ "members": {
+ "ATTACHABLE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ATTACHABLE"
+ }
+ },
+ "DEPRECATED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DEPRECATED"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#PolicyType": {
+ "type": "enum",
+ "members": {
+ "AWS_MANAGED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "AWS_MANAGED"
+ }
+ },
+ "AWS_RAM": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "AWS_RAM"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#PolicyVersion": {
+ "type": "structure",
+ "members": {
+ "Arn": {
+ "target": "com.amazonaws.mpa#QualifiedPolicyArn",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the team.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyArn": {
+ "target": "com.amazonaws.mpa#UnqualifiedPolicyArn",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "VersionId": {
+ "target": "com.amazonaws.mpa#PolicyVersionId",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Verison ID
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyType": {
+ "target": "com.amazonaws.mpa#PolicyType",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "The type of policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "IsDefault": {
+ "target": "smithy.api#Boolean",
+ "traits": {
+ "smithy.api#documentation": "Determines if the specified policy is the default for the team.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.mpa#PolicyName",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Name of the policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#PolicyStatus",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Status for the policy. For example, if the policy is attachable or deprecated.
",
+ "smithy.api#required": {}
+ }
+ },
+ "CreationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the policy was created.
",
+ "smithy.api#required": {}
+ }
+ },
+ "LastUpdatedTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the policy was last updated.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Document": {
+ "target": "com.amazonaws.mpa#PolicyDocument",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Document that contains the policy contents.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Contains details for the version of a policy. Policies define what operations a team that define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
"
+ }
+ },
+ "com.amazonaws.mpa#PolicyVersionId": {
+ "type": "integer",
+ "traits": {
+ "smithy.api#range": {
+ "min": 1
+ }
+ }
+ },
+ "com.amazonaws.mpa#PolicyVersionSummary": {
+ "type": "structure",
+ "members": {
+ "Arn": {
+ "target": "com.amazonaws.mpa#QualifiedPolicyArn",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the team.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyArn": {
+ "target": "com.amazonaws.mpa#UnqualifiedPolicyArn",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "VersionId": {
+ "target": "com.amazonaws.mpa#PolicyVersionId",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Version ID for the policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "PolicyType": {
+ "target": "com.amazonaws.mpa#PolicyType",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "The type of policy.
",
+ "smithy.api#required": {}
+ }
+ },
+ "IsDefault": {
+ "target": "smithy.api#Boolean",
+ "traits": {
+ "smithy.api#documentation": "Determines if the specified policy is the default for the team.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.mpa#PolicyName",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Name of the policy
",
+ "smithy.api#required": {}
+ }
+ },
+ "Status": {
+ "target": "com.amazonaws.mpa#PolicyStatus",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Status for the policy. For example, if the policy is attachable or deprecated.
",
+ "smithy.api#required": {}
+ }
+ },
+ "CreationTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the policy was created.
",
+ "smithy.api#required": {}
+ }
+ },
+ "LastUpdatedTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the policy was last updated.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#documentation": "Contains details for the version of a policy. Policies define what operations a team that define the permissions for team resources.
The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.
"
+ }
+ },
+ "com.amazonaws.mpa#PolicyVersions": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#PolicyVersionSummary",
+ "traits": {
+ "aws.api#data": "usage"
+ }
+ },
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 20
+ }
+ }
+ },
+ "com.amazonaws.mpa#QualifiedPolicyArn": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 1224
+ },
+ "smithy.api#pattern": "^arn:.{1,63}:mpa:::aws:policy/[a-zA-Z0-9_\\.-]{1,1023}/[a-zA-Z0-9_\\.-]{1,1023}/(?:[\\d]+|\\$DEFAULT)$"
+ }
+ },
+ "com.amazonaws.mpa#Region": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "max": 100
+ }
+ }
+ },
+ "com.amazonaws.mpa#RequesterComment": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 200
+ },
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#ResourceNotFoundException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the ResourceNotFoundException error.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The specified resource doesn't exist. Check the resource ID, and try again.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 404
+ }
+ },
+ "com.amazonaws.mpa#ServicePrincipal": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 100
+ }
+ }
+ },
+ "com.amazonaws.mpa#ServiceQuotaExceededException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the ServiceQuotaExceededException error.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request exceeds the service quota for your account. Request a quota increase or reduce your request size.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 402
+ }
+ },
+ "com.amazonaws.mpa#Session": {
+ "type": "resource",
+ "identifiers": {
+ "SessionArn": {
+ "target": "com.amazonaws.mpa#SessionArn"
+ }
+ },
+ "read": {
+ "target": "com.amazonaws.mpa#GetSession"
+ },
+ "update": {
+ "target": "com.amazonaws.mpa#CancelSession"
+ },
+ "list": {
+ "target": "com.amazonaws.mpa#ListSessions"
+ },
+ "traits": {
+ "aws.api#arn": {
+ "template": "session/{SessionArn}"
+ },
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamResource": {
+ "name": "session",
+ "relativeDocumentation": "mpa-concepts.html"
+ },
+ "smithy.api#documentation": "Represents an approval workflow that is initiated when a request is made to execute a protected operation"
+ }
+ },
+ "com.amazonaws.mpa#SessionArn": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 20,
+ "max": 2048
+ },
+ "smithy.api#pattern": "^arn:aws(-[^:]+)?:mpa:[a-z0-9-]{1,20}:[0-9]{12}:session/[a-zA-Z0-9._-]+/[a-zA-Z0-9_-]+$"
+ }
+ },
+ "com.amazonaws.mpa#SessionExecutionStatus": {
+ "type": "enum",
+ "members": {
+ "EXECUTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "EXECUTED"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED"
+ }
+ },
+ "PENDING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#SessionKey": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 100
+ },
+ "smithy.api#pattern": "^[a-zA-Z0-9\\p{P}]*$",
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#SessionMetadata": {
+ "type": "map",
+ "key": {
+ "target": "com.amazonaws.mpa#SessionKey"
+ },
+ "value": {
+ "target": "com.amazonaws.mpa#SessionValue"
+ },
+ "traits": {
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#SessionResponse": {
+ "type": "enum",
+ "members": {
+ "APPROVED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "APPROVED"
+ }
+ },
+ "REJECTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "REJECTED"
+ }
+ },
+ "NO_RESPONSE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "NO_RESPONSE"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#SessionStatus": {
+ "type": "enum",
+ "members": {
+ "PENDING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING"
+ }
+ },
+ "CANCELLED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CANCELLED"
+ }
+ },
+ "APPROVED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "APPROVED"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED"
+ }
+ },
+ "CREATING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CREATING"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#SessionStatusCode": {
+ "type": "enum",
+ "members": {
+ "REJECTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "REJECTED"
+ }
+ },
+ "EXPIRED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "EXPIRED"
+ }
+ },
+ "CONFIGURATION_CHANGED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CONFIGURATION_CHANGED"
+ }
+ }
+ }
+ },
+ "com.amazonaws.mpa#SessionValue": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 200
+ },
+ "smithy.api#pattern": "^[a-zA-Z0-9\\p{P}]*$",
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#StartActiveApprovalTeamDeletion": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#StartActiveApprovalTeamDeletionRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#StartActiveApprovalTeamDeletionResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to start the deletion process for an active approval team"
+ },
+ "smithy.api#documentation": "Starts the deletion process for an active approval team.
Deletions require team approval
Requests to delete an active team must be approved by the team.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/approval-teams/{Arn}?Delete"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#StartActiveApprovalTeamDeletionRequest": {
+ "type": "structure",
+ "members": {
+ "PendingWindowDays": {
+ "target": "smithy.api#Integer",
+ "traits": {
+ "smithy.api#documentation": "Number of days between when the team approves the delete request and when the team is deleted.
"
+ }
+ },
+ "Arn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the team.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#StartActiveApprovalTeamDeletionResponse": {
+ "type": "structure",
+ "members": {
+ "DeletionCompletionTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the deletion process is scheduled to complete.
"
+ }
+ },
+ "DeletionStartTime": {
+ "target": "com.amazonaws.mpa#IsoTimestamp",
+ "traits": {
+ "smithy.api#documentation": "Timestamp when the deletion process was initiated.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#String": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "max": 1000
+ }
+ }
+ },
+ "com.amazonaws.mpa#TagKey": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "tagging",
+ "smithy.api#length": {
+ "min": 1,
+ "max": 128
+ },
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#TagKeyList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.mpa#TagKey"
+ },
+ "traits": {
+ "aws.api#data": "tagging",
+ "smithy.api#length": {
+ "min": 0,
+ "max": 50
+ },
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#TagResource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#TagResourceRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#TagResourceResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#TooManyTagsException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}",
+ "aws:RequestTag/${TagKey}",
+ "aws:TagKeys"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to tag a resource"
+ },
+ "smithy.api#documentation": "Creates or updates a resource tag. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "PUT",
+ "uri": "/tags/{ResourceArn}"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#TagResourceRequest": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the resource you want to tag.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "Tags": {
+ "target": "com.amazonaws.mpa#Tags",
+ "traits": {
+ "smithy.api#documentation": "Tags that you have added to the specified resource.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#TagResourceResponse": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#TagValue": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "tagging",
+ "smithy.api#length": {
+ "min": 0,
+ "max": 256
+ },
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#Tags": {
+ "type": "map",
+ "key": {
+ "target": "com.amazonaws.mpa#TagKey"
+ },
+ "value": {
+ "target": "com.amazonaws.mpa#TagValue"
+ },
+ "traits": {
+ "smithy.api#sensitive": {}
+ }
+ },
+ "com.amazonaws.mpa#ThrottlingException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the ThrottlingException error.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request was denied due to request throttling.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 429
+ }
+ },
+ "com.amazonaws.mpa#Token": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "max": 4096
+ }
+ }
+ },
+ "com.amazonaws.mpa#TooManyTagsException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the TooManyTagsException error.
",
+ "smithy.api#required": {}
+ }
+ },
+ "ResourceName": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Name of the resource for the TooManyTagsException error.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request exceeds the maximum number of tags allowed for this resource. Remove some tags, and try again.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 400
+ }
+ },
+ "com.amazonaws.mpa#UnqualifiedPolicyArn": {
+ "type": "string",
+ "traits": {
+ "aws.api#data": "usage",
+ "smithy.api#length": {
+ "max": 1224
+ },
+ "smithy.api#pattern": "^arn:.{1,63}:mpa:::aws:policy/[a-zA-Z0-9_\\.-]{1,1023}/[a-zA-Z0-9_\\.-]{1,1023}$"
+ }
+ },
+ "com.amazonaws.mpa#UntagResource": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#UntagResourceRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#UntagResourceResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}",
+ "aws:TagKeys"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to untag a resource"
+ },
+ "smithy.api#documentation": "Removes a resource tag. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "POST",
+ "uri": "/tags/{ResourceArn}"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#UntagResourceRequest": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the resource you want to untag.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "TagKeys": {
+ "target": "com.amazonaws.mpa#TagKeyList",
+ "traits": {
+ "smithy.api#documentation": "Array of tag key-value pairs that you want to untag.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#UntagResourceResponse": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#UpdateApprovalTeam": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.mpa#UpdateApprovalTeamRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.mpa#UpdateApprovalTeamResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.mpa#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.mpa#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ServiceQuotaExceededException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.mpa#ValidationException"
+ }
+ ],
+ "traits": {
+ "aws.iam#conditionKeys": [
+ "aws:ResourceTag/${TagKey}"
+ ],
+ "aws.iam#iamAction": {
+ "documentation": "Grants permission to update approval team"
+ },
+ "smithy.api#documentation": "Updates an approval team. You can request to update the team description, approval threshold, and approvers in the team.
Updates require team approval
Updates to an active team must be approved by the team.
",
+ "smithy.api#http": {
+ "code": 200,
+ "method": "PATCH",
+ "uri": "/approval-teams/{Arn}"
+ },
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.mpa#UpdateApprovalTeamRequest": {
+ "type": "structure",
+ "members": {
+ "ApprovalStrategy": {
+ "target": "com.amazonaws.mpa#ApprovalStrategy",
+ "traits": {
+ "smithy.api#documentation": "An ApprovalStrategy object. Contains details for how the team grants approval.
"
+ }
+ },
+ "Approvers": {
+ "target": "com.amazonaws.mpa#ApprovalTeamRequestApprovers",
+ "traits": {
+ "smithy.api#documentation": "An array of ApprovalTeamRequestApprover objects. Contains details for the approvers in the team.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.mpa#Description",
+ "traits": {
+ "smithy.api#documentation": "Description for the team.
"
+ }
+ },
+ "Arn": {
+ "target": "com.amazonaws.mpa#ApprovalTeamArn",
+ "traits": {
+ "smithy.api#documentation": "Amazon Resource Name (ARN) for the team.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.mpa#UpdateApprovalTeamResponse": {
+ "type": "structure",
+ "members": {
+ "VersionId": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Version ID for the team that was created. When an approval team is updated, the version ID changes.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.mpa#ValidationException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.mpa#String",
+ "traits": {
+ "smithy.api#documentation": "Message for the ValidationException error.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The input fails to satisfy the constraints specified by an Amazon Web Services service.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 400
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/codegen/sdk-codegen/aws-models/network-firewall.json b/codegen/sdk-codegen/aws-models/network-firewall.json
index 254a05bcb91..8ba70e13a4f 100644
--- a/codegen/sdk-codegen/aws-models/network-firewall.json
+++ b/codegen/sdk-codegen/aws-models/network-firewall.json
@@ -29,6 +29,16 @@
]
},
"shapes": {
+ "com.amazonaws.networkfirewall#AWSAccountId": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 12,
+ "max": 12
+ },
+ "smithy.api#pattern": "^\\d{12}$"
+ }
+ },
"com.amazonaws.networkfirewall#AZSyncState": {
"type": "structure",
"members": {
@@ -40,6 +50,69 @@
"smithy.api#documentation": "The status of the firewall endpoint defined by a VpcEndpointAssociation.
"
}
},
+ "com.amazonaws.networkfirewall#AcceptNetworkFirewallTransitGatewayAttachment": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.networkfirewall#AcceptNetworkFirewallTransitGatewayAttachmentRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.networkfirewall#AcceptNetworkFirewallTransitGatewayAttachmentResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.networkfirewall#InternalServerError"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ThrottlingException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Accepts a transit gateway attachment request for Network Firewall. When you accept the attachment request, Network Firewall creates the necessary routing components to enable traffic flow between the transit gateway and firewall endpoints.
\n You must accept a transit gateway attachment to complete the creation of a transit gateway-attached firewall, unless auto-accept is enabled on the transit gateway. After acceptance, use DescribeFirewall to verify the firewall status.
\n To reject an attachment instead of accepting it, use RejectNetworkFirewallTransitGatewayAttachment.
\n \n It can take several minutes for the attachment acceptance to complete and the firewall to become available.
\n "
+ }
+ },
+ "com.amazonaws.networkfirewall#AcceptNetworkFirewallTransitGatewayAttachmentRequest": {
+ "type": "structure",
+ "members": {
+ "TransitGatewayAttachmentId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentId",
+ "traits": {
+ "smithy.api#documentation": "Required. The unique identifier of the transit gateway attachment to accept. This ID is returned in the response when creating a transit gateway-attached firewall.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.networkfirewall#AcceptNetworkFirewallTransitGatewayAttachmentResponse": {
+ "type": "structure",
+ "members": {
+ "TransitGatewayAttachmentId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentId",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the transit gateway attachment that was accepted.
",
+ "smithy.api#required": {}
+ }
+ },
+ "TransitGatewayAttachmentStatus": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the transit gateway attachment. Valid values are:
\n \n - \n
\n CREATING - The attachment is being created
\n \n - \n
\n DELETING - The attachment is being deleted
\n \n - \n
\n DELETED - The attachment has been deleted
\n \n - \n
\n FAILED - The attachment creation has failed and cannot be recovered
\n \n - \n
\n ERROR - The attachment is in an error state that might be recoverable
\n \n - \n
\n READY - The attachment is active and processing traffic
\n \n - \n
\n PENDING_ACCEPTANCE - The attachment is waiting to be accepted
\n \n - \n
\n REJECTING - The attachment is in the process of being rejected
\n \n - \n
\n REJECTED - The attachment has been rejected
\n \n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.networkfirewall#ActionDefinition": {
"type": "structure",
"members": {
@@ -76,7 +149,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A single IP address specification. This is used in the MatchAttributes\n source and destination specifications.
"
+ "smithy.api#documentation": "A single IP address specification. This is used in the MatchAttributes source and destination specifications.
"
}
},
"com.amazonaws.networkfirewall#AddressDefinition": {
@@ -237,6 +310,106 @@
"smithy.api#documentation": "The results of a COMPLETED analysis report generated with StartAnalysisReport.
\n For an example of traffic analysis report results, see the response syntax of GetAnalysisReportResults.
"
}
},
+ "com.amazonaws.networkfirewall#AssociateAvailabilityZones": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.networkfirewall#AssociateAvailabilityZonesRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.networkfirewall#AssociateAvailabilityZonesResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.networkfirewall#InsufficientCapacityException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InternalServerError"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidOperationException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidTokenException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ThrottlingException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Associates the specified Availability Zones with a transit gateway-attached firewall. For each Availability Zone, Network Firewall creates a firewall endpoint to process traffic. You can specify one or more Availability Zones where you want to deploy the firewall.
\n After adding Availability Zones, you must update your transit gateway route tables to direct traffic through the new firewall endpoints. Use DescribeFirewall to monitor the status of the new endpoints.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#AssociateAvailabilityZonesRequest": {
+ "type": "structure",
+ "members": {
+ "UpdateToken": {
+ "target": "com.amazonaws.networkfirewall#UpdateToken",
+ "traits": {
+ "smithy.api#documentation": "An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
\n To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
\n To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
"
+ }
+ },
+ "FirewallArn": {
+ "target": "com.amazonaws.networkfirewall#ResourceArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the firewall.
\n You must specify the ARN or the name, and you can specify both.
"
+ }
+ },
+ "FirewallName": {
+ "target": "com.amazonaws.networkfirewall#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The descriptive name of the firewall. You can't change the name of a firewall after you create it.
\n You must specify the ARN or the name, and you can specify both.
"
+ }
+ },
+ "AvailabilityZoneMappings": {
+ "target": "com.amazonaws.networkfirewall#AvailabilityZoneMappings",
+ "traits": {
+ "smithy.api#documentation": "Required. The Availability Zones where you want to create firewall endpoints. You must specify at least one Availability Zone.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.networkfirewall#AssociateAvailabilityZonesResponse": {
+ "type": "structure",
+ "members": {
+ "FirewallArn": {
+ "target": "com.amazonaws.networkfirewall#ResourceArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the firewall.
"
+ }
+ },
+ "FirewallName": {
+ "target": "com.amazonaws.networkfirewall#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The descriptive name of the firewall. You can't change the name of a firewall after you create it.
"
+ }
+ },
+ "AvailabilityZoneMappings": {
+ "target": "com.amazonaws.networkfirewall#AvailabilityZoneMappings",
+ "traits": {
+ "smithy.api#documentation": "The Availability Zones where Network Firewall created firewall endpoints. Each mapping specifies an Availability Zone where the firewall processes traffic.
"
+ }
+ },
+ "UpdateToken": {
+ "target": "com.amazonaws.networkfirewall#UpdateToken",
+ "traits": {
+ "smithy.api#documentation": "An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
\n To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
\n To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.networkfirewall#AssociateFirewallPolicy": {
"type": "operation",
"input": {
@@ -467,7 +640,7 @@
"StatusMessage": {
"target": "com.amazonaws.networkfirewall#StatusMessage",
"traits": {
- "smithy.api#documentation": "If Network Firewall fails to create or delete the firewall endpoint in the subnet, it populates this with the reason for the error or failure and how to resolve it. A FAILED status indicates a non-recoverable state, and a ERROR status indicates an issue that you can fix. Depending on the error, it can take as many as 15 minutes to populate this field. For more information about the causes for failiure or errors and solutions available for this field, see Troubleshooting firewall endpoint failures in the Network Firewall Developer Guide.
"
+ "smithy.api#documentation": "If Network Firewall fails to create or delete the firewall endpoint in the subnet, it populates this with the reason for the error or failure and how to resolve it. \n A FAILED status indicates a non-recoverable state, and a ERROR status indicates an issue that you can fix. \n Depending on the error, it can take as many as 15 minutes to populate this field. For more information about the causes for failiure or errors and solutions available for this field, see Troubleshooting firewall endpoint failures in the Network Firewall Developer Guide.
"
}
}
},
@@ -475,6 +648,9 @@
"smithy.api#documentation": "The definition and status of the firewall endpoint for a single subnet. In each configured subnet, Network Firewall instantiates a firewall\n endpoint to handle network traffic.
\n This data type is used for any firewall endpoint type:
\n \n - \n
For Firewall.SubnetMappings, this Attachment is part of the FirewallStatus sync states information. You define firewall subnets using CreateFirewall and AssociateSubnets.
\n \n - \n
For VpcEndpointAssociation, this Attachment is part of the VpcEndpointAssociationStatus sync states information. You define these subnets using CreateVpcEndpointAssociation.
\n \n
"
}
},
+ "com.amazonaws.networkfirewall#AttachmentId": {
+ "type": "string"
+ },
"com.amazonaws.networkfirewall#AttachmentStatus": {
"type": "enum",
"members": {
@@ -519,6 +695,37 @@
"com.amazonaws.networkfirewall#AvailabilityZone": {
"type": "string"
},
+ "com.amazonaws.networkfirewall#AvailabilityZoneMapping": {
+ "type": "structure",
+ "members": {
+ "AvailabilityZone": {
+ "target": "com.amazonaws.networkfirewall#AvailabilityZoneMappingString",
+ "traits": {
+ "smithy.api#documentation": "The ID of the Availability Zone where the firewall endpoint is located. For example, us-east-2a. The Availability Zone must be in the same Region as the transit gateway.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Defines the mapping between an Availability Zone and a firewall endpoint for a transit gateway-attached firewall. Each mapping represents where the firewall can process traffic. You use these mappings when calling CreateFirewall, AssociateAvailabilityZones, and DisassociateAvailabilityZones.
\n To retrieve the current Availability Zone mappings for a firewall, use DescribeFirewall.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#AvailabilityZoneMappingString": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 128
+ },
+ "smithy.api#pattern": "^\\S+$"
+ }
+ },
+ "com.amazonaws.networkfirewall#AvailabilityZoneMappings": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.networkfirewall#AvailabilityZoneMapping"
+ }
+ },
"com.amazonaws.networkfirewall#AvailabilityZoneMetadata": {
"type": "structure",
"members": {
@@ -871,6 +1078,25 @@
"traits": {
"smithy.api#documentation": "An optional setting indicating the specific traffic analysis types to enable on the firewall.
"
}
+ },
+ "TransitGatewayId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayId",
+ "traits": {
+ "smithy.api#documentation": "Required when creating a transit gateway-attached firewall. The unique identifier of the transit gateway to attach to this firewall. You can provide either a transit gateway from your account or one that has been shared with you through Resource Access Manager.
\n \n After creating the firewall, you cannot change the transit gateway association. To use a different transit gateway, you must create a new firewall.
\n \n For information about creating firewalls, see CreateFirewall. For specific guidance about transit gateway-attached firewalls, see Considerations for transit gateway-attached firewalls in the Network Firewall Developer Guide.
"
+ }
+ },
+ "AvailabilityZoneMappings": {
+ "target": "com.amazonaws.networkfirewall#AvailabilityZoneMappings",
+ "traits": {
+ "smithy.api#documentation": "Required. The Availability Zones where you want to create firewall endpoints for a transit gateway-attached firewall. You must specify at least one Availability Zone. Consider enabling the firewall in every Availability Zone where you have workloads to maintain Availability Zone independence.
\n You can modify Availability Zones later using AssociateAvailabilityZones or DisassociateAvailabilityZones, but this may briefly disrupt traffic. The AvailabilityZoneChangeProtection setting controls whether you can make these modifications.
"
+ }
+ },
+ "AvailabilityZoneChangeProtection": {
+ "target": "com.amazonaws.networkfirewall#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "Optional. A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE, you cannot add or remove Availability Zones without first disabling this protection using UpdateAvailabilityZoneChangeProtection.
\n Default value: FALSE\n
"
+ }
}
},
"traits": {
@@ -999,6 +1225,12 @@
"smithy.api#default": false,
"smithy.api#documentation": "Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and then creates the rule group for you. To run the stateless rule group analyzer without creating the rule group, set DryRun to TRUE.
"
}
+ },
+ "SummaryConfiguration": {
+ "target": "com.amazonaws.networkfirewall#SummaryConfiguration",
+ "traits": {
+ "smithy.api#documentation": "An object that contains a RuleOptions array of strings. \n You use RuleOptions to determine which of the following RuleSummary values are returned in response to DescribeRuleGroupSummary.
\n \n - \n
\n Metadata - returns
\n \n - \n
\n Msg\n
\n \n - \n
\n SID\n
\n \n
"
+ }
}
},
"traits": {
@@ -1238,6 +1470,9 @@
"target": "com.amazonaws.networkfirewall#CustomAction"
}
},
+ "com.amazonaws.networkfirewall#DeepThreatInspection": {
+ "type": "boolean"
+ },
"com.amazonaws.networkfirewall#DeleteFirewall": {
"type": "operation",
"input": {
@@ -1371,6 +1606,69 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.networkfirewall#DeleteNetworkFirewallTransitGatewayAttachment": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.networkfirewall#DeleteNetworkFirewallTransitGatewayAttachmentRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.networkfirewall#DeleteNetworkFirewallTransitGatewayAttachmentResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.networkfirewall#InternalServerError"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ThrottlingException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Deletes a transit gateway attachment from a Network Firewall. Either the firewall owner or the transit gateway owner can delete the attachment.
\n \n After you delete a transit gateway attachment, raffic will no longer flow through the firewall endpoints.
\n \n After you initiate the delete operation, use DescribeFirewall to monitor the deletion status.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#DeleteNetworkFirewallTransitGatewayAttachmentRequest": {
+ "type": "structure",
+ "members": {
+ "TransitGatewayAttachmentId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentId",
+ "traits": {
+ "smithy.api#documentation": "Required. The unique identifier of the transit gateway attachment to delete.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.networkfirewall#DeleteNetworkFirewallTransitGatewayAttachmentResponse": {
+ "type": "structure",
+ "members": {
+ "TransitGatewayAttachmentId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the transit gateway attachment that was deleted.
",
+ "smithy.api#required": {}
+ }
+ },
+ "TransitGatewayAttachmentStatus": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the transit gateway attachment deletion process.
\n Valid values are:
\n \n - \n
\n CREATING - The attachment is being created
\n \n - \n
\n DELETING - The attachment is being deleted
\n \n - \n
\n DELETED - The attachment has been deleted
\n \n - \n
\n FAILED - The attachment creation has failed and cannot be recovered
\n \n - \n
\n ERROR - The attachment is in an error state that might be recoverable
\n \n - \n
\n READY - The attachment is active and processing traffic
\n \n - \n
\n PENDING_ACCEPTANCE - The attachment is waiting to be accepted
\n \n - \n
\n REJECTING - The attachment is in the process of being rejected
\n \n - \n
\n REJECTED - The attachment has been rejected
\n \n
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.networkfirewall#DeleteResourcePolicy": {
"type": "operation",
"input": {
@@ -1721,6 +2019,12 @@
"traits": {
"smithy.api#documentation": "The Availability Zones that the firewall currently supports. This includes all Availability Zones for which \n the firewall has a subnet defined.
"
}
+ },
+ "TransitGatewayAttachmentId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentId",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.
"
+ }
}
},
"traits": {
@@ -2224,7 +2528,7 @@
"LastModifiedTime": {
"target": "com.amazonaws.networkfirewall#LastUpdateTime",
"traits": {
- "smithy.api#documentation": "The last time that the rule group was changed.
"
+ "smithy.api#documentation": "A timestamp indicating when the rule group was last modified.
"
}
}
},
@@ -2293,6 +2597,85 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.networkfirewall#DescribeRuleGroupSummary": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.networkfirewall#DescribeRuleGroupSummaryRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.networkfirewall#DescribeRuleGroupSummaryResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.networkfirewall#InternalServerError"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ThrottlingException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns detailed information for a stateful rule group.
\n For active threat defense Amazon Web Services managed rule groups, this operation provides insight into the protections enabled by the rule group, based on Suricata rule metadata fields. Summaries are available for rule groups you manage and for active threat defense Amazon Web Services managed rule groups.
\n To modify how threat information appears in summaries, use the SummaryConfiguration parameter in UpdateRuleGroup.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#DescribeRuleGroupSummaryRequest": {
+ "type": "structure",
+ "members": {
+ "RuleGroupName": {
+ "target": "com.amazonaws.networkfirewall#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The descriptive name of the rule group. You can't change the name of a rule group after you create it.
\n You must specify the ARN or the name, and you can specify both.
"
+ }
+ },
+ "RuleGroupArn": {
+ "target": "com.amazonaws.networkfirewall#ResourceArn",
+ "traits": {
+ "smithy.api#documentation": "Required. The Amazon Resource Name (ARN) of the rule group.
\n You must specify the ARN or the name, and you can specify both.
"
+ }
+ },
+ "Type": {
+ "target": "com.amazonaws.networkfirewall#RuleGroupType",
+ "traits": {
+ "smithy.api#documentation": "The type of rule group you want a summary for. This is a required field.
\n Valid value: STATEFUL\n
\n Note that STATELESS exists but is not currently supported. If you provide STATELESS, an exception is returned.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.networkfirewall#DescribeRuleGroupSummaryResponse": {
+ "type": "structure",
+ "members": {
+ "RuleGroupName": {
+ "target": "com.amazonaws.networkfirewall#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The descriptive name of the rule group. You can't change the name of a rule group after you create it.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.networkfirewall#Description",
+ "traits": {
+ "smithy.api#documentation": "A description of the rule group.
"
+ }
+ },
+ "Summary": {
+ "target": "com.amazonaws.networkfirewall#Summary",
+ "traits": {
+ "smithy.api#documentation": "A complex type that contains rule information based on the rule group's configured summary settings. The content varies depending on the fields that you specified to extract in your SummaryConfiguration. When you haven't configured any summary settings, this returns an empty array. The response might include:
\n "
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.networkfirewall#DescribeTLSInspectionConfiguration": {
"type": "operation",
"input": {
@@ -2485,6 +2868,103 @@
}
}
},
+ "com.amazonaws.networkfirewall#DisassociateAvailabilityZones": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.networkfirewall#DisassociateAvailabilityZonesRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.networkfirewall#DisassociateAvailabilityZonesResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.networkfirewall#InternalServerError"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidOperationException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidTokenException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ThrottlingException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Removes the specified Availability Zone associations from a transit gateway-attached firewall. This removes the firewall endpoints from these Availability Zones and stops traffic filtering in those zones. Before removing an Availability Zone, ensure you've updated your transit gateway route tables to redirect traffic appropriately.
\n \n If AvailabilityZoneChangeProtection is enabled, you must first disable it using UpdateAvailabilityZoneChangeProtection.
\n \n To verify the status of your Availability Zone changes, use DescribeFirewall.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#DisassociateAvailabilityZonesRequest": {
+ "type": "structure",
+ "members": {
+ "UpdateToken": {
+ "target": "com.amazonaws.networkfirewall#UpdateToken",
+ "traits": {
+ "smithy.api#documentation": "An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
\n To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
\n To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
"
+ }
+ },
+ "FirewallArn": {
+ "target": "com.amazonaws.networkfirewall#ResourceArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the firewall.
\n You must specify the ARN or the name, and you can specify both.
"
+ }
+ },
+ "FirewallName": {
+ "target": "com.amazonaws.networkfirewall#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The descriptive name of the firewall. You can't change the name of a firewall after you create it.
\n You must specify the ARN or the name, and you can specify both.
"
+ }
+ },
+ "AvailabilityZoneMappings": {
+ "target": "com.amazonaws.networkfirewall#AvailabilityZoneMappings",
+ "traits": {
+ "smithy.api#documentation": "Required. The Availability Zones to remove from the firewall's configuration.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.networkfirewall#DisassociateAvailabilityZonesResponse": {
+ "type": "structure",
+ "members": {
+ "FirewallArn": {
+ "target": "com.amazonaws.networkfirewall#ResourceArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the firewall.
"
+ }
+ },
+ "FirewallName": {
+ "target": "com.amazonaws.networkfirewall#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The descriptive name of the firewall. You can't change the name of a firewall after you create it.
"
+ }
+ },
+ "AvailabilityZoneMappings": {
+ "target": "com.amazonaws.networkfirewall#AvailabilityZoneMappings",
+ "traits": {
+ "smithy.api#documentation": "The remaining Availability Zones where the firewall has endpoints after the disassociation.
"
+ }
+ },
+ "UpdateToken": {
+ "target": "com.amazonaws.networkfirewall#UpdateToken",
+ "traits": {
+ "smithy.api#documentation": "An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
\n To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
\n To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.networkfirewall#DisassociateSubnets": {
"type": "operation",
"input": {
@@ -2751,6 +3231,31 @@
"traits": {
"smithy.api#documentation": "An optional setting indicating the specific traffic analysis types to enable on the firewall.
"
}
+ },
+ "TransitGatewayId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayId",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the transit gateway associated with this firewall. This field is only present for transit gateway-attached firewalls.
"
+ }
+ },
+ "TransitGatewayOwnerAccountId": {
+ "target": "com.amazonaws.networkfirewall#AWSAccountId",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services account ID that owns the transit gateway. This may be different from the firewall owner's account ID when using a shared transit gateway.
"
+ }
+ },
+ "AvailabilityZoneMappings": {
+ "target": "com.amazonaws.networkfirewall#AvailabilityZoneMappings",
+ "traits": {
+ "smithy.api#documentation": "The Availability Zones where the firewall endpoints are created for a transit gateway-attached firewall. Each mapping specifies an Availability Zone where the firewall processes traffic.
"
+ }
+ },
+ "AvailabilityZoneChangeProtection": {
+ "target": "com.amazonaws.networkfirewall#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE, you must first disable this protection before adding or removing Availability Zones.
"
+ }
}
},
"traits": {
@@ -2771,6 +3276,12 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the firewall.
"
}
+ },
+ "TransitGatewayAttachmentId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentId",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the transit gateway attachment associated with this firewall. This field is only present for transit gateway-attached firewalls.
"
+ }
}
},
"traits": {
@@ -2972,6 +3483,12 @@
"traits": {
"smithy.api#documentation": "Describes the capacity usage of the resources contained in a firewall's reference sets. Network Firewall calculates the capacity usage by taking an aggregated count of all of the resources used by all of the reference sets in a firewall.
"
}
+ },
+ "TransitGatewayAttachmentSyncState": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentSyncState",
+ "traits": {
+ "smithy.api#documentation": "The synchronization state of the transit gateway attachment. This indicates whether the firewall's transit gateway configuration is properly synchronized and operational. Use this to verify that your transit gateway configuration changes have been applied.
"
+ }
}
},
"traits": {
@@ -4663,6 +5180,12 @@
"type": "service",
"version": "2020-11-12",
"operations": [
+ {
+ "target": "com.amazonaws.networkfirewall#AcceptNetworkFirewallTransitGatewayAttachment"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#AssociateAvailabilityZones"
+ },
{
"target": "com.amazonaws.networkfirewall#AssociateFirewallPolicy"
},
@@ -4690,6 +5213,9 @@
{
"target": "com.amazonaws.networkfirewall#DeleteFirewallPolicy"
},
+ {
+ "target": "com.amazonaws.networkfirewall#DeleteNetworkFirewallTransitGatewayAttachment"
+ },
{
"target": "com.amazonaws.networkfirewall#DeleteResourcePolicy"
},
@@ -4726,12 +5252,18 @@
{
"target": "com.amazonaws.networkfirewall#DescribeRuleGroupMetadata"
},
+ {
+ "target": "com.amazonaws.networkfirewall#DescribeRuleGroupSummary"
+ },
{
"target": "com.amazonaws.networkfirewall#DescribeTLSInspectionConfiguration"
},
{
"target": "com.amazonaws.networkfirewall#DescribeVpcEndpointAssociation"
},
+ {
+ "target": "com.amazonaws.networkfirewall#DisassociateAvailabilityZones"
+ },
{
"target": "com.amazonaws.networkfirewall#DisassociateSubnets"
},
@@ -4768,6 +5300,9 @@
{
"target": "com.amazonaws.networkfirewall#PutResourcePolicy"
},
+ {
+ "target": "com.amazonaws.networkfirewall#RejectNetworkFirewallTransitGatewayAttachment"
+ },
{
"target": "com.amazonaws.networkfirewall#StartAnalysisReport"
},
@@ -4783,6 +5318,9 @@
{
"target": "com.amazonaws.networkfirewall#UntagResource"
},
+ {
+ "target": "com.amazonaws.networkfirewall#UpdateAvailabilityZoneChangeProtection"
+ },
{
"target": "com.amazonaws.networkfirewall#UpdateFirewallAnalysisSettings"
},
@@ -6100,6 +6638,69 @@
"smithy.api#documentation": "Contains a set of IP set references.
"
}
},
+ "com.amazonaws.networkfirewall#RejectNetworkFirewallTransitGatewayAttachment": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.networkfirewall#RejectNetworkFirewallTransitGatewayAttachmentRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.networkfirewall#RejectNetworkFirewallTransitGatewayAttachmentResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.networkfirewall#InternalServerError"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ThrottlingException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Rejects a transit gateway attachment request for Network Firewall. When you reject the attachment request, Network Firewall cancels the creation of routing components between the transit gateway and firewall endpoints.
\n Only the firewall owner can reject the attachment. After rejection, no traffic will flow through the firewall endpoints for this attachment.
\n Use DescribeFirewall to monitor the rejection status. To accept the attachment instead of rejecting it, use AcceptNetworkFirewallTransitGatewayAttachment.
\n \n Once rejected, you cannot reverse this action. To establish connectivity, you must create a new transit gateway-attached firewall.
\n "
+ }
+ },
+ "com.amazonaws.networkfirewall#RejectNetworkFirewallTransitGatewayAttachmentRequest": {
+ "type": "structure",
+ "members": {
+ "TransitGatewayAttachmentId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentId",
+ "traits": {
+ "smithy.api#documentation": "Required. The unique identifier of the transit gateway attachment to reject. This ID is returned in the response when creating a transit gateway-attached firewall.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.networkfirewall#RejectNetworkFirewallTransitGatewayAttachmentResponse": {
+ "type": "structure",
+ "members": {
+ "TransitGatewayAttachmentId": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentId",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the transit gateway attachment that was rejected.
",
+ "smithy.api#required": {}
+ }
+ },
+ "TransitGatewayAttachmentStatus": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the transit gateway attachment. Valid values are:
\n \n - \n
\n CREATING - The attachment is being created
\n \n - \n
\n DELETING - The attachment is being deleted
\n \n - \n
\n DELETED - The attachment has been deleted
\n \n - \n
\n FAILED - The attachment creation has failed and cannot be recovered
\n \n - \n
\n ERROR - The attachment is in an error state that might be recoverable
\n \n - \n
\n READY - The attachment is active and processing traffic
\n \n - \n
\n PENDING_ACCEPTANCE - The attachment is waiting to be accepted
\n \n - \n
\n REJECTING - The attachment is in the process of being rejected
\n \n - \n
\n REJECTED - The attachment has been rejected
\n \n
\n For information about troubleshooting endpoint failures, see Troubleshooting firewall endpoint failures in the Network Firewall Developer Guide.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.networkfirewall#ReportTime": {
"type": "timestamp"
},
@@ -6149,10 +6750,16 @@
"smithy.api#enumValue": "AWS_MANAGED_THREAT_SIGNATURES"
}
},
- "AWS_MANAGED_DOMAIN_LISTS": {
+ "AWS_MANAGED_DOMAIN_LISTS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "AWS_MANAGED_DOMAIN_LISTS"
+ }
+ },
+ "ACTIVE_THREAT_DEFENSE": {
"target": "smithy.api#Unit",
"traits": {
- "smithy.api#enumValue": "AWS_MANAGED_DOMAIN_LISTS"
+ "smithy.api#enumValue": "ACTIVE_THREAT_DEFENSE"
}
}
}
@@ -6396,7 +7003,7 @@
"SnsTopic": {
"target": "com.amazonaws.networkfirewall#ResourceArn",
"traits": {
- "smithy.api#documentation": "The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS topic that's\nused to record changes to the managed rule group. You can subscribe to the SNS topic to receive\nnotifications when the managed rule group is modified, such as for new versions and for version\nexpiration. For more information, see the Amazon Simple Notification Service Developer Guide..
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Amazon Simple Notification Service SNS topic that's\nused to record changes to the managed rule group. You can subscribe to the SNS topic to receive\nnotifications when the managed rule group is modified, such as for new versions and for version\nexpiration. For more information, see the Amazon Simple Notification Service Developer Guide..
"
}
},
"LastModifiedTime": {
@@ -6410,6 +7017,12 @@
"traits": {
"smithy.api#documentation": "The list of analysis results for AnalyzeRuleGroup. If you set AnalyzeRuleGroup to TRUE in CreateRuleGroup, UpdateRuleGroup, or DescribeRuleGroup, Network Firewall analyzes the rule group and identifies the rules that might adversely effect your firewall's functionality. For example, if Network Firewall detects a rule that's routing traffic asymmetrically, which impacts the service's ability to properly process traffic, the service includes the rule in the list of analysis results.
"
}
+ },
+ "SummaryConfiguration": {
+ "target": "com.amazonaws.networkfirewall#SummaryConfiguration",
+ "traits": {
+ "smithy.api#documentation": "A complex type containing the currently selected rule option fields that will be displayed for rule summarization returned by DescribeRuleGroupSummary.
\n "
+ }
}
},
"traits": {
@@ -6489,6 +7102,38 @@
}
}
},
+ "com.amazonaws.networkfirewall#RuleSummaries": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.networkfirewall#RuleSummary"
+ }
+ },
+ "com.amazonaws.networkfirewall#RuleSummary": {
+ "type": "structure",
+ "members": {
+ "SID": {
+ "target": "com.amazonaws.networkfirewall#CollectionMember_String",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier (Signature ID) of the Suricata rule.
"
+ }
+ },
+ "Msg": {
+ "target": "com.amazonaws.networkfirewall#CollectionMember_String",
+ "traits": {
+ "smithy.api#documentation": "The contents taken from the rule's msg field.
"
+ }
+ },
+ "Metadata": {
+ "target": "com.amazonaws.networkfirewall#CollectionMember_String",
+ "traits": {
+ "smithy.api#documentation": "The contents of the rule's metadata.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A complex type containing details about a Suricata rule. Contains:
\n \n - \n
\n SID\n
\n \n - \n
\n Msg\n
\n \n - \n
\n Metadata\n
\n \n
\n Summaries are available for rule groups you manage and for active threat defense Amazon Web Services managed rule groups.
"
+ }
+ },
"com.amazonaws.networkfirewall#RuleTargets": {
"type": "list",
"member": {
@@ -6522,7 +7167,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Settings that are available for use in the rules in the RuleGroup\n where this is defined.
"
+ "smithy.api#documentation": "Settings that are available for use in the rules in the RuleGroup\n where this is defined. See CreateRuleGroup or UpdateRuleGroup for usage.
"
}
},
"com.amazonaws.networkfirewall#RulesSource": {
@@ -6627,7 +7272,7 @@
"CertificateAuthorityArn": {
"target": "com.amazonaws.networkfirewall#ResourceArn",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the imported certificate authority (CA) certificate within Certificate Manager (ACM) to use for outbound SSL/TLS inspection.
\n The following limitations apply:
\n \n - \n
You can use CA certificates that you imported into ACM, but you can't generate CA certificates with ACM.
\n \n - \n
You can't use certificates issued by Private Certificate Authority.
\n \n
\n For more information about configuring certificates for outbound inspection, see Using SSL/TLS certificates with certificates with TLS inspection configurations in the Network Firewall Developer Guide.
\n For information about working with certificates in ACM, see Importing certificates in the Certificate Manager User Guide.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the imported certificate authority (CA) certificate within Certificate Manager (ACM) to use for outbound SSL/TLS inspection.
\n The following limitations apply:
\n \n - \n
You can use CA certificates that you imported into ACM, but you can't generate CA certificates with ACM.
\n \n - \n
You can't use certificates issued by Private Certificate Authority.
\n \n
\n For more information about configuring certificates for outbound inspection, see Using SSL/TLS certificates with TLS inspection configurations in the Network Firewall Developer Guide.
\n For information about working with certificates in ACM, see Importing certificates in the Certificate Manager User Guide.
"
}
},
"CheckCertificateRevocationStatus": {
@@ -7051,7 +7696,7 @@
"RuleOrder": {
"target": "com.amazonaws.networkfirewall#RuleOrder",
"traits": {
- "smithy.api#documentation": "Indicates how to manage the order of stateful rule evaluation for the policy. STRICT_ORDER is\n the default and recommended option. With STRICT_ORDER, provide your rules in the order that you want them to be evaluated. You can then choose one or more default actions for packets that don't match any rules. Choose STRICT_ORDER to have the stateful rules engine determine the evaluation order of your rules. The default action for this rule order is PASS, followed by DROP, REJECT, and ALERT actions. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them\n based on your settings. For more information, see\n Evaluation order for stateful rules in the Network Firewall Developer Guide.\n
"
+ "smithy.api#documentation": "Indicates how to manage the order of stateful rule evaluation for the policy. STRICT_ORDER is the\n recommended option, but DEFAULT_ACTION_ORDER is the default option. \n With STRICT_ORDER, provide your rules in the order that you want them to be evaluated. \n You can then choose one or more default actions for packets that don't match any rules. \n Choose STRICT_ORDER to have the stateful rules engine determine the evaluation order of your rules. \n The default action for this rule order is \n PASS, followed by DROP, REJECT, and ALERT actions. \n Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on your settings. \n For more information, see\n Evaluation order for stateful rules in the Network Firewall Developer Guide.\n
"
}
},
"StreamExceptionPolicy": {
@@ -7152,6 +7797,12 @@
"traits": {
"smithy.api#documentation": "The action that allows the policy owner to override the behavior of the rule group within a policy.
"
}
+ },
+ "DeepThreatInspection": {
+ "target": "com.amazonaws.networkfirewall#DeepThreatInspection",
+ "traits": {
+ "smithy.api#documentation": "Network Firewall plans to augment the active threat defense managed rule group with an additional deep threat inspection capability. When this capability is released, Amazon Web Services will analyze service logs of network traffic processed by these rule groups to identify threat indicators across customers. \n Amazon Web Services will use these threat indicators to improve the active threat defense managed rule groups and protect the security of Amazon Web Services customers and services.
\n \n Customers can opt-out of deep threat inspection at any time through the Network Firewall console or API. When customers opt out, Network Firewall will not use the network traffic processed by those customers' active threat defense rule groups for rule group improvement.
\n "
+ }
}
},
"traits": {
@@ -7294,6 +7945,18 @@
"traits": {
"smithy.api#enumValue": "DHCP"
}
+ },
+ "HTTP2": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "HTTP2"
+ }
+ },
+ "QUIC": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "QUIC"
+ }
}
}
},
@@ -7452,6 +8115,63 @@
"target": "com.amazonaws.networkfirewall#SubnetMapping"
}
},
+ "com.amazonaws.networkfirewall#Summary": {
+ "type": "structure",
+ "members": {
+ "RuleSummaries": {
+ "target": "com.amazonaws.networkfirewall#RuleSummaries",
+ "traits": {
+ "smithy.api#documentation": "An array of RuleSummary objects containing individual rule details that had been configured by the rulegroup's SummaryConfiguration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A complex type containing summaries of security protections provided by a rule group.
\n Network Firewall extracts this information from selected fields in the rule group's Suricata rules, based on your SummaryConfiguration settings.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#SummaryConfiguration": {
+ "type": "structure",
+ "members": {
+ "RuleOptions": {
+ "target": "com.amazonaws.networkfirewall#SummaryRuleOptions",
+ "traits": {
+ "smithy.api#documentation": "Specifies the selected rule options returned by DescribeRuleGroupSummary.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A complex type that specifies which Suricata rule metadata fields to use when displaying threat information. Contains:
\n \n These settings affect how threat information appears in both the console and API responses. Summaries are available for rule groups you manage and for active threat defense Amazon Web Services managed rule groups.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#SummaryRuleOption": {
+ "type": "enum",
+ "members": {
+ "SID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SID"
+ }
+ },
+ "MSG": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "MSG"
+ }
+ },
+ "METADATA": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "METADATA"
+ }
+ }
+ }
+ },
+ "com.amazonaws.networkfirewall#SummaryRuleOptions": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.networkfirewall#SummaryRuleOption"
+ }
+ },
"com.amazonaws.networkfirewall#SupportedAvailabilityZones": {
"type": "map",
"key": {
@@ -7893,6 +8613,114 @@
"smithy.api#documentation": "Contains metadata about an Certificate Manager certificate.
"
}
},
+ "com.amazonaws.networkfirewall#TransitGatewayAttachmentId": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 128
+ },
+ "smithy.api#pattern": "^tgw-attach-[0-9a-z]+$"
+ }
+ },
+ "com.amazonaws.networkfirewall#TransitGatewayAttachmentStatus": {
+ "type": "enum",
+ "members": {
+ "CREATING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CREATING"
+ }
+ },
+ "DELETING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETING"
+ }
+ },
+ "DELETED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DELETED"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED"
+ }
+ },
+ "ERROR": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ERROR"
+ }
+ },
+ "READY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "READY"
+ }
+ },
+ "PENDING_ACCEPTANCE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING_ACCEPTANCE"
+ }
+ },
+ "REJECTING": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "REJECTING"
+ }
+ },
+ "REJECTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "REJECTED"
+ }
+ }
+ }
+ },
+ "com.amazonaws.networkfirewall#TransitGatewayAttachmentSyncState": {
+ "type": "structure",
+ "members": {
+ "AttachmentId": {
+ "target": "com.amazonaws.networkfirewall#AttachmentId",
+ "traits": {
+ "smithy.api#documentation": "The unique identifier of the transit gateway attachment.
"
+ }
+ },
+ "TransitGatewayAttachmentStatus": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the transit gateway attachment.
\n Valid values are:
\n \n - \n
\n CREATING - The attachment is being created
\n \n - \n
\n DELETING - The attachment is being deleted
\n \n - \n
\n DELETED - The attachment has been deleted
\n \n - \n
\n FAILED - The attachment creation has failed and cannot be recovered
\n \n - \n
\n ERROR - The attachment is in an error state that might be recoverable
\n \n - \n
\n READY - The attachment is active and processing traffic
\n \n - \n
\n PENDING_ACCEPTANCE - The attachment is waiting to be accepted
\n \n - \n
\n REJECTING - The attachment is in the process of being rejected
\n \n - \n
\n REJECTED - The attachment has been rejected
\n \n
"
+ }
+ },
+ "StatusMessage": {
+ "target": "com.amazonaws.networkfirewall#TransitGatewayAttachmentSyncStateMessage",
+ "traits": {
+ "smithy.api#documentation": "A message providing additional information about the current status, particularly useful when the transit gateway attachment is in a non-READY state.
\n Valid values are:
\n \n - \n
\n CREATING - The attachment is being created
\n \n - \n
\n DELETING - The attachment is being deleted
\n \n - \n
\n DELETED - The attachment has been deleted
\n \n - \n
\n FAILED - The attachment creation has failed and cannot be recovered
\n \n - \n
\n ERROR - The attachment is in an error state that might be recoverable
\n \n - \n
\n READY - The attachment is active and processing traffic
\n \n - \n
\n PENDING_ACCEPTANCE - The attachment is waiting to be accepted
\n \n - \n
\n REJECTING - The attachment is in the process of being rejected
\n \n - \n
\n REJECTED - The attachment has been rejected
\n \n
\n For information about troubleshooting endpoint failures, see Troubleshooting firewall endpoint failures in the Network Firewall Developer Guide.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Contains information about the synchronization state of a transit gateway attachment, including its current status and any error messages. Network Firewall uses this to track the state of your transit gateway configuration changes.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#TransitGatewayAttachmentSyncStateMessage": {
+ "type": "string"
+ },
+ "com.amazonaws.networkfirewall#TransitGatewayId": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 128
+ },
+ "smithy.api#pattern": "^tgw-[0-9a-z]+$"
+ }
+ },
"com.amazonaws.networkfirewall#UniqueSources": {
"type": "structure",
"members": {
@@ -7975,6 +8803,105 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.networkfirewall#UpdateAvailabilityZoneChangeProtection": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.networkfirewall#UpdateAvailabilityZoneChangeProtectionRequest"
+ },
+ "output": {
+ "target": "com.amazonaws.networkfirewall#UpdateAvailabilityZoneChangeProtectionResponse"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.networkfirewall#InternalServerError"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidRequestException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#InvalidTokenException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ResourceOwnerCheckException"
+ },
+ {
+ "target": "com.amazonaws.networkfirewall#ThrottlingException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Modifies the AvailabilityZoneChangeProtection setting for a transit gateway-attached firewall. When enabled, this setting prevents accidental changes to the firewall's Availability Zone configuration. This helps protect against disrupting traffic flow in production environments.
\n When enabled, you must disable this protection before using AssociateAvailabilityZones or DisassociateAvailabilityZones to modify the firewall's Availability Zone configuration.
"
+ }
+ },
+ "com.amazonaws.networkfirewall#UpdateAvailabilityZoneChangeProtectionRequest": {
+ "type": "structure",
+ "members": {
+ "UpdateToken": {
+ "target": "com.amazonaws.networkfirewall#UpdateToken",
+ "traits": {
+ "smithy.api#documentation": "An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
\n To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
\n To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
"
+ }
+ },
+ "FirewallArn": {
+ "target": "com.amazonaws.networkfirewall#ResourceArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the firewall.
\n You must specify the ARN or the name, and you can specify both.
"
+ }
+ },
+ "FirewallName": {
+ "target": "com.amazonaws.networkfirewall#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The descriptive name of the firewall. You can't change the name of a firewall after you create it.
\n You must specify the ARN or the name, and you can specify both.
"
+ }
+ },
+ "AvailabilityZoneChangeProtection": {
+ "target": "com.amazonaws.networkfirewall#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "A setting indicating whether the firewall is protected against changes to the subnet associations.\n Use this setting to protect against\n accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.networkfirewall#UpdateAvailabilityZoneChangeProtectionResponse": {
+ "type": "structure",
+ "members": {
+ "UpdateToken": {
+ "target": "com.amazonaws.networkfirewall#UpdateToken",
+ "traits": {
+ "smithy.api#documentation": "An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
\n To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
\n To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
"
+ }
+ },
+ "FirewallArn": {
+ "target": "com.amazonaws.networkfirewall#ResourceArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the firewall.
"
+ }
+ },
+ "FirewallName": {
+ "target": "com.amazonaws.networkfirewall#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The descriptive name of the firewall. You can't change the name of a firewall after you create it.
"
+ }
+ },
+ "AvailabilityZoneChangeProtection": {
+ "target": "com.amazonaws.networkfirewall#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "A setting indicating whether the firewall is protected against changes to the subnet associations.\n Use this setting to protect against\n accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.networkfirewall#UpdateFirewallAnalysisSettings": {
"type": "operation",
"input": {
@@ -8743,6 +9670,12 @@
"smithy.api#default": false,
"smithy.api#documentation": "Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and then updates the rule group for you. To run the stateless rule group analyzer without updating the rule group, set DryRun to TRUE.
"
}
+ },
+ "SummaryConfiguration": {
+ "target": "com.amazonaws.networkfirewall#SummaryConfiguration",
+ "traits": {
+ "smithy.api#documentation": "Updates the selected summary configuration for a rule group.
\n Changes affect subsequent responses from DescribeRuleGroupSummary.
"
+ }
}
},
"traits": {
diff --git a/codegen/sdk-codegen/aws-models/networkmanager.json b/codegen/sdk-codegen/aws-models/networkmanager.json
index bec36df6925..c5bfcb475ef 100644
--- a/codegen/sdk-codegen/aws-models/networkmanager.json
+++ b/codegen/sdk-codegen/aws-models/networkmanager.json
@@ -2051,6 +2051,27 @@
"traits": {
"smithy.api#documentation": "Describes the service insertion action.
"
}
+ },
+ "VpnEcmpSupport": {
+ "target": "com.amazonaws.networkmanager#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "Indicates whether Equal Cost Multipath (ECMP) is enabled for the core network.
"
+ }
+ },
+ "DnsSupport": {
+ "target": "com.amazonaws.networkmanager#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "Indicates whether public DNS support is supported. The default is true.
"
+ }
+ },
+ "SecurityGroupReferencingSupport": {
+ "target": "com.amazonaws.networkmanager#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "Indicates whether security group referencing is enabled for the core network.
"
+ }
}
},
"traits": {
@@ -13926,6 +13947,20 @@
"smithy.api#default": false,
"smithy.api#documentation": "Indicates whether appliance mode is supported. If enabled, traffic flow between a source and destination use the same Availability Zone for the VPC attachment for the lifetime of that flow. The default value is false.
"
}
+ },
+ "DnsSupport": {
+ "target": "com.amazonaws.networkmanager#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "Indicates whether DNS is supported.
"
+ }
+ },
+ "SecurityGroupReferencingSupport": {
+ "target": "com.amazonaws.networkmanager#Boolean",
+ "traits": {
+ "smithy.api#default": false,
+ "smithy.api#documentation": "Indicates whether security group referencing is enabled for this VPC attachment. The default is true. However, at the core network policy-level the default is set to false.
"
+ }
}
},
"traits": {
diff --git a/codegen/sdk-codegen/aws-models/organizations.json b/codegen/sdk-codegen/aws-models/organizations.json
index d73d982a441..ffef915c28c 100644
--- a/codegen/sdk-codegen/aws-models/organizations.json
+++ b/codegen/sdk-codegen/aws-models/organizations.json
@@ -1902,7 +1902,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Attaches a policy to a root, an organizational unit (OU), or an individual account.\n How the policy affects accounts depends on the type of policy. Refer to the\n Organizations User Guide for information about each policy type:
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Attaches a policy to a root, an organizational unit (OU), or an individual account.\n How the policy affects accounts depends on the type of policy. Refer to the\n Organizations User Guide for information about each policy type:
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To attach a policy to an account",
@@ -2183,7 +2183,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Performing this operation violates a minimum or maximum value limit. For example,\n attempting to remove the last service control policy (SCP) from an OU or root, inviting\n or creating too many accounts to the organization, or attaching too many policies to an\n account, OU, or root. This exception includes a reason that contains additional\n information about the violated limit:
\n \n Some of the reasons in the following list might not be applicable to this specific\n API or operation.
\n \n \n - \n
ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove the management\n account from the organization. You can't remove the management account. Instead,\n after you remove all member accounts, delete the organization itself.
\n \n - \n
ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an\n account from the organization that doesn't yet have enough information to exist\n as a standalone account. This account requires you to first complete phone\n verification. Follow the steps at Removing a member account from your organization in the\n Organizations User Guide.
\n \n - \n
ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of\n accounts that you can create in one day.
\n \n - \n
ACCOUNT_CREATION_NOT_COMPLETE: Your account setup isn't complete or your\n account isn't fully active. You must complete the account setup before you\n create an organization.
\n \n - \n
ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number\n of accounts in an organization. If you need more accounts, contact Amazon Web Services Support to\n request an increase in your limit.
\n Or the number of invitations that you tried to send would cause you to exceed\n the limit of accounts in your organization. Send fewer invitations or contact\n Amazon Web Services Support to request an increase in the number of accounts.
\n \n Deleted and closed accounts still count toward your limit.
\n \n \n If you get this exception when running a command immediately after\n creating the organization, wait one hour and try again. After an hour, if\n the command continues to fail with this error, contact Amazon Web Services Support.
\n \n \n - \n
ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED:\n Your organization has more than 5000 accounts, and you can only use the standard migration process for organizations with less than 5000 accounts.\n Use the assisted migration process to enable all features mode, or create a support case for assistance if you are unable to use assisted migration.
\n \n - \n
CANNOT_REGISTER_SUSPENDED_ACCOUNT_AS_DELEGATED_ADMINISTRATOR: You cannot\n register a suspended account as a delegated administrator.
\n \n - \n
CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You attempted to register\n the management account of the organization as a delegated administrator for an\n Amazon Web Services service integrated with Organizations. You can designate only a member account as a\n delegated administrator.
\n \n - \n
CANNOT_CLOSE_MANAGEMENT_ACCOUNT: You attempted to close the management\n account. To close the management account for the organization, you must first\n either remove or close all member accounts in the organization. Follow standard\n account closure process using root credentials.
\n \n - \n
CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove an\n account that is registered as a delegated administrator for a service integrated\n with your organization. To complete this operation, you must first deregister\n this account as a delegated administrator.
\n \n - \n
CLOSE_ACCOUNT_QUOTA_EXCEEDED: You have exceeded close account quota for the\n past 30 days.
\n \n - \n
CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: You attempted to exceed the number of\n accounts that you can close at a time.
\n \n - \n
CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an\n organization in the specified region, you must enable all features mode.
\n \n - \n
DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: You attempted to register an\n Amazon Web Services account as a delegated administrator for an Amazon Web Services service that already has\n a delegated administrator. To complete this operation, you must first deregister\n any existing delegated administrators for this service.
\n \n - \n
EMAIL_VERIFICATION_CODE_EXPIRED: The email verification code is only valid for\n a limited period of time. You must resubmit the request and generate a new\n verfication code.
\n \n - \n
HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of\n handshakes that you can send in one day.
\n \n - \n
INVALID_PAYMENT_INSTRUMENT: You cannot remove an account because no supported\n payment method is associated with the account. Amazon Web Services does not support cards\n issued by financial institutions in Russia or Belarus. For more information, see\n Managing your\n Amazon Web Services payments.
\n \n - \n
MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in\n this organization, you first must migrate the organization's management account\n to the marketplace that corresponds to the management account's address. All\n accounts in an organization must be associated with the same marketplace.
\n \n - \n
MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE: Applies only to the Amazon Web Services Regions in\n China. To create an organization, the master must have a valid business license.\n For more information, contact customer support.
\n \n - \n
MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you must\n first provide a valid contact address and phone number for the management\n account. Then try the operation again.
\n \n - \n
MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the\n management account must have an associated account in the Amazon Web Services GovCloud\n (US-West) Region. For more information, see Organizations\n in the \n Amazon Web Services GovCloud User Guide.
\n \n - \n
MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with\n this management account, you first must associate a valid payment instrument,\n such as a credit card, with the account. For more information, see Considerations before removing an account from an organization in\n the Organizations User Guide.
\n \n - \n
MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted to\n register more delegated administrators than allowed for the service principal.\n
\n \n - \n
MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the number\n of policies of a certain type that can be attached to an entity at one\n time.
\n \n - \n
MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed on this\n resource.
\n \n - \n
MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with\n this member account, you first must associate a valid payment instrument, such\n as a credit card, with the account. For more information, see Considerations before removing an account from an organization in\n the Organizations User Guide.
\n \n - \n
MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a policy\n from an entity that would cause the entity to have fewer than the minimum number\n of policies of a certain type required.
\n \n - \n
ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation\n that requires the organization to be configured to support all features. An\n organization that supports only consolidated billing features can't perform this\n operation.
\n \n - \n
OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is too many\n levels deep.
\n \n - \n
OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs that you\n can have in an organization.
\n \n - \n
POLICY_CONTENT_LIMIT_EXCEEDED: You attempted to create a policy that is larger\n than the maximum size.
\n \n - \n
POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of policies\n that you can have in an organization.
\n \n - \n
SERVICE_ACCESS_NOT_ENABLED: You attempted to register a delegated\n administrator before you enabled service access. Call the\n EnableAWSServiceAccess API first.
\n \n - \n
TAG_POLICY_VIOLATION: You attempted to create or update a resource with tags\n that are not compliant with the tag policy requirements for this account.
\n \n - \n
WAIT_PERIOD_ACTIVE: After you create an Amazon Web Services account, you must wait until at least seven days after the account was created.\n Invited accounts aren't subject to this waiting period.
\n \n
",
+ "smithy.api#documentation": "Performing this operation violates a minimum or maximum value limit. For example,\n attempting to remove the last service control policy (SCP) from an OU or root, inviting\n or creating too many accounts to the organization, or attaching too many policies to an\n account, OU, or root. This exception includes a reason that contains additional\n information about the violated limit:
\n \n Some of the reasons in the following list might not be applicable to this specific\n API or operation.
\n \n \n - \n
ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove the management\n account from the organization. You can't remove the management account. Instead,\n after you remove all member accounts, delete the organization itself.
\n \n - \n
ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an\n account from the organization that doesn't yet have enough information to exist\n as a standalone account. This account requires you to first complete phone\n verification. Follow the steps at Removing a member account from your organization in the\n Organizations User Guide.
\n \n - \n
ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of\n accounts that you can create in one day.
\n \n - \n
ACCOUNT_CREATION_NOT_COMPLETE: Your account setup isn't complete or your\n account isn't fully active. You must complete the account setup before you\n create an organization.
\n \n - \n
ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number\n of accounts in an organization. If you need more accounts, contact Amazon Web Services Support to\n request an increase in your limit.
\n Or the number of invitations that you tried to send would cause you to exceed\n the limit of accounts in your organization. Send fewer invitations or contact\n Amazon Web Services Support to request an increase in the number of accounts.
\n \n Deleted and closed accounts still count toward your limit.
\n \n \n If you get this exception when running a command immediately after\n creating the organization, wait one hour and try again. After an hour, if\n the command continues to fail with this error, contact Amazon Web Services Support.
\n \n \n - \n
ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED: Your organization has\n more than 5000 accounts, and you can only use the standard migration process for\n organizations with less than 5000 accounts. Use the assisted migration process\n to enable all features mode, or create a support case for assistance if you are\n unable to use assisted migration.
\n \n - \n
CANNOT_REGISTER_SUSPENDED_ACCOUNT_AS_DELEGATED_ADMINISTRATOR: You cannot\n register a suspended account as a delegated administrator.
\n \n - \n
CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR: You attempted to register\n the management account of the organization as a delegated administrator for an\n Amazon Web Services service integrated with Organizations. You can designate only a member account as a\n delegated administrator.
\n \n - \n
CANNOT_CLOSE_MANAGEMENT_ACCOUNT: You attempted to close the management\n account. To close the management account for the organization, you must first\n either remove or close all member accounts in the organization. Follow standard\n account closure process using root credentials.
\n \n - \n
CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG: You attempted to remove an\n account that is registered as a delegated administrator for a service integrated\n with your organization. To complete this operation, you must first deregister\n this account as a delegated administrator.
\n \n - \n
CLOSE_ACCOUNT_QUOTA_EXCEEDED: You have exceeded close account quota for the\n past 30 days.
\n \n - \n
CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED: You attempted to exceed the number of\n accounts that you can close at a time.
\n \n - \n
CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION: To create an\n organization in the specified region, you must enable all features mode.
\n \n - \n
DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE: You attempted to register an\n Amazon Web Services account as a delegated administrator for an Amazon Web Services service that already has\n a delegated administrator. To complete this operation, you must first deregister\n any existing delegated administrators for this service.
\n \n - \n
EMAIL_VERIFICATION_CODE_EXPIRED: The email verification code is only valid for\n a limited period of time. You must resubmit the request and generate a new\n verfication code.
\n \n - \n
HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of\n handshakes that you can send in one day.
\n \n - \n
INVALID_PAYMENT_INSTRUMENT: You cannot remove an account because no supported\n payment method is associated with the account. Amazon Web Services does not support cards\n issued by financial institutions in Russia or Belarus. For more information, see\n Managing your\n Amazon Web Services payments.
\n \n - \n
MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in\n this organization, you first must migrate the organization's management account\n to the marketplace that corresponds to the management account's address. All\n accounts in an organization must be associated with the same marketplace.
\n \n - \n
MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE: Applies only to the Amazon Web Services Regions in\n China. To create an organization, the master must have a valid business license.\n For more information, contact customer support.
\n \n - \n
MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you must\n first provide a valid contact address and phone number for the management\n account. Then try the operation again.
\n \n - \n
MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the\n management account must have an associated account in the Amazon Web Services GovCloud\n (US-West) Region. For more information, see Organizations\n in the \n Amazon Web Services GovCloud User Guide.
\n \n - \n
MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with\n this management account, you first must associate a valid payment instrument,\n such as a credit card, with the account. For more information, see Considerations before removing an account from an organization in\n the Organizations User Guide.
\n \n - \n
MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED: You attempted to\n register more delegated administrators than allowed for the service principal.\n
\n \n - \n
MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the number\n of policies of a certain type that can be attached to an entity at one\n time.
\n \n - \n
MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed on this\n resource.
\n \n - \n
MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with\n this member account, you first must associate a valid payment instrument, such\n as a credit card, with the account. For more information, see Considerations before removing an account from an organization in\n the Organizations User Guide.
\n \n - \n
MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a policy\n from an entity that would cause the entity to have fewer than the minimum number\n of policies of a certain type required.
\n \n - \n
ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation\n that requires the organization to be configured to support all features. An\n organization that supports only consolidated billing features can't perform this\n operation.
\n \n - \n
OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is too many\n levels deep.
\n \n - \n
OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs that you\n can have in an organization.
\n \n - \n
POLICY_CONTENT_LIMIT_EXCEEDED: You attempted to create a policy that is larger\n than the maximum size.
\n \n - \n
POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of policies\n that you can have in an organization.
\n \n - \n
POLICY_TYPE_ENABLED_FOR_THIS_SERVICE: You attempted to disable service access\n before you disabled the policy type (for example, SECURITYHUB_POLICY). To\n complete this operation, you must first disable the policy type.
\n \n - \n
SERVICE_ACCESS_NOT_ENABLED:
\n \n - \n
You attempted to register a delegated administrator before you enabled\n service access. Call the EnableAWSServiceAccess API\n first.
\n \n - \n
You attempted to enable a policy type before you enabled service\n access. Call the EnableAWSServiceAccess API first.
\n \n
\n \n - \n
TAG_POLICY_VIOLATION: You attempted to create or update a resource with tags\n that are not compliant with the tag policy requirements for this account.
\n \n - \n
WAIT_PERIOD_ACTIVE: After you create an Amazon Web Services account, you must wait until at\n least seven days after the account was created. Invited accounts aren't subject\n to this waiting period.
\n \n
",
"smithy.api#error": "client",
"smithy.api#httpError": 409
}
@@ -2353,6 +2353,12 @@
"smithy.api#enumValue": "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE"
}
},
+ "POLICY_TYPE_ENABLED_FOR_THIS_SERVICE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "POLICY_TYPE_ENABLED_FOR_THIS_SERVICE"
+ }
+ },
"MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE": {
"target": "smithy.api#Unit",
"traits": {
@@ -3082,7 +3088,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a policy of a specified type that you can attach to a root, an organizational\n unit (OU), or an individual Amazon Web Services account.
\n For more information about policies and their use, see Managing\n Organizations policies.
\n If the request includes tags, then the requester must have the\n organizations:TagResource permission.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Creates a policy of a specified type that you can attach to a root, an organizational\n unit (OU), or an individual Amazon Web Services account.
\n For more information about policies and their use, see Managing\n Organizations policies.
\n If the request includes tags, then the requester must have the\n organizations:TagResource permission.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To create a service control policy",
@@ -3135,7 +3141,7 @@
"Type": {
"target": "com.amazonaws.organizations#PolicyType",
"traits": {
- "smithy.api#documentation": "The type of policy to create. You can specify one of the following values:
\n ",
+ "smithy.api#documentation": "The type of policy to create. You can specify one of the following values:
\n ",
"smithy.api#required": {}
}
},
@@ -3507,7 +3513,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes the specified policy from your organization. Before you perform this\n operation, you must first detach the policy from all organizational units (OUs), roots,\n and accounts.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Deletes the specified policy from your organization. Before you perform this\n operation, you must first detach the policy from all organizational units (OUs), roots,\n and accounts.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To delete a policy",
@@ -3569,7 +3575,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Deletes the resource policy from your organization.
\n You can only call this operation from the organization's management account.
"
+ "smithy.api#documentation": "Deletes the resource policy from your organization.
\n This operation can be called only from the organization's management account.
"
}
},
"com.amazonaws.organizations#DeregisterDelegatedAdministrator": {
@@ -3667,7 +3673,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves Organizations-related information about the specified account.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Retrieves Organizations-related information about the specified account.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To get the details about an account",
@@ -3748,7 +3754,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves the current status of an asynchronous request to create an account.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Retrieves the current status of an asynchronous request to create an account.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To get information about a request to create an account",
@@ -3843,7 +3849,7 @@
"PolicyType": {
"target": "com.amazonaws.organizations#EffectivePolicyType",
"traits": {
- "smithy.api#documentation": "The type of policy that you want information about. You can specify one of the\n following values:
\n ",
+ "smithy.api#documentation": "The type of policy that you want information about. You can specify one of the\n following values:
\n ",
"smithy.api#required": {}
}
},
@@ -4075,7 +4081,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves information about an organizational unit (OU).
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Retrieves information about an organizational unit (OU).
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To get information about an organizational unit",
@@ -4155,7 +4161,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves information about a policy.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Retrieves information about a policy.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To get information about a policy",
@@ -4241,7 +4247,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves information about a resource policy.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
"
+ "smithy.api#documentation": "Retrieves information about a resource policy.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
"
}
},
"com.amazonaws.organizations#DescribeResourcePolicyResponse": {
@@ -4318,7 +4324,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Detaches a policy from a target root, organizational unit (OU), or account.
\n \n If the policy being detached is a service control policy (SCP), the changes to\n permissions for Identity and Access Management (IAM) users and roles in affected accounts are\n immediate.
\n \n Every root, OU, and account must have at least one SCP attached. If you want to\n replace the default FullAWSAccess policy with an SCP that limits the\n permissions that can be delegated, you must attach the replacement SCP before you can\n remove the default SCP. This is the authorization strategy of an \"allow list\". If you instead attach a second SCP and\n leave the FullAWSAccess SCP still attached, and specify \"Effect\":\n \"Deny\" in the second SCP to override the \"Effect\": \"Allow\" in\n the FullAWSAccess policy (or any other attached SCP), you're using the\n authorization strategy of a \"deny list\".
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Detaches a policy from a target root, organizational unit (OU), or account.
\n \n If the policy being detached is a service control policy (SCP), the changes to\n permissions for Identity and Access Management (IAM) users and roles in affected accounts are\n immediate.
\n \n Every root, OU, and account must have at least one SCP attached. If you want to\n replace the default FullAWSAccess policy with an SCP that limits the\n permissions that can be delegated, you must attach the replacement SCP before you can\n remove the default SCP. This is the authorization strategy of an \"allow list\". If you instead attach a second SCP and\n leave the FullAWSAccess SCP still attached, and specify \"Effect\":\n \"Deny\" in the second SCP to override the \"Effect\": \"Allow\" in\n the FullAWSAccess policy (or any other attached SCP), you're using the\n authorization strategy of a \"deny list\".
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To detach a policy from a root, OU, or account",
@@ -4450,7 +4456,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Disables an organizational policy type in a root. A policy of a certain type can be\n attached to entities in a root only if that type is enabled in the root. After you\n perform this operation, you no longer can attach policies of the specified type to that\n root or to any organizational unit (OU) or account in that root. You can undo this by\n using the EnablePolicyType operation.
\n This is an asynchronous request that Amazon Web Services performs in the background. If you disable\n a policy type for a root, it still appears enabled for the organization if all features are enabled for the organization. Amazon Web Services recommends that you\n first use ListRoots to see the status of policy types for a specified\n root, and then use this operation.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
\n To view the status of available policy types in the organization, use DescribeOrganization.
",
+ "smithy.api#documentation": "Disables an organizational policy type in a root. A policy of a certain type can be\n attached to entities in a root only if that type is enabled in the root. After you\n perform this operation, you no longer can attach policies of the specified type to that\n root or to any organizational unit (OU) or account in that root. You can undo this by\n using the EnablePolicyType operation.
\n This is an asynchronous request that Amazon Web Services performs in the background. If you disable\n a policy type for a root, it still appears enabled for the organization if all features are enabled for the organization. Amazon Web Services recommends that you\n first use ListRoots to see the status of policy types for a specified\n root, and then use this operation.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
\n To view the status of available policy types in the organization, use DescribeOrganization.
",
"smithy.api#examples": [
{
"title": "To disable a policy type in a root",
@@ -4484,7 +4490,7 @@
"PolicyType": {
"target": "com.amazonaws.organizations#PolicyType",
"traits": {
- "smithy.api#documentation": "The policy type that you want to disable in this root. You can specify one of the\n following values:
\n ",
+ "smithy.api#documentation": "The policy type that you want to disable in this root. You can specify one of the\n following values:
\n ",
"smithy.api#required": {}
}
}
@@ -4648,6 +4654,12 @@
"traits": {
"smithy.api#enumValue": "DECLARATIVE_POLICY_EC2"
}
+ },
+ "SECURITYHUB_POLICY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SECURITYHUB_POLICY"
+ }
}
}
},
@@ -4697,7 +4709,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Provides an Amazon Web Services service (the service that is specified by\n ServicePrincipal) with permissions to view the structure of an organization, \n create a service-linked role in all the accounts in the organization,\n and allow the service to perform operations\n on behalf of the organization and its accounts. Establishing these permissions can be a first step\n in enabling the integration of an Amazon Web Services service with Organizations.
\n \n We recommend that you enable integration between Organizations and the specified Amazon Web Services\n service by using the console or commands that are provided by the specified service.\n Doing so ensures that the service is aware that it can create the resources that are\n required for the integration. How the service creates those resources in the\n organization's accounts depends on that service. For more information, see the\n documentation for the other Amazon Web Services service.
\n \n For more information about enabling services to integrate with Organizations, see Using\n Organizations with other Amazon Web Services services in the\n Organizations User Guide.
\n You can only call this operation from the organization's management account and only\n if the organization has enabled all\n features.
"
+ "smithy.api#documentation": "Provides an Amazon Web Services service (the service that is specified by\n ServicePrincipal) with permissions to view the structure of an organization, \n create a service-linked role in all the accounts in the organization,\n and allow the service to perform operations\n on behalf of the organization and its accounts. Establishing these permissions can be a first step\n in enabling the integration of an Amazon Web Services service with Organizations.
\n \n We recommend that you enable integration between Organizations and the specified Amazon Web Services\n service by using the console or commands that are provided by the specified service.\n Doing so ensures that the service is aware that it can create the resources that are\n required for the integration. How the service creates those resources in the\n organization's accounts depends on that service. For more information, see the\n documentation for the other Amazon Web Services service.
\n \n For more information about enabling services to integrate with Organizations, see Using\n Organizations with other Amazon Web Services services in the\n Organizations User Guide.
\n This operation can be called only from the organization's management account.
"
}
},
"com.amazonaws.organizations#EnableAWSServiceAccessRequest": {
@@ -4849,7 +4861,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Enables a policy type in a root. After you enable a policy type in a root, you can\n attach policies of that type to the root, any organizational unit (OU), or account in\n that root. You can undo this by using the DisablePolicyType\n operation.
\n This is an asynchronous request that Amazon Web Services performs in the background. Amazon Web Services\n recommends that you first use ListRoots to see the status of policy\n types for a specified root, and then use this operation.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
\n You can enable a policy type in a root only if that policy type is available in the\n organization. To view the status of available policy types in the organization, use\n DescribeOrganization.
",
+ "smithy.api#documentation": "Enables a policy type in a root. After you enable a policy type in a root, you can\n attach policies of that type to the root, any organizational unit (OU), or account in\n that root. You can undo this by using the DisablePolicyType\n operation.
\n This is an asynchronous request that Amazon Web Services performs in the background. Amazon Web Services\n recommends that you first use ListRoots to see the status of policy\n types for a specified root, and then use this operation.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
\n You can enable a policy type in a root only if that policy type is available in the\n organization. To view the status of available policy types in the organization, use\n DescribeOrganization.
",
"smithy.api#examples": [
{
"title": "To enable a policy type in a root",
@@ -4888,7 +4900,7 @@
"PolicyType": {
"target": "com.amazonaws.organizations#PolicyType",
"traits": {
- "smithy.api#documentation": "The policy type that you want to enable. You can specify one of the following\n values:
\n ",
+ "smithy.api#documentation": "The policy type that you want to enable. You can specify one of the following\n values:
\n ",
"smithy.api#required": {}
}
}
@@ -5048,7 +5060,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The requested operation would violate the constraint identified in the reason\n code.
\n \n Some of the reasons in the following list might not be applicable to this specific\n API or operation:
\n \n \n - \n
ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number\n of accounts in an organization. Note that deleted and closed accounts still\n count toward your limit.
\n \n If you get this exception immediately after creating the organization,\n wait one hour and try again. If after an hour it continues to fail with this\n error, contact Amazon Web Services\n Support.
\n \n \n - \n
ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because the\n invited account is already a member of an organization.
\n \n - \n
HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of\n handshakes that you can send in one day.
\n \n - \n
INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations to\n join an organization while it's in the process of enabling all features. You can\n resume inviting accounts after you finalize the process when all accounts have\n agreed to the change.
\n \n - \n
ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid\n because the organization has already enabled all features.
\n \n - \n
ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION: The handshake request\n is invalid because the organization has already started the process to enable\n all features.
\n \n - \n
ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because the\n account is from a different marketplace than the accounts in the organization.\n For example, accounts with India addresses must be associated with the AISPL\n marketplace. All accounts in an organization must be from the same\n marketplace.
\n \n - \n
ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change\n the membership of an account too quickly after its previous change.
\n \n - \n
PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an account\n that doesn't have a payment instrument, such as a credit card, associated with\n it.
\n \n
",
+ "smithy.api#documentation": "The requested operation would violate the constraint identified in the reason\n code.
\n \n Some of the reasons in the following list might not be applicable to this specific\n API or operation:
\n \n \n - \n
ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number\n of accounts in an organization. Note that deleted and closed accounts still\n count toward your limit.
\n \n If you get this exception immediately after creating the organization,\n wait one hour and try again. If after an hour it continues to fail with this\n error, contact Amazon Web Services\n Support.
\n \n \n - \n
ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because the\n invited account is already a member of an organization.
\n \n - \n
HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of\n handshakes that you can send in one day.
\n \n - \n
INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations to\n join an organization while it's in the process of enabling all features. You can\n resume inviting accounts after you finalize the process when all accounts have\n agreed to the change.
\n \n - \n
ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid\n because the organization has already enabled all features.
\n \n - \n
ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION: The handshake request\n is invalid because the organization has already started the process to enable\n all features.
\n \n - \n
ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because the\n account is from a different marketplace than the accounts in the\n organization.
\n \n - \n
ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change\n the membership of an account too quickly after its previous change.
\n \n - \n
PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an account\n that doesn't have a payment instrument, such as a credit card, associated with\n it.
\n \n
",
"smithy.api#error": "client",
"smithy.api#httpError": 409
}
@@ -5413,7 +5425,7 @@
}
},
"traits": {
- "smithy.api#documentation": "The requested operation failed because you provided invalid values for one or more of\n the request parameters. This exception includes a reason that contains additional\n information about the violated limit:
\n \n Some of the reasons in the following list might not be applicable to this specific\n API or operation.
\n \n \n - \n
DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same\n entity.
\n \n - \n
IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be\n modified.
\n \n - \n
INPUT_REQUIRED: You must include a value for all required parameters.
\n \n - \n
INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the\n invited account owner.
\n \n - \n
INVALID_ENUM: You specified an invalid value.
\n \n - \n
INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.
\n \n - \n
INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid\n characters.
\n \n - \n
INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least\n one invalid value.
\n \n - \n
INVALID_PAGINATION_TOKEN: Get the value for the NextToken\n parameter from the response to a previous call of the operation.
\n \n - \n
INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,\n organization, or email) as a party.
\n \n - \n
INVALID_PATTERN: You provided a value that doesn't match the required\n pattern.
\n \n - \n
INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match\n the required pattern.
\n \n - \n
INVALID_PRINCIPAL: You specified an invalid principal element in the policy.
\n \n - \n
INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name\n can't begin with the reserved prefix AWSServiceRoleFor.
\n \n - \n
INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name\n (ARN) for the organization.
\n \n - \n
INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
\n \n - \n
INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.\n You can’t add, edit, or delete system tag keys because they're reserved for\n Amazon Web Services use. System tags don’t count against your tags per resource limit.
\n \n - \n
MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the\n operation.
\n \n - \n
MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than\n allowed.
\n \n - \n
MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value\n than allowed.
\n \n - \n
MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than\n allowed.
\n \n - \n
MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value\n than allowed.
\n \n - \n
MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between\n entities in the same root.
\n \n - \n
NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.
\n \n - \n
TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target\n entity.
\n \n - \n
UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't\n recognized.
\n \n
",
+ "smithy.api#documentation": "The requested operation failed because you provided invalid values for one or more of\n the request parameters. This exception includes a reason that contains additional\n information about the violated limit:
\n \n Some of the reasons in the following list might not be applicable to this specific\n API or operation.
\n \n \n - \n
DUPLICATE_TAG_KEY: Tag keys must be unique among the tags attached to the same\n entity.
\n \n - \n
IMMUTABLE_POLICY: You specified a policy that is managed by Amazon Web Services and can't be\n modified.
\n \n - \n
INPUT_REQUIRED: You must include a value for all required parameters.
\n \n - \n
INVALID_EMAIL_ADDRESS_TARGET: You specified an invalid email address for the\n invited account owner.
\n \n - \n
INVALID_ENUM: You specified an invalid value.
\n \n - \n
INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type string.
\n \n - \n
INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid\n characters.
\n \n - \n
INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least\n one invalid value.
\n \n - \n
INVALID_PAGINATION_TOKEN: Get the value for the NextToken\n parameter from the response to a previous call of the operation.
\n \n - \n
INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,\n organization, or email) as a party.
\n \n - \n
INVALID_PATTERN: You provided a value that doesn't match the required\n pattern.
\n \n - \n
INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match\n the required pattern.
\n \n - \n
INVALID_PRINCIPAL: You specified an invalid principal element in the\n policy.
\n \n - \n
INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name\n can't begin with the reserved prefix AWSServiceRoleFor.
\n \n - \n
INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name\n (ARN) for the organization.
\n \n - \n
INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
\n \n - \n
INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system tag.\n You can’t add, edit, or delete system tag keys because they're reserved for\n Amazon Web Services use. System tags don’t count against your tags per resource limit.
\n \n - \n
MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the\n operation.
\n \n - \n
MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than\n allowed.
\n \n - \n
MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value\n than allowed.
\n \n - \n
MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than\n allowed.
\n \n - \n
MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value\n than allowed.
\n \n - \n
MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between\n entities in the same root.
\n \n - \n
NON_DETACHABLE_POLICY: You can't detach this Amazon Web Services Managed Policy.
\n \n - \n
TARGET_NOT_SUPPORTED: You can't perform the specified operation on that target\n entity.
\n \n - \n
UNRECOGNIZED_SERVICE_PRINCIPAL: You specified a service principal that isn't\n recognized.
\n \n
",
"smithy.api#error": "client",
"smithy.api#httpError": 400
}
@@ -5647,7 +5659,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Sends an invitation to another account to join your organization as a member account.\n Organizations sends email on your behalf to the email address that is associated with the\n other account's owner. The invitation is implemented as a Handshake\n whose details are in the response.
\n \n \n - \n
You can invite Amazon Web Services accounts only from the same seller as the management\n account. For example, if your organization's management account was created\n by Amazon Internet Services Pvt. Ltd (AISPL), an Amazon Web Services seller in India, you\n can invite only other AISPL accounts to your organization. You can't combine\n accounts from AISPL and Amazon Web Services or from any other Amazon Web Services seller. For more\n information, see Consolidated\n billing in India.
\n \n - \n
If you receive an exception that indicates that you exceeded your account\n limits for the organization or that the operation failed because your\n organization is still initializing, wait one hour and then try again. If the\n error persists after an hour, contact Amazon Web Services Support.
\n \n
\n \n If the request includes tags, then the requester must have the\n organizations:TagResource permission.
\n This operation can be called only from the organization's management account.
",
+ "smithy.api#documentation": "Sends an invitation to another account to join your organization as a member account.\n Organizations sends email on your behalf to the email address that is associated with the\n other account's owner. The invitation is implemented as a Handshake\n whose details are in the response.
\n \n If you receive an exception that indicates that you exceeded your account\n limits for the organization or that the operation failed because your\n organization is still initializing, wait one hour and then try again. If the\n error persists after an hour, contact Amazon Web Services Support.
\n \n If the request includes tags, then the requester must have the\n organizations:TagResource permission.
\n This operation can be called only from the organization's management account.
",
"smithy.api#examples": [
{
"title": "To invite an account to join an organization",
@@ -5786,7 +5798,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Removes a member account from its parent organization. This version of the operation\n is performed by the account that wants to leave. To remove a member account as a user in\n the management account, use RemoveAccountFromOrganization\n instead.
\n This operation can be called only from a member account in the organization.
\n \n \n - \n
The management account in an organization with all features enabled can\n set service control policies (SCPs) that can restrict what administrators of\n member accounts can do. This includes preventing them from successfully\n calling LeaveOrganization and leaving the organization.
\n \n - \n
You can leave an organization as a member account only if the account is\n configured with the information required to operate as a standalone account.\n When you create an account in an organization using the Organizations console,\n API, or CLI commands, the information required of standalone accounts is\n not automatically collected. For each account that\n you want to make standalone, you must perform the following steps. If any of\n the steps are already completed for this account, that step doesn't\n appear.
\n \n Amazon Web Services uses the payment method to charge for any billable (not free tier)\n Amazon Web Services activity that occurs while the account isn't attached to an\n organization. For more information, see Considerations before removing an account from an organization\n in the Organizations User Guide.
\n \n - \n
The account that you want to leave must not be a delegated administrator\n account for any Amazon Web Services service enabled for your organization. If the account\n is a delegated administrator, you must first change the delegated\n administrator account to another account that is remaining in the\n organization.
\n \n - \n
You can leave an organization only after you enable IAM user access to\n billing in your account. For more information, see About IAM access to the Billing and Cost Management console in the\n Amazon Web Services Billing and Cost Management User Guide.
\n \n - \n
After the account leaves the organization, all tags that were attached to\n the account object in the organization are deleted. Amazon Web Services accounts outside\n of an organization do not support tags.
\n \n - \n
A newly created account has a waiting period before it can be removed from\n its organization.\n You must wait until at least seven days after the account was created. Invited accounts aren't subject to this waiting period.
\n \n - \n
If you are using an organization principal to call\n LeaveOrganization across multiple accounts, you can only do\n this up to 5 accounts per second in a single organization.
\n \n
\n ",
+ "smithy.api#documentation": "Removes a member account from its parent organization. This version of the operation\n is performed by the account that wants to leave. To remove a member account as a user in\n the management account, use RemoveAccountFromOrganization\n instead.
\n This operation can be called only from a member account in the organization.
\n \n \n - \n
The management account in an organization with all features enabled can\n set service control policies (SCPs) that can restrict what administrators of\n member accounts can do. This includes preventing them from successfully\n calling LeaveOrganization and leaving the organization.
\n \n - \n
You can leave an organization as a member account only if the account is\n configured with the information required to operate as a standalone account.\n When you create an account in an organization using the Organizations console,\n API, or CLI commands, the information required of standalone accounts is\n not automatically collected. For each account that\n you want to make standalone, you must perform the following steps. If any of\n the steps are already completed for this account, that step doesn't\n appear.
\n \n Amazon Web Services uses the payment method to charge for any billable (not free tier)\n Amazon Web Services activity that occurs while the account isn't attached to an\n organization. For more information, see Considerations before removing an account from an organization\n in the Organizations User Guide.
\n \n - \n
The account that you want to leave must not be a delegated administrator\n account for any Amazon Web Services service enabled for your organization. If the account\n is a delegated administrator, you must first change the delegated\n administrator account to another account that is remaining in the\n organization.
\n \n - \n
After the account leaves the organization, all tags that were attached to\n the account object in the organization are deleted. Amazon Web Services accounts outside\n of an organization do not support tags.
\n \n - \n
A newly created account has a waiting period before it can be removed from\n its organization.\n You must wait until at least seven days after the account was created. Invited accounts aren't subject to this waiting period.
\n \n - \n
If you are using an organization principal to call\n LeaveOrganization across multiple accounts, you can only do\n this up to 5 accounts per second in a single organization.
\n \n
\n ",
"smithy.api#examples": [
{
"title": "To leave an organization as a member account",
@@ -5827,7 +5839,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Returns a list of the Amazon Web Services services that you enabled to integrate with your\n organization. After a service on this list creates the resources that it requires for\n the integration, it can perform operations on your organization and its accounts.
\n For more information about integrating other services with Organizations, including the\n list of services that currently work with Organizations, see Using Organizations with other Amazon Web Services\n services in the Organizations User Guide.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Returns a list of the Amazon Web Services services that you enabled to integrate with your\n organization. After a service on this list creates the resources that it requires for\n the integration, it can perform operations on your organization and its accounts.
\n For more information about integrating other services with Organizations, including the\n list of services that currently work with Organizations, see Using Organizations with other Amazon Web Services\n services in the Organizations User Guide.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -5901,7 +5913,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists all the accounts in the organization. To request only the accounts in a\n specified root or organizational unit (OU), use the ListAccountsForParent operation instead.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists all the accounts in the organization. To request only the accounts in a\n specified root or organizational unit (OU), use the ListAccountsForParent operation instead.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -5938,7 +5950,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the accounts in an organization that are contained by the specified target root\n or organizational unit (OU). If you specify the root, you get a list of all the accounts\n that aren't in any OU. If you specify an OU, you get a list of all the accounts in only\n that OU and not in any child OUs. To get a list of all accounts in the organization, use\n the ListAccounts operation.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists the accounts in an organization that are contained by the specified target root\n or organizational unit (OU). If you specify the root, you get a list of all the accounts\n that aren't in any OU. If you specify an OU, you get a list of all the accounts in only\n that OU and not in any child OUs. To get a list of all accounts in the organization, use\n the ListAccounts operation.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To retrieve a list of all of the accounts in a root or OU",
@@ -6093,7 +6105,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists all of the organizational units (OUs) or accounts that are contained in the\n specified parent OU or root. This operation, along with ListParents\n enables you to traverse the tree structure that makes up this root.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists all of the organizational units (OUs) or accounts that are contained in the\n specified parent OU or root. This operation, along with ListParents\n enables you to traverse the tree structure that makes up this root.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To retrieve a list of all of the child accounts and OUs in a parent root or OU",
@@ -6206,7 +6218,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the account creation requests that match the specified status that is currently\n being tracked for the organization.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists the account creation requests that match the specified status that is currently\n being tracked for the organization.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To get a list of all account creation requests made in the organization",
@@ -6334,7 +6346,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the Amazon Web Services accounts that are designated as delegated administrators in this\n organization.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists the Amazon Web Services accounts that are designated as delegated administrators in this\n organization.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -6427,7 +6439,7 @@
}
],
"traits": {
- "smithy.api#documentation": "List the Amazon Web Services services for which the specified account is a delegated\n administrator.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "List the Amazon Web Services services for which the specified account is a delegated\n administrator.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -6644,7 +6656,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the handshakes that are associated with the organization that the requesting\n user is part of. The ListHandshakesForOrganization operation returns a list\n of handshake structures. Each structure contains details and status about a\n handshake.
\n Handshakes that are ACCEPTED, DECLINED,\n CANCELED, or EXPIRED appear in the results of this API for\n only 30 days after changing to that state. After that, they're deleted and no longer\n accessible.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists the handshakes that are associated with the organization that the requesting\n user is part of. The ListHandshakesForOrganization operation returns a list\n of handshake structures. Each structure contains details and status about a\n handshake.
\n Handshakes that are ACCEPTED, DECLINED,\n CANCELED, or EXPIRED appear in the results of this API for\n only 30 days after changing to that state. After that, they're deleted and no longer\n accessible.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To retrieve a list of the handshakes associated with an organization",
@@ -6821,7 +6833,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the organizational units (OUs) in a parent organizational unit or root.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists the organizational units (OUs) in a parent organizational unit or root.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To retrieve a list of all of the child OUs in a parent root or OU",
@@ -6928,7 +6940,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the root or organizational units (OUs) that serve as the immediate parent of the\n specified child OU or account. This operation, along with ListChildren\n enables you to traverse the tree structure that makes up this root.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
\n \n In the current release, a child can have only a single parent.
\n ",
+ "smithy.api#documentation": "Lists the root or organizational units (OUs) that serve as the immediate parent of the\n specified child OU or account. This operation, along with ListChildren\n enables you to traverse the tree structure that makes up this root.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
\n \n In the current release, a child can have only a single parent.
\n ",
"smithy.api#examples": [
{
"title": "To retrieve a list of all of the parents of a child OU or account",
@@ -7029,7 +7041,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Retrieves the list of all policies in an organization of a specified type.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Retrieves the list of all policies in an organization of a specified type.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To retrieve a list policies in the organization",
@@ -7106,7 +7118,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the policies that are directly attached to the specified target root,\n organizational unit (OU), or account. You must specify the policy type that you want\n included in the returned list.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists the policies that are directly attached to the specified target root,\n organizational unit (OU), or account. You must specify the policy type that you want\n included in the returned list.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To retrieve a list policies attached to a root, OU, or account",
@@ -7149,7 +7161,7 @@
"Filter": {
"target": "com.amazonaws.organizations#PolicyType",
"traits": {
- "smithy.api#documentation": "The type of policy that you want to include in the returned list. You must specify one\n of the following values:
\n ",
+ "smithy.api#documentation": "The type of policy that you want to include in the returned list. You must specify one\n of the following values:
\n ",
"smithy.api#required": {}
}
},
@@ -7196,7 +7208,7 @@
"Filter": {
"target": "com.amazonaws.organizations#PolicyType",
"traits": {
- "smithy.api#documentation": "Specifies the type of policy that you want to include in the response. You must\n specify one of the following values:
\n ",
+ "smithy.api#documentation": "Specifies the type of policy that you want to include in the response. You must\n specify one of the following values:
\n ",
"smithy.api#required": {}
}
},
@@ -7263,7 +7275,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists the roots that are defined in the current organization.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
\n \n Policy types can be enabled and disabled in roots. This is distinct from whether\n they're available in the organization. When you enable all features, you make policy\n types available for use in that organization. Individual policy types can then be\n enabled and disabled in a root. To see the availability of a policy type in an\n organization, use DescribeOrganization.
\n ",
+ "smithy.api#documentation": "Lists the roots that are defined in the current organization.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
\n \n Policy types can be enabled and disabled in roots. This is distinct from whether\n they're available in the organization. When you enable all features, you make policy\n types available for use in that organization. Individual policy types can then be\n enabled and disabled in a root. To see the availability of a policy type in an\n organization, use DescribeOrganization.
\n ",
"smithy.api#examples": [
{
"title": "To retrieve a list of roots in the organization",
@@ -7361,7 +7373,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists tags that are attached to the specified resource.
\n You can attach tags to the following resources in Organizations.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists tags that are attached to the specified resource.
\n You can attach tags to the following resources in Organizations.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#paginated": {
"inputToken": "NextToken",
"outputToken": "NextToken",
@@ -7442,7 +7454,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Lists all the roots, organizational units (OUs), and accounts that the specified\n policy is attached to.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Lists all the roots, organizational units (OUs), and accounts that the specified\n policy is attached to.
\n \n Always check the NextToken response parameter \nfor a null value when calling a List* operation. These operations can \noccasionally return an empty set of results even when there are more results available. The \nNextToken response parameter value is null\n only \nwhen there are no more results to display.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To retrieve a list of roots, OUs, and accounts to which a policy is attached",
@@ -8158,6 +8170,12 @@
"traits": {
"smithy.api#enumValue": "DECLARATIVE_POLICY_EC2"
}
+ },
+ "SECURITYHUB_POLICY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SECURITYHUB_POLICY"
+ }
}
}
},
@@ -8284,7 +8302,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates or updates a resource policy.
\n You can only call this operation from the organization's management account.
"
+ "smithy.api#documentation": "Creates or updates a resource policy.
\n This operation can be called only from the organization's management account..
"
}
},
"com.amazonaws.organizations#PutResourcePolicyRequest": {
@@ -8727,7 +8745,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Adds one or more tags to the specified resource.
\n Currently, you can attach tags to the following resources in Organizations.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
"
+ "smithy.api#documentation": "Adds one or more tags to the specified resource.
\n Currently, you can attach tags to the following resources in Organizations.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
"
}
},
"com.amazonaws.organizations#TagResourceRequest": {
@@ -8890,7 +8908,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Removes any tags with the specified keys from the specified resource.
\n You can attach tags to the following resources in Organizations.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
"
+ "smithy.api#documentation": "Removes any tags with the specified keys from the specified resource.
\n You can attach tags to the following resources in Organizations.
\n \n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
"
}
},
"com.amazonaws.organizations#UntagResourceRequest": {
@@ -9052,7 +9070,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Updates an existing policy with a new name, description, or content. If you don't\n supply any parameter, that value remains unchanged. You can't change a policy's\n type.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator for an Amazon Web Services service.
",
+ "smithy.api#documentation": "Updates an existing policy with a new name, description, or content. If you don't\n supply any parameter, that value remains unchanged. You can't change a policy's\n type.
\n This operation can be called only from the organization's\nmanagement account or by a member account that is a delegated administrator.
",
"smithy.api#examples": [
{
"title": "To update the content of a policy",
diff --git a/codegen/sdk-codegen/aws-models/pcs.json b/codegen/sdk-codegen/aws-models/pcs.json
index 164fe9aaaba..b91243d434c 100644
--- a/codegen/sdk-codegen/aws-models/pcs.json
+++ b/codegen/sdk-codegen/aws-models/pcs.json
@@ -820,7 +820,7 @@
"min": 1,
"max": 1011
},
- "smithy.api#pattern": "^arn:aws*:pcs:.*:[0-9]{12}:.*/[a-z0-9_\\-]+$"
+ "smithy.api#pattern": "^arn:aws.*:pcs:.*:[0-9]{12}:.*/[a-z0-9_\\-]+$"
}
},
"com.amazonaws.pcs#BootstrapId": {
@@ -2491,7 +2491,7 @@
"com.amazonaws.pcs#InstanceProfileArn": {
"type": "string",
"traits": {
- "smithy.api#pattern": "^arn:aws([a-zA-Z-]{0,10})?:iam::[0-9]{12}:instance-profile/.{1,128}$"
+ "smithy.api#pattern": "^arn:aws([a-zA-Z-]{0,10})?:iam::[0-9]{12}:instance-profile/[\\w+=,.@-]{1,128}$"
}
},
"com.amazonaws.pcs#InternalServerException": {
diff --git a/codegen/sdk-codegen/aws-models/rds.json b/codegen/sdk-codegen/aws-models/rds.json
index 442dca91b5d..2439a50545a 100644
--- a/codegen/sdk-codegen/aws-models/rds.json
+++ b/codegen/sdk-codegen/aws-models/rds.json
@@ -3038,7 +3038,7 @@
"InitQuery": {
"target": "com.amazonaws.rds#String",
"traits": {
- "smithy.api#documentation": "Add an initialization query, or modify the current one. You can specify one or more SQL statements for the proxy to run when opening each new database connection. \n The setting is typically used with SET statements to make sure that each connection has identical settings. \n Make sure the query added here is valid. This is an optional field, so you can choose to leave it empty.\n For including multiple variables in a single SET statement, use a comma separator.
\n For example: SET variable1=value1, variable2=value2\n
\n Default: no initialization query
"
+ "smithy.api#documentation": "Add an initialization query, or modify the current one. You can specify one or more SQL statements for the proxy to run when opening each new database connection. \n The setting is typically used with SET statements to make sure that each connection has identical settings. \n Make sure the query added here is valid. This is an optional field, so you can choose to leave it empty.\n For including multiple variables in a single SET statement, use a comma separator.
\n For example: SET variable1=value1, variable2=value2\n
\n Default: no initialization query
\n \n Since you can access initialization query as part of target group configuration, it is not protected by authentication or cryptographic methods. \n Anyone with access to view or manage your proxy target group configuration can view the initialization query. \n You should not add sensitive data, such as passwords or long-lived encryption keys, to this option.
\n "
}
}
},
@@ -3076,7 +3076,7 @@
"InitQuery": {
"target": "com.amazonaws.rds#String",
"traits": {
- "smithy.api#documentation": "One or more SQL statements for the proxy to run when opening each new database connection. \n The setting is typically used with SET statements to make sure that each connection has identical settings. \n The query added here must be valid. For including multiple variables in a single SET statement, use a comma separator. \n This is an optional field.
\n For example: SET variable1=value1, variable2=value2\n
"
+ "smithy.api#documentation": "One or more SQL statements for the proxy to run when opening each new database connection. \n The setting is typically used with SET statements to make sure that each connection has identical settings. \n The query added here must be valid. For including multiple variables in a single SET statement, use a comma separator. \n This is an optional field.
\n For example: SET variable1=value1, variable2=value2\n
\n \n Since you can access initialization query as part of target group configuration, it is not protected by authentication or cryptographic methods. \n Anyone with access to view or manage your proxy target group configuration can view the initialization query. \n You should not add sensitive data, such as passwords or long-lived encryption keys, to this option.
\n "
}
}
},
@@ -5441,7 +5441,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Creates a new DB instance that acts as a read replica for an existing source DB\n instance or Multi-AZ DB cluster. You can create a read replica for a DB instance running\n Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server. You can create a read replica for a\n Multi-AZ DB cluster running MySQL or PostgreSQL. For more information, see Working\n with read replicas and Migrating from a Multi-AZ DB cluster to a DB instance using a read replica in the Amazon RDS User Guide.
\n Amazon Aurora doesn't support this operation. To create a DB instance for an Aurora DB cluster, use the CreateDBInstance\n operation.
\n All read replica DB instances are created with backups disabled. All other attributes\n (including DB security groups and DB parameter groups) are inherited from the source DB\n instance or cluster, except as specified.
\n \n Your source DB instance or cluster must have backup retention enabled.
\n ",
+ "smithy.api#documentation": "Creates a new DB instance that acts as a read replica for an existing source DB\n instance or Multi-AZ DB cluster. You can create a read replica for a DB instance running\n MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server. You can create a read replica for a\n Multi-AZ DB cluster running MySQL or PostgreSQL. For more information, see Working\n with read replicas and Migrating from a Multi-AZ DB cluster to a DB instance using a read replica\n in the Amazon RDS User Guide.
\n Amazon RDS for Db2 supports this operation for standby replicas. To create a standby\n replica for a DB instance running Db2, you must set ReplicaMode to\n mounted.
\n Amazon Aurora doesn't support this operation. To create a DB instance for an Aurora DB cluster, use the CreateDBInstance\n operation.
\n RDS creates read replicas with backups disabled. All other attributes\n (including DB security groups and DB parameter groups) are inherited from the source DB\n instance or cluster, except as specified.
\n \n Your source DB instance or cluster must have backup retention enabled.
\n ",
"smithy.api#examples": [
{
"title": "To create a DB instance read replica",
@@ -5477,7 +5477,7 @@
"SourceDBInstanceIdentifier": {
"target": "com.amazonaws.rds#String",
"traits": {
- "smithy.api#documentation": "The identifier of the DB instance that will act as the source for the read replica.\n Each DB instance can have up to 15 read replicas, with the exception of Oracle and SQL\n Server, which can have up to five.
\n Constraints:
\n \n - \n
Must be the identifier of an existing Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server DB\n instance.
\n \n - \n
Can't be specified if the SourceDBClusterIdentifier parameter is\n also specified.
\n \n - \n
For the limitations of Oracle read replicas, see Version and licensing considerations for RDS for Oracle replicas in the\n Amazon RDS User Guide.
\n \n - \n
For the limitations of SQL Server read replicas, see Read replica limitations with SQL Server in the Amazon RDS User Guide.
\n \n - \n
The specified DB instance must have automatic backups enabled, that is, its backup\n retention period must be greater than 0.
\n \n - \n
If the source DB instance is in the same Amazon Web Services Region as the read replica, specify a valid DB\n instance identifier.
\n \n - \n
If the source DB instance is in a different Amazon Web Services Region from the read\n replica, specify a valid DB instance ARN. For more information, see Constructing an ARN for Amazon RDS in the Amazon RDS User\n Guide. This doesn't apply to SQL Server or RDS Custom, which\n don't support cross-Region replicas.
\n \n
"
+ "smithy.api#documentation": "The identifier of the DB instance that will act as the source for the read replica.\n Each DB instance can have up to 15 read replicas, except for the following\n engines:
\n \n - \n
Db2 - Can have up to three replicas.
\n \n - \n
Oracle - Can have up to five read replicas.
\n \n - \n
SQL Server - Can have up to five read replicas.
\n \n
\n Constraints:
\n \n - \n
Must be the identifier of an existing Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server DB\n instance.
\n \n - \n
Can't be specified if the SourceDBClusterIdentifier parameter is\n also specified.
\n \n - \n
For the limitations of Oracle read replicas, see Version and licensing considerations for RDS for Oracle replicas in the\n Amazon RDS User Guide.
\n \n - \n
For the limitations of SQL Server read replicas, see Read replica limitations with SQL Server in the Amazon RDS User Guide.
\n \n - \n
The specified DB instance must have automatic backups enabled, that is, its backup\n retention period must be greater than 0.
\n \n - \n
If the source DB instance is in the same Amazon Web Services Region as the read replica, specify a valid DB\n instance identifier.
\n \n - \n
If the source DB instance is in a different Amazon Web Services Region from the read\n replica, specify a valid DB instance ARN. For more information, see Constructing an ARN for Amazon RDS in the Amazon RDS User\n Guide. This doesn't apply to SQL Server or RDS Custom, which\n don't support cross-Region replicas.
\n \n
"
}
},
"DBInstanceClass": {
@@ -5525,7 +5525,7 @@
"DBParameterGroupName": {
"target": "com.amazonaws.rds#String",
"traits": {
- "smithy.api#documentation": "The name of the DB parameter group to associate with this read replica DB\n instance.
\n For Single-AZ or Multi-AZ DB instance read replica instances, if you don't specify a\n value for DBParameterGroupName, then Amazon RDS uses the\n DBParameterGroup of the source DB instance for a same Region read\n replica, or the default DBParameterGroup for the specified DB engine for a\n cross-Region read replica.
\n For Multi-AZ DB cluster same Region read replica instances, if you don't specify a\n value for DBParameterGroupName, then Amazon RDS uses the default\n DBParameterGroup.
\n Specifying a parameter group for this operation is only supported for MySQL DB\n instances for cross-Region read replicas, for Multi-AZ DB cluster read replica\n instances, and for Oracle DB instances. It isn't supported for MySQL DB instances for\n same Region read replicas or for RDS Custom.
\n Constraints:
\n \n - \n
Must be 1 to 255 letters, numbers, or hyphens.
\n \n - \n
First character must be a letter.
\n \n - \n
Can't end with a hyphen or contain two consecutive hyphens.
\n \n
"
+ "smithy.api#documentation": "The name of the DB parameter group to associate with this read replica DB\n instance.
\n For the Db2 DB engine, if your source DB instance uses the Bring Your Own License\n model, then a custom parameter group must be associated with the replica. For a same\n Amazon Web Services Region replica, if you don't specify a custom parameter group, Amazon RDS\n associates the custom parameter group associated with the source DB instance. For a\n cross-Region replica, you must specify a custom parameter group. This custom parameter\n group must include your IBM Site ID and IBM Customer ID. For more information, see\n IBM IDs\n for Bring Your Own License for Db2.
\n For Single-AZ or Multi-AZ DB instance read replica instances, if you don't specify a\n value for DBParameterGroupName, then Amazon RDS uses the\n DBParameterGroup of the source DB instance for a same Region read\n replica, or the default DBParameterGroup for the specified DB engine for a\n cross-Region read replica.
\n For Multi-AZ DB cluster same Region read replica instances, if you don't specify a\n value for DBParameterGroupName, then Amazon RDS uses the default\n DBParameterGroup.
\n Specifying a parameter group for this operation is only supported for MySQL DB\n instances for cross-Region read replicas, for Multi-AZ DB cluster read replica\n instances, for Db2 DB instances, and for Oracle DB instances. It isn't supported for\n MySQL DB instances for same Region read replicas or for RDS Custom.
\n Constraints:
\n \n - \n
Must be 1 to 255 letters, numbers, or hyphens.
\n \n - \n
First character must be a letter.
\n \n - \n
Can't end with a hyphen or contain two consecutive hyphens.
\n \n
"
}
},
"PubliclyAccessible": {
@@ -5678,7 +5678,7 @@
"ReplicaMode": {
"target": "com.amazonaws.rds#ReplicaMode",
"traits": {
- "smithy.api#documentation": "The open mode of the replica database: mounted or read-only.
\n \n This parameter is only supported for Oracle DB instances.
\n \n Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for\n mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active\n Data Guard to transmit information to the mounted replica. Because it doesn't accept\n user connections, a mounted replica can't serve a read-only workload.
\n You can create a combination of mounted and read-only DB replicas for the same primary DB instance.\n For more information, see Working with Oracle Read Replicas for Amazon RDS \n in the Amazon RDS User Guide.
\n For RDS Custom, you must specify this parameter and set it to mounted. The value won't be set by default. \n After replica creation, you can manage the open mode manually.
"
+ "smithy.api#documentation": "The open mode of the replica database.
\n \n This parameter is only supported for Db2 DB instances and Oracle DB\n instances.
\n \n \n - Db2
\n - \n
Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2\n Standard Edition (SE). The main use case for standby replicas is\n cross-Region disaster recovery. Because it doesn't accept user\n connections, a standby replica can't serve a read-only workload.
\n You can create a combination of standby and read-only DB replicas for the\n same primary DB instance. For more information, see Working with read\n replicas for Amazon RDS for Db2 in the Amazon RDS User\n Guide.
\n To create standby DB replicas for RDS for Db2, set this parameter to\n mounted.
\n \n - Oracle
\n - \n
Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for\n mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active\n Data Guard to transmit information to the mounted replica. Because it doesn't accept\n user connections, a mounted replica can't serve a read-only workload.
\n You can create a combination of mounted and read-only DB replicas for the same primary DB instance.\n For more information, see Working with read replicas for Amazon RDS for Oracle \n in the Amazon RDS User Guide.
\n For RDS Custom, you must specify this parameter and set it to\n mounted. The value won't be set by default. After replica\n creation, you can manage the open mode manually.
\n \n
"
}
},
"MaxAllocatedStorage": {
@@ -9234,7 +9234,7 @@
"ReplicaMode": {
"target": "com.amazonaws.rds#ReplicaMode",
"traits": {
- "smithy.api#documentation": "The open mode of an Oracle read replica. The default is open-read-only. \n For more information, see Working with Oracle Read Replicas for Amazon RDS \n in the Amazon RDS User Guide.
\n \n This attribute is only supported in RDS for Oracle.
\n "
+ "smithy.api#documentation": "The open mode of a Db2 or an Oracle read replica. The default is\n open-read-only. For more information, see Working with read replicas for\n Amazon RDS for Db2 and Working with read replicas\n for Amazon RDS for Oracle in the Amazon RDS User Guide.
\n \n This attribute is only supported in RDS for Db2, RDS for Oracle, and RDS Custom\n for Oracle.
\n "
}
},
"LicenseModel": {
@@ -22736,7 +22736,7 @@
"ReplicaMode": {
"target": "com.amazonaws.rds#ReplicaMode",
"traits": {
- "smithy.api#documentation": "A value that sets the open mode of a replica database to either mounted or read-only.
\n \n Currently, this parameter is only supported for Oracle DB instances.
\n \n Mounted DB replicas are included in Oracle Enterprise Edition. The main use case for \n mounted replicas is cross-Region disaster recovery. The primary database doesn't use \n Active Data Guard to transmit information to the mounted replica. Because it doesn't \n accept user connections, a mounted replica can't serve a read-only workload. \n For more information, see Working with Oracle Read Replicas for Amazon RDS \n in the Amazon RDS User Guide.
\n This setting doesn't apply to RDS Custom DB instances.
"
+ "smithy.api#documentation": "The open mode of a replica database.
\n \n This parameter is only supported for Db2 DB instances and Oracle DB\n instances.
\n \n \n - Db2
\n - \n
Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2\n Standard Edition (SE). The main use case for standby replicas is\n cross-Region disaster recovery. Because it doesn't accept user\n connections, a standby replica can't serve a read-only workload.
\n You can create a combination of standby and read-only DB replicas for the\n same primary DB instance. For more information, see Working with read\n replicas for Amazon RDS for Db2 in the Amazon RDS User\n Guide.
\n To create standby DB replicas for RDS for Db2, set this parameter to\n mounted.
\n \n - Oracle
\n - \n
Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for\n mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active\n Data Guard to transmit information to the mounted replica. Because it doesn't accept\n user connections, a mounted replica can't serve a read-only workload.
\n You can create a combination of mounted and read-only DB replicas for the\n same primary DB instance. For more information, see Working with\n read replicas for Amazon RDS for Oracle in the Amazon\n RDS User Guide.
\n For RDS Custom, you must specify this parameter and set it to\n mounted. The value won't be set by default. After replica\n creation, you can manage the open mode manually.
\n \n
"
}
},
"EnableCustomerOwnedIp": {
diff --git a/codegen/sdk-codegen/aws-models/sagemaker.json b/codegen/sdk-codegen/aws-models/sagemaker.json
index 72bfcc1cc27..469f8958e50 100644
--- a/codegen/sdk-codegen/aws-models/sagemaker.json
+++ b/codegen/sdk-codegen/aws-models/sagemaker.json
@@ -55847,6 +55847,168 @@
"traits": {
"smithy.api#enumValue": "ml.c6i.32xlarge"
}
+ },
+ "ML_M7I_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.large"
+ }
+ },
+ "ML_M7I_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.xlarge"
+ }
+ },
+ "ML_M7I_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.2xlarge"
+ }
+ },
+ "ML_M7I_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.4xlarge"
+ }
+ },
+ "ML_M7I_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.8xlarge"
+ }
+ },
+ "ML_M7I_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.12xlarge"
+ }
+ },
+ "ML_M7I_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.16xlarge"
+ }
+ },
+ "ML_M7I_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.24xlarge"
+ }
+ },
+ "ML_M7I_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.48xlarge"
+ }
+ },
+ "ML_C7I_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.large"
+ }
+ },
+ "ML_C7I_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.xlarge"
+ }
+ },
+ "ML_C7I_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.2xlarge"
+ }
+ },
+ "ML_C7I_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.4xlarge"
+ }
+ },
+ "ML_C7I_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.8xlarge"
+ }
+ },
+ "ML_C7I_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.12xlarge"
+ }
+ },
+ "ML_C7I_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.16xlarge"
+ }
+ },
+ "ML_C7I_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.24xlarge"
+ }
+ },
+ "ML_C7I_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.48xlarge"
+ }
+ },
+ "ML_R7I_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.large"
+ }
+ },
+ "ML_R7I_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.xlarge"
+ }
+ },
+ "ML_R7I_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.2xlarge"
+ }
+ },
+ "ML_R7I_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.4xlarge"
+ }
+ },
+ "ML_R7I_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.8xlarge"
+ }
+ },
+ "ML_R7I_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.12xlarge"
+ }
+ },
+ "ML_R7I_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.16xlarge"
+ }
+ },
+ "ML_R7I_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.24xlarge"
+ }
+ },
+ "ML_R7I_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.48xlarge"
+ }
}
}
},
@@ -58052,6 +58214,240 @@
"traits": {
"smithy.api#enumValue": "ml.r7i.48xlarge"
}
+ },
+ "ML_C8G_MEDIUM": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.medium"
+ }
+ },
+ "ML_C8G_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.large"
+ }
+ },
+ "ML_C8G_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.xlarge"
+ }
+ },
+ "ML_C8G_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.2xlarge"
+ }
+ },
+ "ML_C8G_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.4xlarge"
+ }
+ },
+ "ML_C8G_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.8xlarge"
+ }
+ },
+ "ML_C8G_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.12xlarge"
+ }
+ },
+ "ML_C8G_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.16xlarge"
+ }
+ },
+ "ML_C8G_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.24xlarge"
+ }
+ },
+ "ML_C8G_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c8g.48xlarge"
+ }
+ },
+ "ML_R7GD_MEDIUM": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7gd.medium"
+ }
+ },
+ "ML_R7GD_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7gd.large"
+ }
+ },
+ "ML_R7GD_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7gd.xlarge"
+ }
+ },
+ "ML_R7GD_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7gd.2xlarge"
+ }
+ },
+ "ML_R7GD_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7gd.4xlarge"
+ }
+ },
+ "ML_R7GD_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7gd.8xlarge"
+ }
+ },
+ "ML_R7GD_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7gd.12xlarge"
+ }
+ },
+ "ML_R7GD_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7gd.16xlarge"
+ }
+ },
+ "ML_M8G_MEDIUM": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.medium"
+ }
+ },
+ "ML_M8G_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.large"
+ }
+ },
+ "ML_M8G_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.xlarge"
+ }
+ },
+ "ML_M8G_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.2xlarge"
+ }
+ },
+ "ML_M8G_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.4xlarge"
+ }
+ },
+ "ML_M8G_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.8xlarge"
+ }
+ },
+ "ML_M8G_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.12xlarge"
+ }
+ },
+ "ML_M8G_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.16xlarge"
+ }
+ },
+ "ML_M8G_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.24xlarge"
+ }
+ },
+ "ML_M8G_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m8g.48xlarge"
+ }
+ },
+ "ML_C6IN_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.large"
+ }
+ },
+ "ML_C6IN_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.xlarge"
+ }
+ },
+ "ML_C6IN_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.2xlarge"
+ }
+ },
+ "ML_C6IN_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.4xlarge"
+ }
+ },
+ "ML_C6IN_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.8xlarge"
+ }
+ },
+ "ML_C6IN_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.12xlarge"
+ }
+ },
+ "ML_C6IN_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.16xlarge"
+ }
+ },
+ "ML_C6IN_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.24xlarge"
+ }
+ },
+ "ML_C6IN_32XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c6in.32xlarge"
+ }
+ },
+ "ML_P6_B200_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.p6-b200.48xlarge"
+ }
+ },
+ "ML_P6E_GB200_36XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.p6e-gb200.36xlarge"
+ }
}
}
},
@@ -61672,7 +62068,7 @@
"target": "com.amazonaws.sagemaker#S3DataType",
"traits": {
"smithy.api#clientOptional": {},
- "smithy.api#documentation": "If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.
If you choose ManifestFile, S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.
If you choose AugmentedManifestFile, S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe.
",
+ "smithy.api#documentation": "If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.
If you choose ManifestFile, S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.
If you choose AugmentedManifestFile, S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe.
If you choose Converse, S3Uri identifies an Amazon S3 location that contains data formatted according to Converse format. This format structures conversational messages with specific roles and content types used for training and fine-tuning foundational models.
",
"smithy.api#required": {}
}
},
@@ -61736,6 +62132,12 @@
"traits": {
"smithy.api#enumValue": "AugmentedManifestFile"
}
+ },
+ "CONVERSE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Converse"
+ }
}
}
},
@@ -69932,6 +70334,168 @@
"traits": {
"smithy.api#enumValue": "ml.p6-b200.48xlarge"
}
+ },
+ "ML_M7I_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.large"
+ }
+ },
+ "ML_M7I_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.xlarge"
+ }
+ },
+ "ML_M7I_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.2xlarge"
+ }
+ },
+ "ML_M7I_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.4xlarge"
+ }
+ },
+ "ML_M7I_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.8xlarge"
+ }
+ },
+ "ML_M7I_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.12xlarge"
+ }
+ },
+ "ML_M7I_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.16xlarge"
+ }
+ },
+ "ML_M7I_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.24xlarge"
+ }
+ },
+ "ML_M7I_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.m7i.48xlarge"
+ }
+ },
+ "ML_C7I_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.large"
+ }
+ },
+ "ML_C7I_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.xlarge"
+ }
+ },
+ "ML_C7I_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.2xlarge"
+ }
+ },
+ "ML_C7I_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.4xlarge"
+ }
+ },
+ "ML_C7I_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.8xlarge"
+ }
+ },
+ "ML_C7I_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.12xlarge"
+ }
+ },
+ "ML_C7I_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.16xlarge"
+ }
+ },
+ "ML_C7I_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.24xlarge"
+ }
+ },
+ "ML_C7I_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.c7i.48xlarge"
+ }
+ },
+ "ML_R7I_LARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.large"
+ }
+ },
+ "ML_R7I_XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.xlarge"
+ }
+ },
+ "ML_R7I_2XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.2xlarge"
+ }
+ },
+ "ML_R7I_4XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.4xlarge"
+ }
+ },
+ "ML_R7I_8XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.8xlarge"
+ }
+ },
+ "ML_R7I_12XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.12xlarge"
+ }
+ },
+ "ML_R7I_16XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.16xlarge"
+ }
+ },
+ "ML_R7I_24XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.24xlarge"
+ }
+ },
+ "ML_R7I_48XLARGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ml.r7i.48xlarge"
+ }
}
}
},
diff --git a/codegen/sdk-codegen/aws-models/securityhub.json b/codegen/sdk-codegen/aws-models/securityhub.json
index 309061fbb08..7fd5512ec94 100644
--- a/codegen/sdk-codegen/aws-models/securityhub.json
+++ b/codegen/sdk-codegen/aws-models/securityhub.json
@@ -614,6 +614,43 @@
}
}
},
+ "com.amazonaws.securityhub#AggregatorV2": {
+ "type": "structure",
+ "members": {
+ "AggregatorV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the aggregatorV2.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Specifies a cross-Region data aggregation configuration, including the aggregation Region and any linked Regions.
"
+ }
+ },
+ "com.amazonaws.securityhub#AggregatorV2List": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#AggregatorV2"
+ }
+ },
+ "com.amazonaws.securityhub#AllowedOperators": {
+ "type": "enum",
+ "members": {
+ "AND": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "AND"
+ }
+ },
+ "OR": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "OR"
+ }
+ }
+ }
+ },
"com.amazonaws.securityhub#AlphaNumericNonEmptyString": {
"type": "string",
"traits": {
@@ -813,6 +850,18 @@
"smithy.api#documentation": "\n One or more actions that Security Hub takes when a finding matches the defined criteria \n of a rule.\n
"
}
},
+ "com.amazonaws.securityhub#AutomationRulesActionListV2": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#AutomationRulesActionV2"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 1
+ }
+ }
+ },
"com.amazonaws.securityhub#AutomationRulesActionType": {
"type": "enum",
"members": {
@@ -824,6 +873,71 @@
}
}
},
+ "com.amazonaws.securityhub#AutomationRulesActionTypeListV2": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#AutomationRulesActionTypeObjectV2"
+ }
+ },
+ "com.amazonaws.securityhub#AutomationRulesActionTypeObjectV2": {
+ "type": "structure",
+ "members": {
+ "Type": {
+ "target": "com.amazonaws.securityhub#AutomationRulesActionTypeV2",
+ "traits": {
+ "smithy.api#documentation": "The category of action to be executed by the automation rule.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Allows you to customize security response workflows.
"
+ }
+ },
+ "com.amazonaws.securityhub#AutomationRulesActionTypeV2": {
+ "type": "enum",
+ "members": {
+ "FINDING_FIELDS_UPDATE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FINDING_FIELDS_UPDATE"
+ }
+ },
+ "EXTERNAL_INTEGRATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "EXTERNAL_INTEGRATION"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#AutomationRulesActionV2": {
+ "type": "structure",
+ "members": {
+ "Type": {
+ "target": "com.amazonaws.securityhub#AutomationRulesActionTypeV2",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The category of action to be executed by the automation rule.
",
+ "smithy.api#required": {}
+ }
+ },
+ "FindingFieldsUpdate": {
+ "target": "com.amazonaws.securityhub#AutomationRulesFindingFieldsUpdateV2",
+ "traits": {
+ "smithy.api#documentation": "The changes to be applied to fields in a security finding when an automation rule is triggered.
"
+ }
+ },
+ "ExternalIntegrationConfiguration": {
+ "target": "com.amazonaws.securityhub#ExternalIntegrationConfiguration",
+ "traits": {
+ "smithy.api#documentation": "The settings for integrating automation rule actions with external systems or service.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Allows you to configure automated responses.
"
+ }
+ },
"com.amazonaws.securityhub#AutomationRulesArnsList": {
"type": "list",
"member": {
@@ -969,6 +1083,32 @@
"smithy.api#documentation": "\n Identifies the finding fields that the automation rule action updates when a finding matches the defined criteria.\n
"
}
},
+ "com.amazonaws.securityhub#AutomationRulesFindingFieldsUpdateV2": {
+ "type": "structure",
+ "members": {
+ "SeverityId": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The severity level to be assigned to findings that match the automation rule criteria.
"
+ }
+ },
+ "Comment": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "Notes or contextual information for findings that are modified by the automation rule.
"
+ }
+ },
+ "StatusId": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The status to be applied to findings that match automation rule criteria.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Allows you to define the structure for modifying specific fields in security findings.
"
+ }
+ },
"com.amazonaws.securityhub#AutomationRulesFindingFilters": {
"type": "structure",
"members": {
@@ -1273,6 +1413,74 @@
"target": "com.amazonaws.securityhub#AutomationRulesMetadata"
}
},
+ "com.amazonaws.securityhub#AutomationRulesMetadataListV2": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#AutomationRulesMetadataV2"
+ }
+ },
+ "com.amazonaws.securityhub#AutomationRulesMetadataV2": {
+ "type": "structure",
+ "members": {
+ "RuleArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the automation rule.
"
+ }
+ },
+ "RuleId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ID of the automation rule.
"
+ }
+ },
+ "RuleOrder": {
+ "target": "com.amazonaws.securityhub#RuleOrderValueV2",
+ "traits": {
+ "smithy.api#documentation": "The value for the rule priority.
"
+ }
+ },
+ "RuleName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The name of the automation rule.
"
+ }
+ },
+ "RuleStatus": {
+ "target": "com.amazonaws.securityhub#RuleStatusV2",
+ "traits": {
+ "smithy.api#documentation": "The status of the automation rule.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "An explanation for the purpose and funcitonality of the automation rule.
"
+ }
+ },
+ "Actions": {
+ "target": "com.amazonaws.securityhub#AutomationRulesActionTypeListV2",
+ "traits": {
+ "smithy.api#documentation": "The list of action to be performed when the rule criteria is met.
"
+ }
+ },
+ "CreatedAt": {
+ "target": "com.amazonaws.securityhub#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp for when the automation rule was created.
"
+ }
+ },
+ "UpdatedAt": {
+ "target": "com.amazonaws.securityhub#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp for the most recent modification to the automation rule.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Includes essential metadata information about automation rules.
"
+ }
+ },
"com.amazonaws.securityhub#AvailabilityZone": {
"type": "structure",
"members": {
@@ -21763,7 +21971,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Used by Security Hub customers to update information about their investigation into a finding.\n Requested by administrator accounts or member accounts. Administrator accounts can update findings for\n their account and their member accounts. Member accounts can update findings for their\n account.
\n Updates from BatchUpdateFindings don't affect the value of\n UpdatedAt for a finding.
\n Administrator and member accounts can use BatchUpdateFindings to update the\n following finding fields and objects.
\n \n - \n
\n Confidence\n
\n \n - \n
\n Criticality\n
\n \n - \n
\n Note\n
\n \n - \n
\n RelatedFindings\n
\n \n - \n
\n Severity\n
\n \n - \n
\n Types\n
\n \n - \n
\n UserDefinedFields\n
\n \n - \n
\n VerificationState\n
\n \n - \n
\n Workflow\n
\n \n
\n You can configure IAM policies to restrict access to fields and field values. For\n example, you might not want member accounts to be able to suppress findings or change the\n finding severity. See Configuring access to BatchUpdateFindings in the\n Security Hub User Guide.
",
+ "smithy.api#documentation": "\n Used by Security Hub customers to update information about their investigation into one or more findings.\n Requested by administrator accounts or member accounts. \n Administrator accounts can update findings for their account and their member accounts. \n A member account can update findings only for their own account.\n Administrator and member accounts can use this operation to update the following fields and objects for one or more findings:\n
\n \n - \n
\n Confidence\n
\n \n - \n
\n Criticality\n
\n \n - \n
\n Note\n
\n \n - \n
\n RelatedFindings\n
\n \n - \n
\n Severity\n
\n \n - \n
\n Types\n
\n \n - \n
\n UserDefinedFields\n
\n \n - \n
\n VerificationState\n
\n \n - \n
\n Workflow\n
\n \n
\n \n If you use this operation to update a finding, your updates don’t affect the value for the UpdatedAt field of the finding. \n Also note that it can take several minutes for Security Hub to process your request and update each finding specified in the request. \n
\n \n You can configure IAM policies to restrict access to fields and field values. \n For example, you might not want member accounts to be able to suppress findings or change the finding severity. \n For more information see Configuring access to BatchUpdateFindings in the Security Hub User Guide.\n
",
"smithy.api#examples": [
{
"title": "To update Security Hub findings",
@@ -21956,6 +22164,195 @@
"target": "com.amazonaws.securityhub#BatchUpdateFindingsUnprocessedFinding"
}
},
+ "com.amazonaws.securityhub#BatchUpdateFindingsV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#BatchUpdateFindingsV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#BatchUpdateFindingsV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Used by customers to update information about their investigation into a finding. \n Requested by delegated administrator accounts or member accounts. \n Delegated administrator accounts can update findings for their account and their member accounts. \n Member accounts can update findings for their account. BatchUpdateFindings and BatchUpdateFindingV2 both use securityhub:BatchUpdateFindings in the Action element of an IAM policy statement. \n You must have permission to perform the securityhub:BatchUpdateFindings action. \n Updates from BatchUpdateFindingsV2 don't affect the value of finding_info.modified_time, finding_info.modified_time_dt, time, time_dt for a finding. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "PATCH",
+ "uri": "/findingsv2/batchupdatev2",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#BatchUpdateFindingsV2ProcessedFinding": {
+ "type": "structure",
+ "members": {
+ "FindingIdentifier": {
+ "target": "com.amazonaws.securityhub#OcsfFindingIdentifier",
+ "traits": {
+ "smithy.api#documentation": "The finding identifier of a processed finding.
"
+ }
+ },
+ "MetadataUid": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The metadata.uid of a processed finding.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The list of findings that were updated.
"
+ }
+ },
+ "com.amazonaws.securityhub#BatchUpdateFindingsV2ProcessedFindingsList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#BatchUpdateFindingsV2ProcessedFinding"
+ }
+ },
+ "com.amazonaws.securityhub#BatchUpdateFindingsV2Request": {
+ "type": "structure",
+ "members": {
+ "MetadataUids": {
+ "target": "com.amazonaws.securityhub#MetadataUidList",
+ "traits": {
+ "smithy.api#documentation": "The list of finding metadata.uid to indicate findings to update. \n Finding metadata.uid is a globally unique identifier associated with the finding. \n Customers cannot use MetadataUids together with FindingIdentifiers.
"
+ }
+ },
+ "FindingIdentifiers": {
+ "target": "com.amazonaws.securityhub#OcsfFindingIdentifierList",
+ "traits": {
+ "smithy.api#documentation": "Provides information to identify a specific V2 finding.
"
+ }
+ },
+ "Comment": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The updated value for a user provided comment about the finding. \n Minimum character length 1. \n Maximum character length 512.
"
+ }
+ },
+ "SeverityId": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The updated value for the normalized severity identifier. \n The severity ID is an integer with the allowed enum values [0, 1, 2, 3, 4, 5, 99]. \n When customer provides the updated severity ID, the string sibling severity will automatically be updated in the finding.
"
+ }
+ },
+ "StatusId": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The updated value for the normalized status identifier. \n The status ID is an integer with the allowed enum values [0, 1, 2, 3, 4, 5, 6, 99]. \n When customer provides the updated status ID, the string sibling status will automatically be updated in the finding.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#BatchUpdateFindingsV2Response": {
+ "type": "structure",
+ "members": {
+ "ProcessedFindings": {
+ "target": "com.amazonaws.securityhub#BatchUpdateFindingsV2ProcessedFindingsList",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The list of findings that were updated successfully.
",
+ "smithy.api#required": {}
+ }
+ },
+ "UnprocessedFindings": {
+ "target": "com.amazonaws.securityhub#BatchUpdateFindingsV2UnprocessedFindingsList",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The list of V2 findings that were not updated.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.securityhub#BatchUpdateFindingsV2UnprocessedFinding": {
+ "type": "structure",
+ "members": {
+ "FindingIdentifier": {
+ "target": "com.amazonaws.securityhub#OcsfFindingIdentifier",
+ "traits": {
+ "smithy.api#documentation": "The finding identifier of an unprocessed finding.
"
+ }
+ },
+ "MetadataUid": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The metadata.uid of an unprocessed finding.
"
+ }
+ },
+ "ErrorCode": {
+ "target": "com.amazonaws.securityhub#BatchUpdateFindingsV2UnprocessedFindingErrorCode",
+ "traits": {
+ "smithy.api#documentation": "Indicates the specific type of error preventing successful processing of a finding during a batch update operation.
"
+ }
+ },
+ "ErrorMessage": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "A detailed description of why a finding could not be processed during a batch update operation.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The list of findings that were not updated.
"
+ }
+ },
+ "com.amazonaws.securityhub#BatchUpdateFindingsV2UnprocessedFindingErrorCode": {
+ "type": "enum",
+ "members": {
+ "ResourceNotFoundException": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ResourceNotFoundException"
+ }
+ },
+ "ValidationException": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ValidationException"
+ }
+ },
+ "InternalServerException": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "InternalServerException"
+ }
+ },
+ "ConflictException": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ConflictException"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#BatchUpdateFindingsV2UnprocessedFindingsList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#BatchUpdateFindingsV2UnprocessedFinding"
+ }
+ },
"com.amazonaws.securityhub#BatchUpdateStandardsControlAssociations": {
"type": "operation",
"input": {
@@ -22247,6 +22644,16 @@
"smithy.api#documentation": "Provides details about the current status of the sensitive data detection.
"
}
},
+ "com.amazonaws.securityhub#ClientToken": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 63
+ },
+ "smithy.api#pattern": "^[\\x21-\\x7E]{1,64}$"
+ }
+ },
"com.amazonaws.securityhub#CloudWatchLogsLogGroupArnConfigDetails": {
"type": "structure",
"members": {
@@ -22378,6 +22785,56 @@
}
}
},
+ "com.amazonaws.securityhub#CompositeFilter": {
+ "type": "structure",
+ "members": {
+ "StringFilters": {
+ "target": "com.amazonaws.securityhub#OcsfStringFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on string field values.
"
+ }
+ },
+ "DateFilters": {
+ "target": "com.amazonaws.securityhub#OcsfDateFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on date and timestamp fields.
"
+ }
+ },
+ "BooleanFilters": {
+ "target": "com.amazonaws.securityhub#OcsfBooleanFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on boolean field values.
"
+ }
+ },
+ "NumberFilters": {
+ "target": "com.amazonaws.securityhub#OcsfNumberFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on numerical field values.
"
+ }
+ },
+ "MapFilters": {
+ "target": "com.amazonaws.securityhub#OcsfMapFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on map field values.
"
+ }
+ },
+ "Operator": {
+ "target": "com.amazonaws.securityhub#AllowedOperators",
+ "traits": {
+ "smithy.api#documentation": "The logical operator used to combine multiple filter conditions.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables the creation of filtering criteria for security findings.
"
+ }
+ },
+ "com.amazonaws.securityhub#CompositeFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#CompositeFilter"
+ }
+ },
"com.amazonaws.securityhub#ConfigurationOptions": {
"type": "union",
"members": {
@@ -22589,6 +23046,22 @@
"target": "com.amazonaws.securityhub#ConfigurationPolicySummary"
}
},
+ "com.amazonaws.securityhub#ConflictException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ },
+ "Code": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request causes conflict with the current state of the service resource.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 409
+ }
+ },
"com.amazonaws.securityhub#ConnectionDirection": {
"type": "enum",
"members": {
@@ -22606,6 +23079,210 @@
}
}
},
+ "com.amazonaws.securityhub#ConnectorAuthStatus": {
+ "type": "enum",
+ "members": {
+ "ACTIVE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACTIVE"
+ }
+ },
+ "FAILED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ConnectorProviderName": {
+ "type": "enum",
+ "members": {
+ "JIRA_CLOUD": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "JIRA_CLOUD"
+ }
+ },
+ "SERVICENOW": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SERVICENOW"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ConnectorRegistrationsV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#ConnectorRegistrationsV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#ConnectorRegistrationsV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Grants permission to complete the authorization based on input parameters. This API is in preview release and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/connectorsv2/registrations",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ConnectorRegistrationsV2Request": {
+ "type": "structure",
+ "members": {
+ "AuthCode": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The authCode retrieved from authUrl to complete the OAuth 2.0 authorization code flow.
",
+ "smithy.api#required": {}
+ }
+ },
+ "AuthState": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The authState retrieved from authUrl to complete the OAuth 2.0 authorization code flow.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#ConnectorRegistrationsV2Response": {
+ "type": "structure",
+ "members": {
+ "ConnectorArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the connectorV2.
"
+ }
+ },
+ "ConnectorId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The UUID of the connectorV2 to identify connectorV2 resource.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.securityhub#ConnectorStatus": {
+ "type": "enum",
+ "members": {
+ "CONNECTED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CONNECTED"
+ }
+ },
+ "FAILED_TO_CONNECT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "FAILED_TO_CONNECT"
+ }
+ },
+ "PENDING_CONFIGURATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING_CONFIGURATION"
+ }
+ },
+ "PENDING_AUTHORIZATION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "PENDING_AUTHORIZATION"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ConnectorSummary": {
+ "type": "structure",
+ "members": {
+ "ConnectorArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the connectorV2.
"
+ }
+ },
+ "ConnectorId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The UUID of the connectorV2 to identify connectorV2 resource.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The Name field contains the user-defined name assigned to the integration connector. This helps identify and manage multiple connectors within Security Hub.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The description of the connectorV2.
"
+ }
+ },
+ "ProviderSummary": {
+ "target": "com.amazonaws.securityhub#ProviderSummary",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The connectorV2 third party provider configuration summary.
",
+ "smithy.api#required": {}
+ }
+ },
+ "CreatedAt": {
+ "target": "com.amazonaws.securityhub#Timestamp",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "ISO 8601 UTC timestamp for the time create the connectorV2.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A condensed overview of the connectorV2..
"
+ }
+ },
+ "com.amazonaws.securityhub#ConnectorSummaryList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ConnectorSummary"
+ }
+ },
"com.amazonaws.securityhub#ContainerDetails": {
"type": "structure",
"members": {
@@ -22806,6 +23483,110 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#CreateAggregatorV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#CreateAggregatorV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#CreateAggregatorV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Enables aggregation across Amazon Web Services Regions. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/aggregatorv2/create",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#CreateAggregatorV2Request": {
+ "type": "structure",
+ "members": {
+ "RegionLinkingMode": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Determines how Regions are linked to an Aggregator V2.
",
+ "smithy.api#required": {}
+ }
+ },
+ "LinkedRegions": {
+ "target": "com.amazonaws.securityhub#StringList",
+ "traits": {
+ "smithy.api#documentation": "The list of Regions that are linked to the aggregation Region.
"
+ }
+ },
+ "Tags": {
+ "target": "com.amazonaws.securityhub#TagMap",
+ "traits": {
+ "smithy.api#documentation": "A list of key-value pairs to be applied to the AggregatorV2.
"
+ }
+ },
+ "ClientToken": {
+ "target": "com.amazonaws.securityhub#ClientToken",
+ "traits": {
+ "smithy.api#documentation": "A unique identifier used to ensure idempotency.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#CreateAggregatorV2Response": {
+ "type": "structure",
+ "members": {
+ "AggregatorV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the AggregatorV2.
"
+ }
+ },
+ "AggregationRegion": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services Region where data is aggregated.
"
+ }
+ },
+ "RegionLinkingMode": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "Determines how Regions are linked to an Aggregator V2.
"
+ }
+ },
+ "LinkedRegions": {
+ "target": "com.amazonaws.securityhub#StringList",
+ "traits": {
+ "smithy.api#documentation": "The list of Regions that are linked to the aggregation Region.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#CreateAutomationRule": {
"type": "operation",
"input": {
@@ -22985,6 +23766,127 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#CreateAutomationRuleV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#CreateAutomationRuleV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#CreateAutomationRuleV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Creates a V2 automation rule. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/automationrulesv2/create",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#CreateAutomationRuleV2Request": {
+ "type": "structure",
+ "members": {
+ "RuleName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The name of the V2 automation rule.
",
+ "smithy.api#required": {}
+ }
+ },
+ "RuleStatus": {
+ "target": "com.amazonaws.securityhub#RuleStatusV2",
+ "traits": {
+ "smithy.api#documentation": "The status of the V2 automation rule.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "A description of the V2 automation rule.
",
+ "smithy.api#required": {}
+ }
+ },
+ "RuleOrder": {
+ "target": "com.amazonaws.securityhub#RuleOrderValueV2",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The value for the rule priority.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Criteria": {
+ "target": "com.amazonaws.securityhub#Criteria",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The filtering type and configuration of the automation rule.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Actions": {
+ "target": "com.amazonaws.securityhub#AutomationRulesActionListV2",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "A list of actions to be performed when the rule criteria is met.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Tags": {
+ "target": "com.amazonaws.securityhub#TagMap",
+ "traits": {
+ "smithy.api#documentation": "A list of key-value pairs associated with the V2 automation rule.
"
+ }
+ },
+ "ClientToken": {
+ "target": "com.amazonaws.securityhub#ClientToken",
+ "traits": {
+ "smithy.api#documentation": "A unique identifier used to ensure idempotency.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#CreateAutomationRuleV2Response": {
+ "type": "structure",
+ "members": {
+ "RuleArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the V2 automation rule.
"
+ }
+ },
+ "RuleId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ID of the V2 automation rule.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#CreateConfigurationPolicy": {
"type": "operation",
"input": {
@@ -23180,6 +24082,120 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#CreateConnectorV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#CreateConnectorV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#CreateConnectorV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Grants permission to create a connectorV2 based on input parameters. This API is in preview release and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/connectorsv2",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#CreateConnectorV2Request": {
+ "type": "structure",
+ "members": {
+ "Name": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The unique name of the connectorV2.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The description of the connectorV2.
"
+ }
+ },
+ "Provider": {
+ "target": "com.amazonaws.securityhub#ProviderConfiguration",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The third-party provider’s service configuration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "KmsKeyArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2.
"
+ }
+ },
+ "Tags": {
+ "target": "com.amazonaws.securityhub#TagMap",
+ "traits": {
+ "smithy.api#documentation": "The tags to add to the connectorV2 when you create.
"
+ }
+ },
+ "ClientToken": {
+ "target": "com.amazonaws.securityhub#ClientToken",
+ "traits": {
+ "smithy.api#documentation": "A unique identifier used to ensure idempotency.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#CreateConnectorV2Response": {
+ "type": "structure",
+ "members": {
+ "ConnectorArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the connectorV2.
"
+ }
+ },
+ "ConnectorId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The UUID of the connectorV2 to identify connectorV2 resource.
",
+ "smithy.api#required": {}
+ }
+ },
+ "AuthUrl": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Url provide to customers for OAuth auth code flow.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#CreateFindingAggregator": {
"type": "operation",
"input": {
@@ -23485,6 +24501,110 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#CreateTicketV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#CreateTicketV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#CreateTicketV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Grants permission to create a ticket in the chosen ITSM based on finding information for the provided finding metadata UID. This API is in preview release and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/ticketsv2",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#CreateTicketV2Request": {
+ "type": "structure",
+ "members": {
+ "ConnectorId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The UUID of the connectorV2 to identify connectorV2 resource.
",
+ "smithy.api#required": {}
+ }
+ },
+ "FindingMetadataUid": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The the unique ID for the finding.
",
+ "smithy.api#required": {}
+ }
+ },
+ "ClientToken": {
+ "target": "com.amazonaws.securityhub#ClientToken",
+ "traits": {
+ "smithy.api#documentation": "The client idempotency token.
",
+ "smithy.api#idempotencyToken": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#CreateTicketV2Response": {
+ "type": "structure",
+ "members": {
+ "TicketId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The ID for the ticketv2.
",
+ "smithy.api#required": {}
+ }
+ },
+ "TicketSrcUrl": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The url to the created ticket.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.securityhub#Criteria": {
+ "type": "union",
+ "members": {
+ "OcsfFindingCriteria": {
+ "target": "com.amazonaws.securityhub#OcsfFindingFilters",
+ "traits": {
+ "smithy.api#documentation": "The filtering conditions that align with OCSF standards.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Defines the parameters and conditions used to evaluate and filter security findings.
"
+ }
+ },
"com.amazonaws.securityhub#CrossAccountMaxResults": {
"type": "integer",
"traits": {
@@ -23836,6 +24956,126 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#DeleteAggregatorV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#DeleteAggregatorV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#DeleteAggregatorV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Deletes the Aggregator V2. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "DELETE",
+ "uri": "/aggregatorv2/delete/{AggregatorV2Arn+}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#DeleteAggregatorV2Request": {
+ "type": "structure",
+ "members": {
+ "AggregatorV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the Aggregator V2.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#DeleteAggregatorV2Response": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.securityhub#DeleteAutomationRuleV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#DeleteAutomationRuleV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#DeleteAutomationRuleV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Deletes a V2 automation rule. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "DELETE",
+ "uri": "/automationrulesv2/{Identifier}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#DeleteAutomationRuleV2Request": {
+ "type": "structure",
+ "members": {
+ "Identifier": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the V2 automation rule.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#DeleteAutomationRuleV2Response": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#DeleteConfigurationPolicy": {
"type": "operation",
"input": {
@@ -23908,6 +25148,66 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#DeleteConnectorV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#DeleteConnectorV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#DeleteConnectorV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Grants permission to delete a connectorV2. This API is in preview release and subject to change.
",
+ "smithy.api#http": {
+ "method": "DELETE",
+ "uri": "/connectorsv2/{ConnectorId+}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#DeleteConnectorV2Request": {
+ "type": "structure",
+ "members": {
+ "ConnectorId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The UUID of the connectorV2 to identify connectorV2 resource.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#DeleteConnectorV2Response": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#DeleteFindingAggregator": {
"type": "operation",
"input": {
@@ -24618,6 +25918,148 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#DescribeProductsV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#DescribeProductsV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#DescribeProductsV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Gets information about the product integration. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/productsV2",
+ "code": 200
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "items": "ProductsV2",
+ "pageSize": "MaxResults"
+ }
+ }
+ },
+ "com.amazonaws.securityhub#DescribeProductsV2Request": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The token required for pagination. \n On your first call, set the value of this parameter to NULL. \n For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.securityhub#MaxResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to return.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#DescribeProductsV2Response": {
+ "type": "structure",
+ "members": {
+ "ProductsV2": {
+ "target": "com.amazonaws.securityhub#ProductsV2List",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Gets information about the product integration.
",
+ "smithy.api#required": {}
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token to use to request the next page of results. \n Otherwise, this parameter is null.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.securityhub#DescribeSecurityHubV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#DescribeSecurityHubV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#DescribeSecurityHubV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns details about the service resource in your account. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/hubv2",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#DescribeSecurityHubV2Request": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#DescribeSecurityHubV2Response": {
+ "type": "structure",
+ "members": {
+ "HubV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the service resource.
"
+ }
+ },
+ "SubscribedAt": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The date and time when the service was enabled in the account.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#DescribeStandards": {
"type": "operation",
"input": {
@@ -24948,6 +26390,12 @@
"smithy.api#documentation": "The Amazon Web Services account identifier of the Security Hub administrator account.
",
"smithy.api#required": {}
}
+ },
+ "Feature": {
+ "target": "com.amazonaws.securityhub#SecurityHubFeature",
+ "traits": {
+ "smithy.api#documentation": "The feature for which the delegated admin account is disabled. \n Defaults to Security Hub if not specified.
"
+ }
}
},
"traits": {
@@ -25015,6 +26463,51 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#DisableSecurityHubV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#DisableSecurityHubV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#DisableSecurityHubV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "DELETE",
+ "uri": "/hubv2",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#DisableSecurityHubV2Request": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#DisableSecurityHubV2Response": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#DisabledSecurityControlIdentifierList": {
"type": "list",
"member": {
@@ -25382,6 +26875,12 @@
"smithy.api#documentation": "The Amazon Web Services account identifier of the account to designate as the Security Hub administrator\n account.
",
"smithy.api#required": {}
}
+ },
+ "Feature": {
+ "target": "com.amazonaws.securityhub#SecurityHubFeature",
+ "traits": {
+ "smithy.api#documentation": "The feature for which the delegated admin account is enabled. \n Defaults to Security Hub if not specified.
"
+ }
}
},
"traits": {
@@ -25390,7 +26889,20 @@
},
"com.amazonaws.securityhub#EnableOrganizationAdminAccountResponse": {
"type": "structure",
- "members": {},
+ "members": {
+ "AdminAccountId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services account identifier of the account to designate as the Security Hub administrator account.
"
+ }
+ },
+ "Feature": {
+ "target": "com.amazonaws.securityhub#SecurityHubFeature",
+ "traits": {
+ "smithy.api#documentation": "The feature where the delegated administrator is enabled. \n The default is Security Hub CSPM if no delegated administrator is specified in the request.
"
+ }
+ }
+ },
"traits": {
"smithy.api#output": {}
}
@@ -25474,6 +26986,65 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#EnableSecurityHubV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#EnableSecurityHubV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#EnableSecurityHubV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Enables the service in account for the current Amazon Web Services Region or specified Amazon Web Services Region. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/hubv2",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#EnableSecurityHubV2Request": {
+ "type": "structure",
+ "members": {
+ "Tags": {
+ "target": "com.amazonaws.securityhub#TagMap",
+ "traits": {
+ "smithy.api#documentation": "The tags to add to the hub V2 resource when you enable Security Hub.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#EnableSecurityHubV2Response": {
+ "type": "structure",
+ "members": {
+ "HubV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the V2 resource that was created.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#EnabledSecurityControlIdentifierList": {
"type": "list",
"member": {
@@ -25532,6 +27103,20 @@
"smithy.api#documentation": "\n The options for customizing a security control parameter that is a list of enums.\n
"
}
},
+ "com.amazonaws.securityhub#ExternalIntegrationConfiguration": {
+ "type": "structure",
+ "members": {
+ "ConnectorArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the connector that establishes the integration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Defines the settings and parameters required for integrating external security tools and services.
"
+ }
+ },
"com.amazonaws.securityhub#FieldMap": {
"type": "map",
"key": {
@@ -25981,6 +27566,212 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#GetAggregatorV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#GetAggregatorV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#GetAggregatorV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns the configuration of the specified Aggregator V2. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/aggregatorv2/get/{AggregatorV2Arn+}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#GetAggregatorV2Request": {
+ "type": "structure",
+ "members": {
+ "AggregatorV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the Aggregator V2.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetAggregatorV2Response": {
+ "type": "structure",
+ "members": {
+ "AggregatorV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the Aggregator V2.
"
+ }
+ },
+ "AggregationRegion": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services Region where data is aggregated.
"
+ }
+ },
+ "RegionLinkingMode": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "Determines how Regions are linked to an Aggregator V2.
"
+ }
+ },
+ "LinkedRegions": {
+ "target": "com.amazonaws.securityhub#StringList",
+ "traits": {
+ "smithy.api#documentation": "The list of Regions that are linked to the aggregation Region.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetAutomationRuleV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#GetAutomationRuleV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#GetAutomationRuleV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns an automation rule for the V2 service. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/automationrulesv2/{Identifier}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#GetAutomationRuleV2Request": {
+ "type": "structure",
+ "members": {
+ "Identifier": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the V2 automation rule.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetAutomationRuleV2Response": {
+ "type": "structure",
+ "members": {
+ "RuleArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the V2 automation rule.
"
+ }
+ },
+ "RuleId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ID of the V2 automation rule.
"
+ }
+ },
+ "RuleOrder": {
+ "target": "com.amazonaws.securityhub#RuleOrderValueV2",
+ "traits": {
+ "smithy.api#documentation": "The value for the rule priority.
"
+ }
+ },
+ "RuleName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The name of the V2 automation rule.
"
+ }
+ },
+ "RuleStatus": {
+ "target": "com.amazonaws.securityhub#RuleStatusV2",
+ "traits": {
+ "smithy.api#documentation": "The status of the V2 automation automation rule.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "A description of the automation rule.
"
+ }
+ },
+ "Criteria": {
+ "target": "com.amazonaws.securityhub#Criteria",
+ "traits": {
+ "smithy.api#documentation": "The filtering type and configuration of the V2 automation rule.
"
+ }
+ },
+ "Actions": {
+ "target": "com.amazonaws.securityhub#AutomationRulesActionListV2",
+ "traits": {
+ "smithy.api#documentation": "A list of actions performed when the rule criteria is met.
"
+ }
+ },
+ "CreatedAt": {
+ "target": "com.amazonaws.securityhub#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the V2 automation rule was created.
"
+ }
+ },
+ "UpdatedAt": {
+ "target": "com.amazonaws.securityhub#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The timestamp when the V2 automation rule was updated.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#GetConfigurationPolicy": {
"type": "operation",
"input": {
@@ -26251,6 +28042,133 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#GetConnectorV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#GetConnectorV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#GetConnectorV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Grants permission to retrieve details for a connectorV2 based on connector id. This API is in preview release and subject to change.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/connectorsv2/{ConnectorId+}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#GetConnectorV2Request": {
+ "type": "structure",
+ "members": {
+ "ConnectorId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The UUID of the connectorV2 to identify connectorV2 resource.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetConnectorV2Response": {
+ "type": "structure",
+ "members": {
+ "ConnectorArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the connectorV2.
"
+ }
+ },
+ "ConnectorId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The UUID of the connectorV2 to identify connectorV2 resource.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Name": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The name of the connectorV2.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The description of the connectorV2.
"
+ }
+ },
+ "KmsKeyArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of KMS key used for the connectorV2.
"
+ }
+ },
+ "CreatedAt": {
+ "target": "com.amazonaws.securityhub#Timestamp",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "ISO 8601 UTC timestamp for the time create the connectorV2.
",
+ "smithy.api#required": {}
+ }
+ },
+ "LastUpdatedAt": {
+ "target": "com.amazonaws.securityhub#Timestamp",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "ISO 8601 UTC timestamp for the time update the connectorV2 connectorStatus.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Health": {
+ "target": "com.amazonaws.securityhub#HealthCheck",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The current health status for connectorV2
",
+ "smithy.api#required": {}
+ }
+ },
+ "ProviderDetail": {
+ "target": "com.amazonaws.securityhub#ProviderDetail",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The third-party provider detail for a service configuration.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#GetEnabledStandards": {
"type": "operation",
"input": {
@@ -26481,7 +28399,7 @@
}
],
"traits": {
- "smithy.api#documentation": "\n Returns history for a Security Hub finding in the last 90 days. The history includes changes made to any fields in \n the Amazon Web Services Security Finding Format (ASFF).\n
",
+ "smithy.api#documentation": "\n Returns the history of a Security Hub finding for the past 90 days. The history includes changes made to any fields in \n the Amazon Web Services Security Finding Format (ASFF) except top-level timestamp fields, such as the CreatedAt and \n UpdatedAt fields.\n
\n This operation might return fewer results than the maximum number of results (MaxResults) specified in a request, even \n when more results are available. If this occurs, the response includes a NextToken value, which you should use to retrieve \n the next set of results in the response. The presence of a NextToken value in a response doesn't necessarily indicate \n that the results are incomplete. However, you should continue to specify a NextToken value until you receive a \n response that doesn't include this value.
",
"smithy.api#http": {
"method": "POST",
"uri": "/findingHistory/get",
@@ -26554,6 +28472,82 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#GetFindingStatisticsV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#GetFindingStatisticsV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#GetFindingStatisticsV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns aggregated statistical data about findings.\n GetFindingStatisticsV2 use securityhub:GetAdhocInsightResults in the Action element of an IAM policy statement. \n You must have permission to perform the s action. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/findingsv2/statistics",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#GetFindingStatisticsV2Request": {
+ "type": "structure",
+ "members": {
+ "GroupByRules": {
+ "target": "com.amazonaws.securityhub#GroupByRules",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Specifies how security findings should be aggregated and organized in the statistical analysis. \n It can accept up to 5 groupBy fields in a single call.
",
+ "smithy.api#required": {}
+ }
+ },
+ "SortOrder": {
+ "target": "com.amazonaws.securityhub#SortOrder",
+ "traits": {
+ "smithy.api#documentation": "Orders the aggregation count in descending or ascending order. \n Descending order is the default.
"
+ }
+ },
+ "MaxStatisticResults": {
+ "target": "com.amazonaws.securityhub#MaxStatisticResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to be returned.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetFindingStatisticsV2Response": {
+ "type": "structure",
+ "members": {
+ "GroupByResults": {
+ "target": "com.amazonaws.securityhub#GroupByResults",
+ "traits": {
+ "smithy.api#documentation": "Aggregated statistics about security findings based on specified grouping criteria.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#GetFindings": {
"type": "operation",
"input": {
@@ -26752,6 +28746,98 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#GetFindingsV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#GetFindingsV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#GetFindingsV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Return a list of findings that match the specified criteria.\n GetFindings and GetFindingsV2 both use securityhub:GetFindings in the Action element of an IAM policy statement. \n You must have permission to perform the securityhub:GetFindings action. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/findingsv2",
+ "code": 200
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "items": "Findings",
+ "pageSize": "MaxResults"
+ }
+ }
+ },
+ "com.amazonaws.securityhub#GetFindingsV2Request": {
+ "type": "structure",
+ "members": {
+ "Filters": {
+ "target": "com.amazonaws.securityhub#OcsfFindingFilters",
+ "traits": {
+ "smithy.api#documentation": "The finding attributes used to define a condition to filter the returned OCSF findings. \n You can filter up to 10 composite filters. \n For each filter type inside of a composite filter, you can provide up to 20 filters.
"
+ }
+ },
+ "SortCriteria": {
+ "target": "com.amazonaws.securityhub#SortCriteria",
+ "traits": {
+ "smithy.api#documentation": "The finding attributes used to sort the list of returned findings.
"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "\n The token required for pagination. \n On your first call, set the value of this parameter to NULL. \n For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.
"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.securityhub#MaxResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to return.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetFindingsV2Response": {
+ "type": "structure",
+ "members": {
+ "Findings": {
+ "target": "com.amazonaws.securityhub#OcsfFindingsList",
+ "traits": {
+ "smithy.api#documentation": "An array of security findings returned by the operation.
"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token to use to request the next page of results. \n Otherwise, this parameter is null.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#GetInsightResults": {
"type": "operation",
"input": {
@@ -27154,6 +29240,184 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#GetResourcesStatisticsV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#GetResourcesStatisticsV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#GetResourcesStatisticsV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Retrieves statistical information about Amazon Web Services resources and their associated security findings. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/resourcesv2/statistics",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#GetResourcesStatisticsV2Request": {
+ "type": "structure",
+ "members": {
+ "GroupByRules": {
+ "target": "com.amazonaws.securityhub#ResourceGroupByRules",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "How resource statistics should be aggregated and organized in the response.
",
+ "smithy.api#required": {}
+ }
+ },
+ "SortOrder": {
+ "target": "com.amazonaws.securityhub#SortOrder",
+ "traits": {
+ "smithy.api#documentation": "Sorts aggregated statistics.
"
+ }
+ },
+ "MaxStatisticResults": {
+ "target": "com.amazonaws.securityhub#MaxStatisticResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to be returned.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetResourcesStatisticsV2Response": {
+ "type": "structure",
+ "members": {
+ "GroupByResults": {
+ "target": "com.amazonaws.securityhub#GroupByResults",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The aggregated statistics about resources based on the specified grouping rule.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetResourcesV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#GetResourcesV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#GetResourcesV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns a list of resources. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "POST",
+ "uri": "/resourcesv2",
+ "code": 200
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "items": "Resources",
+ "pageSize": "MaxResults"
+ }
+ }
+ },
+ "com.amazonaws.securityhub#GetResourcesV2Request": {
+ "type": "structure",
+ "members": {
+ "Filters": {
+ "target": "com.amazonaws.securityhub#ResourcesFilters",
+ "traits": {
+ "smithy.api#documentation": "Filters resources based on a set of criteria.
"
+ }
+ },
+ "SortCriteria": {
+ "target": "com.amazonaws.securityhub#SortCriteria",
+ "traits": {
+ "smithy.api#documentation": "The finding attributes used to sort the list of returned findings.
"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The token required for pagination. \n On your first call, set the value of this parameter to NULL. \n For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.
"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.securityhub#MaxResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to return.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#GetResourcesV2Response": {
+ "type": "structure",
+ "members": {
+ "Resources": {
+ "target": "com.amazonaws.securityhub#Resources",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Filters resources based on a set of criteria.
",
+ "smithy.api#required": {}
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token to use to request the next page of results. \n Otherwise, this parameter is null.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#GetSecurityControlDefinition": {
"type": "operation",
"input": {
@@ -27251,6 +29515,223 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#GroupByField": {
+ "type": "enum",
+ "members": {
+ "ACTIVITY_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "activity_name"
+ }
+ },
+ "CLOUD_ACCOUNT_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "cloud.account.uid"
+ }
+ },
+ "CLOUD_PROVIDER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "cloud.provider"
+ }
+ },
+ "CLOUD_REGION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "cloud.region"
+ }
+ },
+ "COMPLIANCE_ASSESSMENTS_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.assessments.name"
+ }
+ },
+ "COMPLIANCE_STATUS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.status"
+ }
+ },
+ "COMPLIANCE_CONTROL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.control"
+ }
+ },
+ "FINDING_INFO_TITLE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.title"
+ }
+ },
+ "FINDING_INFO_TYPES": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.types"
+ }
+ },
+ "METADATA_PRODUCT_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "metadata.product.name"
+ }
+ },
+ "METADATA_PRODUCT_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "metadata.product.uid"
+ }
+ },
+ "RESOURCES_TYPE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resources.type"
+ }
+ },
+ "RESOURCES_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resources.uid"
+ }
+ },
+ "SEVERITY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "severity"
+ }
+ },
+ "STATUS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "status"
+ }
+ },
+ "VULNERABILITIES_FIX_COVERAGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "vulnerabilities.fix_coverage"
+ }
+ },
+ "CLASS_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "class_name"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#GroupByResult": {
+ "type": "structure",
+ "members": {
+ "GroupByField": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The attribute by which filtered security findings should be grouped.
"
+ }
+ },
+ "GroupByValues": {
+ "target": "com.amazonaws.securityhub#GroupByValues",
+ "traits": {
+ "smithy.api#documentation": "An array of grouped values and their respective counts for each GroupByField.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Represents finding statistics grouped by GroupedByField.
"
+ }
+ },
+ "com.amazonaws.securityhub#GroupByResults": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#GroupByResult"
+ }
+ },
+ "com.amazonaws.securityhub#GroupByRule": {
+ "type": "structure",
+ "members": {
+ "Filters": {
+ "target": "com.amazonaws.securityhub#OcsfFindingFilters",
+ "traits": {
+ "smithy.api#documentation": "The criteria used to select which security findings should be included in the grouping operation.
"
+ }
+ },
+ "GroupByField": {
+ "target": "com.amazonaws.securityhub#GroupByField",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The attribute by which filtered findings should be grouped.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Defines the how the finding attribute should be grouped.
"
+ }
+ },
+ "com.amazonaws.securityhub#GroupByRules": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#GroupByRule"
+ }
+ },
+ "com.amazonaws.securityhub#GroupByValue": {
+ "type": "structure",
+ "members": {
+ "FieldValue": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The value of the field by which findings are grouped.
"
+ }
+ },
+ "Count": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings for a specific FieldValue and GroupByField.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Represents individual aggregated results when grouping security findings for each GroupByField.
"
+ }
+ },
+ "com.amazonaws.securityhub#GroupByValues": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#GroupByValue"
+ }
+ },
+ "com.amazonaws.securityhub#HealthCheck": {
+ "type": "structure",
+ "members": {
+ "ConnectorStatus": {
+ "target": "com.amazonaws.securityhub#ConnectorStatus",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The status of the connectorV2.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Message": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The message for the reason of connectorStatus change.
"
+ }
+ },
+ "LastCheckedAt": {
+ "target": "com.amazonaws.securityhub#Timestamp",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "ISO 8601 UTC timestamp for the time check the health status of the connectorV2.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Information about the operational status and health of a connectorV2.
"
+ }
+ },
"com.amazonaws.securityhub#IcmpTypeCode": {
"type": "structure",
"members": {
@@ -27557,6 +30038,35 @@
"target": "com.amazonaws.securityhub#IntegrationType"
}
},
+ "com.amazonaws.securityhub#IntegrationV2Type": {
+ "type": "enum",
+ "members": {
+ "SEND_FINDINGS_TO_SECURITY_HUB": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SEND_FINDINGS_TO_SECURITY_HUB"
+ }
+ },
+ "RECEIVE_FINDINGS_FROM_SECURITY_HUB": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "RECEIVE_FINDINGS_FROM_SECURITY_HUB"
+ }
+ },
+ "UPDATE_FINDINGS_IN_SECURITY_HUB": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "UPDATE_FINDINGS_IN_SECURITY_HUB"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#IntegrationV2TypeList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#IntegrationV2Type"
+ }
+ },
"com.amazonaws.securityhub#InternalException": {
"type": "structure",
"members": {
@@ -27573,6 +30083,22 @@
"smithy.api#httpError": 500
}
},
+ "com.amazonaws.securityhub#InternalServerException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ },
+ "Code": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "\n The request has failed due to an internal failure of the service.\n
",
+ "smithy.api#error": "server",
+ "smithy.api#httpError": 500
+ }
+ },
"com.amazonaws.securityhub#InvalidAccessException": {
"type": "structure",
"members": {
@@ -27806,6 +30332,74 @@
"target": "com.amazonaws.securityhub#Ipv6CidrBlockAssociation"
}
},
+ "com.amazonaws.securityhub#JiraCloudDetail": {
+ "type": "structure",
+ "members": {
+ "CloudId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The cloud id of the Jira Cloud.
"
+ }
+ },
+ "ProjectKey": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The projectKey of Jira Cloud.
"
+ }
+ },
+ "Domain": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The URL domain of your Jira Cloud instance.
"
+ }
+ },
+ "AuthUrl": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The URL to provide to customers for OAuth auth code flow.
"
+ }
+ },
+ "AuthStatus": {
+ "target": "com.amazonaws.securityhub#ConnectorAuthStatus",
+ "traits": {
+ "smithy.api#documentation": "The status of the authorization between Jira Cloud and the service.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Information about the configuration and status of a Jira Cloud integration.
"
+ }
+ },
+ "com.amazonaws.securityhub#JiraCloudProviderConfiguration": {
+ "type": "structure",
+ "members": {
+ "ProjectKey": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The project key for a JiraCloud instance.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The initial configuration settings required to establish an integration between Security Hub and Jira Cloud.
"
+ }
+ },
+ "com.amazonaws.securityhub#JiraCloudUpdateConfiguration": {
+ "type": "structure",
+ "members": {
+ "ProjectKey": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The project key for a JiraCloud instance.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The parameters used to modify an existing Jira Cloud integration.
"
+ }
+ },
"com.amazonaws.securityhub#KeywordFilter": {
"type": "structure",
"members": {
@@ -27842,6 +30436,91 @@
"smithy.api#httpError": 429
}
},
+ "com.amazonaws.securityhub#ListAggregatorsV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#ListAggregatorsV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#ListAggregatorsV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Retrieves a list of V2 aggregators. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/aggregatorv2/list",
+ "code": 200
+ },
+ "smithy.api#paginated": {
+ "inputToken": "NextToken",
+ "outputToken": "NextToken",
+ "items": "AggregatorsV2",
+ "pageSize": "MaxResults"
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ListAggregatorsV2Request": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The token required for pagination. \n On your first call, set the value of this parameter to NULL. \n For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.securityhub#MaxResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to return.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#ListAggregatorsV2Response": {
+ "type": "structure",
+ "members": {
+ "AggregatorsV2": {
+ "target": "com.amazonaws.securityhub#AggregatorV2List",
+ "traits": {
+ "smithy.api#documentation": "An array of aggregators.
"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token to use to request the next page of results. \n Otherwise, this parameter is null.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#ListAutomationRules": {
"type": "operation",
"input": {
@@ -27953,6 +30632,82 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#ListAutomationRulesV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#ListAutomationRulesV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#ListAutomationRulesV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Returns a list of automation rules and metadata for the calling account. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/automationrulesv2/list",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ListAutomationRulesV2Request": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The token required for pagination. \n On your first call, set the value of this parameter to NULL. \n For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.securityhub#MaxResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to return.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#ListAutomationRulesV2Response": {
+ "type": "structure",
+ "members": {
+ "Rules": {
+ "target": "com.amazonaws.securityhub#AutomationRulesMetadataListV2",
+ "traits": {
+ "smithy.api#documentation": "An array of automation rules.
"
+ }
+ },
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token to use to request the next page of results. \n Otherwise, this parameter is null.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#ListConfigurationPolicies": {
"type": "operation",
"input": {
@@ -28170,6 +30925,101 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#ListConnectorsV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#ListConnectorsV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#ListConnectorsV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account. This API is in preview release and subject to change.
",
+ "smithy.api#http": {
+ "method": "GET",
+ "uri": "/connectorsv2",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ListConnectorsV2Request": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token per the Amazon Web Services Pagination standard
",
+ "smithy.api#httpQuery": "NextToken"
+ }
+ },
+ "MaxResults": {
+ "target": "com.amazonaws.securityhub#MaxResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of results to be returned.
",
+ "smithy.api#httpQuery": "MaxResults"
+ }
+ },
+ "ProviderName": {
+ "target": "com.amazonaws.securityhub#ConnectorProviderName",
+ "traits": {
+ "smithy.api#documentation": "The name of the third-party provider.
",
+ "smithy.api#httpQuery": "ProviderName"
+ }
+ },
+ "ConnectorStatus": {
+ "target": "com.amazonaws.securityhub#ConnectorStatus",
+ "traits": {
+ "smithy.api#documentation": "The status for the connectorV2.
",
+ "smithy.api#httpQuery": "ConnectorStatus"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#ListConnectorsV2Response": {
+ "type": "structure",
+ "members": {
+ "NextToken": {
+ "target": "com.amazonaws.securityhub#NextToken",
+ "traits": {
+ "smithy.api#documentation": "The pagination token to use to request the next page of results. \n Otherwise, this parameter is null.
"
+ }
+ },
+ "Connectors": {
+ "target": "com.amazonaws.securityhub#ConnectorSummaryList",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "An array of connectorV2 summaries.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#ListEnabledProductsForImport": {
"type": "operation",
"input": {
@@ -28587,6 +31437,13 @@
"smithy.api#documentation": "The token that is required for pagination. On your first call to the\n ListOrganizationAdminAccounts operation, set the value of this parameter to\n NULL. For subsequent calls to the operation, to continue listing data, set\n the value of this parameter to the value returned from the previous response.
",
"smithy.api#httpQuery": "NextToken"
}
+ },
+ "Feature": {
+ "target": "com.amazonaws.securityhub#SecurityHubFeature",
+ "traits": {
+ "smithy.api#documentation": "The feature where the delegated administrator account is listed. \n Defaults to Security Hub if not specified.
",
+ "smithy.api#httpQuery": "Feature"
+ }
}
},
"traits": {
@@ -28607,6 +31464,12 @@
"traits": {
"smithy.api#documentation": "The pagination token to use to request the next page of results.
"
}
+ },
+ "Feature": {
+ "target": "com.amazonaws.securityhub#SecurityHubFeature",
+ "traits": {
+ "smithy.api#documentation": "The feature where the delegated administrator account is listed. \n Defaults to Security Hub CSPM if not specified.
"
+ }
}
},
"traits": {
@@ -29161,6 +32024,15 @@
}
}
},
+ "com.amazonaws.securityhub#MaxStatisticResults": {
+ "type": "integer",
+ "traits": {
+ "smithy.api#range": {
+ "min": 1,
+ "max": 400
+ }
+ }
+ },
"com.amazonaws.securityhub#Member": {
"type": "structure",
"members": {
@@ -29220,6 +32092,18 @@
"target": "com.amazonaws.securityhub#Member"
}
},
+ "com.amazonaws.securityhub#MetadataUidList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 100
+ }
+ }
+ },
"com.amazonaws.securityhub#Network": {
"type": "structure",
"members": {
@@ -29726,6 +32610,495 @@
"smithy.api#documentation": "The detected occurrences of sensitive data.
"
}
},
+ "com.amazonaws.securityhub#OcsfBooleanField": {
+ "type": "enum",
+ "members": {
+ "COMPLIANCE_ASSESSMENTS_MEETS_CRITERIA": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.assessments.meets_criteria"
+ }
+ },
+ "VULNERABILITIES_IS_EXPLOIT_AVAILABLE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "vulnerabilities.is_exploit_available"
+ }
+ },
+ "VULNERABILITIES_IS_FIX_AVAILABLE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "vulnerabilities.is_fix_available"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#OcsfBooleanFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#OcsfBooleanField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#BooleanFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of security findings based on boolean field values in OCSF.
"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfBooleanFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#OcsfBooleanFilter"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfDateField": {
+ "type": "enum",
+ "members": {
+ "FINDING_INFO_CREATED_TIME_DT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.created_time_dt"
+ }
+ },
+ "FINDING_INFO_FIRST_SEEN_TIME_DT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.first_seen_time_dt"
+ }
+ },
+ "FINDING_INFO_LAST_SEEN_TIME_DT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.last_seen_time_dt"
+ }
+ },
+ "FINDING_INFO_MODIFIED_TIME_DT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.modified_time_dt"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#OcsfDateFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#OcsfDateField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#DateFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of security findings based on date and timestamp fields in OCSF.
"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfDateFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#OcsfDateFilter"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfFinding": {
+ "type": "document"
+ },
+ "com.amazonaws.securityhub#OcsfFindingFilters": {
+ "type": "structure",
+ "members": {
+ "CompositeFilters": {
+ "target": "com.amazonaws.securityhub#CompositeFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables the creation of complex filtering conditions by combining filter criteria.
"
+ }
+ },
+ "CompositeOperator": {
+ "target": "com.amazonaws.securityhub#AllowedOperators",
+ "traits": {
+ "smithy.api#documentation": "The logical operators used to combine the filtering on multiple CompositeFilters.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Specifies the filtering criteria for security findings using OCSF.
"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfFindingIdentifier": {
+ "type": "structure",
+ "members": {
+ "CloudAccountUid": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Finding cloud.account.uid, which is a unique identifier in the Amazon Web Services account..
",
+ "smithy.api#required": {}
+ }
+ },
+ "FindingInfoUid": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Finding finding_info.uid, which is a unique identifier for the finding from the finding provider.
",
+ "smithy.api#required": {}
+ }
+ },
+ "MetadataProductUid": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Finding metadata.product.uid, which is a unique identifier for the product.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Provides a standard to identify security findings using OCSF.
"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfFindingIdentifierList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#OcsfFindingIdentifier"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 100
+ }
+ }
+ },
+ "com.amazonaws.securityhub#OcsfFindingsList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#OcsfFinding"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfMapField": {
+ "type": "enum",
+ "members": {
+ "RESOURCES_TAGS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resources.tags"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#OcsfMapFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#OcsfMapField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#MapFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of security findings based on map field values in OCSF.
"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfMapFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#OcsfMapFilter"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfNumberField": {
+ "type": "enum",
+ "members": {
+ "ACTIVITY_ID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "activity_id"
+ }
+ },
+ "COMPLIANCE_STATUS_ID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.status_id"
+ }
+ },
+ "CONFIDENCE_SCORE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "confidence_score"
+ }
+ },
+ "SEVERITY_ID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "severity_id"
+ }
+ },
+ "STATUS_ID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "status_id"
+ }
+ },
+ "FINDING_INFO_RELATED_EVENTS_COUNT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.related_events_count"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#OcsfNumberFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#OcsfNumberField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#NumberFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of security findings based on numerical field values in OCSF.
"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfNumberFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#OcsfNumberFilter"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfStringField": {
+ "type": "enum",
+ "members": {
+ "METADATA_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "metadata.uid"
+ }
+ },
+ "ACTIVITY_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "activity_name"
+ }
+ },
+ "CLOUD_ACCOUNT_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "cloud.account.uid"
+ }
+ },
+ "CLOUD_PROVIDER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "cloud.provider"
+ }
+ },
+ "CLOUD_REGION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "cloud.region"
+ }
+ },
+ "COMPLIANCE_ASSESSMENTS_CATEGORY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.assessments.category"
+ }
+ },
+ "COMPLIANCE_ASSESSMENTS_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.assessments.name"
+ }
+ },
+ "COMPLIANCE_CONTROL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.control"
+ }
+ },
+ "COMPLIANCE_STATUS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.status"
+ }
+ },
+ "COMPLIANCE_STANDARDS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "compliance.standards"
+ }
+ },
+ "FINDING_INFO_DESC": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.desc"
+ }
+ },
+ "FINDING_INFO_SRC_URL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.src_url"
+ }
+ },
+ "FINDING_INFO_TITLE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.title"
+ }
+ },
+ "FINDING_INFO_TYPES": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.types"
+ }
+ },
+ "FINDING_INFO_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.uid"
+ }
+ },
+ "FINDING_INFO_RELATED_EVENTS_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.related_events.uid"
+ }
+ },
+ "FINDING_INFO_RELATED_EVENTS_PRODUCT_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.related_events.product.uid"
+ }
+ },
+ "FINDING_INFO_RELATED_EVENTS_TITLE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "finding_info.related_events.title"
+ }
+ },
+ "METADATA_PRODUCT_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "metadata.product.name"
+ }
+ },
+ "METADATA_PRODUCT_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "metadata.product.uid"
+ }
+ },
+ "METADATA_PRODUCT_VENDOR_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "metadata.product.vendor_name"
+ }
+ },
+ "REMEDIATION_DESC": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "remediation.desc"
+ }
+ },
+ "REMEDIATION_REFERENCES": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "remediation.references"
+ }
+ },
+ "RESOURCES_CLOUD_PARTITION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resources.cloud_partition"
+ }
+ },
+ "RESOURCES_REGION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resources.region"
+ }
+ },
+ "RESOURCES_TYPE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resources.type"
+ }
+ },
+ "RESOURCES_UID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resources.uid"
+ }
+ },
+ "SEVERITY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "severity"
+ }
+ },
+ "STATUS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "status"
+ }
+ },
+ "COMMENT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "comment"
+ }
+ },
+ "VULNERABILITIES_FIX_COVERAGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "vulnerabilities.fix_coverage"
+ }
+ },
+ "CLASS_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "class_name"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#OcsfStringFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#OcsfStringField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#StringFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of security findings based on string field values in OCSF.
"
+ }
+ },
+ "com.amazonaws.securityhub#OcsfStringFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#OcsfStringFilter"
+ }
+ },
"com.amazonaws.securityhub#OrganizationConfiguration": {
"type": "structure",
"members": {
@@ -30286,12 +33659,68 @@
"target": "com.amazonaws.securityhub#NonEmptyString"
}
},
+ "com.amazonaws.securityhub#ProductV2": {
+ "type": "structure",
+ "members": {
+ "ProductV2Name": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The name of the productV2.
"
+ }
+ },
+ "CompanyName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The name of the organization or vendor that provides the productV2.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "Detailed information about the productV2.
"
+ }
+ },
+ "Categories": {
+ "target": "com.amazonaws.securityhub#CategoryList",
+ "traits": {
+ "smithy.api#documentation": "The domains or functional areas the productV2 addresses.
"
+ }
+ },
+ "IntegrationV2Types": {
+ "target": "com.amazonaws.securityhub#IntegrationV2TypeList",
+ "traits": {
+ "smithy.api#documentation": "The type of integration.
"
+ }
+ },
+ "MarketplaceUrl": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The console URL where you can purchase or subscribe to products.
"
+ }
+ },
+ "ActivationUrl": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The URL to the serviceV@ or productV2 documentation about the integration, which includes how to activate the integration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Defines the structure for the productV2.
"
+ }
+ },
"com.amazonaws.securityhub#ProductsList": {
"type": "list",
"member": {
"target": "com.amazonaws.securityhub#Product"
}
},
+ "com.amazonaws.securityhub#ProductsV2List": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ProductV2"
+ }
+ },
"com.amazonaws.securityhub#PropagatingVgwSetDetails": {
"type": "structure",
"members": {
@@ -30312,6 +33741,80 @@
"target": "com.amazonaws.securityhub#PropagatingVgwSetDetails"
}
},
+ "com.amazonaws.securityhub#ProviderConfiguration": {
+ "type": "union",
+ "members": {
+ "JiraCloud": {
+ "target": "com.amazonaws.securityhub#JiraCloudProviderConfiguration",
+ "traits": {
+ "smithy.api#documentation": "The configuration settings required to establish an integration with Jira Cloud.
"
+ }
+ },
+ "ServiceNow": {
+ "target": "com.amazonaws.securityhub#ServiceNowProviderConfiguration",
+ "traits": {
+ "smithy.api#documentation": "The configuration settings required to establish an integration with ServiceNow ITSM.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The initial configuration settings required to establish an integration between Security Hub and third-party provider.
"
+ }
+ },
+ "com.amazonaws.securityhub#ProviderDetail": {
+ "type": "union",
+ "members": {
+ "JiraCloud": {
+ "target": "com.amazonaws.securityhub#JiraCloudDetail",
+ "traits": {
+ "smithy.api#documentation": "Details about a Jira Cloud integration.
"
+ }
+ },
+ "ServiceNow": {
+ "target": "com.amazonaws.securityhub#ServiceNowDetail",
+ "traits": {
+ "smithy.api#documentation": "Details about a ServiceNow ITSM integration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The third-party provider detail for a service configuration.
"
+ }
+ },
+ "com.amazonaws.securityhub#ProviderSummary": {
+ "type": "structure",
+ "members": {
+ "ProviderName": {
+ "target": "com.amazonaws.securityhub#ConnectorProviderName",
+ "traits": {
+ "smithy.api#documentation": "The name of the provider.
"
+ }
+ },
+ "ConnectorStatus": {
+ "target": "com.amazonaws.securityhub#ConnectorStatus",
+ "traits": {
+ "smithy.api#documentation": "The status for the connectorV2.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The connectorV2 third-party provider configuration summary.
"
+ }
+ },
+ "com.amazonaws.securityhub#ProviderUpdateConfiguration": {
+ "type": "union",
+ "members": {
+ "JiraCloud": {
+ "target": "com.amazonaws.securityhub#JiraCloudUpdateConfiguration",
+ "traits": {
+ "smithy.api#documentation": "The parameters required to update the configuration for a Jira Cloud integration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The parameters required to update the configuration of an integration provider.
"
+ }
+ },
"com.amazonaws.securityhub#Range": {
"type": "structure",
"members": {
@@ -30561,6 +34064,62 @@
"smithy.api#pattern": "^arn:aws:securityhub:"
}
},
+ "com.amazonaws.securityhub#ResourceCategory": {
+ "type": "enum",
+ "members": {
+ "COMPUTE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Compute"
+ }
+ },
+ "DATABASE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Database"
+ }
+ },
+ "STORAGE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Storage"
+ }
+ },
+ "CODE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Code"
+ }
+ },
+ "AI_ML": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "AI/ML"
+ }
+ },
+ "IDENTITY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Identity"
+ }
+ },
+ "NETWORK": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Network"
+ }
+ },
+ "OTHER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "Other"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ResourceConfig": {
+ "type": "document"
+ },
"com.amazonaws.securityhub#ResourceConflictException": {
"type": "structure",
"members": {
@@ -31167,6 +34726,119 @@
"smithy.api#documentation": "Additional details about a resource related to a finding.
\n To provide the details, use the object that corresponds to the resource type. For\n example, if the resource type is AwsEc2Instance, then you use the\n AwsEc2Instance object to provide the details.
\n If the type-specific object does not contain all of the fields you want to populate,\n then you use the Other object to populate those additional fields.
\n You also use the Other object to populate the details when the selected\n type does not have a corresponding object.
"
}
},
+ "com.amazonaws.securityhub#ResourceFindingsSummary": {
+ "type": "structure",
+ "members": {
+ "FindingType": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The category or classification of the security finding.
",
+ "smithy.api#required": {}
+ }
+ },
+ "ProductName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The name of the product associated with the security finding.
",
+ "smithy.api#required": {}
+ }
+ },
+ "TotalFindings": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The total count of security findings.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Severities": {
+ "target": "com.amazonaws.securityhub#ResourceSeverityBreakdown",
+ "traits": {
+ "smithy.api#documentation": "A breakdown of security findings by their severity levels.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A list of summaries for all finding types on a resource.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourceFindingsSummaryList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourceFindingsSummary"
+ }
+ },
+ "com.amazonaws.securityhub#ResourceGroupByField": {
+ "type": "enum",
+ "members": {
+ "ACCOUNT_ID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "account_id"
+ }
+ },
+ "REGION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "region"
+ }
+ },
+ "RESOURCE_CATEGORY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_category"
+ }
+ },
+ "RESOURCE_TYPE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_type"
+ }
+ },
+ "RESOURCE_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_name"
+ }
+ },
+ "FINDING_TYPE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.finding_type"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ResourceGroupByRule": {
+ "type": "structure",
+ "members": {
+ "GroupByField": {
+ "target": "com.amazonaws.securityhub#ResourceGroupByField",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Specifies the attribute that resources should be grouped by.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Filters": {
+ "target": "com.amazonaws.securityhub#ResourcesFilters",
+ "traits": {
+ "smithy.api#documentation": "The criteria used to select resources and associated security findings.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Defines the configuration for organizing and categorizing Amazon Web Services resources based on associated security findings.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourceGroupByRules": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourceGroupByRule"
+ }
+ },
"com.amazonaws.securityhub#ResourceInUseException": {
"type": "structure",
"members": {
@@ -31205,6 +34877,490 @@
"smithy.api#httpError": 404
}
},
+ "com.amazonaws.securityhub#ResourceResult": {
+ "type": "structure",
+ "members": {
+ "ResourceArn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "Specifies the ARN that uniquely identifies a resource.
"
+ }
+ },
+ "ResourceId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The unique identifier for a resource.
",
+ "smithy.api#required": {}
+ }
+ },
+ "AccountId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The Amazon Web Services account that owns the resource.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Region": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The Amazon Web Services Region where the resource is located.
",
+ "smithy.api#required": {}
+ }
+ },
+ "ResourceCategory": {
+ "target": "com.amazonaws.securityhub#ResourceCategory",
+ "traits": {
+ "smithy.api#documentation": "The grouping where the resource belongs.
"
+ }
+ },
+ "ResourceType": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The type of resource.
"
+ }
+ },
+ "ResourceName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The name of the resource.
"
+ }
+ },
+ "ResourceCreationTimeDt": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The time when the resource was created.
"
+ }
+ },
+ "ResourceDetailCaptureTimeDt": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The timestamp when information about the resource was captured.
",
+ "smithy.api#required": {}
+ }
+ },
+ "FindingsSummary": {
+ "target": "com.amazonaws.securityhub#ResourceFindingsSummaryList",
+ "traits": {
+ "smithy.api#documentation": "An aggregated view of security findings associated with a resource.
"
+ }
+ },
+ "ResourceTags": {
+ "target": "com.amazonaws.securityhub#ResourceTagList",
+ "traits": {
+ "smithy.api#documentation": "The key-value pairs associated with a resource.
"
+ }
+ },
+ "ResourceConfig": {
+ "target": "com.amazonaws.securityhub#ResourceConfig",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The configuration details of a resource.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Provides comprehensive details about an Amazon Web Services resource and its associated security findings.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourceSeverityBreakdown": {
+ "type": "structure",
+ "members": {
+ "Other": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings not in any of the severity categories.
"
+ }
+ },
+ "Fatal": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings with a severity level of fatal.
"
+ }
+ },
+ "Critical": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings with a severity level of critical.
"
+ }
+ },
+ "High": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings with a severity level of high.
"
+ }
+ },
+ "Medium": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings with a severity level of medium.
"
+ }
+ },
+ "Low": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings with a severity level of low.
"
+ }
+ },
+ "Informational": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings that provide security-related information.
"
+ }
+ },
+ "Unknown": {
+ "target": "com.amazonaws.securityhub#Integer",
+ "traits": {
+ "smithy.api#documentation": "The number of findings with a severity level cannot be determined.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A comprehensive distribution of security findings by severity level for Amazon Web Services resources.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourceTag": {
+ "type": "structure",
+ "members": {
+ "Key": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The identifier or name of the tag.
",
+ "smithy.api#required": {}
+ }
+ },
+ "Value": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The data associated with the tag key.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Represents tag information associated with Amazon Web Services resources.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourceTagList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourceTag"
+ }
+ },
+ "com.amazonaws.securityhub#Resources": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourceResult"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesCompositeFilter": {
+ "type": "structure",
+ "members": {
+ "StringFilters": {
+ "target": "com.amazonaws.securityhub#ResourcesStringFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on string field values.
"
+ }
+ },
+ "DateFilters": {
+ "target": "com.amazonaws.securityhub#ResourcesDateFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on date and timestamp field values.
"
+ }
+ },
+ "NumberFilters": {
+ "target": "com.amazonaws.securityhub#ResourcesNumberFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on numerical field values.
"
+ }
+ },
+ "MapFilters": {
+ "target": "com.amazonaws.securityhub#ResourcesMapFilterList",
+ "traits": {
+ "smithy.api#documentation": "Enables filtering based on map-based field values.
"
+ }
+ },
+ "Operator": {
+ "target": "com.amazonaws.securityhub#AllowedOperators",
+ "traits": {
+ "smithy.api#documentation": "The logical operator used to combine multiple filter conditions.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables the creation of criteria for Amazon Web Services resources in Security Hub.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesCompositeFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourcesCompositeFilter"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesDateField": {
+ "type": "enum",
+ "members": {
+ "RESOURCE_DETAIL_CAPTURE_TIME_DT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_detail_capture_time_dt"
+ }
+ },
+ "RESOURCE_CREATION_TIME_DT": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_creation_time_dt"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesDateFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#ResourcesDateField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#DateFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables the filtering of Amazon Web Services resources based on date and timestamp attributes.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesDateFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourcesDateFilter"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesFilters": {
+ "type": "structure",
+ "members": {
+ "CompositeFilters": {
+ "target": "com.amazonaws.securityhub#ResourcesCompositeFilterList",
+ "traits": {
+ "smithy.api#documentation": "A collection of complex filtering conditions that can be applied to Amazon Web Services resources.
"
+ }
+ },
+ "CompositeOperator": {
+ "target": "com.amazonaws.securityhub#AllowedOperators",
+ "traits": {
+ "smithy.api#documentation": "The logical operator used to combine multiple filter conditions in the structure.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of Amazon Web Services resources based on data.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesMapField": {
+ "type": "enum",
+ "members": {
+ "TAG": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "tags"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesMapFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#ResourcesMapField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#MapFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of Amazon Web Services resources based on key-value map attributes.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesMapFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourcesMapFilter"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesNumberField": {
+ "type": "enum",
+ "members": {
+ "TOTAL_FINDINGS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.total_findings"
+ }
+ },
+ "SEVERITY_OTHER": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.severities.other"
+ }
+ },
+ "SEVERITY_FATAL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.severities.fatal"
+ }
+ },
+ "SEVERITY_CRITICAL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.severities.critical"
+ }
+ },
+ "SEVERITY_HIGH": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.severities.high"
+ }
+ },
+ "SEVERITY_MEDIUM": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.severities.medium"
+ }
+ },
+ "SEVERITY_LOW": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.severities.low"
+ }
+ },
+ "SEVERITY_INFORMATIONAL": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.severities.informational"
+ }
+ },
+ "SEVERITY_UNKNOWN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.severities.unknown"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesNumberFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#ResourcesNumberField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#NumberFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of Amazon Web Services resources based on numerical values.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesNumberFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourcesNumberFilter"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesStringField": {
+ "type": "enum",
+ "members": {
+ "RESOURCE_ARN": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_arn"
+ }
+ },
+ "RESOURCE_ID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_id"
+ }
+ },
+ "ACCOUNT_ID": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "account_id"
+ }
+ },
+ "REGION": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "region"
+ }
+ },
+ "RESOURCE_CATEGORY": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_category"
+ }
+ },
+ "RESOURCE_TYPE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_type"
+ }
+ },
+ "RESOURCE_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "resource_name"
+ }
+ },
+ "FINDING_TYPE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.finding_type"
+ }
+ },
+ "PRODUCT_NAME": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "findings_summary.product_name"
+ }
+ }
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesStringFilter": {
+ "type": "structure",
+ "members": {
+ "FieldName": {
+ "target": "com.amazonaws.securityhub#ResourcesStringField",
+ "traits": {
+ "smithy.api#documentation": "The name of the field.
"
+ }
+ },
+ "Filter": {
+ "target": "com.amazonaws.securityhub#StringFilter"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Enables filtering of Amazon Web Services resources based on string field values.
"
+ }
+ },
+ "com.amazonaws.securityhub#ResourcesStringFilterList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.securityhub#ResourcesStringFilter"
+ }
+ },
"com.amazonaws.securityhub#Result": {
"type": "structure",
"members": {
@@ -31844,6 +36000,15 @@
}
}
},
+ "com.amazonaws.securityhub#RuleOrderValueV2": {
+ "type": "float",
+ "traits": {
+ "smithy.api#range": {
+ "min": 1.0,
+ "max": 1000.0
+ }
+ }
+ },
"com.amazonaws.securityhub#RuleStatus": {
"type": "enum",
"members": {
@@ -31861,6 +36026,23 @@
}
}
},
+ "com.amazonaws.securityhub#RuleStatusV2": {
+ "type": "enum",
+ "members": {
+ "ENABLED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ENABLED"
+ }
+ },
+ "DISABLED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DISABLED"
+ }
+ }
+ }
+ },
"com.amazonaws.securityhub#SecurityControl": {
"type": "structure",
"members": {
@@ -32158,18 +36340,33 @@
{
"target": "com.amazonaws.securityhub#BatchUpdateFindings"
},
+ {
+ "target": "com.amazonaws.securityhub#BatchUpdateFindingsV2"
+ },
{
"target": "com.amazonaws.securityhub#BatchUpdateStandardsControlAssociations"
},
+ {
+ "target": "com.amazonaws.securityhub#ConnectorRegistrationsV2"
+ },
{
"target": "com.amazonaws.securityhub#CreateActionTarget"
},
+ {
+ "target": "com.amazonaws.securityhub#CreateAggregatorV2"
+ },
{
"target": "com.amazonaws.securityhub#CreateAutomationRule"
},
+ {
+ "target": "com.amazonaws.securityhub#CreateAutomationRuleV2"
+ },
{
"target": "com.amazonaws.securityhub#CreateConfigurationPolicy"
},
+ {
+ "target": "com.amazonaws.securityhub#CreateConnectorV2"
+ },
{
"target": "com.amazonaws.securityhub#CreateFindingAggregator"
},
@@ -32179,15 +36376,27 @@
{
"target": "com.amazonaws.securityhub#CreateMembers"
},
+ {
+ "target": "com.amazonaws.securityhub#CreateTicketV2"
+ },
{
"target": "com.amazonaws.securityhub#DeclineInvitations"
},
{
"target": "com.amazonaws.securityhub#DeleteActionTarget"
},
+ {
+ "target": "com.amazonaws.securityhub#DeleteAggregatorV2"
+ },
+ {
+ "target": "com.amazonaws.securityhub#DeleteAutomationRuleV2"
+ },
{
"target": "com.amazonaws.securityhub#DeleteConfigurationPolicy"
},
+ {
+ "target": "com.amazonaws.securityhub#DeleteConnectorV2"
+ },
{
"target": "com.amazonaws.securityhub#DeleteFindingAggregator"
},
@@ -32212,6 +36421,12 @@
{
"target": "com.amazonaws.securityhub#DescribeProducts"
},
+ {
+ "target": "com.amazonaws.securityhub#DescribeProductsV2"
+ },
+ {
+ "target": "com.amazonaws.securityhub#DescribeSecurityHubV2"
+ },
{
"target": "com.amazonaws.securityhub#DescribeStandards"
},
@@ -32227,6 +36442,9 @@
{
"target": "com.amazonaws.securityhub#DisableSecurityHub"
},
+ {
+ "target": "com.amazonaws.securityhub#DisableSecurityHubV2"
+ },
{
"target": "com.amazonaws.securityhub#DisassociateFromAdministratorAccount"
},
@@ -32245,15 +36463,27 @@
{
"target": "com.amazonaws.securityhub#EnableSecurityHub"
},
+ {
+ "target": "com.amazonaws.securityhub#EnableSecurityHubV2"
+ },
{
"target": "com.amazonaws.securityhub#GetAdministratorAccount"
},
+ {
+ "target": "com.amazonaws.securityhub#GetAggregatorV2"
+ },
+ {
+ "target": "com.amazonaws.securityhub#GetAutomationRuleV2"
+ },
{
"target": "com.amazonaws.securityhub#GetConfigurationPolicy"
},
{
"target": "com.amazonaws.securityhub#GetConfigurationPolicyAssociation"
},
+ {
+ "target": "com.amazonaws.securityhub#GetConnectorV2"
+ },
{
"target": "com.amazonaws.securityhub#GetEnabledStandards"
},
@@ -32266,6 +36496,12 @@
{
"target": "com.amazonaws.securityhub#GetFindings"
},
+ {
+ "target": "com.amazonaws.securityhub#GetFindingStatisticsV2"
+ },
+ {
+ "target": "com.amazonaws.securityhub#GetFindingsV2"
+ },
{
"target": "com.amazonaws.securityhub#GetInsightResults"
},
@@ -32281,21 +36517,36 @@
{
"target": "com.amazonaws.securityhub#GetMembers"
},
+ {
+ "target": "com.amazonaws.securityhub#GetResourcesStatisticsV2"
+ },
+ {
+ "target": "com.amazonaws.securityhub#GetResourcesV2"
+ },
{
"target": "com.amazonaws.securityhub#GetSecurityControlDefinition"
},
{
"target": "com.amazonaws.securityhub#InviteMembers"
},
+ {
+ "target": "com.amazonaws.securityhub#ListAggregatorsV2"
+ },
{
"target": "com.amazonaws.securityhub#ListAutomationRules"
},
+ {
+ "target": "com.amazonaws.securityhub#ListAutomationRulesV2"
+ },
{
"target": "com.amazonaws.securityhub#ListConfigurationPolicies"
},
{
"target": "com.amazonaws.securityhub#ListConfigurationPolicyAssociations"
},
+ {
+ "target": "com.amazonaws.securityhub#ListConnectorsV2"
+ },
{
"target": "com.amazonaws.securityhub#ListEnabledProductsForImport"
},
@@ -32335,9 +36586,18 @@
{
"target": "com.amazonaws.securityhub#UpdateActionTarget"
},
+ {
+ "target": "com.amazonaws.securityhub#UpdateAggregatorV2"
+ },
+ {
+ "target": "com.amazonaws.securityhub#UpdateAutomationRuleV2"
+ },
{
"target": "com.amazonaws.securityhub#UpdateConfigurationPolicy"
},
+ {
+ "target": "com.amazonaws.securityhub#UpdateConnectorV2"
+ },
{
"target": "com.amazonaws.securityhub#UpdateFindingAggregator"
},
@@ -33355,6 +37615,23 @@
}
}
},
+ "com.amazonaws.securityhub#SecurityHubFeature": {
+ "type": "enum",
+ "members": {
+ "SECURITY_HUB": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SecurityHub"
+ }
+ },
+ "SECURITY_HUB_V2": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "SecurityHubV2"
+ }
+ }
+ }
+ },
"com.amazonaws.securityhub#SecurityHubPolicy": {
"type": "structure",
"members": {
@@ -33445,6 +37722,13 @@
"target": "com.amazonaws.securityhub#SensitiveDataResult"
}
},
+ "com.amazonaws.securityhub#SensitiveNonEmptyString": {
+ "type": "string",
+ "traits": {
+ "smithy.api#pattern": "\\S",
+ "smithy.api#sensitive": {}
+ }
+ },
"com.amazonaws.securityhub#Sequence": {
"type": "structure",
"members": {
@@ -33483,6 +37767,66 @@
"smithy.api#documentation": "\n Contains information about an Amazon GuardDuty Extended Threat Detection attack sequence finding. GuardDuty generates an attack \n sequence finding when multiple events align to a potentially suspicious activity. To receive GuardDuty attack sequence findings in Security Hub, you \n\t\t\t\tmust have GuardDuty enabled. For more information, see GuardDuty Extended Threat Detection in the Amazon GuardDuty User Guide.\n
"
}
},
+ "com.amazonaws.securityhub#ServiceNowDetail": {
+ "type": "structure",
+ "members": {
+ "InstanceName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The instanceName of ServiceNow ITSM.
"
+ }
+ },
+ "ClientId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The clientId of ServiceNow ITSM.
"
+ }
+ },
+ "AuthStatus": {
+ "target": "com.amazonaws.securityhub#ConnectorAuthStatus",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The status of the authorization between Jira Cloud and the service.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Information about a ServiceNow ITSM integration.
"
+ }
+ },
+ "com.amazonaws.securityhub#ServiceNowProviderConfiguration": {
+ "type": "structure",
+ "members": {
+ "InstanceName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The instance name of ServiceNow ITSM.
",
+ "smithy.api#required": {}
+ }
+ },
+ "ClientId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The client ID of ServiceNow ITSM.
",
+ "smithy.api#required": {}
+ }
+ },
+ "ClientSecret": {
+ "target": "com.amazonaws.securityhub#SensitiveNonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "The client secret of ServiceNow ITSM.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The initial configuration settings required to establish an integration between Security Hub and ServiceNow ITSM.
"
+ }
+ },
"com.amazonaws.securityhub#Severity": {
"type": "structure",
"members": {
@@ -34745,7 +39089,7 @@
"Comparison": {
"target": "com.amazonaws.securityhub#StringFilterComparison",
"traits": {
- "smithy.api#documentation": "The condition to apply to a string value when filtering Security Hub findings.
\n To search for values that have the filter value, use one of the following comparison operators:
\n \n - \n
To search for values that include the filter value, use CONTAINS. For example, the \n filter Title CONTAINS CloudFront matches findings that have a Title that \n includes the string CloudFront.
\n \n - \n
To search for values that exactly match the filter value, use EQUALS. For example, \n the filter AwsAccountId EQUALS 123456789012 only matches findings that have an account ID of \n 123456789012.
\n \n - \n
To search for values that start with the filter value, use PREFIX. For example, the \n filter ResourceRegion PREFIX us matches findings that have a ResourceRegion that starts \n with us. A ResourceRegion that starts with a different value, such as af, \n ap, or ca, doesn't match.
\n \n
\n \n CONTAINS, EQUALS, and PREFIX filters on the same field are joined by \n OR. A finding matches if it matches any one of those filters. For example, the filters Title CONTAINS CloudFront OR \n Title CONTAINS CloudWatch match a finding that includes either CloudFront, \n CloudWatch, or both strings in the title.
\n To search for values that don’t have the filter value, use one of the following comparison operators:
\n \n - \n
To search for values that exclude the filter value, use NOT_CONTAINS. For example, the \n filter Title NOT_CONTAINS CloudFront matches findings that have a Title that \n excludes the string CloudFront.
\n \n - \n
To search for values other than the filter value, use NOT_EQUALS. For \n example, the filter AwsAccountId NOT_EQUALS 123456789012 only matches findings that have an account \n ID other than 123456789012.
\n \n - \n
To search for values that don't start with the filter value, use PREFIX_NOT_EQUALS. For \n example, the filter ResourceRegion PREFIX_NOT_EQUALS us matches findings with a \n ResourceRegion that starts with a value other than us.
\n \n
\n \n NOT_CONTAINS, NOT_EQUALS, and PREFIX_NOT_EQUALS filters on the same field \n are joined by AND. A finding matches only if it matches all of those filters. For example, the filters Title NOT_CONTAINS CloudFront AND \n Title NOT_CONTAINS CloudWatch match a finding that excludes both CloudFront and \n CloudWatch in the title.
\n You can’t have both a CONTAINS filter and a NOT_CONTAINS filter on the same field. Similarly, \n you can't provide both an EQUALS filter and a NOT_EQUALS or \n PREFIX_NOT_EQUALS filter on the same field. Combining filters in this way returns an error. CONTAINS filters \n can only be used with other CONTAINS filters. NOT_CONTAINS filters can only be used with \n other NOT_CONTAINS filters.
\n You can combine PREFIX filters with NOT_EQUALS or PREFIX_NOT_EQUALS filters for the same field. \n Security Hub first processes the PREFIX filters, and then the NOT_EQUALS or PREFIX_NOT_EQUALS filters.
\n For example, for the following filters, Security Hub first identifies findings that have resource types \n that start with either AwsIam or AwsEc2. It then excludes findings that have a resource \n type of AwsIamPolicy and findings that have a resource type of AwsEc2NetworkInterface.
\n \n - \n
\n ResourceType PREFIX AwsIam\n
\n \n - \n
\n ResourceType PREFIX AwsEc2\n
\n \n - \n
\n ResourceType NOT_EQUALS AwsIamPolicy\n
\n \n - \n
\n ResourceType NOT_EQUALS AwsEc2NetworkInterface\n
\n \n
\n \n CONTAINS and NOT_CONTAINS operators can be used only with automation rules. For more information, \n see Automation rules in the Security Hub User Guide.
"
+ "smithy.api#documentation": "The condition to apply to a string value when filtering Security Hub findings.
\n To search for values that have the filter value, use one of the following comparison operators:
\n \n - \n
To search for values that include the filter value, use CONTAINS. For example, the \n filter Title CONTAINS CloudFront matches findings that have a Title that \n includes the string CloudFront.
\n \n - \n
To search for values that exactly match the filter value, use EQUALS. For example, \n the filter AwsAccountId EQUALS 123456789012 only matches findings that have an account ID of \n 123456789012.
\n \n - \n
To search for values that start with the filter value, use PREFIX. For example, the \n filter ResourceRegion PREFIX us matches findings that have a ResourceRegion that starts \n with us. A ResourceRegion that starts with a different value, such as af, \n ap, or ca, doesn't match.
\n \n
\n \n CONTAINS, EQUALS, and PREFIX filters on the same field are joined by \n OR. A finding matches if it matches any one of those filters. For example, the filters Title CONTAINS CloudFront OR \n Title CONTAINS CloudWatch match a finding that includes either CloudFront, \n CloudWatch, or both strings in the title.
\n To search for values that don’t have the filter value, use one of the following comparison operators:
\n \n - \n
To search for values that exclude the filter value, use NOT_CONTAINS. For example, the \n filter Title NOT_CONTAINS CloudFront matches findings that have a Title that \n excludes the string CloudFront.
\n \n - \n
To search for values other than the filter value, use NOT_EQUALS. For \n example, the filter AwsAccountId NOT_EQUALS 123456789012 only matches findings that have an account \n ID other than 123456789012.
\n \n - \n
To search for values that don't start with the filter value, use PREFIX_NOT_EQUALS. For \n example, the filter ResourceRegion PREFIX_NOT_EQUALS us matches findings with a \n ResourceRegion that starts with a value other than us.
\n \n
\n \n NOT_CONTAINS, NOT_EQUALS, and PREFIX_NOT_EQUALS filters on the same field \n are joined by AND. A finding matches only if it matches all of those filters. For example, the filters Title NOT_CONTAINS CloudFront AND \n Title NOT_CONTAINS CloudWatch match a finding that excludes both CloudFront and \n CloudWatch in the title.
\n You can’t have both a CONTAINS filter and a NOT_CONTAINS filter on the same field. Similarly, \n you can't provide both an EQUALS filter and a NOT_EQUALS or \n PREFIX_NOT_EQUALS filter on the same field. Combining filters in this way returns an error. CONTAINS filters \n can only be used with other CONTAINS filters. NOT_CONTAINS filters can only be used with \n other NOT_CONTAINS filters.
\n You can combine PREFIX filters with NOT_EQUALS or PREFIX_NOT_EQUALS filters for the same field. \n Security Hub first processes the PREFIX filters, and then the NOT_EQUALS or PREFIX_NOT_EQUALS filters.
\n For example, for the following filters, Security Hub first identifies findings that have resource types \n that start with either AwsIam or AwsEc2. It then excludes findings that have a resource \n type of AwsIamPolicy and findings that have a resource type of AwsEc2NetworkInterface.
\n \n - \n
\n ResourceType PREFIX AwsIam\n
\n \n - \n
\n ResourceType PREFIX AwsEc2\n
\n \n - \n
\n ResourceType NOT_EQUALS AwsIamPolicy\n
\n \n - \n
\n ResourceType NOT_EQUALS AwsEc2NetworkInterface\n
\n \n
\n \n CONTAINS and NOT_CONTAINS operators can be used only with automation rules V1. \n CONTAINS_WORD operator is only supported in GetFindingsV2, GetFindingStatisticsV2, GetResourcesV2, and GetResourceStatisticsV2 APIs. \n For more information, see Automation rules in the Security Hub User Guide.
"
}
}
},
@@ -34791,6 +39135,12 @@
"traits": {
"smithy.api#enumValue": "NOT_CONTAINS"
}
+ },
+ "CONTAINS_WORD": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "CONTAINS_WORD"
+ }
}
}
},
@@ -35205,6 +39555,22 @@
"target": "com.amazonaws.securityhub#Threat"
}
},
+ "com.amazonaws.securityhub#ThrottlingException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ },
+ "Code": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "\n The limit on the number of requests per second was exceeded.\n
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 429
+ }
+ },
"com.amazonaws.securityhub#Timestamp": {
"type": "timestamp",
"traits": {
@@ -35567,6 +39933,201 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#UpdateAggregatorV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#UpdateAggregatorV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#UpdateAggregatorV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Udpates the configuration for the Aggregator V2. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "PATCH",
+ "uri": "/aggregatorv2/update/{AggregatorV2Arn+}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#UpdateAggregatorV2Request": {
+ "type": "structure",
+ "members": {
+ "AggregatorV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the Aggregator V2.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "RegionLinkingMode": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#clientOptional": {},
+ "smithy.api#documentation": "Determines how Amazon Web Services Regions should be linked to the Aggregator V2.
",
+ "smithy.api#required": {}
+ }
+ },
+ "LinkedRegions": {
+ "target": "com.amazonaws.securityhub#StringList",
+ "traits": {
+ "smithy.api#documentation": "A list of Amazon Web Services Regions linked to the aggegation Region.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#UpdateAggregatorV2Response": {
+ "type": "structure",
+ "members": {
+ "AggregatorV2Arn": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the Aggregator V2.
"
+ }
+ },
+ "AggregationRegion": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Web Services Region where data is aggregated.
"
+ }
+ },
+ "RegionLinkingMode": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "Determines how Amazon Web Services Regions should be linked to the Aggregator V2.
"
+ }
+ },
+ "LinkedRegions": {
+ "target": "com.amazonaws.securityhub#StringList",
+ "traits": {
+ "smithy.api#documentation": "A list of Amazon Web Services Regions linked to the aggegation Region.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
+ "com.amazonaws.securityhub#UpdateAutomationRuleV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#UpdateAutomationRuleV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#UpdateAutomationRuleV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Updates a V2 automation rule. This API is in private preview and subject to change.
",
+ "smithy.api#http": {
+ "method": "PATCH",
+ "uri": "/automationrulesv2/{Identifier}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#UpdateAutomationRuleV2Request": {
+ "type": "structure",
+ "members": {
+ "Identifier": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The ARN of the automation rule.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "RuleStatus": {
+ "target": "com.amazonaws.securityhub#RuleStatusV2",
+ "traits": {
+ "smithy.api#documentation": "The status of the automation rule.
"
+ }
+ },
+ "RuleOrder": {
+ "target": "com.amazonaws.securityhub#RuleOrderValueV2",
+ "traits": {
+ "smithy.api#documentation": "Represents a value for the rule priority.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "A description of the automation rule.
"
+ }
+ },
+ "RuleName": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The name of the automation rule.
"
+ }
+ },
+ "Criteria": {
+ "target": "com.amazonaws.securityhub#Criteria",
+ "traits": {
+ "smithy.api#documentation": "The filtering type and configuration of the automation rule.
"
+ }
+ },
+ "Actions": {
+ "target": "com.amazonaws.securityhub#AutomationRulesActionListV2",
+ "traits": {
+ "smithy.api#documentation": "A list of actions to be performed when the rule criteria is met.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#UpdateAutomationRuleV2Response": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#UpdateAutomationRulesRequestItem": {
"type": "structure",
"members": {
@@ -35843,6 +40404,84 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.securityhub#UpdateConnectorV2": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.securityhub#UpdateConnectorV2Request"
+ },
+ "output": {
+ "target": "com.amazonaws.securityhub#UpdateConnectorV2Response"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.securityhub#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ConflictException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.securityhub#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Grants permission to update a connectorV2 based on its id and input parameters. This API is in preview release and subject to change.
",
+ "smithy.api#http": {
+ "method": "PATCH",
+ "uri": "/connectorsv2/{ConnectorId+}",
+ "code": 200
+ }
+ }
+ },
+ "com.amazonaws.securityhub#UpdateConnectorV2Request": {
+ "type": "structure",
+ "members": {
+ "ConnectorId": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The UUID of the connectorV2 to identify connectorV2 resource.
",
+ "smithy.api#httpLabel": {},
+ "smithy.api#required": {}
+ }
+ },
+ "ClientSecret": {
+ "target": "com.amazonaws.securityhub#SensitiveNonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The clientSecret of ServiceNow.
"
+ }
+ },
+ "Description": {
+ "target": "com.amazonaws.securityhub#NonEmptyString",
+ "traits": {
+ "smithy.api#documentation": "The description of the connectorV2.
"
+ }
+ },
+ "Provider": {
+ "target": "com.amazonaws.securityhub#ProviderUpdateConfiguration",
+ "traits": {
+ "smithy.api#documentation": "The third-party provider’s service configuration.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.securityhub#UpdateConnectorV2Response": {
+ "type": "structure",
+ "members": {},
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.securityhub#UpdateFindingAggregator": {
"type": "operation",
"input": {
@@ -36505,6 +41144,22 @@
"smithy.api#documentation": "\n Provides Amazon Web Services account information of the user involved in an Amazon GuardDuty Extended Threat Detection attack sequence. GuardDuty generates an attack \n sequence finding when multiple events align to a potentially suspicious activity. To receive GuardDuty attack sequence findings in Security Hub, you \n\t\t\t\tmust have GuardDuty enabled. For more information, see GuardDuty Extended Threat Detection in the Amazon GuardDuty User Guide. \n
"
}
},
+ "com.amazonaws.securityhub#ValidationException": {
+ "type": "structure",
+ "members": {
+ "Message": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ },
+ "Code": {
+ "target": "com.amazonaws.securityhub#NonEmptyString"
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The request has failed validation because it's missing required fields or has invalid inputs.
",
+ "smithy.api#error": "client",
+ "smithy.api#httpError": 400
+ }
+ },
"com.amazonaws.securityhub#VerificationState": {
"type": "enum",
"members": {
diff --git a/codegen/sdk-codegen/aws-models/sts.json b/codegen/sdk-codegen/aws-models/sts.json
index d5e6ea3e91a..49dfd5d99ab 100644
--- a/codegen/sdk-codegen/aws-models/sts.json
+++ b/codegen/sdk-codegen/aws-models/sts.json
@@ -2462,6 +2462,7 @@
}
],
"traits": {
+ "smithy.api#auth": [],
"smithy.api#documentation": "Returns a set of temporary security credentials for users who have been authenticated\n via a SAML authentication response. This operation provides a mechanism for tying an\n enterprise identity store or directory to role-based Amazon Web Services access without user-specific\n credentials or configuration. For a comparison of AssumeRoleWithSAML with the\n other API operations that produce temporary credentials, see Requesting Temporary Security\n Credentials and Compare STS\n credentials in the IAM User Guide.
\n The temporary security credentials returned by this operation consist of an access key\n ID, a secret access key, and a security token. Applications can use these temporary\n security credentials to sign calls to Amazon Web Services services.
\n \n Session Duration\n
\n By default, the temporary security credentials created by\n AssumeRoleWithSAML last for one hour. However, you can use the optional\n DurationSeconds parameter to specify the duration of your session. Your\n role session lasts for the duration that you specify, or until the time specified in the\n SAML authentication response's SessionNotOnOrAfter value, whichever is\n shorter. You can provide a DurationSeconds value from 900 seconds (15 minutes)\n up to the maximum session duration setting for the role. This setting can have a value from\n 1 hour to 12 hours. To learn how to view the maximum value for your role, see View the\n Maximum Session Duration Setting for a Role in the\n IAM User Guide. The maximum session duration limit applies when\n you use the AssumeRole* API operations or the assume-role* CLI\n commands. However the limit does not apply when you use those operations to create a\n console URL. For more information, see Using IAM Roles in the\n IAM User Guide.
\n \n \n Role chaining limits your CLI or Amazon Web Services API role\n session to a maximum of one hour. When you use the AssumeRole API operation\n to assume a role, you can specify the duration of your role session with the\n DurationSeconds parameter. You can specify a parameter value of up to\n 43200 seconds (12 hours), depending on the maximum session duration setting for your\n role. However, if you assume a role using role chaining and provide a\n DurationSeconds parameter value greater than one hour, the operation\n fails.
\n \n \n Permissions\n
\n The temporary security credentials created by AssumeRoleWithSAML can be\n used to make API calls to any Amazon Web Services service with the following exception: you cannot call\n the STS GetFederationToken or GetSessionToken API\n operations.
\n (Optional) You can pass inline or managed session policies to\n this operation. You can pass a single JSON policy document to use as an inline session\n policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as\n managed session policies. The plaintext that you use for both inline and managed session\n policies can't exceed 2,048 characters. Passing policies to this operation returns new \n temporary credentials. The resulting session's permissions are the intersection of the \n role's identity-based policy and the session policies. You can use the role's temporary \n credentials in subsequent Amazon Web Services API calls to access resources in the account that owns \n the role. You cannot use session policies to grant more permissions than those allowed \n by the identity-based policy of the role that is being assumed. For more information, see\n Session\n Policies in the IAM User Guide.
\n Calling AssumeRoleWithSAML does not require the use of Amazon Web Services security\n credentials. The identity of the caller is validated by using keys in the metadata document\n that is uploaded for the SAML provider entity for your identity provider.
\n \n Calling AssumeRoleWithSAML can result in an entry in your CloudTrail logs.\n The entry includes the value in the NameID element of the SAML assertion.\n We recommend that you use a NameIDType that is not associated with any\n personally identifiable information (PII). For example, you could instead use the\n persistent identifier\n (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent).
\n \n \n Tags\n
\n (Optional) You can configure your IdP to pass attributes into your SAML assertion as\n session tags. Each session tag consists of a key name and an associated value. For more\n information about session tags, see Passing Session Tags in STS in the\n IAM User Guide.
\n You can pass up to 50 session tags. The plaintext session tag keys can’t exceed 128\n characters and the values can’t exceed 256 characters. For these and additional limits, see\n IAM\n and STS Character Limits in the IAM User Guide.
\n \n An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,\n and session tags into a packed binary format that has a separate limit. Your request can\n fail for this limit even if your plaintext meets the other requirements. The\n PackedPolicySize response element indicates by percentage how close the\n policies and tags for your request are to the upper size limit.
\n \n You can pass a session tag with the same key as a tag that is attached to the role. When\n you do, session tags override the role's tags with the same key.
\n An administrator must grant you the permissions necessary to pass session tags. The\n administrator can also create granular permissions to allow you to pass only specific\n session tags. For more information, see Tutorial: Using Tags\n for Attribute-Based Access Control in the\n IAM User Guide.
\n You can set the session tags as transitive. Transitive tags persist during role\n chaining. For more information, see Chaining Roles\n with Session Tags in the IAM User Guide.
\n \n SAML Configuration\n
\n Before your application can call AssumeRoleWithSAML, you must configure\n your SAML identity provider (IdP) to issue the claims required by Amazon Web Services. Additionally, you\n must use Identity and Access Management (IAM) to create a SAML provider entity in your Amazon Web Services account that\n represents your identity provider. You must also create an IAM role that specifies this\n SAML provider in its trust policy.
\n For more information, see the following resources:
\n ",
"smithy.api#examples": [
{
@@ -2492,7 +2493,8 @@
"Subject": "SamlExample"
}
}
- ]
+ ],
+ "smithy.api#optionalAuth": {}
}
},
"com.amazonaws.sts#AssumeRoleWithSAMLRequest": {
@@ -2637,6 +2639,7 @@
}
],
"traits": {
+ "smithy.api#auth": [],
"smithy.api#documentation": "Returns a set of temporary security credentials for users who have been authenticated in\n a mobile or web application with a web identity provider. Example providers include the\n OAuth 2.0 providers Login with Amazon and Facebook, or any OpenID Connect-compatible\n identity provider such as Google or Amazon Cognito federated identities.
\n \n For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the\n Amazon Web Services SDK for iOS Developer Guide and the Amazon Web Services SDK for Android Developer Guide to uniquely\n identify a user. You can also supply the user with a consistent identity throughout the\n lifetime of an application.
\n To learn more about Amazon Cognito, see Amazon Cognito identity\n pools in Amazon Cognito Developer Guide.
\n \n Calling AssumeRoleWithWebIdentity does not require the use of Amazon Web Services\n security credentials. Therefore, you can distribute an application (for example, on mobile\n devices) that requests temporary security credentials without including long-term Amazon Web Services\n credentials in the application. You also don't need to deploy server-based proxy services\n that use long-term Amazon Web Services credentials. Instead, the identity of the caller is validated by\n using a token from the web identity provider. For a comparison of\n AssumeRoleWithWebIdentity with the other API operations that produce\n temporary credentials, see Requesting Temporary Security\n Credentials and Compare STS\n credentials in the IAM User Guide.
\n The temporary security credentials returned by this API consist of an access key ID, a\n secret access key, and a security token. Applications can use these temporary security\n credentials to sign calls to Amazon Web Services service API operations.
\n \n Session Duration\n
\n By default, the temporary security credentials created by\n AssumeRoleWithWebIdentity last for one hour. However, you can use the\n optional DurationSeconds parameter to specify the duration of your session.\n You can provide a value from 900 seconds (15 minutes) up to the maximum session duration\n setting for the role. This setting can have a value from 1 hour to 12 hours. To learn how\n to view the maximum value for your role, see Update the maximum session duration for a role in the\n IAM User Guide. The maximum session duration limit applies when\n you use the AssumeRole* API operations or the assume-role* CLI\n commands. However the limit does not apply when you use those operations to create a\n console URL. For more information, see Using IAM Roles in the\n IAM User Guide.
\n \n Permissions\n
\n The temporary security credentials created by AssumeRoleWithWebIdentity can\n be used to make API calls to any Amazon Web Services service with the following exception: you cannot\n call the STS GetFederationToken or GetSessionToken API\n operations.
\n (Optional) You can pass inline or managed session policies to\n this operation. You can pass a single JSON policy document to use as an inline session\n policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as\n managed session policies. The plaintext that you use for both inline and managed session\n policies can't exceed 2,048 characters. Passing policies to this operation returns new \n temporary credentials. The resulting session's permissions are the intersection of the \n role's identity-based policy and the session policies. You can use the role's temporary \n credentials in subsequent Amazon Web Services API calls to access resources in the account that owns \n the role. You cannot use session policies to grant more permissions than those allowed \n by the identity-based policy of the role that is being assumed. For more information, see\n Session\n Policies in the IAM User Guide.
\n \n Tags\n
\n (Optional) You can configure your IdP to pass attributes into your web identity token as\n session tags. Each session tag consists of a key name and an associated value. For more\n information about session tags, see Passing Session Tags in STS in the\n IAM User Guide.
\n You can pass up to 50 session tags. The plaintext session tag keys can’t exceed 128\n characters and the values can’t exceed 256 characters. For these and additional limits, see\n IAM\n and STS Character Limits in the IAM User Guide.
\n \n An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,\n and session tags into a packed binary format that has a separate limit. Your request can\n fail for this limit even if your plaintext meets the other requirements. The\n PackedPolicySize response element indicates by percentage how close the\n policies and tags for your request are to the upper size limit.
\n \n You can pass a session tag with the same key as a tag that is attached to the role. When\n you do, the session tag overrides the role tag with the same key.
\n An administrator must grant you the permissions necessary to pass session tags. The\n administrator can also create granular permissions to allow you to pass only specific\n session tags. For more information, see Tutorial: Using Tags\n for Attribute-Based Access Control in the\n IAM User Guide.
\n You can set the session tags as transitive. Transitive tags persist during role\n chaining. For more information, see Chaining Roles\n with Session Tags in the IAM User Guide.
\n \n Identities\n
\n Before your application can call AssumeRoleWithWebIdentity, you must have\n an identity token from a supported identity provider and create a role that the application\n can assume. The role that your application assumes must trust the identity provider that is\n associated with the identity token. In other words, the identity provider must be specified\n in the role's trust policy.
\n \n Calling AssumeRoleWithWebIdentity can result in an entry in your\n CloudTrail logs. The entry includes the Subject of\n the provided web identity token. We recommend that you avoid using any personally\n identifiable information (PII) in this field. For example, you could instead use a GUID\n or a pairwise identifier, as suggested\n in the OIDC specification.
\n \n For more information about how to use OIDC federation and the\n AssumeRoleWithWebIdentity API, see the following resources:
\n ",
"smithy.api#examples": [
{
@@ -2667,7 +2670,8 @@
"Audience": "client.5498841531868486423.1548@apps.example.com"
}
}
- ]
+ ],
+ "smithy.api#optionalAuth": {}
}
},
"com.amazonaws.sts#AssumeRoleWithWebIdentityRequest": {
diff --git a/codegen/sdk-codegen/aws-models/wafv2.json b/codegen/sdk-codegen/aws-models/wafv2.json
index 912b2874666..2cd411ad967 100644
--- a/codegen/sdk-codegen/aws-models/wafv2.json
+++ b/codegen/sdk-codegen/aws-models/wafv2.json
@@ -147,7 +147,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Details for your use of the account creation fraud prevention managed rule group, AWSManagedRulesACFPRuleSet. This configuration is used in ManagedRuleGroupConfig.
"
+ "smithy.api#documentation": "Details for your use of the account creation fraud prevention managed rule group, AWSManagedRulesACFPRuleSet. This configuration is used in ManagedRuleGroupConfig.
\n For additional information about this and the other intelligent threat mitigation rule groups, \n see Intelligent threat mitigation in WAF \n and Amazon Web Services Managed Rules rule groups list \n in the WAF Developer Guide.
"
}
},
"com.amazonaws.wafv2#AWSManagedRulesATPRuleSet": {
@@ -181,7 +181,28 @@
}
},
"traits": {
- "smithy.api#documentation": "Details for your use of the account takeover prevention managed rule group, AWSManagedRulesATPRuleSet. This configuration is used in ManagedRuleGroupConfig.
"
+ "smithy.api#documentation": "Details for your use of the account takeover prevention managed rule group, AWSManagedRulesATPRuleSet. This configuration is used in ManagedRuleGroupConfig.
\n For additional information about this and the other intelligent threat mitigation rule groups, \n see Intelligent threat mitigation in WAF \n and Amazon Web Services Managed Rules rule groups list \n in the WAF Developer Guide.
"
+ }
+ },
+ "com.amazonaws.wafv2#AWSManagedRulesAntiDDoSRuleSet": {
+ "type": "structure",
+ "members": {
+ "ClientSideActionConfig": {
+ "target": "com.amazonaws.wafv2#ClientSideActionConfig",
+ "traits": {
+ "smithy.api#documentation": "Configures the request handling that's applied by the managed rule group rules ChallengeAllDuringEvent and ChallengeDDoSRequests during a distributed denial of service (DDoS) attack.
",
+ "smithy.api#required": {}
+ }
+ },
+ "SensitivityToBlock": {
+ "target": "com.amazonaws.wafv2#SensitivityToAct",
+ "traits": {
+ "smithy.api#documentation": "The sensitivity that the rule group rule DDoSRequests uses when matching against the \n DDoS suspicion labeling on a request. The managed rule group adds the labeling during DDoS events, before the DDoSRequests rule runs. \n
\n The higher the sensitivity, the more levels of labeling that the rule matches:
\n \n - \n
Low sensitivity is less sensitive, causing the rule to match only on the most likely participants in an attack, which are the requests with the high suspicion label awswaf:managed:aws:anti-ddos:high-suspicion-ddos-request.
\n \n - \n
Medium sensitivity causes the rule to match on the medium and high suspicion labels.
\n \n - \n
High sensitivity causes the rule to match on all of the suspicion labels: low, medium, and high.
\n \n
\n Default: LOW\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Configures the use of the anti-DDoS managed rule group, AWSManagedRulesAntiDDoSRuleSet. This configuration is used in ManagedRuleGroupConfig.
\n The configuration that you provide here determines whether and how the rules in the rule group are used.
\n For additional information about this and the other intelligent threat mitigation rule groups, \n see Intelligent threat mitigation in WAF \n and Amazon Web Services Managed Rules rule groups list \n in the WAF Developer Guide.
"
}
},
"com.amazonaws.wafv2#AWSManagedRulesBotControlRuleSet": {
@@ -203,7 +224,7 @@
}
},
"traits": {
- "smithy.api#documentation": "Details for your use of the Bot Control managed rule group, AWSManagedRulesBotControlRuleSet. This configuration is used in ManagedRuleGroupConfig.
"
+ "smithy.api#documentation": "Details for your use of the Bot Control managed rule group, AWSManagedRulesBotControlRuleSet. This configuration is used in ManagedRuleGroupConfig.
\n For additional information about this and the other intelligent threat mitigation rule groups, \n see Intelligent threat mitigation in WAF \n and Amazon Web Services Managed Rules rule groups list \n in the WAF Developer Guide.
"
}
},
"com.amazonaws.wafv2#AWSWAF_20190729": {
@@ -1741,6 +1762,52 @@
"smithy.api#documentation": "A logical rule statement used to combine other rule statements with AND logic. You provide more than one Statement within the AndStatement.
"
}
},
+ "com.amazonaws.wafv2#ApplicationAttribute": {
+ "type": "structure",
+ "members": {
+ "Name": {
+ "target": "com.amazonaws.wafv2#AttributeName",
+ "traits": {
+ "smithy.api#documentation": "Specifies the attribute name.
"
+ }
+ },
+ "Values": {
+ "target": "com.amazonaws.wafv2#AttributeValues",
+ "traits": {
+ "smithy.api#documentation": "Specifies the attribute value.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Application details defined during the web ACL creation process. Application attributes help WAF give recommendations for protection packs.
"
+ }
+ },
+ "com.amazonaws.wafv2#ApplicationAttributes": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.wafv2#ApplicationAttribute"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 10
+ }
+ }
+ },
+ "com.amazonaws.wafv2#ApplicationConfig": {
+ "type": "structure",
+ "members": {
+ "Attributes": {
+ "target": "com.amazonaws.wafv2#ApplicationAttributes",
+ "traits": {
+ "smithy.api#documentation": "Contains the attribute name and a list of values for that attribute.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "A list of ApplicationAttributes that contains information about the application.
"
+ }
+ },
"com.amazonaws.wafv2#AsnList": {
"type": "list",
"member": {
@@ -1881,6 +1948,37 @@
"smithy.api#documentation": "Specifies custom configurations for the associations between the web ACL and protected resources.
\n Use this to customize the maximum size of the request body that your protected resources forward to WAF for inspection. You can \n customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).
\n \n You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.
\n \n For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
"
}
},
+ "com.amazonaws.wafv2#AttributeName": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 64
+ },
+ "smithy.api#pattern": "^[\\w\\-]+$"
+ }
+ },
+ "com.amazonaws.wafv2#AttributeValue": {
+ "type": "string",
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 64
+ }
+ }
+ },
+ "com.amazonaws.wafv2#AttributeValues": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.wafv2#AttributeValue"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 1,
+ "max": 10
+ }
+ }
+ },
"com.amazonaws.wafv2#BlockAction": {
"type": "structure",
"members": {
@@ -2168,6 +2266,48 @@
"smithy.api#output": {}
}
},
+ "com.amazonaws.wafv2#ClientSideAction": {
+ "type": "structure",
+ "members": {
+ "UsageOfAction": {
+ "target": "com.amazonaws.wafv2#UsageOfAction",
+ "traits": {
+ "smithy.api#documentation": "Determines whether to use the AWSManagedRulesAntiDDoSRuleSet rules ChallengeAllDuringEvent and ChallengeDDoSRequests in the rule group evaluation and the related label awswaf:managed:aws:anti-ddos:challengeable-request.
\n \n - \n
If usage is enabled:
\n \n - \n
The managed rule group adds the label awswaf:managed:aws:anti-ddos:challengeable-request to any web request whose URL does NOT match the regular expressions provided in the \n ClientSideAction setting ExemptUriRegularExpressions.
\n \n - \n
The two rules are evaluated against web requests for protected resources that are experiencing a DDoS attack.\n The two rules only apply their action to matching requests that have the label awswaf:managed:aws:anti-ddos:challengeable-request.\n
\n \n
\n \n - \n
If usage is disabled:
\n \n - \n
The managed rule group doesn't add the label awswaf:managed:aws:anti-ddos:challengeable-request to any web requests.
\n \n - \n
The two rules are not evaluated.
\n \n - \n
None of the other ClientSideAction settings have any effect.
\n \n
\n \n
\n \n This setting only enables or disables the use of the two anti-DDOS rules ChallengeAllDuringEvent and ChallengeDDoSRequests in the anti-DDoS managed rule group.
\n This setting doesn't alter the action setting in the two rules. To override the actions \n used by the rules ChallengeAllDuringEvent and ChallengeDDoSRequests, \n enable this setting, and then override the rule actions in the usual way, in your managed rule group configuration.
\n ",
+ "smithy.api#required": {}
+ }
+ },
+ "Sensitivity": {
+ "target": "com.amazonaws.wafv2#SensitivityToAct",
+ "traits": {
+ "smithy.api#documentation": "The sensitivity that the rule group rule ChallengeDDoSRequests uses when matching against the \n DDoS suspicion labeling on a request. The managed rule group adds the labeling during DDoS events, before the ChallengeDDoSRequests rule runs. \n
\n The higher the sensitivity, the more levels of labeling that the rule matches:
\n \n - \n
Low sensitivity is less sensitive, causing the rule to match only on the most likely participants in an attack, which are the requests with the high suspicion label awswaf:managed:aws:anti-ddos:high-suspicion-ddos-request.
\n \n - \n
Medium sensitivity causes the rule to match on the medium and high suspicion labels.
\n \n - \n
High sensitivity causes the rule to match on all of the suspicion labels: low, medium, and high.
\n \n
\n Default: HIGH\n
"
+ }
+ },
+ "ExemptUriRegularExpressions": {
+ "target": "com.amazonaws.wafv2#RegularExpressionList",
+ "traits": {
+ "smithy.api#documentation": "The regular expression to match against the web request URI, used to identify requests \n that can't handle a silent browser challenge. When the ClientSideAction setting UsageOfAction is enabled, \n the managed rule group uses this setting to determine which requests to label with \n awswaf:managed:aws:anti-ddos:challengeable-request. If UsageOfAction is disabled, this setting\n has no effect and the managed rule group doesn't add the label to any requests.
\n The anti-DDoS managed rule group doesn't \n evaluate the rules ChallengeDDoSRequests or ChallengeAllDuringEvent for web requests whose URIs match this regex. This \n is true regardless of whether you override the rule action for either of the rules in your web ACL configuration.
\n Amazon Web Services recommends using a regular expression.
\n This setting is required if UsageOfAction is set to ENABLED. If required, you can provide \n between 1 and 5 regex objects in the array of settings.
\n Amazon Web Services recommends starting with the following setting. Review and update it for your application's needs:
\n \n \\/api\\/|\\.(acc|avi|css|gif|jpe?g|js|mp[34]|ogg|otf|pdf|png|tiff?|ttf|webm|webp|woff2?)$\n
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "This is part of the AWSManagedRulesAntiDDoSRuleSet\n ClientSideActionConfig configuration in ManagedRuleGroupConfig.
"
+ }
+ },
+ "com.amazonaws.wafv2#ClientSideActionConfig": {
+ "type": "structure",
+ "members": {
+ "Challenge": {
+ "target": "com.amazonaws.wafv2#ClientSideAction",
+ "traits": {
+ "smithy.api#documentation": "Configuration for the use of the AWSManagedRulesAntiDDoSRuleSet rules ChallengeAllDuringEvent and ChallengeDDoSRequests.
\n \n This setting isn't related to the configuration of the Challenge action itself. It only \n configures the use of the two anti-DDoS rules named here.
\n \n You can enable or disable the use of these rules, and you can configure how to use them when they are enabled.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "This is part of the configuration for the managed rules AWSManagedRulesAntiDDoSRuleSet \n in ManagedRuleGroupConfig.
"
+ }
+ },
"com.amazonaws.wafv2#ComparisonOperator": {
"type": "enum",
"members": {
@@ -4365,6 +4505,18 @@
"traits": {
"smithy.api#documentation": "Specifies custom configurations for the associations between the web ACL and protected resources.
\n Use this to customize the maximum size of the request body that your protected resources forward to WAF for inspection. You can \n customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).
\n \n You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.
\n \n For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
"
}
+ },
+ "OnSourceDDoSProtectionConfig": {
+ "target": "com.amazonaws.wafv2#OnSourceDDoSProtectionConfig",
+ "traits": {
+ "smithy.api#documentation": "Specifies the type of DDoS protection to apply to web request data for a web ACL. For most scenarios, it is recommended to use the default protection level, ACTIVE_UNDER_DDOS. \n If a web ACL is associated with multiple Application Load Balancers, the changes you make to DDoS protection in that web ACL will apply to all associated Application Load Balancers.
"
+ }
+ },
+ "ApplicationConfig": {
+ "target": "com.amazonaws.wafv2#ApplicationConfig",
+ "traits": {
+ "smithy.api#documentation": "Configures the ability for the WAF console to store and retrieve application attributes during the web ACL creation process. Application attributes help WAF give recommendations for protection packs.
"
+ }
}
},
"traits": {
@@ -8637,6 +8789,23 @@
"smithy.api#pattern": "\\S"
}
},
+ "com.amazonaws.wafv2#LowReputationMode": {
+ "type": "enum",
+ "members": {
+ "ACTIVE_UNDER_DDOS": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ACTIVE_UNDER_DDOS"
+ }
+ },
+ "ALWAYS_ON": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ALWAYS_ON"
+ }
+ }
+ }
+ },
"com.amazonaws.wafv2#ManagedProductDescriptor": {
"type": "structure",
"members": {
@@ -8763,10 +8932,16 @@
"traits": {
"smithy.api#documentation": "Additional configuration for using the account creation fraud prevention (ACFP) managed rule group, AWSManagedRulesACFPRuleSet. \n Use this to provide account creation request information to the rule group. For web ACLs that protect CloudFront distributions, use this to also provide\n the information about how your distribution responds to account creation requests.
\n For information \n about using the ACFP managed rule group, see WAF Fraud Control account creation fraud prevention (ACFP) rule group \n and WAF Fraud Control account creation fraud prevention (ACFP)\n in the WAF Developer Guide.
"
}
+ },
+ "AWSManagedRulesAntiDDoSRuleSet": {
+ "target": "com.amazonaws.wafv2#AWSManagedRulesAntiDDoSRuleSet",
+ "traits": {
+ "smithy.api#documentation": "Additional configuration for using the anti-DDoS managed rule group, AWSManagedRulesAntiDDoSRuleSet. \n Use this to configure anti-DDoS behavior for the rule group.
\n For information \n about using the anti-DDoS managed rule group, see WAF Anti-DDoS rule group \n and Distributed Denial of Service (DDoS) prevention\n in the WAF Developer Guide.
"
+ }
}
},
"traits": {
- "smithy.api#documentation": "Additional information that's used by a managed rule group. Many managed rule groups don't require this.
\n The rule groups used for intelligent threat mitigation require additional configuration:
\n \n - \n
Use the AWSManagedRulesACFPRuleSet configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields.
\n \n - \n
Use the AWSManagedRulesATPRuleSet configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password.
\n \n - \n
Use the AWSManagedRulesBotControlRuleSet configuration object to configure the \n protection level that you want the Bot Control rule group to use.
\n \n
\n For example specifications, see the examples section of CreateWebACL.
"
+ "smithy.api#documentation": "Additional information that's used by a managed rule group. Many managed rule groups don't require this.
\n The rule groups used for intelligent threat mitigation require additional configuration:
\n \n - \n
Use the AWSManagedRulesACFPRuleSet configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields.
\n \n - \n
Use the AWSManagedRulesAntiDDoSRuleSet configuration object to configure the anti-DDoS managed rule group. The configuration includes the sensitivity levels to use in the rules that typically block and challenge requests that might be participating in DDoS attacks and the specification to use to indicate whether a request can handle a silent browser challenge.
\n \n - \n
Use the AWSManagedRulesATPRuleSet configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password.
\n \n - \n
Use the AWSManagedRulesBotControlRuleSet configuration object to configure the \n protection level that you want the Bot Control rule group to use.
\n \n
\n For example specifications, see the examples section of CreateWebACL.
"
}
},
"com.amazonaws.wafv2#ManagedRuleGroupConfigs": {
@@ -8813,13 +8988,13 @@
"ManagedRuleGroupConfigs": {
"target": "com.amazonaws.wafv2#ManagedRuleGroupConfigs",
"traits": {
- "smithy.api#documentation": "Additional information that's used by a managed rule group. Many managed rule groups don't require this.
\n The rule groups used for intelligent threat mitigation require additional configuration:
\n \n - \n
Use the AWSManagedRulesACFPRuleSet configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields.
\n \n - \n
Use the AWSManagedRulesATPRuleSet configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password.
\n \n - \n
Use the AWSManagedRulesBotControlRuleSet configuration object to configure the \n protection level that you want the Bot Control rule group to use.
\n \n
"
+ "smithy.api#documentation": "Additional information that's used by a managed rule group. Many managed rule groups don't require this.
\n The rule groups used for intelligent threat mitigation require additional configuration:
\n \n - \n
Use the AWSManagedRulesACFPRuleSet configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields.
\n \n - \n
Use the AWSManagedRulesAntiDDoSRuleSet configuration object to configure the anti-DDoS managed rule group. The configuration includes the sensitivity levels to use in the rules that typically block and challenge requests that might be participating in DDoS attacks and the specification to use to indicate whether a request can handle a silent browser challenge.
\n \n - \n
Use the AWSManagedRulesATPRuleSet configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password.
\n \n - \n
Use the AWSManagedRulesBotControlRuleSet configuration object to configure the \n protection level that you want the Bot Control rule group to use.
\n \n
"
}
},
"RuleActionOverrides": {
"target": "com.amazonaws.wafv2#RuleActionOverrides",
"traits": {
- "smithy.api#documentation": "Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
\n \n Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, WAF doesn't return an error and doesn't apply the override setting.
\n \n You can use overrides for testing, for example you can override all of rule actions to Count and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
"
+ "smithy.api#documentation": "Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
\n \n Verify the rule names in your overrides carefully. With managed rule groups, WAF silently ignores any override that uses an invalid rule name. With customer-owned rule groups, invalid rule names in your overrides will cause web ACL updates to fail. An invalid rule name is any name that doesn't exactly match the case-sensitive name of an existing rule in the rule group.
\n \n You can use overrides for testing, for example you can override all of rule actions to Count and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
"
}
}
},
@@ -9143,6 +9318,21 @@
"smithy.api#documentation": "A logical rule statement used to negate the results of another rule statement. You provide one Statement within the NotStatement.
"
}
},
+ "com.amazonaws.wafv2#OnSourceDDoSProtectionConfig": {
+ "type": "structure",
+ "members": {
+ "ALBLowReputationMode": {
+ "target": "com.amazonaws.wafv2#LowReputationMode",
+ "traits": {
+ "smithy.api#documentation": "The level of DDoS protection that applies to web ACLs associated with Application Load Balancers. ACTIVE_UNDER_DDOS protection is enabled by default whenever a web ACL is associated with an Application Load Balancer. \n In the event that an Application Load Balancer experiences high-load conditions or suspected DDoS attacks, the ACTIVE_UNDER_DDOS protection automatically rate limits traffic from known low reputation sources without disrupting Application Load Balancer availability. \n ALWAYS_ON protection provides constant, always-on monitoring of known low reputation sources for suspected DDoS attacks. While this provides a higher level of protection, there may be potential impacts on legitimate traffic.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Configures the level of DDoS protection that applies to web ACLs associated with Application Load Balancers.
"
+ }
+ },
"com.amazonaws.wafv2#OrStatement": {
"type": "structure",
"members": {
@@ -9641,6 +9831,12 @@
"traits": {
"smithy.api#enumValue": "DATA_PROTECTION_CONFIG"
}
+ },
+ "LOW_REPUTATION_MODE": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "LOW_REPUTATION_MODE"
+ }
}
}
},
@@ -10429,7 +10625,7 @@
}
},
"traits": {
- "smithy.api#documentation": "A single regular expression. This is used in a RegexPatternSet.
"
+ "smithy.api#documentation": "A single regular expression. This is used in a RegexPatternSet and \n also in the configuration for the Amazon Web Services Managed Rules rule group AWSManagedRulesAntiDDoSRuleSet.
"
}
},
"com.amazonaws.wafv2#RegexMatchStatement": {
@@ -11310,7 +11506,7 @@
"RuleActionOverrides": {
"target": "com.amazonaws.wafv2#RuleActionOverrides",
"traits": {
- "smithy.api#documentation": "Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
\n \n Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, WAF doesn't return an error and doesn't apply the override setting.
\n \n You can use overrides for testing, for example you can override all of rule actions to Count and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
"
+ "smithy.api#documentation": "Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
\n \n Verify the rule names in your overrides carefully. With managed rule groups, WAF silently ignores any override that uses an invalid rule name. With customer-owned rule groups, invalid rule names in your overrides will cause web ACL updates to fail. An invalid rule name is any name that doesn't exactly match the case-sensitive name of an existing rule in the rule group.
\n \n You can use overrides for testing, for example you can override all of rule actions to Count and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
"
}
}
},
@@ -11532,6 +11728,29 @@
}
}
},
+ "com.amazonaws.wafv2#SensitivityToAct": {
+ "type": "enum",
+ "members": {
+ "LOW": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "LOW"
+ }
+ },
+ "MEDIUM": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "MEDIUM"
+ }
+ },
+ "HIGH": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "HIGH"
+ }
+ }
+ }
+ },
"com.amazonaws.wafv2#SingleCookieName": {
"type": "string",
"traits": {
@@ -12821,6 +13040,12 @@
"traits": {
"smithy.api#documentation": "Specifies custom configurations for the associations between the web ACL and protected resources.
\n Use this to customize the maximum size of the request body that your protected resources forward to WAF for inspection. You can \n customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).
\n \n You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.
\n \n For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
"
}
+ },
+ "OnSourceDDoSProtectionConfig": {
+ "target": "com.amazonaws.wafv2#OnSourceDDoSProtectionConfig",
+ "traits": {
+ "smithy.api#documentation": "Specifies the type of DDoS protection to apply to web request data for a web ACL. For most scenarios, it is recommended to use the default protection level, ACTIVE_UNDER_DDOS. \n If a web ACL is associated with multiple Application Load Balancers, the changes you make to DDoS protection in that web ACL will apply to all associated Application Load Balancers.
"
+ }
}
},
"traits": {
@@ -12862,6 +13087,23 @@
"smithy.api#documentation": "Inspect the path component of the URI of the web request. This is the part of the web\n request that identifies a resource. For example, /images/daily-ad.jpg.
\n This is used in the FieldToMatch specification for some web request component types.
\n JSON specification: \"UriPath\": {}\n
"
}
},
+ "com.amazonaws.wafv2#UsageOfAction": {
+ "type": "enum",
+ "members": {
+ "ENABLED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "ENABLED"
+ }
+ },
+ "DISABLED": {
+ "target": "smithy.api#Unit",
+ "traits": {
+ "smithy.api#enumValue": "DISABLED"
+ }
+ }
+ }
+ },
"com.amazonaws.wafv2#UsernameField": {
"type": "structure",
"members": {
@@ -13333,6 +13575,18 @@
"smithy.api#default": false,
"smithy.api#documentation": "Indicates whether this web ACL was created by a customer account and then retrofitted by Firewall Manager. If true, then the web ACL is currently being \n managed by a Firewall Manager WAF policy, and only Firewall Manager can manage any Firewall Manager rule groups in the web ACL. \n See also the properties ManagedByFirewallManager, PreProcessFirewallManagerRuleGroups, and PostProcessFirewallManagerRuleGroups.
"
}
+ },
+ "OnSourceDDoSProtectionConfig": {
+ "target": "com.amazonaws.wafv2#OnSourceDDoSProtectionConfig",
+ "traits": {
+ "smithy.api#documentation": "Configures the level of DDoS protection that applies to web ACLs associated with Application Load Balancers.
"
+ }
+ },
+ "ApplicationConfig": {
+ "target": "com.amazonaws.wafv2#ApplicationConfig",
+ "traits": {
+ "smithy.api#documentation": "Returns a list of ApplicationAttributes.
"
+ }
}
},
"traits": {
diff --git a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json
index 7fbf0144ea0..60495313a64 100644
--- a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json
+++ b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json
@@ -11969,6 +11969,7 @@
"tags" : [ "dualstack" ]
} ]
},
+ "ap-east-2" : { },
"ap-northeast-1" : {
"variants" : [ {
"hostname" : "glue.ap-northeast-1.api.aws",
@@ -12674,6 +12675,7 @@
"il-central-1" : { },
"me-central-1" : { },
"me-south-1" : { },
+ "mx-central-1" : { },
"sa-east-1" : { },
"us-east-1" : { },
"us-east-2" : { },
diff --git a/config/CHANGELOG.md b/config/CHANGELOG.md
index 0416b30a4de..a3e49f89318 100644
--- a/config/CHANGELOG.md
+++ b/config/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.17 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.16 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/config/go.mod b/config/go.mod
index a98dd89212e..4aa6ee7b536 100644
--- a/config/go.mod
+++ b/config/go.mod
@@ -3,21 +3,21 @@ module github.com/aws/aws-sdk-go-v2/config
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0
+ github.com/aws/smithy-go v1.22.4
)
require (
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../
diff --git a/config/go.sum b/config/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/config/go.sum
+++ b/config/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/config/go_module_metadata.go b/config/go_module_metadata.go
index 8c30900142b..ef19c0a7f5c 100644
--- a/config/go_module_metadata.go
+++ b/config/go_module_metadata.go
@@ -3,4 +3,4 @@
package config
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.16"
+const goModuleVersion = "1.29.17"
diff --git a/credentials/CHANGELOG.md b/credentials/CHANGELOG.md
index d47d8629e01..1df7649ff7a 100644
--- a/credentials/CHANGELOG.md
+++ b/credentials/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.70 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.69 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/credentials/go.mod b/credentials/go.mod
index 5805d51989b..ad750ce4bbd 100644
--- a/credentials/go.mod
+++ b/credentials/go.mod
@@ -3,19 +3,19 @@ module github.com/aws/aws-sdk-go-v2/credentials
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0
+ github.com/aws/smithy-go v1.22.4
)
require (
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../
diff --git a/credentials/go.sum b/credentials/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/credentials/go.sum
+++ b/credentials/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/credentials/go_module_metadata.go b/credentials/go_module_metadata.go
index 3ec6470b41b..729137d8574 100644
--- a/credentials/go_module_metadata.go
+++ b/credentials/go_module_metadata.go
@@ -3,4 +3,4 @@
package credentials
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.69"
+const goModuleVersion = "1.17.70"
diff --git a/example/service/dynamodb/createTable/go.mod b/example/service/dynamodb/createTable/go.mod
index 2b05ad4b0b5..c9774e706f2 100644
--- a/example/service/dynamodb/createTable/go.mod
+++ b/example/service/dynamodb/createTable/go.mod
@@ -3,24 +3,24 @@ module github.com/aws/aws-sdk-go-v2/example/service/dynamodb/createTable
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.3
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.4
)
require (
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 // indirect
- github.com/aws/smithy-go v1.22.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
+ github.com/aws/smithy-go v1.22.4 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../../
diff --git a/example/service/dynamodb/createTable/go.sum b/example/service/dynamodb/createTable/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/example/service/dynamodb/createTable/go.sum
+++ b/example/service/dynamodb/createTable/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/example/service/dynamodb/scanItems/go.mod b/example/service/dynamodb/scanItems/go.mod
index 63f709fc85b..432ee59c96c 100644
--- a/example/service/dynamodb/scanItems/go.mod
+++ b/example/service/dynamodb/scanItems/go.mod
@@ -3,26 +3,26 @@ module github.com/aws/aws-sdk-go-v2/example/service/dynamodb/listItems
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.19.2
- github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.3
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.19.3
+ github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.4
)
require (
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.25.5 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 // indirect
- github.com/aws/smithy-go v1.22.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.25.6 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
+ github.com/aws/smithy-go v1.22.4 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../../
diff --git a/example/service/dynamodb/scanItems/go.sum b/example/service/dynamodb/scanItems/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/example/service/dynamodb/scanItems/go.sum
+++ b/example/service/dynamodb/scanItems/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/example/service/s3/listObjects/go.mod b/example/service/s3/listObjects/go.mod
index a824102a871..fe24d953efc 100644
--- a/example/service/s3/listObjects/go.mod
+++ b/example/service/s3/listObjects/go.mod
@@ -3,27 +3,27 @@ module github.com/aws/aws-sdk-go-v2/example/service/s3/listObjects
go 1.22
require (
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3
)
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4 // indirect
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2 v1.36.5 // indirect
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 // indirect
- github.com/aws/smithy-go v1.22.2 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
+ github.com/aws/smithy-go v1.22.4 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../../
diff --git a/example/service/s3/listObjects/go.sum b/example/service/s3/listObjects/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/example/service/s3/listObjects/go.sum
+++ b/example/service/s3/listObjects/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/example/service/s3/usingPrivateLink/go.mod b/example/service/s3/usingPrivateLink/go.mod
index f42b953bb7d..7c7f924e586 100644
--- a/example/service/s3/usingPrivateLink/go.mod
+++ b/example/service/s3/usingPrivateLink/go.mod
@@ -3,28 +3,28 @@ module github.com/aws/aws-sdk-go-v2/example/service/s3/usingPrivateLink
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2
- github.com/aws/aws-sdk-go-v2/service/s3control v1.58.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3
+ github.com/aws/aws-sdk-go-v2/service/s3control v1.58.3
)
require (
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 // indirect
- github.com/aws/smithy-go v1.22.2 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
+ github.com/aws/smithy-go v1.22.4 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../../
diff --git a/example/service/s3/usingPrivateLink/go.sum b/example/service/s3/usingPrivateLink/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/example/service/s3/usingPrivateLink/go.sum
+++ b/example/service/s3/usingPrivateLink/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/cloudfront/sign/CHANGELOG.md b/feature/cloudfront/sign/CHANGELOG.md
index 26f26100965..17ac70b3a34 100644
--- a/feature/cloudfront/sign/CHANGELOG.md
+++ b/feature/cloudfront/sign/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.8.13 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.8.12 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/feature/cloudfront/sign/go.mod b/feature/cloudfront/sign/go.mod
index 87d6195fdca..fbe62871a2b 100644
--- a/feature/cloudfront/sign/go.mod
+++ b/feature/cloudfront/sign/go.mod
@@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/feature/cloudfront/sign
go 1.22
-require github.com/aws/aws-sdk-go-v2 v1.36.4
+require github.com/aws/aws-sdk-go-v2 v1.36.5
-require github.com/aws/smithy-go v1.22.2 // indirect
+require github.com/aws/smithy-go v1.22.4 // indirect
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/cloudfront/sign/go.sum b/feature/cloudfront/sign/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/cloudfront/sign/go.sum
+++ b/feature/cloudfront/sign/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/cloudfront/sign/go_module_metadata.go b/feature/cloudfront/sign/go_module_metadata.go
index 1d22fd75ceb..9d950213120 100644
--- a/feature/cloudfront/sign/go_module_metadata.go
+++ b/feature/cloudfront/sign/go_module_metadata.go
@@ -3,4 +3,4 @@
package sign
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.8.12"
+const goModuleVersion = "1.8.13"
diff --git a/feature/dsql/auth/CHANGELOG.md b/feature/dsql/auth/CHANGELOG.md
index ed8ba7849f7..54f09af6e62 100644
--- a/feature/dsql/auth/CHANGELOG.md
+++ b/feature/dsql/auth/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.0.11 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.0.10 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/feature/dsql/auth/go.mod b/feature/dsql/auth/go.mod
index 7b3ac8d4a22..2f8563c62ec 100644
--- a/feature/dsql/auth/go.mod
+++ b/feature/dsql/auth/go.mod
@@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/feature/dsql/auth
go 1.22
-require github.com/aws/aws-sdk-go-v2 v1.36.4
+require github.com/aws/aws-sdk-go-v2 v1.36.5
-require github.com/aws/smithy-go v1.22.2 // indirect
+require github.com/aws/smithy-go v1.22.4 // indirect
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/dsql/auth/go.sum b/feature/dsql/auth/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/dsql/auth/go.sum
+++ b/feature/dsql/auth/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/dsql/auth/go_module_metadata.go b/feature/dsql/auth/go_module_metadata.go
index 83be39a017e..57d9f65ee0c 100644
--- a/feature/dsql/auth/go_module_metadata.go
+++ b/feature/dsql/auth/go_module_metadata.go
@@ -3,4 +3,4 @@
package auth
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.0.10"
+const goModuleVersion = "1.0.11"
diff --git a/feature/dynamodb/attributevalue/CHANGELOG.md b/feature/dynamodb/attributevalue/CHANGELOG.md
index 3a6835f01e0..ac5e5766fa6 100644
--- a/feature/dynamodb/attributevalue/CHANGELOG.md
+++ b/feature/dynamodb/attributevalue/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.19.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.19.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/feature/dynamodb/attributevalue/go.mod b/feature/dynamodb/attributevalue/go.mod
index c7539338130..4d11d09dc9f 100644
--- a/feature/dynamodb/attributevalue/go.mod
+++ b/feature/dynamodb/attributevalue/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.3
- github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.25.5
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.4
+ github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.25.6
)
-require github.com/aws/smithy-go v1.22.2
+require github.com/aws/smithy-go v1.22.4
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/dynamodb/attributevalue/go.sum b/feature/dynamodb/attributevalue/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/dynamodb/attributevalue/go.sum
+++ b/feature/dynamodb/attributevalue/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/dynamodb/attributevalue/go_module_metadata.go b/feature/dynamodb/attributevalue/go_module_metadata.go
index 4aff1cf2064..6b83d06927e 100644
--- a/feature/dynamodb/attributevalue/go_module_metadata.go
+++ b/feature/dynamodb/attributevalue/go_module_metadata.go
@@ -3,4 +3,4 @@
package attributevalue
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.19.2"
+const goModuleVersion = "1.19.3"
diff --git a/feature/dynamodb/expression/CHANGELOG.md b/feature/dynamodb/expression/CHANGELOG.md
index eb4255e8e9d..cd3fe84ba22 100644
--- a/feature/dynamodb/expression/CHANGELOG.md
+++ b/feature/dynamodb/expression/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.7.85 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.7.84 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/feature/dynamodb/expression/go.mod b/feature/dynamodb/expression/go.mod
index 55bf50d3736..84a726edc90 100644
--- a/feature/dynamodb/expression/go.mod
+++ b/feature/dynamodb/expression/go.mod
@@ -3,18 +3,18 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodb/expression
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.19.2
- github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.3
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.19.3
+ github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.4
)
require (
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.25.5 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.16 // indirect
- github.com/aws/smithy-go v1.22.2 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.25.6 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.17 // indirect
+ github.com/aws/smithy-go v1.22.4 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/dynamodb/expression/go.sum b/feature/dynamodb/expression/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/dynamodb/expression/go.sum
+++ b/feature/dynamodb/expression/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/dynamodb/expression/go_module_metadata.go b/feature/dynamodb/expression/go_module_metadata.go
index 211b2126568..78b6e8b3b72 100644
--- a/feature/dynamodb/expression/go_module_metadata.go
+++ b/feature/dynamodb/expression/go_module_metadata.go
@@ -3,4 +3,4 @@
package expression
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.7.84"
+const goModuleVersion = "1.7.85"
diff --git a/feature/dynamodbstreams/attributevalue/CHANGELOG.md b/feature/dynamodbstreams/attributevalue/CHANGELOG.md
index eacd3d2ad25..27ef3dfb3ca 100644
--- a/feature/dynamodbstreams/attributevalue/CHANGELOG.md
+++ b/feature/dynamodbstreams/attributevalue/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.18.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.18.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/feature/dynamodbstreams/attributevalue/go.mod b/feature/dynamodbstreams/attributevalue/go.mod
index c7108c8af06..046fc6a969e 100644
--- a/feature/dynamodbstreams/attributevalue/go.mod
+++ b/feature/dynamodbstreams/attributevalue/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodbstreams/attributevalue
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.3
- github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.25.5
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.4
+ github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.25.6
)
-require github.com/aws/smithy-go v1.22.2
+require github.com/aws/smithy-go v1.22.4
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/dynamodbstreams/attributevalue/go.sum b/feature/dynamodbstreams/attributevalue/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/dynamodbstreams/attributevalue/go.sum
+++ b/feature/dynamodbstreams/attributevalue/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/dynamodbstreams/attributevalue/go_module_metadata.go b/feature/dynamodbstreams/attributevalue/go_module_metadata.go
index 0ec1e19b09f..aa3631294e7 100644
--- a/feature/dynamodbstreams/attributevalue/go_module_metadata.go
+++ b/feature/dynamodbstreams/attributevalue/go_module_metadata.go
@@ -3,4 +3,4 @@
package attributevalue
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.18.2"
+const goModuleVersion = "1.18.3"
diff --git a/feature/ec2/imds/CHANGELOG.md b/feature/ec2/imds/CHANGELOG.md
index 4bd7a942fb7..b204386b535 100644
--- a/feature/ec2/imds/CHANGELOG.md
+++ b/feature/ec2/imds/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.16.32 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.16.31 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/feature/ec2/imds/go.mod b/feature/ec2/imds/go.mod
index 435be22dcc9..7d10677fe87 100644
--- a/feature/ec2/imds/go.mod
+++ b/feature/ec2/imds/go.mod
@@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/feature/ec2/imds
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/ec2/imds/go.sum b/feature/ec2/imds/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/ec2/imds/go.sum
+++ b/feature/ec2/imds/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/ec2/imds/go_module_metadata.go b/feature/ec2/imds/go_module_metadata.go
index accba4083af..ebd98386e05 100644
--- a/feature/ec2/imds/go_module_metadata.go
+++ b/feature/ec2/imds/go_module_metadata.go
@@ -3,4 +3,4 @@
package imds
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.16.31"
+const goModuleVersion = "1.16.32"
diff --git a/feature/ec2/imds/internal/configtesting/go.mod b/feature/ec2/imds/internal/configtesting/go.mod
index 2361404365d..72d3a0943e2 100644
--- a/feature/ec2/imds/internal/configtesting/go.mod
+++ b/feature/ec2/imds/internal/configtesting/go.mod
@@ -3,22 +3,22 @@ module github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/configtesting
go 1.22
require (
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32
)
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4 // indirect
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2 v1.36.5 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 // indirect
- github.com/aws/smithy-go v1.22.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
+ github.com/aws/smithy-go v1.22.4 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../../../
diff --git a/feature/ec2/imds/internal/configtesting/go.sum b/feature/ec2/imds/internal/configtesting/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/ec2/imds/internal/configtesting/go.sum
+++ b/feature/ec2/imds/internal/configtesting/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/rds/auth/CHANGELOG.md b/feature/rds/auth/CHANGELOG.md
index 194c10e64b6..82b82681f24 100644
--- a/feature/rds/auth/CHANGELOG.md
+++ b/feature/rds/auth/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.13 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.12 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/feature/rds/auth/go.mod b/feature/rds/auth/go.mod
index 63b659e3e5f..67c356aa036 100644
--- a/feature/rds/auth/go.mod
+++ b/feature/rds/auth/go.mod
@@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/feature/rds/auth
go 1.22
-require github.com/aws/aws-sdk-go-v2 v1.36.4
+require github.com/aws/aws-sdk-go-v2 v1.36.5
-require github.com/aws/smithy-go v1.22.2 // indirect
+require github.com/aws/smithy-go v1.22.4 // indirect
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/rds/auth/go.sum b/feature/rds/auth/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/rds/auth/go.sum
+++ b/feature/rds/auth/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/rds/auth/go_module_metadata.go b/feature/rds/auth/go_module_metadata.go
index 9696789a452..c2f59961c80 100644
--- a/feature/rds/auth/go_module_metadata.go
+++ b/feature/rds/auth/go_module_metadata.go
@@ -3,4 +3,4 @@
package auth
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.12"
+const goModuleVersion = "1.5.13"
diff --git a/feature/s3/manager/CHANGELOG.md b/feature/s3/manager/CHANGELOG.md
index fbad303f3f9..e4e257ad135 100644
--- a/feature/s3/manager/CHANGELOG.md
+++ b/feature/s3/manager/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.80 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.79 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod
index 21fc6b2a137..2bbc5b4bbe7 100644
--- a/feature/s3/manager/go.mod
+++ b/feature/s3/manager/go.mod
@@ -3,27 +3,27 @@ module github.com/aws/aws-sdk-go-v2/feature/s3/manager
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69
- github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70
+ github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3
+ github.com/aws/smithy-go v1.22.4
)
require (
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/s3/manager/go.sum b/feature/s3/manager/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/s3/manager/go.sum
+++ b/feature/s3/manager/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/feature/s3/manager/go_module_metadata.go b/feature/s3/manager/go_module_metadata.go
index 79c2a4aca28..d560122d043 100644
--- a/feature/s3/manager/go_module_metadata.go
+++ b/feature/s3/manager/go_module_metadata.go
@@ -3,4 +3,4 @@
package manager
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.79"
+const goModuleVersion = "1.17.80"
diff --git a/feature/s3/transfermanager/go.mod b/feature/s3/transfermanager/go.mod
index 327cbbd5d3f..41097df0bea 100644
--- a/feature/s3/transfermanager/go.mod
+++ b/feature/s3/transfermanager/go.mod
@@ -3,27 +3,27 @@ module github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0
+ github.com/aws/smithy-go v1.22.4
)
require (
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/feature/s3/transfermanager/go.sum b/feature/s3/transfermanager/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/feature/s3/transfermanager/go.sum
+++ b/feature/s3/transfermanager/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/go.mod b/go.mod
index 91bf13b1ebb..d95419e7cc1 100644
--- a/go.mod
+++ b/go.mod
@@ -1,5 +1,5 @@
module github.com/aws/aws-sdk-go-v2
-require github.com/aws/smithy-go v1.22.2
+require github.com/aws/smithy-go v1.22.4
go 1.22
diff --git a/go.sum b/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/go.sum
+++ b/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/configsources/CHANGELOG.md b/internal/configsources/CHANGELOG.md
index b4990deff27..a9d68c515b5 100644
--- a/internal/configsources/CHANGELOG.md
+++ b/internal/configsources/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.3.36 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.3.35 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/internal/configsources/configtesting/go.mod b/internal/configsources/configtesting/go.mod
index a561f31e704..f7058e857fd 100644
--- a/internal/configsources/configtesting/go.mod
+++ b/internal/configsources/configtesting/go.mod
@@ -3,22 +3,22 @@ module github.com/aws/aws-sdk-go-v2/internal/configsources/configtesting
go 1.22
require (
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
)
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4 // indirect
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2 v1.36.5 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 // indirect
- github.com/aws/smithy-go v1.22.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
+ github.com/aws/smithy-go v1.22.4 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/configsources/configtesting/go.sum b/internal/configsources/configtesting/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/configsources/configtesting/go.sum
+++ b/internal/configsources/configtesting/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/configsources/go.mod b/internal/configsources/go.mod
index 2bc5695603e..8fdfc40fbf3 100644
--- a/internal/configsources/go.mod
+++ b/internal/configsources/go.mod
@@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/internal/configsources
go 1.22
-require github.com/aws/aws-sdk-go-v2 v1.36.4
+require github.com/aws/aws-sdk-go-v2 v1.36.5
-require github.com/aws/smithy-go v1.22.2 // indirect
+require github.com/aws/smithy-go v1.22.4 // indirect
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/internal/configsources/go.sum b/internal/configsources/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/configsources/go.sum
+++ b/internal/configsources/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/configsources/go_module_metadata.go b/internal/configsources/go_module_metadata.go
index 19fd2844726..dfc815100b1 100644
--- a/internal/configsources/go_module_metadata.go
+++ b/internal/configsources/go_module_metadata.go
@@ -3,4 +3,4 @@
package configsources
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.3.35"
+const goModuleVersion = "1.3.36"
diff --git a/internal/endpoints/awsrulesfn/partitions.json b/internal/endpoints/awsrulesfn/partitions.json
index a2bfa6ead49..456b07fca67 100644
--- a/internal/endpoints/awsrulesfn/partitions.json
+++ b/internal/endpoints/awsrulesfn/partitions.json
@@ -17,6 +17,9 @@
"ap-east-1" : {
"description" : "Asia Pacific (Hong Kong)"
},
+ "ap-east-2" : {
+ "description" : "Asia Pacific (Taipei)"
+ },
"ap-northeast-1" : {
"description" : "Asia Pacific (Tokyo)"
},
diff --git a/internal/endpoints/v2/CHANGELOG.md b/internal/endpoints/v2/CHANGELOG.md
index b56edee3779..01dc55c8739 100644
--- a/internal/endpoints/v2/CHANGELOG.md
+++ b/internal/endpoints/v2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v2.6.36 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v2.6.35 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/internal/endpoints/v2/go.mod b/internal/endpoints/v2/go.mod
index 2a807e76d0f..ad5e55c8d40 100644
--- a/internal/endpoints/v2/go.mod
+++ b/internal/endpoints/v2/go.mod
@@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/internal/endpoints/v2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/endpoints/v2/go.sum b/internal/endpoints/v2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/endpoints/v2/go.sum
+++ b/internal/endpoints/v2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/endpoints/v2/go_module_metadata.go b/internal/endpoints/v2/go_module_metadata.go
index e7ebb2f5fa2..44c39bc0acb 100644
--- a/internal/endpoints/v2/go_module_metadata.go
+++ b/internal/endpoints/v2/go_module_metadata.go
@@ -3,4 +3,4 @@
package endpoints
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "2.6.35"
+const goModuleVersion = "2.6.36"
diff --git a/internal/kitchensinktest/go.mod b/internal/kitchensinktest/go.mod
index 6ddbdda7b14..2328aa9f6b8 100644
--- a/internal/kitchensinktest/go.mod
+++ b/internal/kitchensinktest/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/kitchensinktest
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/internal/kitchensinktest/go.sum b/internal/kitchensinktest/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/kitchensinktest/go.sum
+++ b/internal/kitchensinktest/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod
index d4bc04d78c6..5e169a29414 100644
--- a/internal/protocoltest/awsrestjson/go.mod
+++ b/internal/protocoltest/awsrestjson/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/awsrestjson/go.sum
+++ b/internal/protocoltest/awsrestjson/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod
index 4eec19239ea..85d7f984947 100644
--- a/internal/protocoltest/ec2query/go.mod
+++ b/internal/protocoltest/ec2query/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/ec2query
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/ec2query/go.sum
+++ b/internal/protocoltest/ec2query/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod
index 5d8e4e34b80..565a9e6c727 100644
--- a/internal/protocoltest/jsonrpc/go.mod
+++ b/internal/protocoltest/jsonrpc/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/jsonrpc/go.sum
+++ b/internal/protocoltest/jsonrpc/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod
index b722d732a75..4b87934545e 100644
--- a/internal/protocoltest/jsonrpc10/go.mod
+++ b/internal/protocoltest/jsonrpc10/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc10
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/jsonrpc10/go.sum
+++ b/internal/protocoltest/jsonrpc10/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/jsonrpc10querycompatible/go.mod b/internal/protocoltest/jsonrpc10querycompatible/go.mod
index f6b879b09dd..b8b9eb28674 100644
--- a/internal/protocoltest/jsonrpc10querycompatible/go.mod
+++ b/internal/protocoltest/jsonrpc10querycompatible/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc10querycompatib
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/jsonrpc10querycompatible/go.sum b/internal/protocoltest/jsonrpc10querycompatible/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/jsonrpc10querycompatible/go.sum
+++ b/internal/protocoltest/jsonrpc10querycompatible/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod
index b9d688931ab..4e1c4852572 100644
--- a/internal/protocoltest/query/go.mod
+++ b/internal/protocoltest/query/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/query
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/query/go.sum
+++ b/internal/protocoltest/query/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod
index dc0db1349ea..ff44512e608 100644
--- a/internal/protocoltest/restxml/go.mod
+++ b/internal/protocoltest/restxml/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/restxml/go.sum
+++ b/internal/protocoltest/restxml/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/restxmlwithnamespace/go.mod b/internal/protocoltest/restxmlwithnamespace/go.mod
index 26a98b3cd55..f3f0a2ea0dd 100644
--- a/internal/protocoltest/restxmlwithnamespace/go.mod
+++ b/internal/protocoltest/restxmlwithnamespace/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxmlwithnamespace
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/restxmlwithnamespace/go.sum b/internal/protocoltest/restxmlwithnamespace/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/restxmlwithnamespace/go.sum
+++ b/internal/protocoltest/restxmlwithnamespace/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/smithyrpcv2cbor/go.mod b/internal/protocoltest/smithyrpcv2cbor/go.mod
index d2fb9ff48db..6ae49047e36 100644
--- a/internal/protocoltest/smithyrpcv2cbor/go.mod
+++ b/internal/protocoltest/smithyrpcv2cbor/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/smithyrpcv2cbor
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/smithyrpcv2cbor/go.sum b/internal/protocoltest/smithyrpcv2cbor/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/smithyrpcv2cbor/go.sum
+++ b/internal/protocoltest/smithyrpcv2cbor/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/protocoltest/smithyrpcv2cbor/serializers.go b/internal/protocoltest/smithyrpcv2cbor/serializers.go
index 51c7639f41c..5b21aaeb337 100644
--- a/internal/protocoltest/smithyrpcv2cbor/serializers.go
+++ b/internal/protocoltest/smithyrpcv2cbor/serializers.go
@@ -1100,11 +1100,13 @@ func serializeCBOR_Defaults(v *types.Defaults) (smithycbor.Value, error) {
}
vm["defaultMap"] = ser
}
- serdefaultEnum, err := serializeCBOR_TestEnum(v.DefaultEnum)
- if err != nil {
- return nil, err
+ if len(v.DefaultEnum) > 0 {
+ ser, err := serializeCBOR_TestEnum(v.DefaultEnum)
+ if err != nil {
+ return nil, err
+ }
+ vm["defaultEnum"] = ser
}
- vm["defaultEnum"] = serdefaultEnum
serdefaultIntEnum, err := serializeCBOR_TestIntEnum(v.DefaultIntEnum)
if err != nil {
return nil, err
diff --git a/internal/protocoltest/smithyrpcv2cborquerycompatible/go.mod b/internal/protocoltest/smithyrpcv2cborquerycompatible/go.mod
index 158abfc8d3b..131fab27e3f 100644
--- a/internal/protocoltest/smithyrpcv2cborquerycompatible/go.mod
+++ b/internal/protocoltest/smithyrpcv2cborquerycompatible/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/smithyrpcv2cborqueryco
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/internal/protocoltest/smithyrpcv2cborquerycompatible/go.sum b/internal/protocoltest/smithyrpcv2cborquerycompatible/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/protocoltest/smithyrpcv2cborquerycompatible/go.sum
+++ b/internal/protocoltest/smithyrpcv2cborquerycompatible/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/v4a/CHANGELOG.md b/internal/v4a/CHANGELOG.md
index 94ee619bf3d..f9c9381b4b1 100644
--- a/internal/v4a/CHANGELOG.md
+++ b/internal/v4a/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.3.36 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.3.35 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/internal/v4a/go.mod b/internal/v4a/go.mod
index 2eeadfd72a7..0abee57906b 100644
--- a/internal/v4a/go.mod
+++ b/internal/v4a/go.mod
@@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/internal/v4a
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/internal/v4a/go.sum b/internal/v4a/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/internal/v4a/go.sum
+++ b/internal/v4a/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/internal/v4a/go_module_metadata.go b/internal/v4a/go_module_metadata.go
index cb79c405502..dc5e66d731a 100644
--- a/internal/v4a/go_module_metadata.go
+++ b/internal/v4a/go_module_metadata.go
@@ -3,4 +3,4 @@
package v4a
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.3.35"
+const goModuleVersion = "1.3.36"
diff --git a/modman.toml b/modman.toml
index 733b6f793bd..03af250d060 100644
--- a/modman.toml
+++ b/modman.toml
@@ -1,7 +1,7 @@
[dependencies]
"github.com/aws/aws-sdk-go" = "v1.44.28"
- "github.com/aws/smithy-go" = "v1.22.2"
+ "github.com/aws/smithy-go" = "v1.22.4"
[modules]
diff --git a/service/accessanalyzer/CHANGELOG.md b/service/accessanalyzer/CHANGELOG.md
index d59f90798ff..198f0e5e384 100644
--- a/service/accessanalyzer/CHANGELOG.md
+++ b/service/accessanalyzer/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.40.0 (2025-06-17)
+
+* **Feature**: We are launching a new analyzer type, internal access analyzer. The new analyzer will generate internal access findings, which help customers understand who within their AWS organization or AWS Account has access to their critical AWS resources.
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.39.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/accessanalyzer/api_op_CreateAnalyzer.go b/service/accessanalyzer/api_op_CreateAnalyzer.go
index 3dd9c55d6a4..645ec658710 100644
--- a/service/accessanalyzer/api_op_CreateAnalyzer.go
+++ b/service/accessanalyzer/api_op_CreateAnalyzer.go
@@ -35,10 +35,8 @@ type CreateAnalyzerInput struct {
// This member is required.
AnalyzerName *string
- // The type of analyzer to create. Only ACCOUNT , ORGANIZATION ,
- // ACCOUNT_UNUSED_ACCESS , and ORGANIZATION_UNUSED_ACCESS analyzers are supported.
- // You can create only one analyzer per account per Region. You can create up to 5
- // analyzers per organization per Region.
+ // The type of analyzer to create. You can create only one analyzer per account
+ // per Region. You can create up to 5 analyzers per organization per Region.
//
// This member is required.
Type types.Type
@@ -52,7 +50,8 @@ type CreateAnalyzerInput struct {
// Specifies the configuration of the analyzer. If the analyzer is an unused
// access analyzer, the specified scope of unused access is used for the
- // configuration.
+ // configuration. If the analyzer is an internal access analyzer, the specified
+ // internal access analysis rules are used for the configuration.
Configuration types.AnalyzerConfiguration
// An array of key-value pairs to apply to the analyzer. You can use the set of
diff --git a/service/accessanalyzer/api_op_GetFindingV2.go b/service/accessanalyzer/api_op_GetFindingV2.go
index 5ce5b9ffe4b..b08aec3e74a 100644
--- a/service/accessanalyzer/api_op_GetFindingV2.go
+++ b/service/accessanalyzer/api_op_GetFindingV2.go
@@ -103,7 +103,8 @@ type GetFindingV2Output struct {
// The type of the finding. For external access analyzers, the type is
// ExternalAccess . For unused access analyzers, the type can be UnusedIAMRole ,
- // UnusedIAMUserAccessKey , UnusedIAMUserPassword , or UnusedPermission .
+ // UnusedIAMUserAccessKey , UnusedIAMUserPassword , or UnusedPermission . For
+ // internal access analyzers, the type is InternalAccess .
FindingType types.FindingType
// A token used for pagination of results returned.
diff --git a/service/accessanalyzer/deserializers.go b/service/accessanalyzer/deserializers.go
index ab53bba0d6a..8db9f37924f 100644
--- a/service/accessanalyzer/deserializers.go
+++ b/service/accessanalyzer/deserializers.go
@@ -7147,6 +7147,16 @@ loop:
continue
}
switch key {
+ case "internalAccess":
+ var mv types.InternalAccessConfiguration
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentInternalAccessConfiguration(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AnalyzerConfigurationMemberInternalAccess{Value: mv}
+ break loop
+
case "unusedAccess":
var mv types.UnusedAccessConfiguration
destAddr := &mv
@@ -8589,6 +8599,16 @@ loop:
uv = &types.FindingDetailsMemberExternalAccessDetails{Value: mv}
break loop
+ case "internalAccessDetails":
+ var mv types.InternalAccessDetails
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentInternalAccessDetails(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.FindingDetailsMemberInternalAccessDetails{Value: mv}
+ break loop
+
case "unusedIamRoleDetails":
var mv types.UnusedIamRoleDetails
destAddr := &mv
@@ -8897,6 +8917,16 @@ loop:
uv = &types.FindingsStatisticsMemberExternalAccessFindingsStatistics{Value: mv}
break loop
+ case "internalAccessFindingsStatistics":
+ var mv types.InternalAccessFindingsStatistics
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentInternalAccessFindingsStatistics(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.FindingsStatisticsMemberInternalAccessFindingsStatistics{Value: mv}
+ break loop
+
case "unusedAccessFindingsStatistics":
var mv types.UnusedAccessFindingsStatistics
destAddr := &mv
@@ -9453,6 +9483,434 @@ func awsRestjson1_deserializeDocumentIamRoleConfiguration(v **types.IamRoleConfi
return nil
}
+func awsRestjson1_deserializeDocumentInternalAccessAnalysisRule(v **types.InternalAccessAnalysisRule, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InternalAccessAnalysisRule
+ if *v == nil {
+ sv = &types.InternalAccessAnalysisRule{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "inclusions":
+ if err := awsRestjson1_deserializeDocumentInternalAccessAnalysisRuleCriteriaList(&sv.Inclusions, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInternalAccessAnalysisRuleCriteria(v **types.InternalAccessAnalysisRuleCriteria, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InternalAccessAnalysisRuleCriteria
+ if *v == nil {
+ sv = &types.InternalAccessAnalysisRuleCriteria{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "accountIds":
+ if err := awsRestjson1_deserializeDocumentAccountIdsList(&sv.AccountIds, value); err != nil {
+ return err
+ }
+
+ case "resourceArns":
+ if err := awsRestjson1_deserializeDocumentResourceArnsList(&sv.ResourceArns, value); err != nil {
+ return err
+ }
+
+ case "resourceTypes":
+ if err := awsRestjson1_deserializeDocumentResourceTypeList(&sv.ResourceTypes, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInternalAccessAnalysisRuleCriteriaList(v *[]types.InternalAccessAnalysisRuleCriteria, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.InternalAccessAnalysisRuleCriteria
+ if *v == nil {
+ cv = []types.InternalAccessAnalysisRuleCriteria{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.InternalAccessAnalysisRuleCriteria
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentInternalAccessAnalysisRuleCriteria(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInternalAccessConfiguration(v **types.InternalAccessConfiguration, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InternalAccessConfiguration
+ if *v == nil {
+ sv = &types.InternalAccessConfiguration{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "analysisRule":
+ if err := awsRestjson1_deserializeDocumentInternalAccessAnalysisRule(&sv.AnalysisRule, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInternalAccessDetails(v **types.InternalAccessDetails, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InternalAccessDetails
+ if *v == nil {
+ sv = &types.InternalAccessDetails{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "accessType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected InternalAccessType to be of type string, got %T instead", value)
+ }
+ sv.AccessType = types.InternalAccessType(jtv)
+ }
+
+ case "action":
+ if err := awsRestjson1_deserializeDocumentActionList(&sv.Action, value); err != nil {
+ return err
+ }
+
+ case "condition":
+ if err := awsRestjson1_deserializeDocumentConditionKeyMap(&sv.Condition, value); err != nil {
+ return err
+ }
+
+ case "principal":
+ if err := awsRestjson1_deserializeDocumentPrincipalMap(&sv.Principal, value); err != nil {
+ return err
+ }
+
+ case "principalOwnerAccount":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.PrincipalOwnerAccount = ptr.String(jtv)
+ }
+
+ case "principalType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PrincipalType to be of type string, got %T instead", value)
+ }
+ sv.PrincipalType = types.PrincipalType(jtv)
+ }
+
+ case "resourceControlPolicyRestriction":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceControlPolicyRestriction to be of type string, got %T instead", value)
+ }
+ sv.ResourceControlPolicyRestriction = types.ResourceControlPolicyRestriction(jtv)
+ }
+
+ case "serviceControlPolicyRestriction":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ServiceControlPolicyRestriction to be of type string, got %T instead", value)
+ }
+ sv.ServiceControlPolicyRestriction = types.ServiceControlPolicyRestriction(jtv)
+ }
+
+ case "sources":
+ if err := awsRestjson1_deserializeDocumentFindingSourceList(&sv.Sources, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInternalAccessFindingsStatistics(v **types.InternalAccessFindingsStatistics, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InternalAccessFindingsStatistics
+ if *v == nil {
+ sv = &types.InternalAccessFindingsStatistics{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "resourceTypeStatistics":
+ if err := awsRestjson1_deserializeDocumentInternalAccessResourceTypeStatisticsMap(&sv.ResourceTypeStatistics, value); err != nil {
+ return err
+ }
+
+ case "totalActiveFindings":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalActiveFindings = ptr.Int32(int32(i64))
+ }
+
+ case "totalArchivedFindings":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalArchivedFindings = ptr.Int32(int32(i64))
+ }
+
+ case "totalResolvedFindings":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalResolvedFindings = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInternalAccessResourceTypeDetails(v **types.InternalAccessResourceTypeDetails, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InternalAccessResourceTypeDetails
+ if *v == nil {
+ sv = &types.InternalAccessResourceTypeDetails{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "totalActiveFindings":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalActiveFindings = ptr.Int32(int32(i64))
+ }
+
+ case "totalArchivedFindings":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalArchivedFindings = ptr.Int32(int32(i64))
+ }
+
+ case "totalResolvedFindings":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalResolvedFindings = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInternalAccessResourceTypeStatisticsMap(v *map[string]types.InternalAccessResourceTypeDetails, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var mv map[string]types.InternalAccessResourceTypeDetails
+ if *v == nil {
+ mv = map[string]types.InternalAccessResourceTypeDetails{}
+ } else {
+ mv = *v
+ }
+
+ for key, value := range shape {
+ var parsedVal types.InternalAccessResourceTypeDetails
+ mapVar := parsedVal
+ destAddr := &mapVar
+ if err := awsRestjson1_deserializeDocumentInternalAccessResourceTypeDetails(&destAddr, value); err != nil {
+ return err
+ }
+ parsedVal = *destAddr
+ mv[key] = parsedVal
+
+ }
+ *v = mv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -11018,6 +11476,42 @@ func awsRestjson1_deserializeDocumentRegionList(v *[]string, value interface{})
return nil
}
+func awsRestjson1_deserializeDocumentResourceArnsList(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -11133,6 +11627,42 @@ func awsRestjson1_deserializeDocumentResourceTypeDetails(v **types.ResourceTypeD
return nil
}
+func awsRestjson1_deserializeDocumentResourceTypeList(v *[]types.ResourceType, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ResourceType
+ if *v == nil {
+ cv = []types.ResourceType{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ResourceType
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value)
+ }
+ col = types.ResourceType(jtv)
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentResourceTypeStatisticsMap(v *map[string]types.ResourceTypeDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod
index a0db9da0502..3a6dffba5d9 100644
--- a/service/accessanalyzer/go.mod
+++ b/service/accessanalyzer/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/accessanalyzer
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/accessanalyzer/go.sum
+++ b/service/accessanalyzer/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/accessanalyzer/go_module_metadata.go b/service/accessanalyzer/go_module_metadata.go
index 4c1362b0004..27e1392c4bb 100644
--- a/service/accessanalyzer/go_module_metadata.go
+++ b/service/accessanalyzer/go_module_metadata.go
@@ -3,4 +3,4 @@
package accessanalyzer
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.39.2"
+const goModuleVersion = "1.40.0"
diff --git a/service/accessanalyzer/serializers.go b/service/accessanalyzer/serializers.go
index 5e578aa48ec..cd95dadf78d 100644
--- a/service/accessanalyzer/serializers.go
+++ b/service/accessanalyzer/serializers.go
@@ -3384,6 +3384,12 @@ func awsRestjson1_serializeDocumentAnalyzerConfiguration(v types.AnalyzerConfigu
defer object.Close()
switch uv := v.(type) {
+ case *types.AnalyzerConfigurationMemberInternalAccess:
+ av := object.Key("internalAccess")
+ if err := awsRestjson1_serializeDocumentInternalAccessConfiguration(&uv.Value, av); err != nil {
+ return err
+ }
+
case *types.AnalyzerConfigurationMemberUnusedAccess:
av := object.Key("unusedAccess")
if err := awsRestjson1_serializeDocumentUnusedAccessConfiguration(&uv.Value, av); err != nil {
@@ -3736,6 +3742,75 @@ func awsRestjson1_serializeDocumentInlineArchiveRulesList(v []types.InlineArchiv
return nil
}
+func awsRestjson1_serializeDocumentInternalAccessAnalysisRule(v *types.InternalAccessAnalysisRule, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Inclusions != nil {
+ ok := object.Key("inclusions")
+ if err := awsRestjson1_serializeDocumentInternalAccessAnalysisRuleCriteriaList(v.Inclusions, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentInternalAccessAnalysisRuleCriteria(v *types.InternalAccessAnalysisRuleCriteria, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AccountIds != nil {
+ ok := object.Key("accountIds")
+ if err := awsRestjson1_serializeDocumentAccountIdsList(v.AccountIds, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ResourceArns != nil {
+ ok := object.Key("resourceArns")
+ if err := awsRestjson1_serializeDocumentResourceArnsList(v.ResourceArns, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ResourceTypes != nil {
+ ok := object.Key("resourceTypes")
+ if err := awsRestjson1_serializeDocumentResourceTypeList(v.ResourceTypes, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentInternalAccessAnalysisRuleCriteriaList(v []types.InternalAccessAnalysisRuleCriteria, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentInternalAccessAnalysisRuleCriteria(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentInternalAccessConfiguration(v *types.InternalAccessConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AnalysisRule != nil {
+ ok := object.Key("analysisRule")
+ if err := awsRestjson1_serializeDocumentInternalAccessAnalysisRule(v.AnalysisRule, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentInternetConfiguration(v *types.InternetConfiguration, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -4042,6 +4117,17 @@ func awsRestjson1_serializeDocumentRegionList(v []string, value smithyjson.Value
return nil
}
+func awsRestjson1_serializeDocumentResourceArnsList(v []string, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(v[i])
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentResourcesList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
@@ -4053,6 +4139,17 @@ func awsRestjson1_serializeDocumentResourcesList(v []string, value smithyjson.Va
return nil
}
+func awsRestjson1_serializeDocumentResourceTypeList(v []types.ResourceType, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(string(v[i]))
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentS3AccessPointConfiguration(v *types.S3AccessPointConfiguration, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
diff --git a/service/accessanalyzer/types/enums.go b/service/accessanalyzer/types/enums.go
index 1ed94b682fb..ef65bb5526f 100644
--- a/service/accessanalyzer/types/enums.go
+++ b/service/accessanalyzer/types/enums.go
@@ -327,6 +327,7 @@ const (
FindingTypeUnusedIamUserAccessKey FindingType = "UnusedIAMUserAccessKey"
FindingTypeUnusedIamUserPassword FindingType = "UnusedIAMUserPassword"
FindingTypeUnusedPermission FindingType = "UnusedPermission"
+ FindingTypeInternalAccess FindingType = "InternalAccess"
)
// Values returns all known values for FindingType. Note that this can be expanded
@@ -340,6 +341,26 @@ func (FindingType) Values() []FindingType {
"UnusedIAMUserAccessKey",
"UnusedIAMUserPassword",
"UnusedPermission",
+ "InternalAccess",
+ }
+}
+
+type InternalAccessType string
+
+// Enum values for InternalAccessType
+const (
+ InternalAccessTypeIntraAccount InternalAccessType = "INTRA_ACCOUNT"
+ InternalAccessTypeIntraOrg InternalAccessType = "INTRA_ORG"
+)
+
+// Values returns all known values for InternalAccessType. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (InternalAccessType) Values() []InternalAccessType {
+ return []InternalAccessType{
+ "INTRA_ACCOUNT",
+ "INTRA_ORG",
}
}
@@ -509,6 +530,25 @@ func (PolicyType) Values() []PolicyType {
}
}
+type PrincipalType string
+
+// Enum values for PrincipalType
+const (
+ PrincipalTypeIamRole PrincipalType = "IAM_ROLE"
+ PrincipalTypeIamUser PrincipalType = "IAM_USER"
+)
+
+// Values returns all known values for PrincipalType. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (PrincipalType) Values() []PrincipalType {
+ return []PrincipalType{
+ "IAM_ROLE",
+ "IAM_USER",
+ }
+}
+
type ReasonCode string
// Enum values for ReasonCode
@@ -576,6 +616,7 @@ const (
ResourceControlPolicyRestrictionApplicable ResourceControlPolicyRestriction = "APPLICABLE"
ResourceControlPolicyRestrictionFailedToEvaluateRcp ResourceControlPolicyRestriction = "FAILED_TO_EVALUATE_RCP"
ResourceControlPolicyRestrictionNotApplicable ResourceControlPolicyRestriction = "NOT_APPLICABLE"
+ ResourceControlPolicyRestrictionApplied ResourceControlPolicyRestriction = "APPLIED"
)
// Values returns all known values for ResourceControlPolicyRestriction. Note that
@@ -588,6 +629,7 @@ func (ResourceControlPolicyRestriction) Values() []ResourceControlPolicyRestrict
"APPLICABLE",
"FAILED_TO_EVALUATE_RCP",
"NOT_APPLICABLE",
+ "APPLIED",
}
}
@@ -640,6 +682,30 @@ func (ResourceType) Values() []ResourceType {
}
}
+type ServiceControlPolicyRestriction string
+
+// Enum values for ServiceControlPolicyRestriction
+const (
+ ServiceControlPolicyRestrictionApplicable ServiceControlPolicyRestriction = "APPLICABLE"
+ ServiceControlPolicyRestrictionFailedToEvaluateScp ServiceControlPolicyRestriction = "FAILED_TO_EVALUATE_SCP"
+ ServiceControlPolicyRestrictionNotApplicable ServiceControlPolicyRestriction = "NOT_APPLICABLE"
+ ServiceControlPolicyRestrictionApplied ServiceControlPolicyRestriction = "APPLIED"
+)
+
+// Values returns all known values for ServiceControlPolicyRestriction. Note that
+// this can be expanded in the future, and so it is only as up to date as the
+// client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ServiceControlPolicyRestriction) Values() []ServiceControlPolicyRestriction {
+ return []ServiceControlPolicyRestriction{
+ "APPLICABLE",
+ "FAILED_TO_EVALUATE_SCP",
+ "NOT_APPLICABLE",
+ "APPLIED",
+ }
+}
+
type Status string
// Enum values for Status
@@ -665,10 +731,12 @@ type Type string
// Enum values for Type
const (
- TypeAccount Type = "ACCOUNT"
- TypeOrganization Type = "ORGANIZATION"
- TypeAccountUnusedAccess Type = "ACCOUNT_UNUSED_ACCESS"
- TypeOrganizationUnusedAccess Type = "ORGANIZATION_UNUSED_ACCESS"
+ TypeAccount Type = "ACCOUNT"
+ TypeOrganization Type = "ORGANIZATION"
+ TypeAccountUnusedAccess Type = "ACCOUNT_UNUSED_ACCESS"
+ TypeOrganizationUnusedAccess Type = "ORGANIZATION_UNUSED_ACCESS"
+ TypeAccountInternalAccess Type = "ACCOUNT_INTERNAL_ACCESS"
+ TypeOrganizationInternalAccess Type = "ORGANIZATION_INTERNAL_ACCESS"
)
// Values returns all known values for Type. Note that this can be expanded in the
@@ -681,6 +749,8 @@ func (Type) Values() []Type {
"ORGANIZATION",
"ACCOUNT_UNUSED_ACCESS",
"ORGANIZATION_UNUSED_ACCESS",
+ "ACCOUNT_INTERNAL_ACCESS",
+ "ORGANIZATION_INTERNAL_ACCESS",
}
}
diff --git a/service/accessanalyzer/types/types.go b/service/accessanalyzer/types/types.go
index b631749db23..f4ded936e2c 100644
--- a/service/accessanalyzer/types/types.go
+++ b/service/accessanalyzer/types/types.go
@@ -363,11 +363,23 @@ type AnalyzedResourceSummary struct {
//
// The following types satisfy this interface:
//
+// AnalyzerConfigurationMemberInternalAccess
// AnalyzerConfigurationMemberUnusedAccess
type AnalyzerConfiguration interface {
isAnalyzerConfiguration()
}
+// Specifies the configuration of an internal access analyzer for an Amazon Web
+// Services organization or account. This configuration determines how the analyzer
+// evaluates access within your Amazon Web Services environment.
+type AnalyzerConfigurationMemberInternalAccess struct {
+ Value InternalAccessConfiguration
+
+ noSmithyDocumentSerde
+}
+
+func (*AnalyzerConfigurationMemberInternalAccess) isAnalyzerConfiguration() {}
+
// Specifies the configuration of an unused access analyzer for an Amazon Web
// Services organization or account.
type AnalyzerConfigurationMemberUnusedAccess struct {
@@ -412,7 +424,8 @@ type AnalyzerSummary struct {
// This member is required.
Type Type
- // Specifies whether the analyzer is an external access or unused access analyzer.
+ // Specifies if the analyzer is an external access, unused access, or internal
+ // access analyzer.
Configuration AnalyzerConfiguration
// The resource that was most recently analyzed by the analyzer.
@@ -865,6 +878,22 @@ type ExternalAccessDetails struct {
// The type of restriction applied to the finding by the resource owner with an
// Organizations resource control policy (RCP).
+ //
+ // - APPLICABLE : There is an RCP present in the organization but IAM Access
+ // Analyzer does not include it in the evaluation of effective permissions. For
+ // example, if s3:DeleteObject is blocked by the RCP and the restriction is
+ // APPLICABLE , then s3:DeleteObject would still be included in the list of
+ // actions for the finding.
+ //
+ // - FAILED_TO_EVALUATE_RCP : There was an error evaluating the RCP.
+ //
+ // - NOT_APPLICABLE : There was no RCP present in the organization, or there was
+ // no RCP applicable to the resource. For example, the resource being analyzed is
+ // an Amazon RDS snapshot and there is an RCP in the organization, but the RCP only
+ // impacts Amazon S3 buckets.
+ //
+ // - APPLIED : This restriction is not currently available for external access
+ // findings.
ResourceControlPolicyRestriction ResourceControlPolicyRestriction
// The sources of the external access finding. This indicates how the access that
@@ -990,6 +1019,7 @@ type FindingAggregationAccountDetails struct {
// The following types satisfy this interface:
//
// FindingDetailsMemberExternalAccessDetails
+// FindingDetailsMemberInternalAccessDetails
// FindingDetailsMemberUnusedIamRoleDetails
// FindingDetailsMemberUnusedIamUserAccessKeyDetails
// FindingDetailsMemberUnusedIamUserPasswordDetails
@@ -1007,6 +1037,17 @@ type FindingDetailsMemberExternalAccessDetails struct {
func (*FindingDetailsMemberExternalAccessDetails) isFindingDetails() {}
+// The details for an internal access analyzer finding. This contains information
+// about access patterns identified within your Amazon Web Services organization or
+// account.
+type FindingDetailsMemberInternalAccessDetails struct {
+ Value InternalAccessDetails
+
+ noSmithyDocumentSerde
+}
+
+func (*FindingDetailsMemberInternalAccessDetails) isFindingDetails() {}
+
// The details for an unused access analyzer finding with an unused IAM role
// finding type.
type FindingDetailsMemberUnusedIamRoleDetails struct {
@@ -1083,6 +1124,7 @@ type FindingSourceDetail struct {
// The following types satisfy this interface:
//
// FindingsStatisticsMemberExternalAccessFindingsStatistics
+// FindingsStatisticsMemberInternalAccessFindingsStatistics
// FindingsStatisticsMemberUnusedAccessFindingsStatistics
type FindingsStatistics interface {
isFindingsStatistics()
@@ -1097,6 +1139,17 @@ type FindingsStatisticsMemberExternalAccessFindingsStatistics struct {
func (*FindingsStatisticsMemberExternalAccessFindingsStatistics) isFindingsStatistics() {}
+// The aggregate statistics for an internal access analyzer. This includes
+// information about active, archived, and resolved findings related to internal
+// access within your Amazon Web Services organization or account.
+type FindingsStatisticsMemberInternalAccessFindingsStatistics struct {
+ Value InternalAccessFindingsStatistics
+
+ noSmithyDocumentSerde
+}
+
+func (*FindingsStatisticsMemberInternalAccessFindingsStatistics) isFindingsStatistics() {}
+
// The aggregate statistics for an unused access analyzer.
type FindingsStatisticsMemberUnusedAccessFindingsStatistics struct {
Value UnusedAccessFindingsStatistics
@@ -1220,7 +1273,10 @@ type FindingSummaryV2 struct {
// The error that resulted in an Error finding.
Error *string
- // The type of the external access or unused access finding.
+ // The type of the access finding. For external access analyzers, the type is
+ // ExternalAccess . For unused access analyzers, the type can be UnusedIAMRole ,
+ // UnusedIAMUserAccessKey , UnusedIAMUserPassword , or UnusedPermission . For
+ // internal access analyzers, the type is InternalAccess .
FindingType FindingType
// The resource that the external principal has access to.
@@ -1314,6 +1370,179 @@ type InlineArchiveRule struct {
noSmithyDocumentSerde
}
+// Contains information about analysis rules for the internal access analyzer.
+// Analysis rules determine which entities will generate findings based on the
+// criteria you define when you create the rule.
+type InternalAccessAnalysisRule struct {
+
+ // A list of rules for the internal access analyzer containing criteria to include
+ // in analysis. Only resources that meet the rule criteria will generate findings.
+ Inclusions []InternalAccessAnalysisRuleCriteria
+
+ noSmithyDocumentSerde
+}
+
+// The criteria for an analysis rule for an internal access analyzer.
+type InternalAccessAnalysisRuleCriteria struct {
+
+ // A list of Amazon Web Services account IDs to apply to the internal access
+ // analysis rule criteria. Account IDs can only be applied to the analysis rule
+ // criteria for organization-level analyzers.
+ AccountIds []string
+
+ // A list of resource ARNs to apply to the internal access analysis rule criteria.
+ // The analyzer will only generate findings for resources that match these ARNs.
+ ResourceArns []string
+
+ // A list of resource types to apply to the internal access analysis rule
+ // criteria. The analyzer will only generate findings for resources of these types.
+ // These resource types are currently supported for internal access analyzers:
+ //
+ // - AWS::S3::Bucket
+ //
+ // - AWS::RDS::DBSnapshot
+ //
+ // - AWS::RDS::DBClusterSnapshot
+ //
+ // - AWS::S3Express::DirectoryBucket
+ //
+ // - AWS::DynamoDB::Table
+ //
+ // - AWS::DynamoDB::Stream
+ ResourceTypes []ResourceType
+
+ noSmithyDocumentSerde
+}
+
+// Specifies the configuration of an internal access analyzer for an Amazon Web
+// Services organization or account. This configuration determines how the analyzer
+// evaluates internal access within your Amazon Web Services environment.
+type InternalAccessConfiguration struct {
+
+ // Contains information about analysis rules for the internal access analyzer.
+ // These rules determine which resources and access patterns will be analyzed.
+ AnalysisRule *InternalAccessAnalysisRule
+
+ noSmithyDocumentSerde
+}
+
+// Contains information about an internal access finding. This includes details
+// about the access that was identified within your Amazon Web Services
+// organization or account.
+type InternalAccessDetails struct {
+
+ // The type of internal access identified in the finding. This indicates how the
+ // access is granted within your Amazon Web Services environment.
+ AccessType InternalAccessType
+
+ // The action in the analyzed policy statement that has internal access permission
+ // to use.
+ Action []string
+
+ // The condition in the analyzed policy statement that resulted in an internal
+ // access finding.
+ Condition map[string]string
+
+ // The principal that has access to a resource within the internal environment.
+ Principal map[string]string
+
+ // The Amazon Web Services account ID that owns the principal identified in the
+ // internal access finding.
+ PrincipalOwnerAccount *string
+
+ // The type of principal identified in the internal access finding, such as IAM
+ // role or IAM user.
+ PrincipalType PrincipalType
+
+ // The type of restriction applied to the finding by the resource owner with an
+ // Organizations resource control policy (RCP).
+ //
+ // - APPLICABLE : There is an RCP present in the organization but IAM Access
+ // Analyzer does not include it in the evaluation of effective permissions. For
+ // example, if s3:DeleteObject is blocked by the RCP and the restriction is
+ // APPLICABLE , then s3:DeleteObject would still be included in the list of
+ // actions for the finding. Only applicable to internal access findings with the
+ // account as the zone of trust.
+ //
+ // - FAILED_TO_EVALUATE_RCP : There was an error evaluating the RCP.
+ //
+ // - NOT_APPLICABLE : There was no RCP present in the organization. For internal
+ // access findings with the account as the zone of trust, NOT_APPLICABLE could
+ // also indicate that there was no RCP applicable to the resource.
+ //
+ // - APPLIED : An RCP is present in the organization and IAM Access Analyzer
+ // included it in the evaluation of effective permissions. For example, if
+ // s3:DeleteObject is blocked by the RCP and the restriction is APPLIED , then
+ // s3:DeleteObject would not be included in the list of actions for the finding.
+ // Only applicable to internal access findings with the organization as the zone of
+ // trust.
+ ResourceControlPolicyRestriction ResourceControlPolicyRestriction
+
+ // The type of restriction applied to the finding by an Organizations service
+ // control policy (SCP).
+ //
+ // - APPLICABLE : There is an SCP present in the organization but IAM Access
+ // Analyzer does not include it in the evaluation of effective permissions. Only
+ // applicable to internal access findings with the account as the zone of trust.
+ //
+ // - FAILED_TO_EVALUATE_SCP : There was an error evaluating the SCP.
+ //
+ // - NOT_APPLICABLE : There was no SCP present in the organization. For internal
+ // access findings with the account as the zone of trust, NOT_APPLICABLE could
+ // also indicate that there was no SCP applicable to the principal.
+ //
+ // - APPLIED : An SCP is present in the organization and IAM Access Analyzer
+ // included it in the evaluation of effective permissions. Only applicable to
+ // internal access findings with the organization as the zone of trust.
+ ServiceControlPolicyRestriction ServiceControlPolicyRestriction
+
+ // The sources of the internal access finding. This indicates how the access that
+ // generated the finding is granted within your Amazon Web Services environment.
+ Sources []FindingSource
+
+ noSmithyDocumentSerde
+}
+
+// Provides aggregate statistics about the findings for the specified internal
+// access analyzer. This includes counts of active, archived, and resolved
+// findings.
+type InternalAccessFindingsStatistics struct {
+
+ // The total number of active findings for each resource type of the specified
+ // internal access analyzer.
+ ResourceTypeStatistics map[string]InternalAccessResourceTypeDetails
+
+ // The number of active findings for the specified internal access analyzer.
+ TotalActiveFindings *int32
+
+ // The number of archived findings for the specified internal access analyzer.
+ TotalArchivedFindings *int32
+
+ // The number of resolved findings for the specified internal access analyzer.
+ TotalResolvedFindings *int32
+
+ noSmithyDocumentSerde
+}
+
+// Contains information about the total number of active, archived, and resolved
+// findings for a resource type of an internal access analyzer.
+type InternalAccessResourceTypeDetails struct {
+
+ // The total number of active findings for the resource type in the internal
+ // access analyzer.
+ TotalActiveFindings *int32
+
+ // The total number of archived findings for the resource type in the internal
+ // access analyzer.
+ TotalArchivedFindings *int32
+
+ // The total number of resolved findings for the resource type in the internal
+ // access analyzer.
+ TotalResolvedFindings *int32
+
+ noSmithyDocumentSerde
+}
+
// This configuration sets the network origin for the Amazon S3 access point or
// multi-region access point to Internet .
type InternetConfiguration struct {
diff --git a/service/accessanalyzer/types/types_exported_test.go b/service/accessanalyzer/types/types_exported_test.go
index 4137fba8cd9..7424a0bffc7 100644
--- a/service/accessanalyzer/types/types_exported_test.go
+++ b/service/accessanalyzer/types/types_exported_test.go
@@ -33,6 +33,9 @@ func ExampleAnalyzerConfiguration_outputUsage() {
var union types.AnalyzerConfiguration
// type switches can be used to check the union value
switch v := union.(type) {
+ case *types.AnalyzerConfigurationMemberInternalAccess:
+ _ = v.Value // Value is types.InternalAccessConfiguration
+
case *types.AnalyzerConfigurationMemberUnusedAccess:
_ = v.Value // Value is types.UnusedAccessConfiguration
@@ -46,6 +49,7 @@ func ExampleAnalyzerConfiguration_outputUsage() {
}
var _ *types.UnusedAccessConfiguration
+var _ *types.InternalAccessConfiguration
func ExampleConfiguration_outputUsage() {
var union types.Configuration
@@ -124,6 +128,9 @@ func ExampleFindingDetails_outputUsage() {
case *types.FindingDetailsMemberExternalAccessDetails:
_ = v.Value // Value is types.ExternalAccessDetails
+ case *types.FindingDetailsMemberInternalAccessDetails:
+ _ = v.Value // Value is types.InternalAccessDetails
+
case *types.FindingDetailsMemberUnusedIamRoleDetails:
_ = v.Value // Value is types.UnusedIamRoleDetails
@@ -145,6 +152,7 @@ func ExampleFindingDetails_outputUsage() {
}
}
+var _ *types.InternalAccessDetails
var _ *types.ExternalAccessDetails
var _ *types.UnusedIamRoleDetails
var _ *types.UnusedPermissionDetails
@@ -158,6 +166,9 @@ func ExampleFindingsStatistics_outputUsage() {
case *types.FindingsStatisticsMemberExternalAccessFindingsStatistics:
_ = v.Value // Value is types.ExternalAccessFindingsStatistics
+ case *types.FindingsStatisticsMemberInternalAccessFindingsStatistics:
+ _ = v.Value // Value is types.InternalAccessFindingsStatistics
+
case *types.FindingsStatisticsMemberUnusedAccessFindingsStatistics:
_ = v.Value // Value is types.UnusedAccessFindingsStatistics
@@ -172,6 +183,7 @@ func ExampleFindingsStatistics_outputUsage() {
var _ *types.ExternalAccessFindingsStatistics
var _ *types.UnusedAccessFindingsStatistics
+var _ *types.InternalAccessFindingsStatistics
func ExampleNetworkOriginConfiguration_outputUsage() {
var union types.NetworkOriginConfiguration
diff --git a/service/account/CHANGELOG.md b/service/account/CHANGELOG.md
index adf5c3e69fe..030c614f58c 100644
--- a/service/account/CHANGELOG.md
+++ b/service/account/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/account/go.mod b/service/account/go.mod
index 6ce2dccd030..efa9682a4c4 100644
--- a/service/account/go.mod
+++ b/service/account/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/account
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/account/go.sum b/service/account/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/account/go.sum
+++ b/service/account/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/account/go_module_metadata.go b/service/account/go_module_metadata.go
index d67d858e95f..082806bc635 100644
--- a/service/account/go_module_metadata.go
+++ b/service/account/go_module_metadata.go
@@ -3,4 +3,4 @@
package account
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.1"
+const goModuleVersion = "1.24.2"
diff --git a/service/acm/CHANGELOG.md b/service/acm/CHANGELOG.md
index 4d0bd54ca60..c2c154eec0b 100644
--- a/service/acm/CHANGELOG.md
+++ b/service/acm/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.33.0 (2025-06-17)
+
+* **Feature**: Adds support for Exportable Public Certificates
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.32.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/acm/api_op_ExportCertificate.go b/service/acm/api_op_ExportCertificate.go
index bf5a0bd2cb9..3a858d50a6a 100644
--- a/service/acm/api_op_ExportCertificate.go
+++ b/service/acm/api_op_ExportCertificate.go
@@ -10,16 +10,17 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Exports a private certificate issued by a private certificate authority (CA)
-// for use anywhere. The exported file contains the certificate, the certificate
-// chain, and the encrypted private 2048-bit RSA key associated with the public key
-// that is embedded in the certificate. For security, you must assign a passphrase
-// for the private key when exporting it.
+// Exports a private certificate issued by a private certificate authority (CA) or
+// public certificate for use anywhere. The exported file contains the certificate,
+// the certificate chain, and the encrypted private key associated with the public
+// key that is embedded in the certificate. For security, you must assign a
+// passphrase for the private key when exporting it.
//
// For information about exporting and formatting a certificate using the ACM
-// console or CLI, see [Export a Private Certificate].
+// console or CLI, see [Export a private certificate]and [Export a public certificate].
//
-// [Export a Private Certificate]: https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html
+// [Export a public certificate]: https://docs.aws.amazon.com/acm/latest/userguide/export-public-certificate
+// [Export a private certificate]: https://docs.aws.amazon.com/acm/latest/userguide/export-private.html
func (c *Client) ExportCertificate(ctx context.Context, params *ExportCertificateInput, optFns ...func(*Options)) (*ExportCertificateOutput, error) {
if params == nil {
params = &ExportCertificateInput{}
diff --git a/service/acm/api_op_RenewCertificate.go b/service/acm/api_op_RenewCertificate.go
index 54a3f7e56ae..21d8cd076d8 100644
--- a/service/acm/api_op_RenewCertificate.go
+++ b/service/acm/api_op_RenewCertificate.go
@@ -10,13 +10,12 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Renews an eligible ACM certificate. At this time, only exported private
-// certificates can be renewed with this operation. In order to renew your Amazon
-// Web Services Private CA certificates with ACM, you must first [grant the ACM service principal permission to do so]. For more
-// information, see [Testing Managed Renewal]in the ACM User Guide.
+// Renews an [eligible ACM certificate]. In order to renew your Amazon Web Services Private CA certificates
+// with ACM, you must first [grant the ACM service principal permission to do so]. For more information, see [Testing Managed Renewal] in the ACM User Guide.
//
// [Testing Managed Renewal]: https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html
// [grant the ACM service principal permission to do so]: https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html
+// [eligible ACM certificate]: https://docs.aws.amazon.com/acm/latest/userguide/managed-renewal.html
func (c *Client) RenewCertificate(ctx context.Context, params *RenewCertificateInput, optFns ...func(*Options)) (*RenewCertificateOutput, error) {
if params == nil {
params = &RenewCertificateInput{}
diff --git a/service/acm/api_op_RequestCertificate.go b/service/acm/api_op_RequestCertificate.go
index 6bf5c548d1a..304b1a38d2b 100644
--- a/service/acm/api_op_RequestCertificate.go
+++ b/service/acm/api_op_RequestCertificate.go
@@ -19,8 +19,7 @@ import (
// If you are requesting a private certificate, domain validation is not required.
// If you are requesting a public certificate, each domain name that you specify
// must be validated to verify that you own or control the domain. You can use [DNS validation]or [email validation]
-// . We recommend that you use DNS validation. ACM issues public certificates after
-// receiving approval from the domain owner.
+// . We recommend that you use DNS validation.
//
// ACM behavior differs from the [RFC 6125] specification of the certificate validation
// process. ACM first checks for a Subject Alternative Name, and, if it finds one,
@@ -123,13 +122,19 @@ type RequestCertificateInput struct {
// by ACM.
ManagedBy types.CertificateManagedBy
- // Currently, you can use this parameter to specify whether to add the certificate
- // to a certificate transparency log. Certificate transparency makes it possible to
- // detect SSL/TLS certificates that have been mistakenly or maliciously issued.
- // Certificates that have not been logged typically produce an error message in a
- // browser. For more information, see [Opting Out of Certificate Transparency Logging].
+ // You can use this parameter to specify whether to add the certificate to a
+ // certificate transparency log and export your certificate.
+ //
+ // Certificate transparency makes it possible to detect SSL/TLS certificates that
+ // have been mistakenly or maliciously issued. Certificates that have not been
+ // logged typically produce an error message in a browser. For more information,
+ // see [Opting Out of Certificate Transparency Logging].
+ //
+ // You can export public ACM certificates to use with Amazon Web Services services
+ // as well as outside the Amazon Web Services Cloud. For more information, see [Certificate Manager exportable public certificate].
//
// [Opting Out of Certificate Transparency Logging]: https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency
+ // [Certificate Manager exportable public certificate]: https://docs.aws.amazon.com/acm/latest/userguide/acm-exportable-certificates.html
Options *types.CertificateOptions
// Additional FQDNs to be included in the Subject Alternative Name extension of
diff --git a/service/acm/api_op_RevokeCertificate.go b/service/acm/api_op_RevokeCertificate.go
new file mode 100644
index 00000000000..d16c8ec526c
--- /dev/null
+++ b/service/acm/api_op_RevokeCertificate.go
@@ -0,0 +1,170 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package acm
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/acm/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Revokes a public ACM certificate. You can only revoke certificates that have
+// been previously exported.
+func (c *Client) RevokeCertificate(ctx context.Context, params *RevokeCertificateInput, optFns ...func(*Options)) (*RevokeCertificateOutput, error) {
+ if params == nil {
+ params = &RevokeCertificateInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "RevokeCertificate", params, optFns, c.addOperationRevokeCertificateMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*RevokeCertificateOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type RevokeCertificateInput struct {
+
+ // The Amazon Resource Name (ARN) of the public or private certificate that will
+ // be revoked. The ARN must have the following form:
+ //
+ // arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012
+ //
+ // This member is required.
+ CertificateArn *string
+
+ // Specifies why you revoked the certificate.
+ //
+ // This member is required.
+ RevocationReason types.RevocationReason
+
+ noSmithyDocumentSerde
+}
+
+type RevokeCertificateOutput struct {
+
+ // The Amazon Resource Name (ARN) of the public or private certificate that was
+ // revoked.
+ CertificateArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationRevokeCertificateMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsAwsjson11_serializeOpRevokeCertificate{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRevokeCertificate{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "RevokeCertificate"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpRevokeCertificateValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRevokeCertificate(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opRevokeCertificate(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "RevokeCertificate",
+ }
+}
diff --git a/service/acm/api_op_UpdateCertificateOptions.go b/service/acm/api_op_UpdateCertificateOptions.go
index 92c1ff42931..e9d42d54cca 100644
--- a/service/acm/api_op_UpdateCertificateOptions.go
+++ b/service/acm/api_op_UpdateCertificateOptions.go
@@ -11,11 +11,12 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Updates a certificate. Currently, you can use this function to specify whether
-// to opt in to or out of recording your certificate in a certificate transparency
-// log. For more information, see [Opting Out of Certificate Transparency Logging].
+// Updates a certificate. You can use this function to specify whether to opt in
+// to or out of recording your certificate in a certificate transparency log and
+// exporting. For more information, see [Opting Out of Certificate Transparency Logging]and [Certificate Manager Exportable Managed Certificates].
//
// [Opting Out of Certificate Transparency Logging]: https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency
+// [Certificate Manager Exportable Managed Certificates]: https://docs.aws.amazon.com/acm/latest/userguide/acm-exportable-certificates.html
func (c *Client) UpdateCertificateOptions(ctx context.Context, params *UpdateCertificateOptionsInput, optFns ...func(*Options)) (*UpdateCertificateOptionsOutput, error) {
if params == nil {
params = &UpdateCertificateOptionsInput{}
@@ -41,10 +42,10 @@ type UpdateCertificateOptionsInput struct {
CertificateArn *string
// Use to update the options for your certificate. Currently, you can specify
- // whether to add your certificate to a transparency log. Certificate transparency
- // makes it possible to detect SSL/TLS certificates that have been mistakenly or
- // maliciously issued. Certificates that have not been logged typically produce an
- // error message in a browser.
+ // whether to add your certificate to a transparency log or export your
+ // certificate. Certificate transparency makes it possible to detect SSL/TLS
+ // certificates that have been mistakenly or maliciously issued. Certificates that
+ // have not been logged typically produce an error message in a browser.
//
// This member is required.
Options *types.CertificateOptions
diff --git a/service/acm/deserializers.go b/service/acm/deserializers.go
index 35881105f2a..446f589f4c4 100644
--- a/service/acm/deserializers.go
+++ b/service/acm/deserializers.go
@@ -1584,6 +1584,132 @@ func awsAwsjson11_deserializeOpErrorResendValidationEmail(response *smithyhttp.R
}
}
+type awsAwsjson11_deserializeOpRevokeCertificate struct {
+}
+
+func (*awsAwsjson11_deserializeOpRevokeCertificate) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsAwsjson11_deserializeOpRevokeCertificate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsAwsjson11_deserializeOpErrorRevokeCertificate(response, &metadata)
+ }
+ output := &RevokeCertificateOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsAwsjson11_deserializeOpDocumentRevokeCertificateOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ return out, metadata, err
+}
+
+func awsAwsjson11_deserializeOpErrorRevokeCertificate(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ bodyInfo, err := getProtocolErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok {
+ errorCode = restjson.SanitizeErrorCode(typ)
+ }
+ if len(bodyInfo.Message) != 0 {
+ errorMessage = bodyInfo.Message
+ }
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsAwsjson11_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InvalidArnException", errorCode):
+ return awsAwsjson11_deserializeErrorInvalidArnException(response, errorBody)
+
+ case strings.EqualFold("ResourceInUseException", errorCode):
+ return awsAwsjson11_deserializeErrorResourceInUseException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
type awsAwsjson11_deserializeOpUpdateCertificateOptions struct {
}
@@ -2601,6 +2727,15 @@ func awsAwsjson11_deserializeDocumentCertificateOptions(v **types.CertificateOpt
sv.CertificateTransparencyLoggingPreference = types.CertificateTransparencyLoggingPreference(jtv)
}
+ case "Export":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CertificateExport to be of type string, got %T instead", value)
+ }
+ sv.Export = types.CertificateExport(jtv)
+ }
+
default:
_, _ = key, value
@@ -2675,6 +2810,15 @@ func awsAwsjson11_deserializeDocumentCertificateSummary(v **types.CertificateSum
sv.Exported = ptr.Bool(jtv)
}
+ case "ExportOption":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CertificateExport to be of type string, got %T instead", value)
+ }
+ sv.ExportOption = types.CertificateExport(jtv)
+ }
+
case "ExtendedKeyUsages":
if err := awsAwsjson11_deserializeDocumentExtendedKeyUsageNames(&sv.ExtendedKeyUsages, value); err != nil {
return err
@@ -4573,6 +4717,46 @@ func awsAwsjson11_deserializeOpDocumentRequestCertificateOutput(v **RequestCerti
return nil
}
+func awsAwsjson11_deserializeOpDocumentRevokeCertificateOutput(v **RevokeCertificateOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *RevokeCertificateOutput
+ if *v == nil {
+ sv = &RevokeCertificateOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "CertificateArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Arn to be of type string, got %T instead", value)
+ }
+ sv.CertificateArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
type protocolErrorInfo struct {
Type string `json:"__type"`
Message string
diff --git a/service/acm/generated.json b/service/acm/generated.json
index 6658af71994..84b88822b3f 100644
--- a/service/acm/generated.json
+++ b/service/acm/generated.json
@@ -22,6 +22,7 @@
"api_op_RenewCertificate.go",
"api_op_RequestCertificate.go",
"api_op_ResendValidationEmail.go",
+ "api_op_RevokeCertificate.go",
"api_op_UpdateCertificateOptions.go",
"auth.go",
"deserializers.go",
diff --git a/service/acm/go.mod b/service/acm/go.mod
index 476ef419308..00c99470f16 100644
--- a/service/acm/go.mod
+++ b/service/acm/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/acm
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/acm/go.sum b/service/acm/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/acm/go.sum
+++ b/service/acm/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/acm/go_module_metadata.go b/service/acm/go_module_metadata.go
index 97731b93c1c..e38ac3fcaba 100644
--- a/service/acm/go_module_metadata.go
+++ b/service/acm/go_module_metadata.go
@@ -3,4 +3,4 @@
package acm
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.32.2"
+const goModuleVersion = "1.33.0"
diff --git a/service/acm/serializers.go b/service/acm/serializers.go
index 6c9e8e087d1..8df595ea2ca 100644
--- a/service/acm/serializers.go
+++ b/service/acm/serializers.go
@@ -866,6 +866,67 @@ func (m *awsAwsjson11_serializeOpResendValidationEmail) HandleSerialize(ctx cont
return next.HandleSerialize(ctx, in)
}
+type awsAwsjson11_serializeOpRevokeCertificate struct {
+}
+
+func (*awsAwsjson11_serializeOpRevokeCertificate) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsAwsjson11_serializeOpRevokeCertificate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*RevokeCertificateInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ operationPath := "/"
+ if len(request.Request.URL.Path) == 0 {
+ request.Request.URL.Path = operationPath
+ } else {
+ request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
+ if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
+ request.Request.URL.Path += "/"
+ }
+ }
+ request.Request.Method = "POST"
+ httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("CertificateManager.RevokeCertificate")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsAwsjson11_serializeOpDocumentRevokeCertificateInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+
type awsAwsjson11_serializeOpUpdateCertificateOptions struct {
}
@@ -935,6 +996,11 @@ func awsAwsjson11_serializeDocumentCertificateOptions(v *types.CertificateOption
ok.String(string(v.CertificateTransparencyLoggingPreference))
}
+ if len(v.Export) > 0 {
+ ok := object.Key("Export")
+ ok.String(string(v.Export))
+ }
+
return nil
}
@@ -1017,6 +1083,11 @@ func awsAwsjson11_serializeDocumentFilters(v *types.Filters, value smithyjson.Va
object := value.Object()
defer object.Close()
+ if len(v.ExportOption) > 0 {
+ ok := object.Key("exportOption")
+ ok.String(string(v.ExportOption))
+ }
+
if v.ExtendedKeyUsage != nil {
ok := object.Key("extendedKeyUsage")
if err := awsAwsjson11_serializeDocumentExtendedKeyUsageFilterList(v.ExtendedKeyUsage, ok); err != nil {
@@ -1394,6 +1465,23 @@ func awsAwsjson11_serializeOpDocumentResendValidationEmailInput(v *ResendValidat
return nil
}
+func awsAwsjson11_serializeOpDocumentRevokeCertificateInput(v *RevokeCertificateInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.CertificateArn != nil {
+ ok := object.Key("CertificateArn")
+ ok.String(*v.CertificateArn)
+ }
+
+ if len(v.RevocationReason) > 0 {
+ ok := object.Key("RevocationReason")
+ ok.String(string(v.RevocationReason))
+ }
+
+ return nil
+}
+
func awsAwsjson11_serializeOpDocumentUpdateCertificateOptionsInput(v *UpdateCertificateOptionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
diff --git a/service/acm/snapshot/api_op_RevokeCertificate.go.snap b/service/acm/snapshot/api_op_RevokeCertificate.go.snap
new file mode 100644
index 00000000000..18b7b91291b
--- /dev/null
+++ b/service/acm/snapshot/api_op_RevokeCertificate.go.snap
@@ -0,0 +1,42 @@
+RevokeCertificate
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/acm/snapshot_test.go b/service/acm/snapshot_test.go
index 0b6dbdce51c..ef644470e53 100644
--- a/service/acm/snapshot_test.go
+++ b/service/acm/snapshot_test.go
@@ -230,6 +230,18 @@ func TestCheckSnapshot_ResendValidationEmail(t *testing.T) {
}
}
+func TestCheckSnapshot_RevokeCertificate(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.RevokeCertificate(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "RevokeCertificate")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_UpdateCertificateOptions(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateCertificateOptions(context.Background(), nil, func(o *Options) {
@@ -409,6 +421,18 @@ func TestUpdateSnapshot_ResendValidationEmail(t *testing.T) {
}
}
+func TestUpdateSnapshot_RevokeCertificate(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.RevokeCertificate(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "RevokeCertificate")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_UpdateCertificateOptions(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateCertificateOptions(context.Background(), nil, func(o *Options) {
diff --git a/service/acm/sra_operation_order_test.go b/service/acm/sra_operation_order_test.go
index 9e5df0713d9..016fd1a6e2c 100644
--- a/service/acm/sra_operation_order_test.go
+++ b/service/acm/sra_operation_order_test.go
@@ -509,6 +509,41 @@ func TestOpResendValidationEmailSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpRevokeCertificateSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.RevokeCertificate(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpUpdateCertificateOptionsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
diff --git a/service/acm/types/enums.go b/service/acm/types/enums.go
index 6ca05ebb6e3..8776273426b 100644
--- a/service/acm/types/enums.go
+++ b/service/acm/types/enums.go
@@ -2,6 +2,25 @@
package types
+type CertificateExport string
+
+// Enum values for CertificateExport
+const (
+ CertificateExportEnabled CertificateExport = "ENABLED"
+ CertificateExportDisabled CertificateExport = "DISABLED"
+)
+
+// Values returns all known values for CertificateExport. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (CertificateExport) Values() []CertificateExport {
+ return []CertificateExport{
+ "ENABLED",
+ "DISABLED",
+ }
+}
+
type CertificateManagedBy string
// Enum values for CertificateManagedBy
diff --git a/service/acm/types/errors.go b/service/acm/types/errors.go
index c5220af3f47..e60e130760f 100644
--- a/service/acm/types/errors.go
+++ b/service/acm/types/errors.go
@@ -60,7 +60,7 @@ func (e *ConflictException) ErrorCode() string {
}
func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
-// One or more of of request parameters specified is not valid.
+// One or more of request parameters specified is not valid.
type InvalidArgsException struct {
Message *string
diff --git a/service/acm/types/types.go b/service/acm/types/types.go
index f4ff008ce93..05cc48690c2 100644
--- a/service/acm/types/types.go
+++ b/service/acm/types/types.go
@@ -151,14 +151,20 @@ type CertificateDetail struct {
noSmithyDocumentSerde
}
-// Structure that contains options for your certificate. Currently, you can use
-// this only to specify whether to opt in to or out of certificate transparency
-// logging. Some browsers require that public certificates issued for your domain
-// be recorded in a log. Certificates that are not logged typically generate a
-// browser error. Transparency makes it possible for you to detect SSL/TLS
-// certificates that have been mistakenly or maliciously issued for your domain.
-// For general information, see [Certificate Transparency Logging].
+// Structure that contains options for your certificate. You can use this
+// structure to specify whether to opt in to or out of certificate transparency
+// logging and export your certificate.
//
+// Some browsers require that public certificates issued for your domain be
+// recorded in a log. Certificates that are not logged typically generate a browser
+// error. Transparency makes it possible for you to detect SSL/TLS certificates
+// that have been mistakenly or maliciously issued for your domain. For general
+// information, see [Certificate Transparency Logging].
+//
+// You can export public ACM certificates to use with Amazon Web Services services
+// as well as outside Amazon Web Services Cloud. For more information, see [Certificate Manager exportable public certificate].
+//
+// [Certificate Manager exportable public certificate]: https://docs.aws.amazon.com/acm/latest/userguide/acm-exportable-certificates.html
// [Certificate Transparency Logging]: https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency
type CertificateOptions struct {
@@ -166,6 +172,9 @@ type CertificateOptions struct {
// option. Opt in by specifying ENABLED .
CertificateTransparencyLoggingPreference CertificateTransparencyLoggingPreference
+ // You can opt in to allow the export of your certificates by specifying ENABLED .
+ Export CertificateExport
+
noSmithyDocumentSerde
}
@@ -188,6 +197,9 @@ type CertificateSummary struct {
// the certificate.
DomainName *string
+ // Indicates if export is enabled for the certificate.
+ ExportOption CertificateExport
+
// Indicates whether the certificate has been exported. This value exists only
// when the certificate type is PRIVATE .
Exported *bool
@@ -298,18 +310,18 @@ type DomainValidation struct {
DomainName *string
// Contains information for HTTP-based domain validation of certificates requested
- // through CloudFront and issued by ACM. This field exists only when the
+ // through Amazon CloudFront and issued by ACM. This field exists only when the
// certificate type is AMAZON_ISSUED and the validation method is HTTP .
HttpRedirect *HttpRedirect
// Contains the CNAME record that you add to your DNS database for domain
// validation. For more information, see [Use DNS to Validate Domain Ownership].
//
- // Note: The CNAME information that you need does not include the name of your
- // domain. If you include your domain name in the DNS database CNAME record,
- // validation fails. For example, if the name is
- // "_a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com", only
- // "_a79865eb4cd1a6ab990a45779b4e0b96" must be used.
+ // The CNAME information that you need does not include the name of your domain.
+ // If you include your domain name in the DNS database CNAME record, validation
+ // fails. For example, if the name is
+ // _a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com , only
+ // _a79865eb4cd1a6ab990a45779b4e0b96 must be used.
//
// [Use DNS to Validate Domain Ownership]: https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html
ResourceRecord *ResourceRecord
@@ -418,6 +430,9 @@ type ExtendedKeyUsage struct {
// certificate list.
type Filters struct {
+ // Specify ENABLED or DISABLED to identify certificates that can be exported.
+ ExportOption CertificateExport
+
// Specify one or more ExtendedKeyUsage extension values.
ExtendedKeyUsage []ExtendedKeyUsageName
@@ -440,7 +455,7 @@ type Filters struct {
}
// Contains information for HTTP-based domain validation of certificates requested
-// through CloudFront and issued by ACM. This field exists only when the
+// through Amazon CloudFront and issued by ACM. This field exists only when the
// certificate type is AMAZON_ISSUED and the validation method is HTTP .
type HttpRedirect struct {
diff --git a/service/acm/validators.go b/service/acm/validators.go
index 2445cdda749..534b53204fd 100644
--- a/service/acm/validators.go
+++ b/service/acm/validators.go
@@ -250,6 +250,26 @@ func (m *validateOpResendValidationEmail) HandleInitialize(ctx context.Context,
return next.HandleInitialize(ctx, in)
}
+type validateOpRevokeCertificate struct {
+}
+
+func (*validateOpRevokeCertificate) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpRevokeCertificate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*RevokeCertificateInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpRevokeCertificateInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpUpdateCertificateOptions struct {
}
@@ -318,6 +338,10 @@ func addOpResendValidationEmailValidationMiddleware(stack *middleware.Stack) err
return stack.Initialize.Add(&validateOpResendValidationEmail{}, middleware.After)
}
+func addOpRevokeCertificateValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpRevokeCertificate{}, middleware.After)
+}
+
func addOpUpdateCertificateOptionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateCertificateOptions{}, middleware.After)
}
@@ -610,6 +634,24 @@ func validateOpResendValidationEmailInput(v *ResendValidationEmailInput) error {
}
}
+func validateOpRevokeCertificateInput(v *RevokeCertificateInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "RevokeCertificateInput"}
+ if v.CertificateArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("CertificateArn"))
+ }
+ if len(v.RevocationReason) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("RevocationReason"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpUpdateCertificateOptionsInput(v *UpdateCertificateOptionsInput) error {
if v == nil {
return nil
diff --git a/service/acmpca/CHANGELOG.md b/service/acmpca/CHANGELOG.md
index d02289b6ef6..9e1b2f3b1a7 100644
--- a/service/acmpca/CHANGELOG.md
+++ b/service/acmpca/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.40.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.40.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod
index 854863d8a52..d8a8340026c 100644
--- a/service/acmpca/go.mod
+++ b/service/acmpca/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/acmpca
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/acmpca/go.sum
+++ b/service/acmpca/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/acmpca/go_module_metadata.go b/service/acmpca/go_module_metadata.go
index 493354766bd..0ecfa03b953 100644
--- a/service/acmpca/go_module_metadata.go
+++ b/service/acmpca/go_module_metadata.go
@@ -3,4 +3,4 @@
package acmpca
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.40.4"
+const goModuleVersion = "1.40.5"
diff --git a/service/amp/CHANGELOG.md b/service/amp/CHANGELOG.md
index 09c124bab6a..21b4dd09a62 100644
--- a/service/amp/CHANGELOG.md
+++ b/service/amp/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.34.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.34.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/amp/go.mod b/service/amp/go.mod
index ddae6cebb82..6af5de034bf 100644
--- a/service/amp/go.mod
+++ b/service/amp/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amp
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/amp/go.sum b/service/amp/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/amp/go.sum
+++ b/service/amp/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/amp/go_module_metadata.go b/service/amp/go_module_metadata.go
index 6da13a3d766..78eb8def76e 100644
--- a/service/amp/go_module_metadata.go
+++ b/service/amp/go_module_metadata.go
@@ -3,4 +3,4 @@
package amp
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.2"
+const goModuleVersion = "1.34.3"
diff --git a/service/amplify/CHANGELOG.md b/service/amplify/CHANGELOG.md
index b76b69500bc..53d35e59564 100644
--- a/service/amplify/CHANGELOG.md
+++ b/service/amplify/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/amplify/go.mod b/service/amplify/go.mod
index 5d5a0518c6c..abcb27020ae 100644
--- a/service/amplify/go.mod
+++ b/service/amplify/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplify
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/amplify/go.sum b/service/amplify/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/amplify/go.sum
+++ b/service/amplify/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/amplify/go_module_metadata.go b/service/amplify/go_module_metadata.go
index ebf95a99697..6759f65cd97 100644
--- a/service/amplify/go_module_metadata.go
+++ b/service/amplify/go_module_metadata.go
@@ -3,4 +3,4 @@
package amplify
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.2"
+const goModuleVersion = "1.33.3"
diff --git a/service/amplifybackend/CHANGELOG.md b/service/amplifybackend/CHANGELOG.md
index 626b5f196aa..7ddf655abcb 100644
--- a/service/amplifybackend/CHANGELOG.md
+++ b/service/amplifybackend/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/amplifybackend/go.mod b/service/amplifybackend/go.mod
index 5162092d030..2bcfeb83c99 100644
--- a/service/amplifybackend/go.mod
+++ b/service/amplifybackend/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplifybackend
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/amplifybackend/go.sum b/service/amplifybackend/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/amplifybackend/go.sum
+++ b/service/amplifybackend/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/amplifybackend/go_module_metadata.go b/service/amplifybackend/go_module_metadata.go
index 1904b9b1245..fc93dbe32f8 100644
--- a/service/amplifybackend/go_module_metadata.go
+++ b/service/amplifybackend/go_module_metadata.go
@@ -3,4 +3,4 @@
package amplifybackend
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/amplifyuibuilder/CHANGELOG.md b/service/amplifyuibuilder/CHANGELOG.md
index 78fdc1cad66..394389589ff 100644
--- a/service/amplifyuibuilder/CHANGELOG.md
+++ b/service/amplifyuibuilder/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/amplifyuibuilder/go.mod b/service/amplifyuibuilder/go.mod
index c0ffa5d0569..33621d627fd 100644
--- a/service/amplifyuibuilder/go.mod
+++ b/service/amplifyuibuilder/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplifyuibuilder
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/amplifyuibuilder/go.sum b/service/amplifyuibuilder/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/amplifyuibuilder/go.sum
+++ b/service/amplifyuibuilder/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/amplifyuibuilder/go_module_metadata.go b/service/amplifyuibuilder/go_module_metadata.go
index 51f0cf1e0c4..6a0276c068e 100644
--- a/service/amplifyuibuilder/go_module_metadata.go
+++ b/service/amplifyuibuilder/go_module_metadata.go
@@ -3,4 +3,4 @@
package amplifyuibuilder
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/apigateway/CHANGELOG.md b/service/apigateway/CHANGELOG.md
index 62ea73301cb..f7cda6441dd 100644
--- a/service/apigateway/CHANGELOG.md
+++ b/service/apigateway/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.31.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.31.3 (2025-06-12)
+
+* **Documentation**: Documentation updates for Amazon API Gateway
+
# v1.31.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/apigateway/api_op_CreateDomainName.go b/service/apigateway/api_op_CreateDomainName.go
index 890fe6a733a..8c425b6e5b1 100644
--- a/service/apigateway/api_op_CreateDomainName.go
+++ b/service/apigateway/api_op_CreateDomainName.go
@@ -140,7 +140,7 @@ type CreateDomainNameOutput struct {
// The custom domain name as an API host name, for example, my-api.example.com .
DomainName *string
- // The ARN of the domain name. Supported only for private custom domain names.
+ // The ARN of the domain name.
DomainNameArn *string
// The identifier for the domain name resource. Supported only for private custom
diff --git a/service/apigateway/api_op_GetDomainName.go b/service/apigateway/api_op_GetDomainName.go
index cb071cb402d..13562ec37ed 100644
--- a/service/apigateway/api_op_GetDomainName.go
+++ b/service/apigateway/api_op_GetDomainName.go
@@ -77,7 +77,7 @@ type GetDomainNameOutput struct {
// The custom domain name as an API host name, for example, my-api.example.com .
DomainName *string
- // The ARN of the domain name. Supported only for private custom domain names.
+ // The ARN of the domain name.
DomainNameArn *string
// The identifier for the domain name resource. Supported only for private custom
diff --git a/service/apigateway/api_op_GetIntegration.go b/service/apigateway/api_op_GetIntegration.go
index 2cadb125087..3b4175f5722 100644
--- a/service/apigateway/api_op_GetIntegration.go
+++ b/service/apigateway/api_op_GetIntegration.go
@@ -131,7 +131,8 @@ type GetIntegrationOutput struct {
RequestTemplates map[string]string
// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000
- // milliseconds or 29 seconds.
+ // milliseconds or 29 seconds. You can increase the default value to longer than 29
+ // seconds for Regional or private APIs only.
TimeoutInMillis int32
// Specifies the TLS configuration for an integration.
diff --git a/service/apigateway/api_op_PutIntegration.go b/service/apigateway/api_op_PutIntegration.go
index 8bde22774e5..1e379a6f3cf 100644
--- a/service/apigateway/api_op_PutIntegration.go
+++ b/service/apigateway/api_op_PutIntegration.go
@@ -106,7 +106,8 @@ type PutIntegrationInput struct {
RequestTemplates map[string]string
// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000
- // milliseconds or 29 seconds.
+ // milliseconds or 29 seconds. You can increase the default value to longer than 29
+ // seconds for Regional or private APIs only.
TimeoutInMillis *int32
// Specifies the TLS configuration for an integration.
@@ -220,7 +221,8 @@ type PutIntegrationOutput struct {
RequestTemplates map[string]string
// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000
- // milliseconds or 29 seconds.
+ // milliseconds or 29 seconds. You can increase the default value to longer than 29
+ // seconds for Regional or private APIs only.
TimeoutInMillis int32
// Specifies the TLS configuration for an integration.
diff --git a/service/apigateway/api_op_UpdateDomainName.go b/service/apigateway/api_op_UpdateDomainName.go
index 5e51cf76538..45a8512039b 100644
--- a/service/apigateway/api_op_UpdateDomainName.go
+++ b/service/apigateway/api_op_UpdateDomainName.go
@@ -81,7 +81,7 @@ type UpdateDomainNameOutput struct {
// The custom domain name as an API host name, for example, my-api.example.com .
DomainName *string
- // The ARN of the domain name. Supported only for private custom domain names.
+ // The ARN of the domain name.
DomainNameArn *string
// The identifier for the domain name resource. Supported only for private custom
diff --git a/service/apigateway/api_op_UpdateIntegration.go b/service/apigateway/api_op_UpdateIntegration.go
index 84243eee37d..8d42f1fb211 100644
--- a/service/apigateway/api_op_UpdateIntegration.go
+++ b/service/apigateway/api_op_UpdateIntegration.go
@@ -136,7 +136,8 @@ type UpdateIntegrationOutput struct {
RequestTemplates map[string]string
// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000
- // milliseconds or 29 seconds.
+ // milliseconds or 29 seconds. You can increase the default value to longer than 29
+ // seconds for Regional or private APIs only.
TimeoutInMillis int32
// Specifies the TLS configuration for an integration.
diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod
index 5123e1a6d75..e097fb09adc 100644
--- a/service/apigateway/go.mod
+++ b/service/apigateway/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigateway
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/apigateway/go.sum
+++ b/service/apigateway/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/apigateway/go_module_metadata.go b/service/apigateway/go_module_metadata.go
index ef6fecb7e4c..08589f3d9ec 100644
--- a/service/apigateway/go_module_metadata.go
+++ b/service/apigateway/go_module_metadata.go
@@ -3,4 +3,4 @@
package apigateway
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.2"
+const goModuleVersion = "1.31.4"
diff --git a/service/apigateway/types/types.go b/service/apigateway/types/types.go
index 37b2e44ff84..061dc38ea1a 100644
--- a/service/apigateway/types/types.go
+++ b/service/apigateway/types/types.go
@@ -385,7 +385,7 @@ type DomainName struct {
// The custom domain name as an API host name, for example, my-api.example.com .
DomainName *string
- // The ARN of the domain name. Supported only for private custom domain names.
+ // The ARN of the domain name.
DomainNameArn *string
// The identifier for the domain name resource. Supported only for private custom
@@ -619,7 +619,8 @@ type Integration struct {
RequestTemplates map[string]string
// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000
- // milliseconds or 29 seconds.
+ // milliseconds or 29 seconds. You can increase the default value to longer than 29
+ // seconds for Regional or private APIs only.
TimeoutInMillis int32
// Specifies the TLS configuration for an integration.
diff --git a/service/apigatewaymanagementapi/CHANGELOG.md b/service/apigatewaymanagementapi/CHANGELOG.md
index 18856a85d4f..68120b90852 100644
--- a/service/apigatewaymanagementapi/CHANGELOG.md
+++ b/service/apigatewaymanagementapi/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod
index 7689d2c62e2..8d29e2955bd 100644
--- a/service/apigatewaymanagementapi/go.mod
+++ b/service/apigatewaymanagementapi/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigatewaymanagementapi
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/apigatewaymanagementapi/go.sum
+++ b/service/apigatewaymanagementapi/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/apigatewaymanagementapi/go_module_metadata.go b/service/apigatewaymanagementapi/go_module_metadata.go
index 4f8b779e193..d2edd976b2b 100644
--- a/service/apigatewaymanagementapi/go_module_metadata.go
+++ b/service/apigatewaymanagementapi/go_module_metadata.go
@@ -3,4 +3,4 @@
package apigatewaymanagementapi
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/apigatewayv2/CHANGELOG.md b/service/apigatewayv2/CHANGELOG.md
index 9144027d34a..fac335111c5 100644
--- a/service/apigatewayv2/CHANGELOG.md
+++ b/service/apigatewayv2/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.28.3 (2025-06-12)
+
+* **Documentation**: Documentation updates for Amazon API Gateway
+
# v1.28.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/apigatewayv2/api_op_CreateRoutingRule.go b/service/apigatewayv2/api_op_CreateRoutingRule.go
index 86b68a21b88..d420ae27d56 100644
--- a/service/apigatewayv2/api_op_CreateRoutingRule.go
+++ b/service/apigatewayv2/api_op_CreateRoutingRule.go
@@ -11,7 +11,7 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Creates a RoutingRule
+// Creates a RoutingRule.
func (c *Client) CreateRoutingRule(ctx context.Context, params *CreateRoutingRuleInput, optFns ...func(*Options)) (*CreateRoutingRuleOutput, error) {
if params == nil {
params = &CreateRoutingRuleInput{}
diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod
index 29c4b9080cc..9e7dd6f6817 100644
--- a/service/apigatewayv2/go.mod
+++ b/service/apigatewayv2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigatewayv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/apigatewayv2/go.sum
+++ b/service/apigatewayv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/apigatewayv2/go_module_metadata.go b/service/apigatewayv2/go_module_metadata.go
index edb0c1dcddd..11e9a87be44 100644
--- a/service/apigatewayv2/go_module_metadata.go
+++ b/service/apigatewayv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package apigatewayv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.2"
+const goModuleVersion = "1.28.4"
diff --git a/service/appconfig/CHANGELOG.md b/service/appconfig/CHANGELOG.md
index b4003ea3c4a..c65101bec9b 100644
--- a/service/appconfig/CHANGELOG.md
+++ b/service/appconfig/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.38.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.38.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod
index c3dcd99a0ed..b4bca08aa1a 100644
--- a/service/appconfig/go.mod
+++ b/service/appconfig/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appconfig
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/appconfig/go.sum
+++ b/service/appconfig/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/appconfig/go_module_metadata.go b/service/appconfig/go_module_metadata.go
index acd800b7f53..f606e21bbac 100644
--- a/service/appconfig/go_module_metadata.go
+++ b/service/appconfig/go_module_metadata.go
@@ -3,4 +3,4 @@
package appconfig
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.38.2"
+const goModuleVersion = "1.38.3"
diff --git a/service/appconfigdata/CHANGELOG.md b/service/appconfigdata/CHANGELOG.md
index f06f4682db3..c5cadfe5a3a 100644
--- a/service/appconfigdata/CHANGELOG.md
+++ b/service/appconfigdata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.19.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.19.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/appconfigdata/go.mod b/service/appconfigdata/go.mod
index f546cfa0c3a..30bcf359c9e 100644
--- a/service/appconfigdata/go.mod
+++ b/service/appconfigdata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appconfigdata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/appconfigdata/go.sum b/service/appconfigdata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/appconfigdata/go.sum
+++ b/service/appconfigdata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/appconfigdata/go_module_metadata.go b/service/appconfigdata/go_module_metadata.go
index 0af5a81fcb1..a35e4cd59fa 100644
--- a/service/appconfigdata/go_module_metadata.go
+++ b/service/appconfigdata/go_module_metadata.go
@@ -3,4 +3,4 @@
package appconfigdata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.19.5"
+const goModuleVersion = "1.19.6"
diff --git a/service/appfabric/CHANGELOG.md b/service/appfabric/CHANGELOG.md
index e827ba06da7..325cd78364c 100644
--- a/service/appfabric/CHANGELOG.md
+++ b/service/appfabric/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.12.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.12.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/appfabric/go.mod b/service/appfabric/go.mod
index af4ca5ceb74..96ce1c4628a 100644
--- a/service/appfabric/go.mod
+++ b/service/appfabric/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appfabric
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/appfabric/go.sum b/service/appfabric/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/appfabric/go.sum
+++ b/service/appfabric/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/appfabric/go_module_metadata.go b/service/appfabric/go_module_metadata.go
index c98941b23ab..391256a76d2 100644
--- a/service/appfabric/go_module_metadata.go
+++ b/service/appfabric/go_module_metadata.go
@@ -3,4 +3,4 @@
package appfabric
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.12.3"
+const goModuleVersion = "1.12.4"
diff --git a/service/appflow/CHANGELOG.md b/service/appflow/CHANGELOG.md
index 8b81693b85b..6dd9b7499c8 100644
--- a/service/appflow/CHANGELOG.md
+++ b/service/appflow/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.46.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.46.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/appflow/go.mod b/service/appflow/go.mod
index 27dba7b698b..005917ad8bc 100644
--- a/service/appflow/go.mod
+++ b/service/appflow/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appflow
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/appflow/go.sum b/service/appflow/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/appflow/go.sum
+++ b/service/appflow/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/appflow/go_module_metadata.go b/service/appflow/go_module_metadata.go
index cd715ac6f1f..ecd7256db05 100644
--- a/service/appflow/go_module_metadata.go
+++ b/service/appflow/go_module_metadata.go
@@ -3,4 +3,4 @@
package appflow
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.46.3"
+const goModuleVersion = "1.46.4"
diff --git a/service/appintegrations/CHANGELOG.md b/service/appintegrations/CHANGELOG.md
index 70b9e3b1a89..90381930064 100644
--- a/service/appintegrations/CHANGELOG.md
+++ b/service/appintegrations/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/appintegrations/go.mod b/service/appintegrations/go.mod
index d21e3c00ba2..cfd1c5f5e6a 100644
--- a/service/appintegrations/go.mod
+++ b/service/appintegrations/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appintegrations
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/appintegrations/go.sum b/service/appintegrations/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/appintegrations/go.sum
+++ b/service/appintegrations/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/appintegrations/go_module_metadata.go b/service/appintegrations/go_module_metadata.go
index 345a6433da1..bdb77960703 100644
--- a/service/appintegrations/go_module_metadata.go
+++ b/service/appintegrations/go_module_metadata.go
@@ -3,4 +3,4 @@
package appintegrations
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.3"
+const goModuleVersion = "1.31.4"
diff --git a/service/applicationautoscaling/CHANGELOG.md b/service/applicationautoscaling/CHANGELOG.md
index 3b43725bec4..2e8e7ff5fac 100644
--- a/service/applicationautoscaling/CHANGELOG.md
+++ b/service/applicationautoscaling/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.36.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.36.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod
index bd6863d7eb1..4a4dd547867 100644
--- a/service/applicationautoscaling/go.mod
+++ b/service/applicationautoscaling/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationautoscaling
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/applicationautoscaling/go.sum
+++ b/service/applicationautoscaling/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/applicationautoscaling/go_module_metadata.go b/service/applicationautoscaling/go_module_metadata.go
index e09dda3df0a..ed6acc1e9ab 100644
--- a/service/applicationautoscaling/go_module_metadata.go
+++ b/service/applicationautoscaling/go_module_metadata.go
@@ -3,4 +3,4 @@
package applicationautoscaling
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.36.3"
+const goModuleVersion = "1.36.4"
diff --git a/service/applicationcostprofiler/CHANGELOG.md b/service/applicationcostprofiler/CHANGELOG.md
index 5c3e1c52b59..3b7ce7173d9 100644
--- a/service/applicationcostprofiler/CHANGELOG.md
+++ b/service/applicationcostprofiler/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.22.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.22.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/applicationcostprofiler/go.mod b/service/applicationcostprofiler/go.mod
index 948b5576cbe..8b7a280e06a 100644
--- a/service/applicationcostprofiler/go.mod
+++ b/service/applicationcostprofiler/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationcostprofiler
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/applicationcostprofiler/go.sum b/service/applicationcostprofiler/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/applicationcostprofiler/go.sum
+++ b/service/applicationcostprofiler/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/applicationcostprofiler/go_module_metadata.go b/service/applicationcostprofiler/go_module_metadata.go
index d7d6370aafd..ecf674e663c 100644
--- a/service/applicationcostprofiler/go_module_metadata.go
+++ b/service/applicationcostprofiler/go_module_metadata.go
@@ -3,4 +3,4 @@
package applicationcostprofiler
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.22.3"
+const goModuleVersion = "1.22.4"
diff --git a/service/applicationdiscoveryservice/CHANGELOG.md b/service/applicationdiscoveryservice/CHANGELOG.md
index 988427f33a3..2d47d576696 100644
--- a/service/applicationdiscoveryservice/CHANGELOG.md
+++ b/service/applicationdiscoveryservice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod
index 2e67e517674..9e9833b9844 100644
--- a/service/applicationdiscoveryservice/go.mod
+++ b/service/applicationdiscoveryservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/applicationdiscoveryservice/go.sum
+++ b/service/applicationdiscoveryservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/applicationdiscoveryservice/go_module_metadata.go b/service/applicationdiscoveryservice/go_module_metadata.go
index 1ec9b6d0556..0d548e47dc9 100644
--- a/service/applicationdiscoveryservice/go_module_metadata.go
+++ b/service/applicationdiscoveryservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package applicationdiscoveryservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/applicationinsights/CHANGELOG.md b/service/applicationinsights/CHANGELOG.md
index f29d7595bd8..b900655b401 100644
--- a/service/applicationinsights/CHANGELOG.md
+++ b/service/applicationinsights/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod
index 9d103fa90c7..543e9356cbf 100644
--- a/service/applicationinsights/go.mod
+++ b/service/applicationinsights/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationinsights
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/applicationinsights/go.sum
+++ b/service/applicationinsights/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/applicationinsights/go_module_metadata.go b/service/applicationinsights/go_module_metadata.go
index 1f504569775..4621418cdb5 100644
--- a/service/applicationinsights/go_module_metadata.go
+++ b/service/applicationinsights/go_module_metadata.go
@@ -3,4 +3,4 @@
package applicationinsights
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.5"
+const goModuleVersion = "1.30.6"
diff --git a/service/applicationsignals/CHANGELOG.md b/service/applicationsignals/CHANGELOG.md
index f2312db11f1..0ee5e5a7951 100644
--- a/service/applicationsignals/CHANGELOG.md
+++ b/service/applicationsignals/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.11.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.11.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/applicationsignals/go.mod b/service/applicationsignals/go.mod
index 55abe183c1d..9c21a7c4eb8 100644
--- a/service/applicationsignals/go.mod
+++ b/service/applicationsignals/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationsignals
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/applicationsignals/go.sum b/service/applicationsignals/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/applicationsignals/go.sum
+++ b/service/applicationsignals/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/applicationsignals/go_module_metadata.go b/service/applicationsignals/go_module_metadata.go
index caa60b69031..a263a780034 100644
--- a/service/applicationsignals/go_module_metadata.go
+++ b/service/applicationsignals/go_module_metadata.go
@@ -3,4 +3,4 @@
package applicationsignals
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.11.2"
+const goModuleVersion = "1.11.3"
diff --git a/service/appmesh/CHANGELOG.md b/service/appmesh/CHANGELOG.md
index 092b74221c0..231c001a3d2 100644
--- a/service/appmesh/CHANGELOG.md
+++ b/service/appmesh/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod
index e9c972df978..447e4304235 100644
--- a/service/appmesh/go.mod
+++ b/service/appmesh/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appmesh
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/appmesh/go.sum
+++ b/service/appmesh/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/appmesh/go_module_metadata.go b/service/appmesh/go_module_metadata.go
index f0f2bf73ee6..b32a3acfd68 100644
--- a/service/appmesh/go_module_metadata.go
+++ b/service/appmesh/go_module_metadata.go
@@ -3,4 +3,4 @@
package appmesh
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/apprunner/CHANGELOG.md b/service/apprunner/CHANGELOG.md
index d94f585726a..78649fca838 100644
--- a/service/apprunner/CHANGELOG.md
+++ b/service/apprunner/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.34.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.34.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/apprunner/go.mod b/service/apprunner/go.mod
index 5c90b06ee80..6031bbc9d08 100644
--- a/service/apprunner/go.mod
+++ b/service/apprunner/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apprunner
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/apprunner/go.sum b/service/apprunner/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/apprunner/go.sum
+++ b/service/apprunner/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/apprunner/go_module_metadata.go b/service/apprunner/go_module_metadata.go
index 102e26efb3c..c9df093c71f 100644
--- a/service/apprunner/go_module_metadata.go
+++ b/service/apprunner/go_module_metadata.go
@@ -3,4 +3,4 @@
package apprunner
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.1"
+const goModuleVersion = "1.34.2"
diff --git a/service/appstream/CHANGELOG.md b/service/appstream/CHANGELOG.md
index c57365fc1e9..3cee624eca0 100644
--- a/service/appstream/CHANGELOG.md
+++ b/service/appstream/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.45.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.45.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/appstream/go.mod b/service/appstream/go.mod
index 92b2f2408a8..7c9ff9c44fa 100644
--- a/service/appstream/go.mod
+++ b/service/appstream/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appstream
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/appstream/go.sum b/service/appstream/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/appstream/go.sum
+++ b/service/appstream/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/appstream/go_module_metadata.go b/service/appstream/go_module_metadata.go
index 1ba7a5577fb..a360dbdfc9f 100644
--- a/service/appstream/go_module_metadata.go
+++ b/service/appstream/go_module_metadata.go
@@ -3,4 +3,4 @@
package appstream
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.45.4"
+const goModuleVersion = "1.45.5"
diff --git a/service/appsync/CHANGELOG.md b/service/appsync/CHANGELOG.md
index 8096410c756..3fccc9d9a31 100644
--- a/service/appsync/CHANGELOG.md
+++ b/service/appsync/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.47.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.47.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/appsync/go.mod b/service/appsync/go.mod
index d3e9d4e1439..4c775fc7379 100644
--- a/service/appsync/go.mod
+++ b/service/appsync/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appsync
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/appsync/go.sum b/service/appsync/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/appsync/go.sum
+++ b/service/appsync/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/appsync/go_module_metadata.go b/service/appsync/go_module_metadata.go
index 8c2852310b5..e7c0dbb68a2 100644
--- a/service/appsync/go_module_metadata.go
+++ b/service/appsync/go_module_metadata.go
@@ -3,4 +3,4 @@
package appsync
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.47.1"
+const goModuleVersion = "1.47.2"
diff --git a/service/apptest/CHANGELOG.md b/service/apptest/CHANGELOG.md
index 8e1adeddba6..1b7b7d8a10e 100644
--- a/service/apptest/CHANGELOG.md
+++ b/service/apptest/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/apptest/go.mod b/service/apptest/go.mod
index 70199042ad4..60ff4ff04d7 100644
--- a/service/apptest/go.mod
+++ b/service/apptest/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apptest
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/apptest/go.sum b/service/apptest/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/apptest/go.sum
+++ b/service/apptest/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/apptest/go_module_metadata.go b/service/apptest/go_module_metadata.go
index 1c73eb6c651..ba4cf0d247c 100644
--- a/service/apptest/go_module_metadata.go
+++ b/service/apptest/go_module_metadata.go
@@ -3,4 +3,4 @@
package apptest
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.3"
+const goModuleVersion = "1.5.4"
diff --git a/service/arczonalshift/CHANGELOG.md b/service/arczonalshift/CHANGELOG.md
index 319c2a91e47..8cc4776c35c 100644
--- a/service/arczonalshift/CHANGELOG.md
+++ b/service/arczonalshift/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/arczonalshift/go.mod b/service/arczonalshift/go.mod
index 822403cef19..cde15d92a96 100644
--- a/service/arczonalshift/go.mod
+++ b/service/arczonalshift/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/arczonalshift
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/arczonalshift/go.sum b/service/arczonalshift/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/arczonalshift/go.sum
+++ b/service/arczonalshift/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/arczonalshift/go_module_metadata.go b/service/arczonalshift/go_module_metadata.go
index b967877118c..71c10a3c40b 100644
--- a/service/arczonalshift/go_module_metadata.go
+++ b/service/arczonalshift/go_module_metadata.go
@@ -3,4 +3,4 @@
package arczonalshift
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.2"
+const goModuleVersion = "1.17.3"
diff --git a/service/artifact/CHANGELOG.md b/service/artifact/CHANGELOG.md
index f8868b83d0c..2f8db545660 100644
--- a/service/artifact/CHANGELOG.md
+++ b/service/artifact/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.9.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.9.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/artifact/go.mod b/service/artifact/go.mod
index de083b2ebfb..e63675ed29b 100644
--- a/service/artifact/go.mod
+++ b/service/artifact/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/artifact
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/artifact/go.sum b/service/artifact/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/artifact/go.sum
+++ b/service/artifact/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/artifact/go_module_metadata.go b/service/artifact/go_module_metadata.go
index f24a1ce7f0a..2afb6880cc4 100644
--- a/service/artifact/go_module_metadata.go
+++ b/service/artifact/go_module_metadata.go
@@ -3,4 +3,4 @@
package artifact
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.9.3"
+const goModuleVersion = "1.9.4"
diff --git a/service/athena/CHANGELOG.md b/service/athena/CHANGELOG.md
index 3abffbd03fc..0f3a113cbca 100644
--- a/service/athena/CHANGELOG.md
+++ b/service/athena/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.51.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.51.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/athena/go.mod b/service/athena/go.mod
index 40221791760..66d71d87a9f 100644
--- a/service/athena/go.mod
+++ b/service/athena/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/athena
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/athena/go.sum b/service/athena/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/athena/go.sum
+++ b/service/athena/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/athena/go_module_metadata.go b/service/athena/go_module_metadata.go
index 34e579a603b..38b8ad24220 100644
--- a/service/athena/go_module_metadata.go
+++ b/service/athena/go_module_metadata.go
@@ -3,4 +3,4 @@
package athena
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.51.1"
+const goModuleVersion = "1.51.2"
diff --git a/service/auditmanager/CHANGELOG.md b/service/auditmanager/CHANGELOG.md
index d13f55e698f..4c5af73d98a 100644
--- a/service/auditmanager/CHANGELOG.md
+++ b/service/auditmanager/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.39.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.39.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/auditmanager/go.mod b/service/auditmanager/go.mod
index dc07af6d770..64c2ae7049c 100644
--- a/service/auditmanager/go.mod
+++ b/service/auditmanager/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/auditmanager
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/auditmanager/go.sum b/service/auditmanager/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/auditmanager/go.sum
+++ b/service/auditmanager/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/auditmanager/go_module_metadata.go b/service/auditmanager/go_module_metadata.go
index 6236a064a02..01a135a3ea8 100644
--- a/service/auditmanager/go_module_metadata.go
+++ b/service/auditmanager/go_module_metadata.go
@@ -3,4 +3,4 @@
package auditmanager
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.39.1"
+const goModuleVersion = "1.39.2"
diff --git a/service/autoscaling/CHANGELOG.md b/service/autoscaling/CHANGELOG.md
index 5fba10a2ceb..b805e6b9b60 100644
--- a/service/autoscaling/CHANGELOG.md
+++ b/service/autoscaling/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.53.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.53.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod
index 42f74eac711..ae04f6f1064 100644
--- a/service/autoscaling/go.mod
+++ b/service/autoscaling/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/autoscaling
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/autoscaling/go.sum
+++ b/service/autoscaling/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/autoscaling/go_module_metadata.go b/service/autoscaling/go_module_metadata.go
index c1dd0748326..a526569d3c5 100644
--- a/service/autoscaling/go_module_metadata.go
+++ b/service/autoscaling/go_module_metadata.go
@@ -3,4 +3,4 @@
package autoscaling
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.53.2"
+const goModuleVersion = "1.53.3"
diff --git a/service/autoscalingplans/CHANGELOG.md b/service/autoscalingplans/CHANGELOG.md
index 82ca8da6588..fe5cd7abed2 100644
--- a/service/autoscalingplans/CHANGELOG.md
+++ b/service/autoscalingplans/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod
index 7aacb5e4f92..20011c23f40 100644
--- a/service/autoscalingplans/go.mod
+++ b/service/autoscalingplans/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/autoscalingplans
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/autoscalingplans/go.sum
+++ b/service/autoscalingplans/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/autoscalingplans/go_module_metadata.go b/service/autoscalingplans/go_module_metadata.go
index 6c1ec402a70..9d336900454 100644
--- a/service/autoscalingplans/go_module_metadata.go
+++ b/service/autoscalingplans/go_module_metadata.go
@@ -3,4 +3,4 @@
package autoscalingplans
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/b2bi/CHANGELOG.md b/service/b2bi/CHANGELOG.md
index 8c7b8c0b7b6..7cc8b401d76 100644
--- a/service/b2bi/CHANGELOG.md
+++ b/service/b2bi/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.0.0-preview.69 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.0.0-preview.68 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/b2bi/go.mod b/service/b2bi/go.mod
index 051f3a2ebbd..9aac1ffe7f9 100644
--- a/service/b2bi/go.mod
+++ b/service/b2bi/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/b2bi
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/b2bi/go.sum b/service/b2bi/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/b2bi/go.sum
+++ b/service/b2bi/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/b2bi/go_module_metadata.go b/service/b2bi/go_module_metadata.go
index 209771ade59..ab631e1298f 100644
--- a/service/b2bi/go_module_metadata.go
+++ b/service/b2bi/go_module_metadata.go
@@ -3,4 +3,4 @@
package b2bi
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.0.0-preview.68"
+const goModuleVersion = "1.0.0-preview.69"
diff --git a/service/backup/CHANGELOG.md b/service/backup/CHANGELOG.md
index d70ee7f6bee..8b9a3225e64 100644
--- a/service/backup/CHANGELOG.md
+++ b/service/backup/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.43.0 (2025-06-17)
+
+* **Feature**: AWS Backup is adding support for integration of its logically air-gapped vaults with the AWS Organizations Multi-party approval capability.
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.42.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/backup/api_op_AssociateBackupVaultMpaApprovalTeam.go b/service/backup/api_op_AssociateBackupVaultMpaApprovalTeam.go
new file mode 100644
index 00000000000..da55f104e3d
--- /dev/null
+++ b/service/backup/api_op_AssociateBackupVaultMpaApprovalTeam.go
@@ -0,0 +1,164 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package backup
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Associates an MPA approval team with a backup vault.
+func (c *Client) AssociateBackupVaultMpaApprovalTeam(ctx context.Context, params *AssociateBackupVaultMpaApprovalTeamInput, optFns ...func(*Options)) (*AssociateBackupVaultMpaApprovalTeamOutput, error) {
+ if params == nil {
+ params = &AssociateBackupVaultMpaApprovalTeamInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "AssociateBackupVaultMpaApprovalTeam", params, optFns, c.addOperationAssociateBackupVaultMpaApprovalTeamMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*AssociateBackupVaultMpaApprovalTeamOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type AssociateBackupVaultMpaApprovalTeamInput struct {
+
+ // The name of the backup vault to associate with the MPA approval team.
+ //
+ // This member is required.
+ BackupVaultName *string
+
+ // The Amazon Resource Name (ARN) of the MPA approval team to associate with the
+ // backup vault.
+ //
+ // This member is required.
+ MpaApprovalTeamArn *string
+
+ // A comment provided by the requester explaining the association request.
+ RequesterComment *string
+
+ noSmithyDocumentSerde
+}
+
+type AssociateBackupVaultMpaApprovalTeamOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationAssociateBackupVaultMpaApprovalTeamMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateBackupVaultMpaApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateBackupVaultMpaApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateBackupVaultMpaApprovalTeam"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpAssociateBackupVaultMpaApprovalTeamValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateBackupVaultMpaApprovalTeam(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opAssociateBackupVaultMpaApprovalTeam(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "AssociateBackupVaultMpaApprovalTeam",
+ }
+}
diff --git a/service/backup/api_op_CreateBackupPlan.go b/service/backup/api_op_CreateBackupPlan.go
index f537a34d900..eb9d5fc444b 100644
--- a/service/backup/api_op_CreateBackupPlan.go
+++ b/service/backup/api_op_CreateBackupPlan.go
@@ -152,6 +152,9 @@ func (c *Client) addOperationCreateBackupPlanMiddlewares(stack *middleware.Stack
if err = addCredentialSource(stack, options); err != nil {
return err
}
+ if err = addIdempotencyToken_opCreateBackupPlanMiddleware(stack, options); err != nil {
+ return err
+ }
if err = addOpCreateBackupPlanValidationMiddleware(stack); err != nil {
return err
}
@@ -188,6 +191,39 @@ func (c *Client) addOperationCreateBackupPlanMiddlewares(stack *middleware.Stack
return nil
}
+type idempotencyToken_initializeOpCreateBackupPlan struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateBackupPlan) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateBackupPlan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateBackupPlanInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateBackupPlanInput ")
+ }
+
+ if input.CreatorRequestId == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.CreatorRequestId = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateBackupPlanMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateBackupPlan{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
func newServiceMetadataMiddleware_opCreateBackupPlan(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
diff --git a/service/backup/api_op_CreateBackupSelection.go b/service/backup/api_op_CreateBackupSelection.go
index 38a5d0e6674..d12f29354b8 100644
--- a/service/backup/api_op_CreateBackupSelection.go
+++ b/service/backup/api_op_CreateBackupSelection.go
@@ -141,6 +141,9 @@ func (c *Client) addOperationCreateBackupSelectionMiddlewares(stack *middleware.
if err = addCredentialSource(stack, options); err != nil {
return err
}
+ if err = addIdempotencyToken_opCreateBackupSelectionMiddleware(stack, options); err != nil {
+ return err
+ }
if err = addOpCreateBackupSelectionValidationMiddleware(stack); err != nil {
return err
}
@@ -177,6 +180,39 @@ func (c *Client) addOperationCreateBackupSelectionMiddlewares(stack *middleware.
return nil
}
+type idempotencyToken_initializeOpCreateBackupSelection struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateBackupSelection) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateBackupSelection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateBackupSelectionInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateBackupSelectionInput ")
+ }
+
+ if input.CreatorRequestId == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.CreatorRequestId = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateBackupSelectionMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateBackupSelection{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
func newServiceMetadataMiddleware_opCreateBackupSelection(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
diff --git a/service/backup/api_op_CreateBackupVault.go b/service/backup/api_op_CreateBackupVault.go
index a7d31fb6c9e..67501307bc6 100644
--- a/service/backup/api_op_CreateBackupVault.go
+++ b/service/backup/api_op_CreateBackupVault.go
@@ -151,6 +151,9 @@ func (c *Client) addOperationCreateBackupVaultMiddlewares(stack *middleware.Stac
if err = addCredentialSource(stack, options); err != nil {
return err
}
+ if err = addIdempotencyToken_opCreateBackupVaultMiddleware(stack, options); err != nil {
+ return err
+ }
if err = addOpCreateBackupVaultValidationMiddleware(stack); err != nil {
return err
}
@@ -187,6 +190,39 @@ func (c *Client) addOperationCreateBackupVaultMiddlewares(stack *middleware.Stac
return nil
}
+type idempotencyToken_initializeOpCreateBackupVault struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateBackupVault) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateBackupVault) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateBackupVaultInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateBackupVaultInput ")
+ }
+
+ if input.CreatorRequestId == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.CreatorRequestId = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateBackupVaultMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateBackupVault{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
func newServiceMetadataMiddleware_opCreateBackupVault(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
diff --git a/service/backup/api_op_CreateLegalHold.go b/service/backup/api_op_CreateLegalHold.go
index 17cb5c19b9a..4e81ba49f67 100644
--- a/service/backup/api_op_CreateLegalHold.go
+++ b/service/backup/api_op_CreateLegalHold.go
@@ -157,6 +157,9 @@ func (c *Client) addOperationCreateLegalHoldMiddlewares(stack *middleware.Stack,
if err = addCredentialSource(stack, options); err != nil {
return err
}
+ if err = addIdempotencyToken_opCreateLegalHoldMiddleware(stack, options); err != nil {
+ return err
+ }
if err = addOpCreateLegalHoldValidationMiddleware(stack); err != nil {
return err
}
@@ -193,6 +196,39 @@ func (c *Client) addOperationCreateLegalHoldMiddlewares(stack *middleware.Stack,
return nil
}
+type idempotencyToken_initializeOpCreateLegalHold struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateLegalHold) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateLegalHold) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateLegalHoldInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateLegalHoldInput ")
+ }
+
+ if input.IdempotencyToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.IdempotencyToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateLegalHoldMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateLegalHold{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
func newServiceMetadataMiddleware_opCreateLegalHold(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
diff --git a/service/backup/api_op_CreateLogicallyAirGappedBackupVault.go b/service/backup/api_op_CreateLogicallyAirGappedBackupVault.go
index 1e739c743a5..658cae3bbdd 100644
--- a/service/backup/api_op_CreateLogicallyAirGappedBackupVault.go
+++ b/service/backup/api_op_CreateLogicallyAirGappedBackupVault.go
@@ -162,6 +162,9 @@ func (c *Client) addOperationCreateLogicallyAirGappedBackupVaultMiddlewares(stac
if err = addCredentialSource(stack, options); err != nil {
return err
}
+ if err = addIdempotencyToken_opCreateLogicallyAirGappedBackupVaultMiddleware(stack, options); err != nil {
+ return err
+ }
if err = addOpCreateLogicallyAirGappedBackupVaultValidationMiddleware(stack); err != nil {
return err
}
@@ -198,6 +201,39 @@ func (c *Client) addOperationCreateLogicallyAirGappedBackupVaultMiddlewares(stac
return nil
}
+type idempotencyToken_initializeOpCreateLogicallyAirGappedBackupVault struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateLogicallyAirGappedBackupVault) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateLogicallyAirGappedBackupVault) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateLogicallyAirGappedBackupVaultInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateLogicallyAirGappedBackupVaultInput ")
+ }
+
+ if input.CreatorRequestId == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.CreatorRequestId = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateLogicallyAirGappedBackupVaultMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateLogicallyAirGappedBackupVault{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
func newServiceMetadataMiddleware_opCreateLogicallyAirGappedBackupVault(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
diff --git a/service/backup/api_op_CreateRestoreAccessBackupVault.go b/service/backup/api_op_CreateRestoreAccessBackupVault.go
new file mode 100644
index 00000000000..984b85373c7
--- /dev/null
+++ b/service/backup/api_op_CreateRestoreAccessBackupVault.go
@@ -0,0 +1,223 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package backup
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/backup/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Creates a restore access backup vault that provides temporary access to
+// recovery points in a logically air-gapped backup vault, subject to MPA approval.
+func (c *Client) CreateRestoreAccessBackupVault(ctx context.Context, params *CreateRestoreAccessBackupVaultInput, optFns ...func(*Options)) (*CreateRestoreAccessBackupVaultOutput, error) {
+ if params == nil {
+ params = &CreateRestoreAccessBackupVaultInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateRestoreAccessBackupVault", params, optFns, c.addOperationCreateRestoreAccessBackupVaultMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateRestoreAccessBackupVaultOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateRestoreAccessBackupVaultInput struct {
+
+ // The ARN of the source backup vault containing the recovery points to which
+ // temporary access is requested.
+ //
+ // This member is required.
+ SourceBackupVaultArn *string
+
+ // The name of the backup vault to associate with an MPA approval team.
+ BackupVaultName *string
+
+ // Optional tags to assign to the restore access backup vault.
+ BackupVaultTags map[string]string
+
+ // A unique string that identifies the request and allows failed requests to be
+ // retried without the risk of executing the operation twice.
+ CreatorRequestId *string
+
+ // A comment explaining the reason for requesting restore access to the backup
+ // vault.
+ RequesterComment *string
+
+ noSmithyDocumentSerde
+}
+
+type CreateRestoreAccessBackupVaultOutput struct {
+
+ // >The date and time when the restore access backup vault was created, in Unix
+ // format and Coordinated Universal Time
+ CreationDate *time.Time
+
+ // The ARN that uniquely identifies the created restore access backup vault.
+ RestoreAccessBackupVaultArn *string
+
+ // The name of the created restore access backup vault.
+ RestoreAccessBackupVaultName *string
+
+ // The current state of the restore access backup vault.
+ VaultState types.VaultState
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateRestoreAccessBackupVaultMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateRestoreAccessBackupVault{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateRestoreAccessBackupVault{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRestoreAccessBackupVault"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opCreateRestoreAccessBackupVaultMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateRestoreAccessBackupVaultValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRestoreAccessBackupVault(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpCreateRestoreAccessBackupVault struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateRestoreAccessBackupVault) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateRestoreAccessBackupVault) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateRestoreAccessBackupVaultInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateRestoreAccessBackupVaultInput ")
+ }
+
+ if input.CreatorRequestId == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.CreatorRequestId = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateRestoreAccessBackupVaultMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateRestoreAccessBackupVault{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opCreateRestoreAccessBackupVault(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateRestoreAccessBackupVault",
+ }
+}
diff --git a/service/backup/api_op_DescribeBackupVault.go b/service/backup/api_op_DescribeBackupVault.go
index 35dd5809e69..5c4163e0c42 100644
--- a/service/backup/api_op_DescribeBackupVault.go
+++ b/service/backup/api_op_DescribeBackupVault.go
@@ -71,6 +71,10 @@ type DescribeBackupVaultOutput struct {
// arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab .
EncryptionKeyArn *string
+ // Information about the latest update to the MPA approval team association for
+ // this backup vault.
+ LatestMpaApprovalTeamUpdate *types.LatestMpaApprovalTeamUpdate
+
// The date and time when Backup Vault Lock configuration cannot be changed or
// deleted.
//
@@ -113,6 +117,12 @@ type DescribeBackupVaultOutput struct {
// the vault prior to Vault Lock are not affected.
MinRetentionDays *int64
+ // The ARN of the MPA approval team associated with this backup vault.
+ MpaApprovalTeamArn *string
+
+ // The ARN of the MPA session associated with this backup vault.
+ MpaSessionArn *string
+
// The number of recovery points that are stored in a backup vault.
//
// Recovery point count value displayed in the console can be an approximation.
@@ -121,6 +131,10 @@ type DescribeBackupVaultOutput struct {
// [ListRecoveryPointsByBackupVault]: https://docs.aws.amazon.com/aws-backup/latest/devguide/API_ListRecoveryPointsByBackupVault.html
NumberOfRecoveryPoints int64
+ // The ARN of the source backup vault from which this restore access backup vault
+ // was created.
+ SourceBackupVaultArn *string
+
// The current state of the vault.->
VaultState types.VaultState
diff --git a/service/backup/api_op_DescribeRecoveryPoint.go b/service/backup/api_op_DescribeRecoveryPoint.go
index 09582e4e23a..9f28276612f 100644
--- a/service/backup/api_op_DescribeRecoveryPoint.go
+++ b/service/backup/api_op_DescribeRecoveryPoint.go
@@ -115,6 +115,10 @@ type DescribeRecoveryPointOutput struct {
// index associated with the recovery point.
IndexStatusMessage *string
+ // The date and time when the backup job that created this recovery point was
+ // initiated, in Unix format and Coordinated Universal Time (UTC).
+ InitiationDate *time.Time
+
// A Boolean value that is returned as TRUE if the specified recovery point is
// encrypted, or FALSE if the recovery point is not encrypted.
IsEncrypted bool
diff --git a/service/backup/api_op_DisassociateBackupVaultMpaApprovalTeam.go b/service/backup/api_op_DisassociateBackupVaultMpaApprovalTeam.go
new file mode 100644
index 00000000000..d8b795e3e83
--- /dev/null
+++ b/service/backup/api_op_DisassociateBackupVaultMpaApprovalTeam.go
@@ -0,0 +1,160 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package backup
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Removes the association between an MPA approval team and a backup vault,
+// disabling the MPA approval workflow for restore operations.
+func (c *Client) DisassociateBackupVaultMpaApprovalTeam(ctx context.Context, params *DisassociateBackupVaultMpaApprovalTeamInput, optFns ...func(*Options)) (*DisassociateBackupVaultMpaApprovalTeamOutput, error) {
+ if params == nil {
+ params = &DisassociateBackupVaultMpaApprovalTeamInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DisassociateBackupVaultMpaApprovalTeam", params, optFns, c.addOperationDisassociateBackupVaultMpaApprovalTeamMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DisassociateBackupVaultMpaApprovalTeamOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DisassociateBackupVaultMpaApprovalTeamInput struct {
+
+ // The name of the backup vault from which to disassociate the MPA approval team.
+ //
+ // This member is required.
+ BackupVaultName *string
+
+ // An optional comment explaining the reason for disassociating the MPA approval
+ // team from the backup vault.
+ RequesterComment *string
+
+ noSmithyDocumentSerde
+}
+
+type DisassociateBackupVaultMpaApprovalTeamOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDisassociateBackupVaultMpaApprovalTeamMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateBackupVaultMpaApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateBackupVaultMpaApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateBackupVaultMpaApprovalTeam"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDisassociateBackupVaultMpaApprovalTeamValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateBackupVaultMpaApprovalTeam(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDisassociateBackupVaultMpaApprovalTeam(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DisassociateBackupVaultMpaApprovalTeam",
+ }
+}
diff --git a/service/backup/api_op_ListRestoreAccessBackupVaults.go b/service/backup/api_op_ListRestoreAccessBackupVaults.go
new file mode 100644
index 00000000000..70130d395cf
--- /dev/null
+++ b/service/backup/api_op_ListRestoreAccessBackupVaults.go
@@ -0,0 +1,270 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package backup
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/backup/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of restore access backup vaults associated with a specified
+// backup vault.
+func (c *Client) ListRestoreAccessBackupVaults(ctx context.Context, params *ListRestoreAccessBackupVaultsInput, optFns ...func(*Options)) (*ListRestoreAccessBackupVaultsOutput, error) {
+ if params == nil {
+ params = &ListRestoreAccessBackupVaultsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListRestoreAccessBackupVaults", params, optFns, c.addOperationListRestoreAccessBackupVaultsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListRestoreAccessBackupVaultsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListRestoreAccessBackupVaultsInput struct {
+
+ // The name of the backup vault for which to list associated restore access backup
+ // vaults.
+ //
+ // This member is required.
+ BackupVaultName *string
+
+ // The maximum number of items to return in the response.
+ MaxResults *int32
+
+ // The pagination token from a previous request to retrieve the next set of
+ // results.
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListRestoreAccessBackupVaultsOutput struct {
+
+ // The pagination token to use in a subsequent request to retrieve the next set of
+ // results.
+ NextToken *string
+
+ // A list of restore access backup vaults associated with the specified backup
+ // vault.
+ RestoreAccessBackupVaults []types.RestoreAccessBackupVaultListMember
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListRestoreAccessBackupVaultsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListRestoreAccessBackupVaults{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListRestoreAccessBackupVaults{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListRestoreAccessBackupVaults"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpListRestoreAccessBackupVaultsValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRestoreAccessBackupVaults(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListRestoreAccessBackupVaultsPaginatorOptions is the paginator options for
+// ListRestoreAccessBackupVaults
+type ListRestoreAccessBackupVaultsPaginatorOptions struct {
+ // The maximum number of items to return in the response.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListRestoreAccessBackupVaultsPaginator is a paginator for
+// ListRestoreAccessBackupVaults
+type ListRestoreAccessBackupVaultsPaginator struct {
+ options ListRestoreAccessBackupVaultsPaginatorOptions
+ client ListRestoreAccessBackupVaultsAPIClient
+ params *ListRestoreAccessBackupVaultsInput
+ nextToken *string
+ firstPage bool
+}
+
+// NewListRestoreAccessBackupVaultsPaginator returns a new
+// ListRestoreAccessBackupVaultsPaginator
+func NewListRestoreAccessBackupVaultsPaginator(client ListRestoreAccessBackupVaultsAPIClient, params *ListRestoreAccessBackupVaultsInput, optFns ...func(*ListRestoreAccessBackupVaultsPaginatorOptions)) *ListRestoreAccessBackupVaultsPaginator {
+ if params == nil {
+ params = &ListRestoreAccessBackupVaultsInput{}
+ }
+
+ options := ListRestoreAccessBackupVaultsPaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListRestoreAccessBackupVaultsPaginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListRestoreAccessBackupVaultsPaginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListRestoreAccessBackupVaults page.
+func (p *ListRestoreAccessBackupVaultsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRestoreAccessBackupVaultsOutput, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListRestoreAccessBackupVaults(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListRestoreAccessBackupVaultsAPIClient is a client that implements the
+// ListRestoreAccessBackupVaults operation.
+type ListRestoreAccessBackupVaultsAPIClient interface {
+ ListRestoreAccessBackupVaults(context.Context, *ListRestoreAccessBackupVaultsInput, ...func(*Options)) (*ListRestoreAccessBackupVaultsOutput, error)
+}
+
+var _ ListRestoreAccessBackupVaultsAPIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListRestoreAccessBackupVaults(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListRestoreAccessBackupVaults",
+ }
+}
diff --git a/service/backup/api_op_PutBackupVaultNotifications.go b/service/backup/api_op_PutBackupVaultNotifications.go
index a440f597810..d80412f5eac 100644
--- a/service/backup/api_op_PutBackupVaultNotifications.go
+++ b/service/backup/api_op_PutBackupVaultNotifications.go
@@ -30,28 +30,10 @@ func (c *Client) PutBackupVaultNotifications(ctx context.Context, params *PutBac
type PutBackupVaultNotificationsInput struct {
// An array of events that indicate the status of jobs to back up resources to the
- // backup vault.
+ // backup vault. For the list of supported events, common use cases, and code
+ // samples, see [Notification options with Backup].
//
- // For common use cases and code samples, see [Using Amazon SNS to track Backup events].
- //
- // The following events are supported:
- //
- // - BACKUP_JOB_STARTED | BACKUP_JOB_COMPLETED | BACKUP_JOB_FAILED
- //
- // - COPY_JOB_STARTED | COPY_JOB_SUCCESSFUL | COPY_JOB_FAILED
- //
- // - RESTORE_JOB_STARTED | RESTORE_JOB_COMPLETED | RECOVERY_POINT_MODIFIED
- //
- // - S3_BACKUP_OBJECT_FAILED | S3_RESTORE_OBJECT_FAILED
- //
- // - RECOVERY_POINT_INDEX_COMPLETED | RECOVERY_POINT_INDEX_DELETED |
- // RECOVERY_POINT_INDEXING_FAILED
- //
- // The list below includes both supported events and deprecated events that are no
- // longer in use (for reference). Deprecated events do not return statuses or
- // notifications. Refer to the list above for the supported events.
- //
- // [Using Amazon SNS to track Backup events]: https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html
+ // [Notification options with Backup]: https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-notifications.html
//
// This member is required.
BackupVaultEvents []types.BackupVaultEvent
diff --git a/service/backup/api_op_RevokeRestoreAccessBackupVault.go b/service/backup/api_op_RevokeRestoreAccessBackupVault.go
new file mode 100644
index 00000000000..cf3dee7f49e
--- /dev/null
+++ b/service/backup/api_op_RevokeRestoreAccessBackupVault.go
@@ -0,0 +1,166 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package backup
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Revokes access to a restore access backup vault, removing the ability to
+// restore from its recovery points and permanently deleting the vault.
+func (c *Client) RevokeRestoreAccessBackupVault(ctx context.Context, params *RevokeRestoreAccessBackupVaultInput, optFns ...func(*Options)) (*RevokeRestoreAccessBackupVaultOutput, error) {
+ if params == nil {
+ params = &RevokeRestoreAccessBackupVaultInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "RevokeRestoreAccessBackupVault", params, optFns, c.addOperationRevokeRestoreAccessBackupVaultMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*RevokeRestoreAccessBackupVaultOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type RevokeRestoreAccessBackupVaultInput struct {
+
+ // The name of the source backup vault associated with the restore access backup
+ // vault to be revoked.
+ //
+ // This member is required.
+ BackupVaultName *string
+
+ // The ARN of the restore access backup vault to revoke.
+ //
+ // This member is required.
+ RestoreAccessBackupVaultArn *string
+
+ // A comment explaining the reason for revoking access to the restore access
+ // backup vault.
+ RequesterComment *string
+
+ noSmithyDocumentSerde
+}
+
+type RevokeRestoreAccessBackupVaultOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationRevokeRestoreAccessBackupVaultMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpRevokeRestoreAccessBackupVault{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpRevokeRestoreAccessBackupVault{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "RevokeRestoreAccessBackupVault"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpRevokeRestoreAccessBackupVaultValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRevokeRestoreAccessBackupVault(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opRevokeRestoreAccessBackupVault(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "RevokeRestoreAccessBackupVault",
+ }
+}
diff --git a/service/backup/api_op_StartBackupJob.go b/service/backup/api_op_StartBackupJob.go
index 15ecdaba5e1..89467e755de 100644
--- a/service/backup/api_op_StartBackupJob.go
+++ b/service/backup/api_op_StartBackupJob.go
@@ -223,6 +223,9 @@ func (c *Client) addOperationStartBackupJobMiddlewares(stack *middleware.Stack,
if err = addCredentialSource(stack, options); err != nil {
return err
}
+ if err = addIdempotencyToken_opStartBackupJobMiddleware(stack, options); err != nil {
+ return err
+ }
if err = addOpStartBackupJobValidationMiddleware(stack); err != nil {
return err
}
@@ -259,6 +262,39 @@ func (c *Client) addOperationStartBackupJobMiddlewares(stack *middleware.Stack,
return nil
}
+type idempotencyToken_initializeOpStartBackupJob struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpStartBackupJob) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpStartBackupJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*StartBackupJobInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *StartBackupJobInput ")
+ }
+
+ if input.IdempotencyToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.IdempotencyToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opStartBackupJobMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpStartBackupJob{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
func newServiceMetadataMiddleware_opStartBackupJob(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
diff --git a/service/backup/api_op_StartCopyJob.go b/service/backup/api_op_StartCopyJob.go
index 2a839b86959..fad1689f3e0 100644
--- a/service/backup/api_op_StartCopyJob.go
+++ b/service/backup/api_op_StartCopyJob.go
@@ -174,6 +174,9 @@ func (c *Client) addOperationStartCopyJobMiddlewares(stack *middleware.Stack, op
if err = addCredentialSource(stack, options); err != nil {
return err
}
+ if err = addIdempotencyToken_opStartCopyJobMiddleware(stack, options); err != nil {
+ return err
+ }
if err = addOpStartCopyJobValidationMiddleware(stack); err != nil {
return err
}
@@ -210,6 +213,39 @@ func (c *Client) addOperationStartCopyJobMiddlewares(stack *middleware.Stack, op
return nil
}
+type idempotencyToken_initializeOpStartCopyJob struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpStartCopyJob) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpStartCopyJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*StartCopyJobInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *StartCopyJobInput ")
+ }
+
+ if input.IdempotencyToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.IdempotencyToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opStartCopyJobMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpStartCopyJob{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
func newServiceMetadataMiddleware_opStartCopyJob(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
diff --git a/service/backup/api_op_StartRestoreJob.go b/service/backup/api_op_StartRestoreJob.go
index 73f24d9584f..2c8921f96ca 100644
--- a/service/backup/api_op_StartRestoreJob.go
+++ b/service/backup/api_op_StartRestoreJob.go
@@ -223,6 +223,9 @@ func (c *Client) addOperationStartRestoreJobMiddlewares(stack *middleware.Stack,
if err = addCredentialSource(stack, options); err != nil {
return err
}
+ if err = addIdempotencyToken_opStartRestoreJobMiddleware(stack, options); err != nil {
+ return err
+ }
if err = addOpStartRestoreJobValidationMiddleware(stack); err != nil {
return err
}
@@ -259,6 +262,39 @@ func (c *Client) addOperationStartRestoreJobMiddlewares(stack *middleware.Stack,
return nil
}
+type idempotencyToken_initializeOpStartRestoreJob struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpStartRestoreJob) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpStartRestoreJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*StartRestoreJobInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *StartRestoreJobInput ")
+ }
+
+ if input.IdempotencyToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.IdempotencyToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opStartRestoreJobMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpStartRestoreJob{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
func newServiceMetadataMiddleware_opStartRestoreJob(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
diff --git a/service/backup/deserializers.go b/service/backup/deserializers.go
index 502f095b107..265e34e1458 100644
--- a/service/backup/deserializers.go
+++ b/service/backup/deserializers.go
@@ -30,6 +30,112 @@ func deserializeS3Expires(v string) (*time.Time, error) {
return &t, nil
}
+type awsRestjson1_deserializeOpAssociateBackupVaultMpaApprovalTeam struct {
+}
+
+func (*awsRestjson1_deserializeOpAssociateBackupVaultMpaApprovalTeam) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpAssociateBackupVaultMpaApprovalTeam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorAssociateBackupVaultMpaApprovalTeam(response, &metadata)
+ }
+ output := &AssociateBackupVaultMpaApprovalTeamOutput{}
+ out.Result = output
+
+ if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to discard response body, %w", err),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorAssociateBackupVaultMpaApprovalTeam(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InvalidParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("MissingParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorMissingParameterValueException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ServiceUnavailableException", errorCode):
+ return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
type awsRestjson1_deserializeOpCancelLegalHold struct {
}
@@ -1520,6 +1626,214 @@ func awsRestjson1_deserializeOpDocumentCreateReportPlanOutput(v **CreateReportPl
return nil
}
+type awsRestjson1_deserializeOpCreateRestoreAccessBackupVault struct {
+}
+
+func (*awsRestjson1_deserializeOpCreateRestoreAccessBackupVault) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpCreateRestoreAccessBackupVault) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateRestoreAccessBackupVault(response, &metadata)
+ }
+ output := &CreateRestoreAccessBackupVaultOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentCreateRestoreAccessBackupVaultOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorCreateRestoreAccessBackupVault(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AlreadyExistsException", errorCode):
+ return awsRestjson1_deserializeErrorAlreadyExistsException(response, errorBody)
+
+ case strings.EqualFold("InvalidParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("MissingParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorMissingParameterValueException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ServiceUnavailableException", errorCode):
+ return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentCreateRestoreAccessBackupVaultOutput(v **CreateRestoreAccessBackupVaultOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *CreateRestoreAccessBackupVaultOutput
+ if *v == nil {
+ sv = &CreateRestoreAccessBackupVaultOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "CreationDate":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.CreationDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "RestoreAccessBackupVaultArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ARN to be of type string, got %T instead", value)
+ }
+ sv.RestoreAccessBackupVaultArn = ptr.String(jtv)
+ }
+
+ case "RestoreAccessBackupVaultName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected BackupVaultName to be of type string, got %T instead", value)
+ }
+ sv.RestoreAccessBackupVaultName = ptr.String(jtv)
+ }
+
+ case "VaultState":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected VaultState to be of type string, got %T instead", value)
+ }
+ sv.VaultState = types.VaultState(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
type awsRestjson1_deserializeOpCreateRestoreTestingPlan struct {
}
@@ -3795,6 +4109,11 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupVaultOutput(v **DescribeBac
sv.EncryptionKeyArn = ptr.String(jtv)
}
+ case "LatestMpaApprovalTeamUpdate":
+ if err := awsRestjson1_deserializeDocumentLatestMpaApprovalTeamUpdate(&sv.LatestMpaApprovalTeamUpdate, value); err != nil {
+ return err
+ }
+
case "LockDate":
if value != nil {
switch jtv := value.(type) {
@@ -3846,6 +4165,24 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupVaultOutput(v **DescribeBac
sv.MinRetentionDays = ptr.Int64(i64)
}
+ case "MpaApprovalTeamArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ARN to be of type string, got %T instead", value)
+ }
+ sv.MpaApprovalTeamArn = ptr.String(jtv)
+ }
+
+ case "MpaSessionArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ARN to be of type string, got %T instead", value)
+ }
+ sv.MpaSessionArn = ptr.String(jtv)
+ }
+
case "NumberOfRecoveryPoints":
if value != nil {
jtv, ok := value.(json.Number)
@@ -3859,6 +4196,15 @@ func awsRestjson1_deserializeOpDocumentDescribeBackupVaultOutput(v **DescribeBac
sv.NumberOfRecoveryPoints = i64
}
+ case "SourceBackupVaultArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ARN to be of type string, got %T instead", value)
+ }
+ sv.SourceBackupVaultArn = ptr.String(jtv)
+ }
+
case "VaultState":
if value != nil {
jtv, ok := value.(string)
@@ -4976,6 +5322,22 @@ func awsRestjson1_deserializeOpDocumentDescribeRecoveryPointOutput(v **DescribeR
sv.IndexStatusMessage = ptr.String(jtv)
}
+ case "InitiationDate":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.InitiationDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
case "IsEncrypted":
if value != nil {
jtv, ok := value.(bool)
@@ -5879,70 +6241,176 @@ func awsRestjson1_deserializeOpDocumentDescribeRestoreJobOutput(v **DescribeRest
default:
return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
- }
- }
+ }
+ }
+
+ case "ResourceType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value)
+ }
+ sv.ResourceType = ptr.String(jtv)
+ }
+
+ case "RestoreJobId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.RestoreJobId = ptr.String(jtv)
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected RestoreJobStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.RestoreJobStatus(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ case "ValidationStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected RestoreValidationStatus to be of type string, got %T instead", value)
+ }
+ sv.ValidationStatus = types.RestoreValidationStatus(jtv)
+ }
+
+ case "ValidationStatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.ValidationStatusMessage = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpDisassociateBackupVaultMpaApprovalTeam struct {
+}
+
+func (*awsRestjson1_deserializeOpDisassociateBackupVaultMpaApprovalTeam) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpDisassociateBackupVaultMpaApprovalTeam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorDisassociateBackupVaultMpaApprovalTeam(response, &metadata)
+ }
+ output := &DisassociateBackupVaultMpaApprovalTeamOutput{}
+ out.Result = output
+
+ if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to discard response body, %w", err),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorDisassociateBackupVaultMpaApprovalTeam(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
- case "ResourceType":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value)
- }
- sv.ResourceType = ptr.String(jtv)
- }
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
- case "RestoreJobId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected string to be of type string, got %T instead", value)
- }
- sv.RestoreJobId = ptr.String(jtv)
- }
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
- case "Status":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected RestoreJobStatus to be of type string, got %T instead", value)
- }
- sv.Status = types.RestoreJobStatus(jtv)
- }
+ switch {
+ case strings.EqualFold("InvalidParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody)
- case "StatusMessage":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected string to be of type string, got %T instead", value)
- }
- sv.StatusMessage = ptr.String(jtv)
- }
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody)
- case "ValidationStatus":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected RestoreValidationStatus to be of type string, got %T instead", value)
- }
- sv.ValidationStatus = types.RestoreValidationStatus(jtv)
- }
+ case strings.EqualFold("MissingParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorMissingParameterValueException(response, errorBody)
- case "ValidationStatusMessage":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected string to be of type string, got %T instead", value)
- }
- sv.ValidationStatusMessage = ptr.String(jtv)
- }
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
- default:
- _, _ = key, value
+ case strings.EqualFold("ServiceUnavailableException", errorCode):
+ return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody)
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
}
+ return genericError
+
}
- *v = sv
- return nil
}
type awsRestjson1_deserializeOpDisassociateRecoveryPoint struct {
@@ -12124,7 +12592,177 @@ func awsRestjson1_deserializeOpErrorListReportPlans(response *smithyhttp.Respons
}
}
-func awsRestjson1_deserializeOpDocumentListReportPlansOutput(v **ListReportPlansOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListReportPlansOutput(v **ListReportPlansOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListReportPlansOutput
+ if *v == nil {
+ sv = &ListReportPlansOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "ReportPlans":
+ if err := awsRestjson1_deserializeDocumentReportPlanList(&sv.ReportPlans, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListRestoreAccessBackupVaults struct {
+}
+
+func (*awsRestjson1_deserializeOpListRestoreAccessBackupVaults) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListRestoreAccessBackupVaults) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListRestoreAccessBackupVaults(response, &metadata)
+ }
+ output := &ListRestoreAccessBackupVaultsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListRestoreAccessBackupVaultsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListRestoreAccessBackupVaults(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InvalidParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody)
+
+ case strings.EqualFold("MissingParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorMissingParameterValueException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ServiceUnavailableException", errorCode):
+ return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListRestoreAccessBackupVaultsOutput(v **ListRestoreAccessBackupVaultsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12137,9 +12775,9 @@ func awsRestjson1_deserializeOpDocumentListReportPlansOutput(v **ListReportPlans
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListReportPlansOutput
+ var sv *ListRestoreAccessBackupVaultsOutput
if *v == nil {
- sv = &ListReportPlansOutput{}
+ sv = &ListRestoreAccessBackupVaultsOutput{}
} else {
sv = *v
}
@@ -12155,8 +12793,8 @@ func awsRestjson1_deserializeOpDocumentListReportPlansOutput(v **ListReportPlans
sv.NextToken = ptr.String(jtv)
}
- case "ReportPlans":
- if err := awsRestjson1_deserializeDocumentReportPlanList(&sv.ReportPlans, value); err != nil {
+ case "RestoreAccessBackupVaults":
+ if err := awsRestjson1_deserializeDocumentRestoreAccessBackupVaultList(&sv.RestoreAccessBackupVaults, value); err != nil {
return err
}
@@ -13601,6 +14239,112 @@ func awsRestjson1_deserializeOpErrorPutRestoreValidationResult(response *smithyh
}
}
+type awsRestjson1_deserializeOpRevokeRestoreAccessBackupVault struct {
+}
+
+func (*awsRestjson1_deserializeOpRevokeRestoreAccessBackupVault) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpRevokeRestoreAccessBackupVault) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorRevokeRestoreAccessBackupVault(response, &metadata)
+ }
+ output := &RevokeRestoreAccessBackupVaultOutput{}
+ out.Result = output
+
+ if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to discard response body, %w", err),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorRevokeRestoreAccessBackupVault(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InvalidParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("MissingParameterValueException", errorCode):
+ return awsRestjson1_deserializeErrorMissingParameterValueException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ServiceUnavailableException", errorCode):
+ return awsRestjson1_deserializeErrorServiceUnavailableException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
type awsRestjson1_deserializeOpStartBackupJob struct {
}
@@ -20075,13 +20819,163 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe
default:
_, _ = key, value
- }
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInvalidResourceStateException(v **types.InvalidResourceStateException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InvalidResourceStateException
+ if *v == nil {
+ sv = &types.InvalidResourceStateException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Code":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.Code = ptr.String(jtv)
+ }
+
+ case "Context":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.Context = ptr.String(jtv)
+ }
+
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ case "Type":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.Type = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentKeyValue(v **types.KeyValue, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.KeyValue
+ if *v == nil {
+ sv = &types.KeyValue{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Key":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Key = ptr.String(jtv)
+ }
+
+ case "Value":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Value = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentKeyValueList(v *[]types.KeyValue, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.KeyValue
+ if *v == nil {
+ cv = []types.KeyValue{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.KeyValue
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentKeyValue(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentInvalidResourceStateException(v **types.InvalidResourceStateException, value interface{}) error {
+func awsRestjson1_deserializeDocumentLatestMpaApprovalTeamUpdate(v **types.LatestMpaApprovalTeamUpdate, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -20094,49 +20988,72 @@ func awsRestjson1_deserializeDocumentInvalidResourceStateException(v **types.Inv
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.InvalidResourceStateException
+ var sv *types.LatestMpaApprovalTeamUpdate
if *v == nil {
- sv = &types.InvalidResourceStateException{}
+ sv = &types.LatestMpaApprovalTeamUpdate{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Code":
+ case "ExpiryDate":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.ExpiryDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
}
- sv.Code = ptr.String(jtv)
}
- case "Context":
+ case "InitiationDate":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.InitiationDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "MpaSessionArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ARN to be of type string, got %T instead", value)
}
- sv.Context = ptr.String(jtv)
+ sv.MpaSessionArn = ptr.String(jtv)
}
- case "message", "Message":
+ case "Status":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ return fmt.Errorf("expected MpaSessionStatus to be of type string, got %T instead", value)
}
- sv.Message = ptr.String(jtv)
+ sv.Status = types.MpaSessionStatus(jtv)
}
- case "Type":
+ case "StatusMessage":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected string to be of type string, got %T instead", value)
}
- sv.Type = ptr.String(jtv)
+ sv.StatusMessage = ptr.String(jtv)
}
default:
@@ -20148,7 +21065,7 @@ func awsRestjson1_deserializeDocumentInvalidResourceStateException(v **types.Inv
return nil
}
-func awsRestjson1_deserializeDocumentKeyValue(v **types.KeyValue, value interface{}) error {
+func awsRestjson1_deserializeDocumentLatestRevokeRequest(v **types.LatestRevokeRequest, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -20161,31 +21078,72 @@ func awsRestjson1_deserializeDocumentKeyValue(v **types.KeyValue, value interfac
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.KeyValue
+ var sv *types.LatestRevokeRequest
if *v == nil {
- sv = &types.KeyValue{}
+ sv = &types.LatestRevokeRequest{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Key":
+ case "ExpiryDate":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.ExpiryDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "InitiationDate":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.InitiationDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "MpaSessionArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
}
- sv.Key = ptr.String(jtv)
+ sv.MpaSessionArn = ptr.String(jtv)
}
- case "Value":
+ case "Status":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected MpaRevokeSessionStatus to be of type string, got %T instead", value)
}
- sv.Value = ptr.String(jtv)
+ sv.Status = types.MpaRevokeSessionStatus(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected string to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
}
default:
@@ -20197,40 +21155,6 @@ func awsRestjson1_deserializeDocumentKeyValue(v **types.KeyValue, value interfac
return nil
}
-func awsRestjson1_deserializeDocumentKeyValueList(v *[]types.KeyValue, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.([]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var cv []types.KeyValue
- if *v == nil {
- cv = []types.KeyValue{}
- } else {
- cv = *v
- }
-
- for _, value := range shape {
- var col types.KeyValue
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentKeyValue(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
-
- }
- *v = cv
- return nil
-}
-
func awsRestjson1_deserializeDocumentLegalHold(v **types.LegalHold, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -20950,6 +21874,22 @@ func awsRestjson1_deserializeDocumentRecoveryPointByBackupVault(v **types.Recove
sv.IndexStatusMessage = ptr.String(jtv)
}
+ case "InitiationDate":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.InitiationDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
case "IsEncrypted":
if value != nil {
jtv, ok := value.(bool)
@@ -22281,6 +23221,126 @@ func awsRestjson1_deserializeDocumentResourceTypes(v *[]string, value interface{
return nil
}
+func awsRestjson1_deserializeDocumentRestoreAccessBackupVaultList(v *[]types.RestoreAccessBackupVaultListMember, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.RestoreAccessBackupVaultListMember
+ if *v == nil {
+ cv = []types.RestoreAccessBackupVaultListMember{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.RestoreAccessBackupVaultListMember
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentRestoreAccessBackupVaultListMember(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentRestoreAccessBackupVaultListMember(v **types.RestoreAccessBackupVaultListMember, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.RestoreAccessBackupVaultListMember
+ if *v == nil {
+ sv = &types.RestoreAccessBackupVaultListMember{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApprovalDate":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.ApprovalDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "CreationDate":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.CreationDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "LatestRevokeRequest":
+ if err := awsRestjson1_deserializeDocumentLatestRevokeRequest(&sv.LatestRevokeRequest, value); err != nil {
+ return err
+ }
+
+ case "RestoreAccessBackupVaultArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ARN to be of type string, got %T instead", value)
+ }
+ sv.RestoreAccessBackupVaultArn = ptr.String(jtv)
+ }
+
+ case "VaultState":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected VaultState to be of type string, got %T instead", value)
+ }
+ sv.VaultState = types.VaultState(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentRestoreJobCreator(v **types.RestoreJobCreator, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
diff --git a/service/backup/generated.json b/service/backup/generated.json
index 66d65d49b55..488fc98c72c 100644
--- a/service/backup/generated.json
+++ b/service/backup/generated.json
@@ -8,6 +8,7 @@
"files": [
"api_client.go",
"api_client_test.go",
+ "api_op_AssociateBackupVaultMpaApprovalTeam.go",
"api_op_CancelLegalHold.go",
"api_op_CreateBackupPlan.go",
"api_op_CreateBackupSelection.go",
@@ -16,6 +17,7 @@
"api_op_CreateLegalHold.go",
"api_op_CreateLogicallyAirGappedBackupVault.go",
"api_op_CreateReportPlan.go",
+ "api_op_CreateRestoreAccessBackupVault.go",
"api_op_CreateRestoreTestingPlan.go",
"api_op_CreateRestoreTestingSelection.go",
"api_op_DeleteBackupPlan.go",
@@ -40,6 +42,7 @@
"api_op_DescribeReportJob.go",
"api_op_DescribeReportPlan.go",
"api_op_DescribeRestoreJob.go",
+ "api_op_DisassociateBackupVaultMpaApprovalTeam.go",
"api_op_DisassociateRecoveryPoint.go",
"api_op_DisassociateRecoveryPointFromParent.go",
"api_op_ExportBackupPlanTemplate.go",
@@ -76,6 +79,7 @@
"api_op_ListRecoveryPointsByResource.go",
"api_op_ListReportJobs.go",
"api_op_ListReportPlans.go",
+ "api_op_ListRestoreAccessBackupVaults.go",
"api_op_ListRestoreJobSummaries.go",
"api_op_ListRestoreJobs.go",
"api_op_ListRestoreJobsByProtectedResource.go",
@@ -86,6 +90,7 @@
"api_op_PutBackupVaultLockConfiguration.go",
"api_op_PutBackupVaultNotifications.go",
"api_op_PutRestoreValidationResult.go",
+ "api_op_RevokeRestoreAccessBackupVault.go",
"api_op_StartBackupJob.go",
"api_op_StartCopyJob.go",
"api_op_StartReportJob.go",
diff --git a/service/backup/go.mod b/service/backup/go.mod
index a20b50b0682..6e0e0f776a4 100644
--- a/service/backup/go.mod
+++ b/service/backup/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/backup
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/backup/go.sum b/service/backup/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/backup/go.sum
+++ b/service/backup/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/backup/go_module_metadata.go b/service/backup/go_module_metadata.go
index 0e556f8b07e..b173f0c93fc 100644
--- a/service/backup/go_module_metadata.go
+++ b/service/backup/go_module_metadata.go
@@ -3,4 +3,4 @@
package backup
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.42.2"
+const goModuleVersion = "1.43.0"
diff --git a/service/backup/serializers.go b/service/backup/serializers.go
index 1956434da85..60ffd4c5ac7 100644
--- a/service/backup/serializers.go
+++ b/service/backup/serializers.go
@@ -16,6 +16,105 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+type awsRestjson1_serializeOpAssociateBackupVaultMpaApprovalTeam struct {
+}
+
+func (*awsRestjson1_serializeOpAssociateBackupVaultMpaApprovalTeam) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpAssociateBackupVaultMpaApprovalTeam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*AssociateBackupVaultMpaApprovalTeamInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/backup-vaults/{BackupVaultName}/mpaApprovalTeam")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "PUT"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsAssociateBackupVaultMpaApprovalTeamInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentAssociateBackupVaultMpaApprovalTeamInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsAssociateBackupVaultMpaApprovalTeamInput(v *AssociateBackupVaultMpaApprovalTeamInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")}
+ }
+ if v.BackupVaultName != nil {
+ if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentAssociateBackupVaultMpaApprovalTeamInput(v *AssociateBackupVaultMpaApprovalTeamInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.MpaApprovalTeamArn != nil {
+ ok := object.Key("MpaApprovalTeamArn")
+ ok.String(*v.MpaApprovalTeamArn)
+ }
+
+ if v.RequesterComment != nil {
+ ok := object.Key("RequesterComment")
+ ok.String(*v.RequesterComment)
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpCancelLegalHold struct {
}
@@ -830,6 +929,109 @@ func awsRestjson1_serializeOpDocumentCreateReportPlanInput(v *CreateReportPlanIn
return nil
}
+type awsRestjson1_serializeOpCreateRestoreAccessBackupVault struct {
+}
+
+func (*awsRestjson1_serializeOpCreateRestoreAccessBackupVault) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateRestoreAccessBackupVault) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateRestoreAccessBackupVaultInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/restore-access-backup-vaults")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "PUT"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateRestoreAccessBackupVaultInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateRestoreAccessBackupVaultInput(v *CreateRestoreAccessBackupVaultInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateRestoreAccessBackupVaultInput(v *CreateRestoreAccessBackupVaultInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.BackupVaultName != nil {
+ ok := object.Key("BackupVaultName")
+ ok.String(*v.BackupVaultName)
+ }
+
+ if v.BackupVaultTags != nil {
+ ok := object.Key("BackupVaultTags")
+ if err := awsRestjson1_serializeDocumentTags(v.BackupVaultTags, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.CreatorRequestId != nil {
+ ok := object.Key("CreatorRequestId")
+ ok.String(*v.CreatorRequestId)
+ }
+
+ if v.RequesterComment != nil {
+ ok := object.Key("RequesterComment")
+ ok.String(*v.RequesterComment)
+ }
+
+ if v.SourceBackupVaultArn != nil {
+ ok := object.Key("SourceBackupVaultArn")
+ ok.String(*v.SourceBackupVaultArn)
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpCreateRestoreTestingPlan struct {
}
@@ -2606,6 +2808,100 @@ func awsRestjson1_serializeOpHttpBindingsDescribeRestoreJobInput(v *DescribeRest
return nil
}
+type awsRestjson1_serializeOpDisassociateBackupVaultMpaApprovalTeam struct {
+}
+
+func (*awsRestjson1_serializeOpDisassociateBackupVaultMpaApprovalTeam) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDisassociateBackupVaultMpaApprovalTeam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DisassociateBackupVaultMpaApprovalTeamInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/backup-vaults/{BackupVaultName}/mpaApprovalTeam?delete")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDisassociateBackupVaultMpaApprovalTeamInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentDisassociateBackupVaultMpaApprovalTeamInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDisassociateBackupVaultMpaApprovalTeamInput(v *DisassociateBackupVaultMpaApprovalTeamInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")}
+ }
+ if v.BackupVaultName != nil {
+ if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentDisassociateBackupVaultMpaApprovalTeamInput(v *DisassociateBackupVaultMpaApprovalTeamInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.RequesterComment != nil {
+ ok := object.Key("RequesterComment")
+ ok.String(*v.RequesterComment)
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpDisassociateRecoveryPoint struct {
}
@@ -5471,6 +5767,85 @@ func awsRestjson1_serializeOpHttpBindingsListReportPlansInput(v *ListReportPlans
return nil
}
+type awsRestjson1_serializeOpListRestoreAccessBackupVaults struct {
+}
+
+func (*awsRestjson1_serializeOpListRestoreAccessBackupVaults) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListRestoreAccessBackupVaults) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListRestoreAccessBackupVaultsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/logically-air-gapped-backup-vaults/{BackupVaultName}/restore-access-backup-vaults")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListRestoreAccessBackupVaultsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListRestoreAccessBackupVaultsInput(v *ListRestoreAccessBackupVaultsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")}
+ }
+ if v.BackupVaultName != nil {
+ if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil {
+ return err
+ }
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("maxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("nextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpListRestoreJobs struct {
}
@@ -6376,6 +6751,90 @@ func awsRestjson1_serializeOpDocumentPutRestoreValidationResultInput(v *PutResto
return nil
}
+type awsRestjson1_serializeOpRevokeRestoreAccessBackupVault struct {
+}
+
+func (*awsRestjson1_serializeOpRevokeRestoreAccessBackupVault) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpRevokeRestoreAccessBackupVault) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*RevokeRestoreAccessBackupVaultInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/logically-air-gapped-backup-vaults/{BackupVaultName}/restore-access-backup-vaults/{RestoreAccessBackupVaultArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsRevokeRestoreAccessBackupVaultInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsRevokeRestoreAccessBackupVaultInput(v *RevokeRestoreAccessBackupVaultInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.BackupVaultName == nil || len(*v.BackupVaultName) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member BackupVaultName must not be empty")}
+ }
+ if v.BackupVaultName != nil {
+ if err := encoder.SetURI("BackupVaultName").String(*v.BackupVaultName); err != nil {
+ return err
+ }
+ }
+
+ if v.RequesterComment != nil {
+ encoder.SetQuery("requesterComment").String(*v.RequesterComment)
+ }
+
+ if v.RestoreAccessBackupVaultArn == nil || len(*v.RestoreAccessBackupVaultArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member RestoreAccessBackupVaultArn must not be empty")}
+ }
+ if v.RestoreAccessBackupVaultArn != nil {
+ if err := encoder.SetURI("RestoreAccessBackupVaultArn").String(*v.RestoreAccessBackupVaultArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpStartBackupJob struct {
}
diff --git a/service/backup/snapshot/api_op_AssociateBackupVaultMpaApprovalTeam.go.snap b/service/backup/snapshot/api_op_AssociateBackupVaultMpaApprovalTeam.go.snap
new file mode 100644
index 00000000000..ba824b911b4
--- /dev/null
+++ b/service/backup/snapshot/api_op_AssociateBackupVaultMpaApprovalTeam.go.snap
@@ -0,0 +1,42 @@
+AssociateBackupVaultMpaApprovalTeam
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/backup/snapshot/api_op_CreateBackupPlan.go.snap b/service/backup/snapshot/api_op_CreateBackupPlan.go.snap
index 5531a8fe470..aaf6418a114 100644
--- a/service/backup/snapshot/api_op_CreateBackupPlan.go.snap
+++ b/service/backup/snapshot/api_op_CreateBackupPlan.go.snap
@@ -2,6 +2,7 @@ CreateBackupPlan
Initialize stack step
spanInitializeStart
RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
legacyEndpointContextSetter
SetLogger
OperationInputValidation
diff --git a/service/backup/snapshot/api_op_CreateBackupSelection.go.snap b/service/backup/snapshot/api_op_CreateBackupSelection.go.snap
index dbb12389da0..f1a88f6ac00 100644
--- a/service/backup/snapshot/api_op_CreateBackupSelection.go.snap
+++ b/service/backup/snapshot/api_op_CreateBackupSelection.go.snap
@@ -2,6 +2,7 @@ CreateBackupSelection
Initialize stack step
spanInitializeStart
RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
legacyEndpointContextSetter
SetLogger
OperationInputValidation
diff --git a/service/backup/snapshot/api_op_CreateBackupVault.go.snap b/service/backup/snapshot/api_op_CreateBackupVault.go.snap
index cdb71174c1c..5fe7bed3a4c 100644
--- a/service/backup/snapshot/api_op_CreateBackupVault.go.snap
+++ b/service/backup/snapshot/api_op_CreateBackupVault.go.snap
@@ -2,6 +2,7 @@ CreateBackupVault
Initialize stack step
spanInitializeStart
RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
legacyEndpointContextSetter
SetLogger
OperationInputValidation
diff --git a/service/backup/snapshot/api_op_CreateLegalHold.go.snap b/service/backup/snapshot/api_op_CreateLegalHold.go.snap
index 25a4847fa41..62e9bc568de 100644
--- a/service/backup/snapshot/api_op_CreateLegalHold.go.snap
+++ b/service/backup/snapshot/api_op_CreateLegalHold.go.snap
@@ -2,6 +2,7 @@ CreateLegalHold
Initialize stack step
spanInitializeStart
RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
legacyEndpointContextSetter
SetLogger
OperationInputValidation
diff --git a/service/backup/snapshot/api_op_CreateLogicallyAirGappedBackupVault.go.snap b/service/backup/snapshot/api_op_CreateLogicallyAirGappedBackupVault.go.snap
index ee23a9bc154..b6ee6581235 100644
--- a/service/backup/snapshot/api_op_CreateLogicallyAirGappedBackupVault.go.snap
+++ b/service/backup/snapshot/api_op_CreateLogicallyAirGappedBackupVault.go.snap
@@ -2,6 +2,7 @@ CreateLogicallyAirGappedBackupVault
Initialize stack step
spanInitializeStart
RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
legacyEndpointContextSetter
SetLogger
OperationInputValidation
diff --git a/service/backup/snapshot/api_op_CreateRestoreAccessBackupVault.go.snap b/service/backup/snapshot/api_op_CreateRestoreAccessBackupVault.go.snap
new file mode 100644
index 00000000000..47d5073e11a
--- /dev/null
+++ b/service/backup/snapshot/api_op_CreateRestoreAccessBackupVault.go.snap
@@ -0,0 +1,43 @@
+CreateRestoreAccessBackupVault
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/backup/snapshot/api_op_DisassociateBackupVaultMpaApprovalTeam.go.snap b/service/backup/snapshot/api_op_DisassociateBackupVaultMpaApprovalTeam.go.snap
new file mode 100644
index 00000000000..d141e88e783
--- /dev/null
+++ b/service/backup/snapshot/api_op_DisassociateBackupVaultMpaApprovalTeam.go.snap
@@ -0,0 +1,42 @@
+DisassociateBackupVaultMpaApprovalTeam
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/backup/snapshot/api_op_ListRestoreAccessBackupVaults.go.snap b/service/backup/snapshot/api_op_ListRestoreAccessBackupVaults.go.snap
new file mode 100644
index 00000000000..4f86b249259
--- /dev/null
+++ b/service/backup/snapshot/api_op_ListRestoreAccessBackupVaults.go.snap
@@ -0,0 +1,42 @@
+ListRestoreAccessBackupVaults
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/backup/snapshot/api_op_RevokeRestoreAccessBackupVault.go.snap b/service/backup/snapshot/api_op_RevokeRestoreAccessBackupVault.go.snap
new file mode 100644
index 00000000000..426be365b34
--- /dev/null
+++ b/service/backup/snapshot/api_op_RevokeRestoreAccessBackupVault.go.snap
@@ -0,0 +1,42 @@
+RevokeRestoreAccessBackupVault
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/backup/snapshot/api_op_StartBackupJob.go.snap b/service/backup/snapshot/api_op_StartBackupJob.go.snap
index 35ee8516475..23da3a79503 100644
--- a/service/backup/snapshot/api_op_StartBackupJob.go.snap
+++ b/service/backup/snapshot/api_op_StartBackupJob.go.snap
@@ -2,6 +2,7 @@ StartBackupJob
Initialize stack step
spanInitializeStart
RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
legacyEndpointContextSetter
SetLogger
OperationInputValidation
diff --git a/service/backup/snapshot/api_op_StartCopyJob.go.snap b/service/backup/snapshot/api_op_StartCopyJob.go.snap
index c94fabedb18..59db9b81d5b 100644
--- a/service/backup/snapshot/api_op_StartCopyJob.go.snap
+++ b/service/backup/snapshot/api_op_StartCopyJob.go.snap
@@ -2,6 +2,7 @@ StartCopyJob
Initialize stack step
spanInitializeStart
RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
legacyEndpointContextSetter
SetLogger
OperationInputValidation
diff --git a/service/backup/snapshot/api_op_StartRestoreJob.go.snap b/service/backup/snapshot/api_op_StartRestoreJob.go.snap
index eb828c2b12a..45810278bfb 100644
--- a/service/backup/snapshot/api_op_StartRestoreJob.go.snap
+++ b/service/backup/snapshot/api_op_StartRestoreJob.go.snap
@@ -2,6 +2,7 @@ StartRestoreJob
Initialize stack step
spanInitializeStart
RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
legacyEndpointContextSetter
SetLogger
OperationInputValidation
diff --git a/service/backup/snapshot_test.go b/service/backup/snapshot_test.go
index 8be0eb63751..a80916f5dee 100644
--- a/service/backup/snapshot_test.go
+++ b/service/backup/snapshot_test.go
@@ -62,6 +62,18 @@ func testSnapshot(stack *middleware.Stack, operation string) error {
}
return snapshotOK{}
}
+func TestCheckSnapshot_AssociateBackupVaultMpaApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.AssociateBackupVaultMpaApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "AssociateBackupVaultMpaApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_CancelLegalHold(t *testing.T) {
svc := New(Options{})
_, err := svc.CancelLegalHold(context.Background(), nil, func(o *Options) {
@@ -158,6 +170,18 @@ func TestCheckSnapshot_CreateReportPlan(t *testing.T) {
}
}
+func TestCheckSnapshot_CreateRestoreAccessBackupVault(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateRestoreAccessBackupVault(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateRestoreAccessBackupVault")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_CreateRestoreTestingPlan(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateRestoreTestingPlan(context.Background(), nil, func(o *Options) {
@@ -446,6 +470,18 @@ func TestCheckSnapshot_DescribeRestoreJob(t *testing.T) {
}
}
+func TestCheckSnapshot_DisassociateBackupVaultMpaApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DisassociateBackupVaultMpaApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DisassociateBackupVaultMpaApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DisassociateRecoveryPoint(t *testing.T) {
svc := New(Options{})
_, err := svc.DisassociateRecoveryPoint(context.Background(), nil, func(o *Options) {
@@ -878,6 +914,18 @@ func TestCheckSnapshot_ListReportPlans(t *testing.T) {
}
}
+func TestCheckSnapshot_ListRestoreAccessBackupVaults(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListRestoreAccessBackupVaults(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListRestoreAccessBackupVaults")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_ListRestoreJobs(t *testing.T) {
svc := New(Options{})
_, err := svc.ListRestoreJobs(context.Background(), nil, func(o *Options) {
@@ -998,6 +1046,18 @@ func TestCheckSnapshot_PutRestoreValidationResult(t *testing.T) {
}
}
+func TestCheckSnapshot_RevokeRestoreAccessBackupVault(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.RevokeRestoreAccessBackupVault(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "RevokeRestoreAccessBackupVault")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_StartBackupJob(t *testing.T) {
svc := New(Options{})
_, err := svc.StartBackupJob(context.Background(), nil, func(o *Options) {
@@ -1189,6 +1249,18 @@ func TestCheckSnapshot_UpdateRestoreTestingSelection(t *testing.T) {
t.Fatal(err)
}
}
+func TestUpdateSnapshot_AssociateBackupVaultMpaApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.AssociateBackupVaultMpaApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "AssociateBackupVaultMpaApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_CancelLegalHold(t *testing.T) {
svc := New(Options{})
_, err := svc.CancelLegalHold(context.Background(), nil, func(o *Options) {
@@ -1285,6 +1357,18 @@ func TestUpdateSnapshot_CreateReportPlan(t *testing.T) {
}
}
+func TestUpdateSnapshot_CreateRestoreAccessBackupVault(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateRestoreAccessBackupVault(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateRestoreAccessBackupVault")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_CreateRestoreTestingPlan(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateRestoreTestingPlan(context.Background(), nil, func(o *Options) {
@@ -1573,6 +1657,18 @@ func TestUpdateSnapshot_DescribeRestoreJob(t *testing.T) {
}
}
+func TestUpdateSnapshot_DisassociateBackupVaultMpaApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DisassociateBackupVaultMpaApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DisassociateBackupVaultMpaApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DisassociateRecoveryPoint(t *testing.T) {
svc := New(Options{})
_, err := svc.DisassociateRecoveryPoint(context.Background(), nil, func(o *Options) {
@@ -2005,6 +2101,18 @@ func TestUpdateSnapshot_ListReportPlans(t *testing.T) {
}
}
+func TestUpdateSnapshot_ListRestoreAccessBackupVaults(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListRestoreAccessBackupVaults(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListRestoreAccessBackupVaults")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_ListRestoreJobs(t *testing.T) {
svc := New(Options{})
_, err := svc.ListRestoreJobs(context.Background(), nil, func(o *Options) {
@@ -2125,6 +2233,18 @@ func TestUpdateSnapshot_PutRestoreValidationResult(t *testing.T) {
}
}
+func TestUpdateSnapshot_RevokeRestoreAccessBackupVault(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.RevokeRestoreAccessBackupVault(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "RevokeRestoreAccessBackupVault")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_StartBackupJob(t *testing.T) {
svc := New(Options{})
_, err := svc.StartBackupJob(context.Background(), nil, func(o *Options) {
diff --git a/service/backup/sra_operation_order_test.go b/service/backup/sra_operation_order_test.go
index ba7603e9e9a..8b1bd779c24 100644
--- a/service/backup/sra_operation_order_test.go
+++ b/service/backup/sra_operation_order_test.go
@@ -19,6 +19,41 @@ func captureMiddlewareStack(stack *middleware.Stack) func(*middleware.Stack) err
return errTestReturnEarly
}
}
+func TestOpAssociateBackupVaultMpaApprovalTeamSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.AssociateBackupVaultMpaApprovalTeam(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpCancelLegalHoldSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -299,6 +334,41 @@ func TestOpCreateReportPlanSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpCreateRestoreAccessBackupVaultSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateRestoreAccessBackupVault(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpCreateRestoreTestingPlanSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -1139,6 +1209,41 @@ func TestOpDescribeRestoreJobSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpDisassociateBackupVaultMpaApprovalTeamSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DisassociateBackupVaultMpaApprovalTeam(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpDisassociateRecoveryPointSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -2399,6 +2504,41 @@ func TestOpListReportPlansSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpListRestoreAccessBackupVaultsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListRestoreAccessBackupVaults(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpListRestoreJobsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -2749,6 +2889,41 @@ func TestOpPutRestoreValidationResultSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpRevokeRestoreAccessBackupVaultSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.RevokeRestoreAccessBackupVault(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpStartBackupJobSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
diff --git a/service/backup/types/enums.go b/service/backup/types/enums.go
index 467f91badd6..769d5d5ec7e 100644
--- a/service/backup/types/enums.go
+++ b/service/backup/types/enums.go
@@ -114,6 +114,7 @@ const (
BackupVaultEventBackupPlanModified BackupVaultEvent = "BACKUP_PLAN_MODIFIED"
BackupVaultEventS3BackupObjectFailed BackupVaultEvent = "S3_BACKUP_OBJECT_FAILED"
BackupVaultEventS3RestoreObjectFailed BackupVaultEvent = "S3_RESTORE_OBJECT_FAILED"
+ BackupVaultEventContinuousBackupInterrupted BackupVaultEvent = "CONTINUOUS_BACKUP_INTERRUPTED"
BackupVaultEventRecoveryPointIndexCompleted BackupVaultEvent = "RECOVERY_POINT_INDEX_COMPLETED"
BackupVaultEventRecoveryPointIndexDeleted BackupVaultEvent = "RECOVERY_POINT_INDEX_DELETED"
BackupVaultEventRecoveryPointIndexingFailed BackupVaultEvent = "RECOVERY_POINT_INDEXING_FAILED"
@@ -142,6 +143,7 @@ func (BackupVaultEvent) Values() []BackupVaultEvent {
"BACKUP_PLAN_MODIFIED",
"S3_BACKUP_OBJECT_FAILED",
"S3_RESTORE_OBJECT_FAILED",
+ "CONTINUOUS_BACKUP_INTERRUPTED",
"RECOVERY_POINT_INDEX_COMPLETED",
"RECOVERY_POINT_INDEX_DELETED",
"RECOVERY_POINT_INDEXING_FAILED",
@@ -292,6 +294,46 @@ func (LegalHoldStatus) Values() []LegalHoldStatus {
}
}
+type MpaRevokeSessionStatus string
+
+// Enum values for MpaRevokeSessionStatus
+const (
+ MpaRevokeSessionStatusPending MpaRevokeSessionStatus = "PENDING"
+ MpaRevokeSessionStatusFailed MpaRevokeSessionStatus = "FAILED"
+)
+
+// Values returns all known values for MpaRevokeSessionStatus. Note that this can
+// be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (MpaRevokeSessionStatus) Values() []MpaRevokeSessionStatus {
+ return []MpaRevokeSessionStatus{
+ "PENDING",
+ "FAILED",
+ }
+}
+
+type MpaSessionStatus string
+
+// Enum values for MpaSessionStatus
+const (
+ MpaSessionStatusPending MpaSessionStatus = "PENDING"
+ MpaSessionStatusApproved MpaSessionStatus = "APPROVED"
+ MpaSessionStatusFailed MpaSessionStatus = "FAILED"
+)
+
+// Values returns all known values for MpaSessionStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (MpaSessionStatus) Values() []MpaSessionStatus {
+ return []MpaSessionStatus{
+ "PENDING",
+ "APPROVED",
+ "FAILED",
+ }
+}
+
type RecoveryPointStatus string
// Enum values for RecoveryPointStatus
@@ -509,6 +551,7 @@ type VaultType string
const (
VaultTypeBackupVault VaultType = "BACKUP_VAULT"
VaultTypeLogicallyAirGappedBackupVault VaultType = "LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
+ VaultTypeRestoreAccessBackupVault VaultType = "RESTORE_ACCESS_BACKUP_VAULT"
)
// Values returns all known values for VaultType. Note that this can be expanded
@@ -519,5 +562,6 @@ func (VaultType) Values() []VaultType {
return []VaultType{
"BACKUP_VAULT",
"LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
+ "RESTORE_ACCESS_BACKUP_VAULT",
}
}
diff --git a/service/backup/types/types.go b/service/backup/types/types.go
index 38a29209b8b..586a5ee6fde 100644
--- a/service/backup/types/types.go
+++ b/service/backup/types/types.go
@@ -1262,6 +1262,50 @@ type KeyValue struct {
noSmithyDocumentSerde
}
+// Contains information about the latest update to an MPA approval team
+// association.
+type LatestMpaApprovalTeamUpdate struct {
+
+ // The date and time when the MPA approval team update will expire.
+ ExpiryDate *time.Time
+
+ // The date and time when the MPA approval team update was initiated.
+ InitiationDate *time.Time
+
+ // The ARN of the MPA session associated with this update.
+ MpaSessionArn *string
+
+ // The current status of the MPA approval team update.
+ Status MpaSessionStatus
+
+ // A message describing the current status of the MPA approval team update.
+ StatusMessage *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains information about the latest request to revoke access to a backup
+// vault.
+type LatestRevokeRequest struct {
+
+ // The date and time when the revoke request will expire.
+ ExpiryDate *time.Time
+
+ // The date and time when the revoke request was initiated.
+ InitiationDate *time.Time
+
+ // The ARN of the MPA session associated with this revoke request.
+ MpaSessionArn *string
+
+ // The current status of the revoke request.
+ Status MpaRevokeSessionStatus
+
+ // A message describing the current status of the revoke request.
+ StatusMessage *string
+
+ noSmithyDocumentSerde
+}
+
// A legal hold is an administrative tool that helps prevent backups from being
// deleted while under a hold. While the hold is in place, backups under a hold
// cannot be deleted and lifecycle policies that would alter the backup status
@@ -1445,6 +1489,10 @@ type RecoveryPointByBackupVault struct {
// index associated with the recovery point.
IndexStatusMessage *string
+ // The date and time when the backup job that created this recovery point was
+ // initiated, in Unix format and Coordinated Universal Time (UTC).
+ InitiationDate *time.Time
+
// A Boolean value that is returned as TRUE if the specified recovery point is
// encrypted, or FALSE if the recovery point is not encrypted.
IsEncrypted bool
@@ -1816,6 +1864,27 @@ type ReportSetting struct {
noSmithyDocumentSerde
}
+// Contains information about a restore access backup vault.
+type RestoreAccessBackupVaultListMember struct {
+
+ // The date and time when the restore access backup vault was approved.
+ ApprovalDate *time.Time
+
+ // The date and time when the restore access backup vault was created.
+ CreationDate *time.Time
+
+ // Information about the latest request to revoke access to this backup vault.
+ LatestRevokeRequest *LatestRevokeRequest
+
+ // The ARN of the restore access backup vault.
+ RestoreAccessBackupVaultArn *string
+
+ // The current state of the restore access backup vault.
+ VaultState VaultState
+
+ noSmithyDocumentSerde
+}
+
// Contains information about the restore testing plan that Backup used to
// initiate the restore job.
type RestoreJobCreator struct {
diff --git a/service/backup/validators.go b/service/backup/validators.go
index 404262491dd..bf8dd3a1efe 100644
--- a/service/backup/validators.go
+++ b/service/backup/validators.go
@@ -10,6 +10,26 @@ import (
"github.com/aws/smithy-go/middleware"
)
+type validateOpAssociateBackupVaultMpaApprovalTeam struct {
+}
+
+func (*validateOpAssociateBackupVaultMpaApprovalTeam) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpAssociateBackupVaultMpaApprovalTeam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*AssociateBackupVaultMpaApprovalTeamInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpAssociateBackupVaultMpaApprovalTeamInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpCancelLegalHold struct {
}
@@ -170,6 +190,26 @@ func (m *validateOpCreateReportPlan) HandleInitialize(ctx context.Context, in mi
return next.HandleInitialize(ctx, in)
}
+type validateOpCreateRestoreAccessBackupVault struct {
+}
+
+func (*validateOpCreateRestoreAccessBackupVault) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateRestoreAccessBackupVault) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateRestoreAccessBackupVaultInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateRestoreAccessBackupVaultInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpCreateRestoreTestingPlan struct {
}
@@ -610,6 +650,26 @@ func (m *validateOpDescribeRestoreJob) HandleInitialize(ctx context.Context, in
return next.HandleInitialize(ctx, in)
}
+type validateOpDisassociateBackupVaultMpaApprovalTeam struct {
+}
+
+func (*validateOpDisassociateBackupVaultMpaApprovalTeam) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDisassociateBackupVaultMpaApprovalTeam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DisassociateBackupVaultMpaApprovalTeamInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDisassociateBackupVaultMpaApprovalTeamInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpDisassociateRecoveryPointFromParent struct {
}
@@ -1050,6 +1110,26 @@ func (m *validateOpListRecoveryPointsByResource) HandleInitialize(ctx context.Co
return next.HandleInitialize(ctx, in)
}
+type validateOpListRestoreAccessBackupVaults struct {
+}
+
+func (*validateOpListRestoreAccessBackupVaults) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpListRestoreAccessBackupVaults) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*ListRestoreAccessBackupVaultsInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpListRestoreAccessBackupVaultsInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpListRestoreJobsByProtectedResource struct {
}
@@ -1190,6 +1270,26 @@ func (m *validateOpPutRestoreValidationResult) HandleInitialize(ctx context.Cont
return next.HandleInitialize(ctx, in)
}
+type validateOpRevokeRestoreAccessBackupVault struct {
+}
+
+func (*validateOpRevokeRestoreAccessBackupVault) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpRevokeRestoreAccessBackupVault) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*RevokeRestoreAccessBackupVaultInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpRevokeRestoreAccessBackupVaultInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpStartBackupJob struct {
}
@@ -1470,6 +1570,10 @@ func (m *validateOpUpdateRestoreTestingSelection) HandleInitialize(ctx context.C
return next.HandleInitialize(ctx, in)
}
+func addOpAssociateBackupVaultMpaApprovalTeamValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpAssociateBackupVaultMpaApprovalTeam{}, middleware.After)
+}
+
func addOpCancelLegalHoldValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCancelLegalHold{}, middleware.After)
}
@@ -1502,6 +1606,10 @@ func addOpCreateReportPlanValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateReportPlan{}, middleware.After)
}
+func addOpCreateRestoreAccessBackupVaultValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateRestoreAccessBackupVault{}, middleware.After)
+}
+
func addOpCreateRestoreTestingPlanValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateRestoreTestingPlan{}, middleware.After)
}
@@ -1590,6 +1698,10 @@ func addOpDescribeRestoreJobValidationMiddleware(stack *middleware.Stack) error
return stack.Initialize.Add(&validateOpDescribeRestoreJob{}, middleware.After)
}
+func addOpDisassociateBackupVaultMpaApprovalTeamValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDisassociateBackupVaultMpaApprovalTeam{}, middleware.After)
+}
+
func addOpDisassociateRecoveryPointFromParentValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDisassociateRecoveryPointFromParent{}, middleware.After)
}
@@ -1678,6 +1790,10 @@ func addOpListRecoveryPointsByResourceValidationMiddleware(stack *middleware.Sta
return stack.Initialize.Add(&validateOpListRecoveryPointsByResource{}, middleware.After)
}
+func addOpListRestoreAccessBackupVaultsValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpListRestoreAccessBackupVaults{}, middleware.After)
+}
+
func addOpListRestoreJobsByProtectedResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListRestoreJobsByProtectedResource{}, middleware.After)
}
@@ -1706,6 +1822,10 @@ func addOpPutRestoreValidationResultValidationMiddleware(stack *middleware.Stack
return stack.Initialize.Add(&validateOpPutRestoreValidationResult{}, middleware.After)
}
+func addOpRevokeRestoreAccessBackupVaultValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpRevokeRestoreAccessBackupVault{}, middleware.After)
+}
+
func addOpStartBackupJobValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartBackupJob{}, middleware.After)
}
@@ -2135,6 +2255,24 @@ func validateRestoreTestingSelectionForUpdate(v *types.RestoreTestingSelectionFo
}
}
+func validateOpAssociateBackupVaultMpaApprovalTeamInput(v *AssociateBackupVaultMpaApprovalTeamInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AssociateBackupVaultMpaApprovalTeamInput"}
+ if v.BackupVaultName == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("BackupVaultName"))
+ }
+ if v.MpaApprovalTeamArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("MpaApprovalTeamArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpCancelLegalHoldInput(v *CancelLegalHoldInput) error {
if v == nil {
return nil
@@ -2304,6 +2442,21 @@ func validateOpCreateReportPlanInput(v *CreateReportPlanInput) error {
}
}
+func validateOpCreateRestoreAccessBackupVaultInput(v *CreateRestoreAccessBackupVaultInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateRestoreAccessBackupVaultInput"}
+ if v.SourceBackupVaultArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("SourceBackupVaultArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpCreateRestoreTestingPlanInput(v *CreateRestoreTestingPlanInput) error {
if v == nil {
return nil
@@ -2657,6 +2810,21 @@ func validateOpDescribeRestoreJobInput(v *DescribeRestoreJobInput) error {
}
}
+func validateOpDisassociateBackupVaultMpaApprovalTeamInput(v *DisassociateBackupVaultMpaApprovalTeamInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DisassociateBackupVaultMpaApprovalTeamInput"}
+ if v.BackupVaultName == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("BackupVaultName"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpDisassociateRecoveryPointFromParentInput(v *DisassociateRecoveryPointFromParentInput) error {
if v == nil {
return nil
@@ -3008,6 +3176,21 @@ func validateOpListRecoveryPointsByResourceInput(v *ListRecoveryPointsByResource
}
}
+func validateOpListRestoreAccessBackupVaultsInput(v *ListRestoreAccessBackupVaultsInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ListRestoreAccessBackupVaultsInput"}
+ if v.BackupVaultName == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("BackupVaultName"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpListRestoreJobsByProtectedResourceInput(v *ListRestoreJobsByProtectedResourceInput) error {
if v == nil {
return nil
@@ -3122,6 +3305,24 @@ func validateOpPutRestoreValidationResultInput(v *PutRestoreValidationResultInpu
}
}
+func validateOpRevokeRestoreAccessBackupVaultInput(v *RevokeRestoreAccessBackupVaultInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "RevokeRestoreAccessBackupVaultInput"}
+ if v.BackupVaultName == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("BackupVaultName"))
+ }
+ if v.RestoreAccessBackupVaultArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("RestoreAccessBackupVaultArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpStartBackupJobInput(v *StartBackupJobInput) error {
if v == nil {
return nil
diff --git a/service/backupgateway/CHANGELOG.md b/service/backupgateway/CHANGELOG.md
index f1b64846d4b..f4b333bf01a 100644
--- a/service/backupgateway/CHANGELOG.md
+++ b/service/backupgateway/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.21.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.21.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/backupgateway/go.mod b/service/backupgateway/go.mod
index c6612c4242c..134b0d60d2c 100644
--- a/service/backupgateway/go.mod
+++ b/service/backupgateway/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/backupgateway
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/backupgateway/go.sum b/service/backupgateway/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/backupgateway/go.sum
+++ b/service/backupgateway/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/backupgateway/go_module_metadata.go b/service/backupgateway/go_module_metadata.go
index 557f69587ff..418bd187dcc 100644
--- a/service/backupgateway/go_module_metadata.go
+++ b/service/backupgateway/go_module_metadata.go
@@ -3,4 +3,4 @@
package backupgateway
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.21.3"
+const goModuleVersion = "1.21.4"
diff --git a/service/backupsearch/CHANGELOG.md b/service/backupsearch/CHANGELOG.md
index 7e60c04c15d..d92ad3d8b2e 100644
--- a/service/backupsearch/CHANGELOG.md
+++ b/service/backupsearch/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.1.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.1.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/backupsearch/go.mod b/service/backupsearch/go.mod
index e3ab7231ed0..85657ba22b6 100644
--- a/service/backupsearch/go.mod
+++ b/service/backupsearch/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/backupsearch
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/backupsearch/go.sum b/service/backupsearch/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/backupsearch/go.sum
+++ b/service/backupsearch/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/backupsearch/go_module_metadata.go b/service/backupsearch/go_module_metadata.go
index 1f4c1cfe8e9..0464262ef16 100644
--- a/service/backupsearch/go_module_metadata.go
+++ b/service/backupsearch/go_module_metadata.go
@@ -3,4 +3,4 @@
package backupsearch
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.1.3"
+const goModuleVersion = "1.1.4"
diff --git a/service/batch/CHANGELOG.md b/service/batch/CHANGELOG.md
index 2524d5528e0..fd0dc59c74a 100644
--- a/service/batch/CHANGELOG.md
+++ b/service/batch/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.52.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.52.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/batch/go.mod b/service/batch/go.mod
index 4c549feeb29..366ed98b501 100644
--- a/service/batch/go.mod
+++ b/service/batch/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/batch
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/batch/go.sum b/service/batch/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/batch/go.sum
+++ b/service/batch/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/batch/go_module_metadata.go b/service/batch/go_module_metadata.go
index e4e2f328365..a98581d1e4d 100644
--- a/service/batch/go_module_metadata.go
+++ b/service/batch/go_module_metadata.go
@@ -3,4 +3,4 @@
package batch
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.52.5"
+const goModuleVersion = "1.52.6"
diff --git a/service/bcmdataexports/CHANGELOG.md b/service/bcmdataexports/CHANGELOG.md
index d45896bd9a8..f514e4bf3eb 100644
--- a/service/bcmdataexports/CHANGELOG.md
+++ b/service/bcmdataexports/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.8.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.8.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/bcmdataexports/go.mod b/service/bcmdataexports/go.mod
index e5f37b73b27..fe231dc95e4 100644
--- a/service/bcmdataexports/go.mod
+++ b/service/bcmdataexports/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bcmdataexports
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/bcmdataexports/go.sum b/service/bcmdataexports/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/bcmdataexports/go.sum
+++ b/service/bcmdataexports/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/bcmdataexports/go_module_metadata.go b/service/bcmdataexports/go_module_metadata.go
index 34facf571bc..2f727513e91 100644
--- a/service/bcmdataexports/go_module_metadata.go
+++ b/service/bcmdataexports/go_module_metadata.go
@@ -3,4 +3,4 @@
package bcmdataexports
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.8.3"
+const goModuleVersion = "1.8.4"
diff --git a/service/bcmpricingcalculator/CHANGELOG.md b/service/bcmpricingcalculator/CHANGELOG.md
index ff19bb35962..1384b37fe3c 100644
--- a/service/bcmpricingcalculator/CHANGELOG.md
+++ b/service/bcmpricingcalculator/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/bcmpricingcalculator/go.mod b/service/bcmpricingcalculator/go.mod
index f923c156736..877b6387702 100644
--- a/service/bcmpricingcalculator/go.mod
+++ b/service/bcmpricingcalculator/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bcmpricingcalculator
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/bcmpricingcalculator/go.sum b/service/bcmpricingcalculator/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/bcmpricingcalculator/go.sum
+++ b/service/bcmpricingcalculator/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/bcmpricingcalculator/go_module_metadata.go b/service/bcmpricingcalculator/go_module_metadata.go
index f31452016e1..dd0063d36a6 100644
--- a/service/bcmpricingcalculator/go_module_metadata.go
+++ b/service/bcmpricingcalculator/go_module_metadata.go
@@ -3,4 +3,4 @@
package bcmpricingcalculator
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.1"
+const goModuleVersion = "1.5.2"
diff --git a/service/bedrock/CHANGELOG.md b/service/bedrock/CHANGELOG.md
index e0f83331283..1555babe58a 100644
--- a/service/bedrock/CHANGELOG.md
+++ b/service/bedrock/CHANGELOG.md
@@ -1,3 +1,13 @@
+# v1.35.1 (2025-06-17)
+
+* **Documentation**: This release of the SDK has the API and documentation for the createcustommodel API. This feature lets you copy a trained model into Amazon Bedrock for inference.
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.35.0 (2025-06-16)
+
+* **Feature**: This release of the SDK has the API and documentation for the createcustommodel API. This feature lets you copy a Amazon SageMaker trained Amazon Nova model into Amazon Bedrock for inference.
+
# v1.34.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/bedrock/api_op_CreateCustomModel.go b/service/bedrock/api_op_CreateCustomModel.go
new file mode 100644
index 00000000000..a9850363748
--- /dev/null
+++ b/service/bedrock/api_op_CreateCustomModel.go
@@ -0,0 +1,266 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package bedrock
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/bedrock/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Creates a new custom model in Amazon Bedrock. After the model is active, you
+// can use it for inference.
+//
+// To use the model for inference, you must purchase Provisioned Throughput for
+// it. You can't use On-demand inference with these custom models. For more
+// information about Provisioned Throughput, see [Provisioned Throughput].
+//
+// The model appears in ListCustomModels with a customizationType of imported . To
+// track the status of the new model, you use the GetCustomModel API operation.
+// The model can be in the following states:
+//
+// - Creating - Initial state during validation and registration
+//
+// - Active - Model is ready for use in inference
+//
+// - Failed - Creation process encountered an error
+//
+// # Related APIs
+//
+// [GetCustomModel]
+//
+// [ListCustomModels]
+//
+// [DeleteCustomModel]
+//
+// [Provisioned Throughput]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-throughput.html
+// [ListCustomModels]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListCustomModels.html
+// [DeleteCustomModel]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_DeleteCustomModel.html
+// [GetCustomModel]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetCustomModel.html
+func (c *Client) CreateCustomModel(ctx context.Context, params *CreateCustomModelInput, optFns ...func(*Options)) (*CreateCustomModelOutput, error) {
+ if params == nil {
+ params = &CreateCustomModelInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateCustomModel", params, optFns, c.addOperationCreateCustomModelMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateCustomModelOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateCustomModelInput struct {
+
+ // A unique name for the custom model.
+ //
+ // This member is required.
+ ModelName *string
+
+ // The data source for the model. The Amazon S3 URI in the model source must be
+ // for the Amazon-managed Amazon S3 bucket containing your model artifacts.
+ //
+ // This member is required.
+ ModelSourceConfig types.ModelDataSource
+
+ // A unique, case-sensitive identifier to ensure that the API request completes no
+ // more than one time. If this token matches a previous request, Amazon Bedrock
+ // ignores the request, but does not return an error. For more information, see [Ensuring idempotency].
+ //
+ // [Ensuring idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
+ ClientRequestToken *string
+
+ // The Amazon Resource Name (ARN) of the customer managed KMS key to encrypt the
+ // custom model. If you don't provide a KMS key, Amazon Bedrock uses an Amazon Web
+ // Services-managed KMS key to encrypt the model.
+ //
+ // If you provide a customer managed KMS key, your Amazon Bedrock service role
+ // must have permissions to use it. For more information see [Encryption of imported models].
+ //
+ // [Encryption of imported models]: https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-import-model.html
+ ModelKmsKeyArn *string
+
+ // A list of key-value pairs to associate with the custom model resource. You can
+ // use these tags to organize and identify your resources.
+ //
+ // For more information, see [Tagging resources] in the [Amazon Bedrock User Guide].
+ //
+ // [Amazon Bedrock User Guide]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
+ // [Tagging resources]: https://docs.aws.amazon.com/bedrock/latest/userguide/tagging.html
+ ModelTags []types.Tag
+
+ // The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock
+ // assumes to perform tasks on your behalf. This role must have permissions to
+ // access the Amazon S3 bucket containing your model artifacts and the KMS key (if
+ // specified). For more information, see [Setting up an IAM service role for importing models]in the Amazon Bedrock User Guide.
+ //
+ // [Setting up an IAM service role for importing models]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html
+ RoleArn *string
+
+ noSmithyDocumentSerde
+}
+
+type CreateCustomModelOutput struct {
+
+ // The Amazon Resource Name (ARN) of the new custom model.
+ //
+ // This member is required.
+ ModelArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateCustomModelMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCustomModel{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCustomModel{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCustomModel"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opCreateCustomModelMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateCustomModelValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCustomModel(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpCreateCustomModel struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateCustomModel) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateCustomModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateCustomModelInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateCustomModelInput ")
+ }
+
+ if input.ClientRequestToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.ClientRequestToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateCustomModelMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateCustomModel{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opCreateCustomModel(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateCustomModel",
+ }
+}
diff --git a/service/bedrock/api_op_GetCustomModel.go b/service/bedrock/api_op_GetCustomModel.go
index e4b4a439dfe..f1c723979a1 100644
--- a/service/bedrock/api_op_GetCustomModel.go
+++ b/service/bedrock/api_op_GetCustomModel.go
@@ -13,7 +13,7 @@ import (
)
// Get the properties associated with a Amazon Bedrock custom model that you have
-// created.For more information, see [Custom models]in the [Amazon Bedrock User Guide].
+// created. For more information, see [Custom models]in the [Amazon Bedrock User Guide].
//
// [Custom models]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
// [Amazon Bedrock User Guide]: https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html
@@ -44,21 +44,11 @@ type GetCustomModelInput struct {
type GetCustomModelOutput struct {
- // Amazon Resource Name (ARN) of the base model.
- //
- // This member is required.
- BaseModelArn *string
-
// Creation time of the model.
//
// This member is required.
CreationTime *time.Time
- // Job Amazon Resource Name (ARN) associated with this model.
- //
- // This member is required.
- JobArn *string
-
// Amazon Resource Name (ARN) associated with this model.
//
// This member is required.
@@ -69,15 +59,8 @@ type GetCustomModelOutput struct {
// This member is required.
ModelName *string
- // Output data configuration associated with this custom model.
- //
- // This member is required.
- OutputDataConfig *types.OutputDataConfig
-
- // Contains information about the training dataset.
- //
- // This member is required.
- TrainingDataConfig *types.TrainingDataConfig
+ // Amazon Resource Name (ARN) of the base model.
+ BaseModelArn *string
// The customization configuration for the custom model.
CustomizationConfig types.CustomizationConfig
@@ -85,18 +68,44 @@ type GetCustomModelOutput struct {
// The type of model customization.
CustomizationType types.CustomizationType
+ // A failure message for any issues that occurred when creating the custom model.
+ // This is included for only a failed CreateCustomModel operation.
+ FailureMessage *string
+
// Hyperparameter values associated with this model. For details on the format for
// different models, see [Custom model hyperparameters].
//
// [Custom model hyperparameters]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html
HyperParameters map[string]string
+ // Job Amazon Resource Name (ARN) associated with this model. For models that you
+ // create with the [CreateCustomModel]API operation, this is NULL .
+ //
+ // [CreateCustomModel]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateCustomModel.html
+ JobArn *string
+
// Job name associated with this model.
JobName *string
// The custom model is encrypted at rest using this key.
ModelKmsKeyArn *string
+ // The current status of the custom model. Possible values include:
+ //
+ // - Creating - The model is being created and validated.
+ //
+ // - Active - The model has been successfully created and is ready for use.
+ //
+ // - Failed - The model creation process failed. Check the failureMessage field
+ // for details.
+ ModelStatus types.ModelStatus
+
+ // Output data configuration associated with this custom model.
+ OutputDataConfig *types.OutputDataConfig
+
+ // Contains information about the training dataset.
+ TrainingDataConfig *types.TrainingDataConfig
+
// Contains training metrics from the job creation.
TrainingMetrics *types.TrainingMetrics
diff --git a/service/bedrock/api_op_ListCustomModels.go b/service/bedrock/api_op_ListCustomModels.go
index d3f64597d8e..6ec028f58cf 100644
--- a/service/bedrock/api_op_ListCustomModels.go
+++ b/service/bedrock/api_op_ListCustomModels.go
@@ -60,6 +60,19 @@ type ListCustomModelsInput struct {
// results.
MaxResults *int32
+ // The status of them model to filter results by. Possible values include:
+ //
+ // - Creating - Include only models that are currently being created and
+ // validated.
+ //
+ // - Active - Include only models that have been successfully created and are
+ // ready for use.
+ //
+ // - Failed - Include only models where the creation process failed.
+ //
+ // If you don't specify a status, the API returns models in all states.
+ ModelStatus types.ModelStatus
+
// Return custom models only if the job name contains these characters.
NameContains *string
diff --git a/service/bedrock/deserializers.go b/service/bedrock/deserializers.go
index 1fd25a0ff8a..ca0f7fa239b 100644
--- a/service/bedrock/deserializers.go
+++ b/service/bedrock/deserializers.go
@@ -205,6 +205,183 @@ func awsRestjson1_deserializeOpDocumentBatchDeleteEvaluationJobOutput(v **BatchD
return nil
}
+type awsRestjson1_deserializeOpCreateCustomModel struct {
+}
+
+func (*awsRestjson1_deserializeOpCreateCustomModel) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpCreateCustomModel) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateCustomModel(response, &metadata)
+ }
+ output := &CreateCustomModelOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentCreateCustomModelOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorCreateCustomModel(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ServiceQuotaExceededException", errorCode):
+ return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("TooManyTagsException", errorCode):
+ return awsRestjson1_deserializeErrorTooManyTagsException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentCreateCustomModelOutput(v **CreateCustomModelOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *CreateCustomModelOutput
+ if *v == nil {
+ sv = &CreateCustomModelOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "modelArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ModelArn to be of type string, got %T instead", value)
+ }
+ sv.ModelArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
type awsRestjson1_deserializeOpCreateEvaluationJob struct {
}
@@ -3268,6 +3445,15 @@ func awsRestjson1_deserializeOpDocumentGetCustomModelOutput(v **GetCustomModelOu
sv.CustomizationType = types.CustomizationType(jtv)
}
+ case "failureMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value)
+ }
+ sv.FailureMessage = ptr.String(jtv)
+ }
+
case "hyperParameters":
if err := awsRestjson1_deserializeDocumentModelCustomizationHyperParameters(&sv.HyperParameters, value); err != nil {
return err
@@ -3318,6 +3504,15 @@ func awsRestjson1_deserializeOpDocumentGetCustomModelOutput(v **GetCustomModelOu
sv.ModelName = ptr.String(jtv)
}
+ case "modelStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ModelStatus to be of type string, got %T instead", value)
+ }
+ sv.ModelStatus = types.ModelStatus(jtv)
+ }
+
case "outputDataConfig":
if err := awsRestjson1_deserializeDocumentOutputDataConfig(&sv.OutputDataConfig, value); err != nil {
return err
@@ -11512,6 +11707,15 @@ func awsRestjson1_deserializeDocumentCustomModelSummary(v **types.CustomModelSum
sv.ModelName = ptr.String(jtv)
}
+ case "modelStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ModelStatus to be of type string, got %T instead", value)
+ }
+ sv.ModelStatus = types.ModelStatus(jtv)
+ }
+
case "ownerAccountId":
if value != nil {
jtv, ok := value.(string)
diff --git a/service/bedrock/generated.json b/service/bedrock/generated.json
index d74f6d99162..d57989a6a48 100644
--- a/service/bedrock/generated.json
+++ b/service/bedrock/generated.json
@@ -9,6 +9,7 @@
"api_client.go",
"api_client_test.go",
"api_op_BatchDeleteEvaluationJob.go",
+ "api_op_CreateCustomModel.go",
"api_op_CreateEvaluationJob.go",
"api_op_CreateGuardrail.go",
"api_op_CreateGuardrailVersion.go",
diff --git a/service/bedrock/go.mod b/service/bedrock/go.mod
index 55ea8155ffb..49be1e4b3ce 100644
--- a/service/bedrock/go.mod
+++ b/service/bedrock/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bedrock
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/bedrock/go.sum b/service/bedrock/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/bedrock/go.sum
+++ b/service/bedrock/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/bedrock/go_module_metadata.go b/service/bedrock/go_module_metadata.go
index c5294e2309c..ffa0a0cd9ee 100644
--- a/service/bedrock/go_module_metadata.go
+++ b/service/bedrock/go_module_metadata.go
@@ -3,4 +3,4 @@
package bedrock
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.1"
+const goModuleVersion = "1.35.1"
diff --git a/service/bedrock/serializers.go b/service/bedrock/serializers.go
index 8bdc046cd4d..4afbb7acf3b 100644
--- a/service/bedrock/serializers.go
+++ b/service/bedrock/serializers.go
@@ -102,6 +102,116 @@ func awsRestjson1_serializeOpDocumentBatchDeleteEvaluationJobInput(v *BatchDelet
return nil
}
+type awsRestjson1_serializeOpCreateCustomModel struct {
+}
+
+func (*awsRestjson1_serializeOpCreateCustomModel) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateCustomModel) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateCustomModelInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/custom-models/create-custom-model")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateCustomModelInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateCustomModelInput(v *CreateCustomModelInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateCustomModelInput(v *CreateCustomModelInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ClientRequestToken != nil {
+ ok := object.Key("clientRequestToken")
+ ok.String(*v.ClientRequestToken)
+ }
+
+ if v.ModelKmsKeyArn != nil {
+ ok := object.Key("modelKmsKeyArn")
+ ok.String(*v.ModelKmsKeyArn)
+ }
+
+ if v.ModelName != nil {
+ ok := object.Key("modelName")
+ ok.String(*v.ModelName)
+ }
+
+ if v.ModelSourceConfig != nil {
+ ok := object.Key("modelSourceConfig")
+ if err := awsRestjson1_serializeDocumentModelDataSource(v.ModelSourceConfig, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ModelTags != nil {
+ ok := object.Key("modelTags")
+ if err := awsRestjson1_serializeDocumentTagList(v.ModelTags, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.RoleArn != nil {
+ ok := object.Key("roleArn")
+ ok.String(*v.RoleArn)
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpCreateEvaluationJob struct {
}
@@ -3158,6 +3268,10 @@ func awsRestjson1_serializeOpHttpBindingsListCustomModelsInput(v *ListCustomMode
encoder.SetQuery("maxResults").Integer(*v.MaxResults)
}
+ if len(v.ModelStatus) > 0 {
+ encoder.SetQuery("modelStatus").String(string(v.ModelStatus))
+ }
+
if v.NameContains != nil {
encoder.SetQuery("nameContains").String(*v.NameContains)
}
diff --git a/service/bedrock/snapshot/api_op_CreateCustomModel.go.snap b/service/bedrock/snapshot/api_op_CreateCustomModel.go.snap
new file mode 100644
index 00000000000..bc7260a0245
--- /dev/null
+++ b/service/bedrock/snapshot/api_op_CreateCustomModel.go.snap
@@ -0,0 +1,43 @@
+CreateCustomModel
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/bedrock/snapshot_test.go b/service/bedrock/snapshot_test.go
index c0f25d34e56..53abc99abee 100644
--- a/service/bedrock/snapshot_test.go
+++ b/service/bedrock/snapshot_test.go
@@ -74,6 +74,18 @@ func TestCheckSnapshot_BatchDeleteEvaluationJob(t *testing.T) {
}
}
+func TestCheckSnapshot_CreateCustomModel(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateCustomModel(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateCustomModel")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_CreateEvaluationJob(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateEvaluationJob(context.Background(), nil, func(o *Options) {
@@ -781,6 +793,18 @@ func TestUpdateSnapshot_BatchDeleteEvaluationJob(t *testing.T) {
}
}
+func TestUpdateSnapshot_CreateCustomModel(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateCustomModel(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateCustomModel")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_CreateEvaluationJob(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateEvaluationJob(context.Background(), nil, func(o *Options) {
diff --git a/service/bedrock/sra_operation_order_test.go b/service/bedrock/sra_operation_order_test.go
index 3d930980af8..d0d264474be 100644
--- a/service/bedrock/sra_operation_order_test.go
+++ b/service/bedrock/sra_operation_order_test.go
@@ -54,6 +54,41 @@ func TestOpBatchDeleteEvaluationJobSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpCreateCustomModelSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateCustomModel(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpCreateEvaluationJobSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
diff --git a/service/bedrock/types/enums.go b/service/bedrock/types/enums.go
index 1685df2eed5..146027c89f7 100644
--- a/service/bedrock/types/enums.go
+++ b/service/bedrock/types/enums.go
@@ -47,6 +47,7 @@ const (
CustomizationTypeFineTuning CustomizationType = "FINE_TUNING"
CustomizationTypeContinuedPreTraining CustomizationType = "CONTINUED_PRE_TRAINING"
CustomizationTypeDistillation CustomizationType = "DISTILLATION"
+ CustomizationTypeImported CustomizationType = "IMPORTED"
)
// Values returns all known values for CustomizationType. Note that this can be
@@ -58,6 +59,7 @@ func (CustomizationType) Values() []CustomizationType {
"FINE_TUNING",
"CONTINUED_PRE_TRAINING",
"DISTILLATION",
+ "IMPORTED",
}
}
@@ -749,6 +751,27 @@ func (ModelModality) Values() []ModelModality {
}
}
+type ModelStatus string
+
+// Enum values for ModelStatus
+const (
+ ModelStatusActive ModelStatus = "Active"
+ ModelStatusCreating ModelStatus = "Creating"
+ ModelStatusFailed ModelStatus = "Failed"
+)
+
+// Values returns all known values for ModelStatus. Note that this can be expanded
+// in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ModelStatus) Values() []ModelStatus {
+ return []ModelStatus{
+ "Active",
+ "Creating",
+ "Failed",
+ }
+}
+
type PerformanceConfigLatency string
// Enum values for PerformanceConfigLatency
diff --git a/service/bedrock/types/types.go b/service/bedrock/types/types.go
index b5205874959..4bd905c0556 100644
--- a/service/bedrock/types/types.go
+++ b/service/bedrock/types/types.go
@@ -281,6 +281,15 @@ type CustomModelSummary struct {
// [Custom models]: https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
CustomizationType CustomizationType
+ // The current status of the custom model. Possible values include:
+ //
+ // - Creating - The model is being created and validated.
+ //
+ // - Active - The model has been successfully created and is ready for use.
+ //
+ // - Failed - The model creation process failed.
+ ModelStatus ModelStatus
+
// The unique identifier of the account that owns the model.
OwnerAccountId *string
@@ -2648,7 +2657,7 @@ type ModelCustomizationJobSummary struct {
noSmithyDocumentSerde
}
-// Data source for the imported model.
+// The data source of the model to import.
//
// The following types satisfy this interface:
//
@@ -2657,7 +2666,7 @@ type ModelDataSource interface {
isModelDataSource()
}
-// The Amazon S3 data source of the imported model.
+// The Amazon S3 data source of the model to import.
type ModelDataSourceMemberS3DataSource struct {
Value S3DataSource
@@ -3507,7 +3516,7 @@ type S3Config struct {
noSmithyDocumentSerde
}
-// The Amazon S3 data source of the imported job.
+// The Amazon S3 data source of the model to import.
type S3DataSource struct {
// The URI of the Amazon S3 data source.
diff --git a/service/bedrock/validators.go b/service/bedrock/validators.go
index c1ab22b45db..6e665d3b77b 100644
--- a/service/bedrock/validators.go
+++ b/service/bedrock/validators.go
@@ -30,6 +30,26 @@ func (m *validateOpBatchDeleteEvaluationJob) HandleInitialize(ctx context.Contex
return next.HandleInitialize(ctx, in)
}
+type validateOpCreateCustomModel struct {
+}
+
+func (*validateOpCreateCustomModel) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateCustomModel) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateCustomModelInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateCustomModelInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpCreateEvaluationJob struct {
}
@@ -894,6 +914,10 @@ func addOpBatchDeleteEvaluationJobValidationMiddleware(stack *middleware.Stack)
return stack.Initialize.Add(&validateOpBatchDeleteEvaluationJob{}, middleware.After)
}
+func addOpCreateCustomModelValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateCustomModel{}, middleware.After)
+}
+
func addOpCreateEvaluationJobValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateEvaluationJob{}, middleware.After)
}
@@ -2964,6 +2988,33 @@ func validateOpBatchDeleteEvaluationJobInput(v *BatchDeleteEvaluationJobInput) e
}
}
+func validateOpCreateCustomModelInput(v *CreateCustomModelInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateCustomModelInput"}
+ if v.ModelName == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ModelName"))
+ }
+ if v.ModelSourceConfig == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ModelSourceConfig"))
+ } else if v.ModelSourceConfig != nil {
+ if err := validateModelDataSource(v.ModelSourceConfig); err != nil {
+ invalidParams.AddNested("ModelSourceConfig", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.ModelTags != nil {
+ if err := validateTagList(v.ModelTags); err != nil {
+ invalidParams.AddNested("ModelTags", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpCreateEvaluationJobInput(v *CreateEvaluationJobInput) error {
if v == nil {
return nil
diff --git a/service/bedrockagent/CHANGELOG.md b/service/bedrockagent/CHANGELOG.md
index adc4c5b663a..5d4c084977b 100644
--- a/service/bedrockagent/CHANGELOG.md
+++ b/service/bedrockagent/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.44.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.44.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/bedrockagent/go.mod b/service/bedrockagent/go.mod
index 3d6bdb24963..023811da314 100644
--- a/service/bedrockagent/go.mod
+++ b/service/bedrockagent/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockagent
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/bedrockagent/go.sum b/service/bedrockagent/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/bedrockagent/go.sum
+++ b/service/bedrockagent/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/bedrockagent/go_module_metadata.go b/service/bedrockagent/go_module_metadata.go
index 0b01516aa82..9862bf71c69 100644
--- a/service/bedrockagent/go_module_metadata.go
+++ b/service/bedrockagent/go_module_metadata.go
@@ -3,4 +3,4 @@
package bedrockagent
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.44.1"
+const goModuleVersion = "1.44.2"
diff --git a/service/bedrockagentruntime/CHANGELOG.md b/service/bedrockagentruntime/CHANGELOG.md
index bbc8b54c5c7..6b7603e4685 100644
--- a/service/bedrockagentruntime/CHANGELOG.md
+++ b/service/bedrockagentruntime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.45.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.45.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/bedrockagentruntime/go.mod b/service/bedrockagentruntime/go.mod
index b743d9d6ece..e718b3849bd 100644
--- a/service/bedrockagentruntime/go.mod
+++ b/service/bedrockagentruntime/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockagentruntime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/bedrockagentruntime/go.sum b/service/bedrockagentruntime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/bedrockagentruntime/go.sum
+++ b/service/bedrockagentruntime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/bedrockagentruntime/go_module_metadata.go b/service/bedrockagentruntime/go_module_metadata.go
index ba824a7eab2..f9d7533fdee 100644
--- a/service/bedrockagentruntime/go_module_metadata.go
+++ b/service/bedrockagentruntime/go_module_metadata.go
@@ -3,4 +3,4 @@
package bedrockagentruntime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.45.1"
+const goModuleVersion = "1.45.2"
diff --git a/service/bedrockdataautomation/CHANGELOG.md b/service/bedrockdataautomation/CHANGELOG.md
index 47e773508cf..75b5b7e00a1 100644
--- a/service/bedrockdataautomation/CHANGELOG.md
+++ b/service/bedrockdataautomation/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/bedrockdataautomation/go.mod b/service/bedrockdataautomation/go.mod
index 88d48735e58..6fb5f7986a8 100644
--- a/service/bedrockdataautomation/go.mod
+++ b/service/bedrockdataautomation/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockdataautomation
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/bedrockdataautomation/go.sum b/service/bedrockdataautomation/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/bedrockdataautomation/go.sum
+++ b/service/bedrockdataautomation/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/bedrockdataautomation/go_module_metadata.go b/service/bedrockdataautomation/go_module_metadata.go
index ce596447cfc..8791e9c10c8 100644
--- a/service/bedrockdataautomation/go_module_metadata.go
+++ b/service/bedrockdataautomation/go_module_metadata.go
@@ -3,4 +3,4 @@
package bedrockdataautomation
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.1"
+const goModuleVersion = "1.5.2"
diff --git a/service/bedrockdataautomationruntime/CHANGELOG.md b/service/bedrockdataautomationruntime/CHANGELOG.md
index 58a2ec6ec35..7c5c2be24be 100644
--- a/service/bedrockdataautomationruntime/CHANGELOG.md
+++ b/service/bedrockdataautomationruntime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.3.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.3.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/bedrockdataautomationruntime/go.mod b/service/bedrockdataautomationruntime/go.mod
index 7e7982abe4c..49ccf976f17 100644
--- a/service/bedrockdataautomationruntime/go.mod
+++ b/service/bedrockdataautomationruntime/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockdataautomationruntime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/bedrockdataautomationruntime/go.sum b/service/bedrockdataautomationruntime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/bedrockdataautomationruntime/go.sum
+++ b/service/bedrockdataautomationruntime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/bedrockdataautomationruntime/go_module_metadata.go b/service/bedrockdataautomationruntime/go_module_metadata.go
index 9f4f6dda728..61b1304fe46 100644
--- a/service/bedrockdataautomationruntime/go_module_metadata.go
+++ b/service/bedrockdataautomationruntime/go_module_metadata.go
@@ -3,4 +3,4 @@
package bedrockdataautomationruntime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.3.1"
+const goModuleVersion = "1.3.2"
diff --git a/service/bedrockruntime/CHANGELOG.md b/service/bedrockruntime/CHANGELOG.md
index bc8bcf95b12..6107fe7c857 100644
--- a/service/bedrockruntime/CHANGELOG.md
+++ b/service/bedrockruntime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/bedrockruntime/go.mod b/service/bedrockruntime/go.mod
index 4f66d88d46f..403c43e5899 100644
--- a/service/bedrockruntime/go.mod
+++ b/service/bedrockruntime/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockruntime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/bedrockruntime/go.sum b/service/bedrockruntime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/bedrockruntime/go.sum
+++ b/service/bedrockruntime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/bedrockruntime/go_module_metadata.go b/service/bedrockruntime/go_module_metadata.go
index acf59b886f9..2361dbd07a1 100644
--- a/service/bedrockruntime/go_module_metadata.go
+++ b/service/bedrockruntime/go_module_metadata.go
@@ -3,4 +3,4 @@
package bedrockruntime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.1"
+const goModuleVersion = "1.30.2"
diff --git a/service/billing/CHANGELOG.md b/service/billing/CHANGELOG.md
index 6ef4c422acb..0281088b99c 100644
--- a/service/billing/CHANGELOG.md
+++ b/service/billing/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.2.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.2.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/billing/go.mod b/service/billing/go.mod
index 2d5bb16c1f8..80b6fd160a0 100644
--- a/service/billing/go.mod
+++ b/service/billing/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/billing
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/billing/go.sum b/service/billing/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/billing/go.sum
+++ b/service/billing/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/billing/go_module_metadata.go b/service/billing/go_module_metadata.go
index 9d3d7162957..2eca91bac33 100644
--- a/service/billing/go_module_metadata.go
+++ b/service/billing/go_module_metadata.go
@@ -3,4 +3,4 @@
package billing
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.3"
+const goModuleVersion = "1.2.4"
diff --git a/service/billingconductor/CHANGELOG.md b/service/billingconductor/CHANGELOG.md
index e4b97c89685..9072eb946a1 100644
--- a/service/billingconductor/CHANGELOG.md
+++ b/service/billingconductor/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.21.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.21.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/billingconductor/go.mod b/service/billingconductor/go.mod
index fcf8ad1e786..837aa01c395 100644
--- a/service/billingconductor/go.mod
+++ b/service/billingconductor/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/billingconductor
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/billingconductor/go.sum b/service/billingconductor/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/billingconductor/go.sum
+++ b/service/billingconductor/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/billingconductor/go_module_metadata.go b/service/billingconductor/go_module_metadata.go
index 5de6ab51a6f..1574088a470 100644
--- a/service/billingconductor/go_module_metadata.go
+++ b/service/billingconductor/go_module_metadata.go
@@ -3,4 +3,4 @@
package billingconductor
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.21.3"
+const goModuleVersion = "1.21.4"
diff --git a/service/braket/CHANGELOG.md b/service/braket/CHANGELOG.md
index da3336e9fd8..1101a479db4 100644
--- a/service/braket/CHANGELOG.md
+++ b/service/braket/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.32.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.32.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/braket/go.mod b/service/braket/go.mod
index e6399f019f3..52da9b5c041 100644
--- a/service/braket/go.mod
+++ b/service/braket/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/braket
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/braket/go.sum b/service/braket/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/braket/go.sum
+++ b/service/braket/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/braket/go_module_metadata.go b/service/braket/go_module_metadata.go
index e49704c6274..97d7ef0a30e 100644
--- a/service/braket/go_module_metadata.go
+++ b/service/braket/go_module_metadata.go
@@ -3,4 +3,4 @@
package braket
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.32.3"
+const goModuleVersion = "1.32.4"
diff --git a/service/budgets/CHANGELOG.md b/service/budgets/CHANGELOG.md
index bfe6f4909fa..9d678cffa5b 100644
--- a/service/budgets/CHANGELOG.md
+++ b/service/budgets/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/budgets/go.mod b/service/budgets/go.mod
index 53734f20227..92e46d65302 100644
--- a/service/budgets/go.mod
+++ b/service/budgets/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/budgets
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/budgets/go.sum b/service/budgets/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/budgets/go.sum
+++ b/service/budgets/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/budgets/go_module_metadata.go b/service/budgets/go_module_metadata.go
index 64681335fec..941775e66c7 100644
--- a/service/budgets/go_module_metadata.go
+++ b/service/budgets/go_module_metadata.go
@@ -3,4 +3,4 @@
package budgets
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.1"
+const goModuleVersion = "1.31.2"
diff --git a/service/chatbot/CHANGELOG.md b/service/chatbot/CHANGELOG.md
index 786fafb54c0..b30b8059a48 100644
--- a/service/chatbot/CHANGELOG.md
+++ b/service/chatbot/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.10.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.10.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/chatbot/go.mod b/service/chatbot/go.mod
index 1adefef53e4..6c2cf2200e9 100644
--- a/service/chatbot/go.mod
+++ b/service/chatbot/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chatbot
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/chatbot/go.sum b/service/chatbot/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/chatbot/go.sum
+++ b/service/chatbot/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/chatbot/go_module_metadata.go b/service/chatbot/go_module_metadata.go
index 1af102969f0..42d1b4a52fa 100644
--- a/service/chatbot/go_module_metadata.go
+++ b/service/chatbot/go_module_metadata.go
@@ -3,4 +3,4 @@
package chatbot
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.10.3"
+const goModuleVersion = "1.10.4"
diff --git a/service/chime/CHANGELOG.md b/service/chime/CHANGELOG.md
index 473c55504c7..e15050e5d0c 100644
--- a/service/chime/CHANGELOG.md
+++ b/service/chime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.36.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.36.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/chime/go.mod b/service/chime/go.mod
index 01a58148996..a5973843116 100644
--- a/service/chime/go.mod
+++ b/service/chime/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/chime/go.sum b/service/chime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/chime/go.sum
+++ b/service/chime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/chime/go_module_metadata.go b/service/chime/go_module_metadata.go
index 6c79625e32d..7cccb9663af 100644
--- a/service/chime/go_module_metadata.go
+++ b/service/chime/go_module_metadata.go
@@ -3,4 +3,4 @@
package chime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.36.3"
+const goModuleVersion = "1.36.4"
diff --git a/service/chimesdkidentity/CHANGELOG.md b/service/chimesdkidentity/CHANGELOG.md
index 91176972e28..abc59502e14 100644
--- a/service/chimesdkidentity/CHANGELOG.md
+++ b/service/chimesdkidentity/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.23.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.23.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/chimesdkidentity/go.mod b/service/chimesdkidentity/go.mod
index caa62c3702c..fde974066e8 100644
--- a/service/chimesdkidentity/go.mod
+++ b/service/chimesdkidentity/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkidentity
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/chimesdkidentity/go.sum b/service/chimesdkidentity/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/chimesdkidentity/go.sum
+++ b/service/chimesdkidentity/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/chimesdkidentity/go_module_metadata.go b/service/chimesdkidentity/go_module_metadata.go
index f132d879882..0e3004a823f 100644
--- a/service/chimesdkidentity/go_module_metadata.go
+++ b/service/chimesdkidentity/go_module_metadata.go
@@ -3,4 +3,4 @@
package chimesdkidentity
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.23.3"
+const goModuleVersion = "1.23.4"
diff --git a/service/chimesdkmediapipelines/CHANGELOG.md b/service/chimesdkmediapipelines/CHANGELOG.md
index f83ac09bc58..4091fb8f481 100644
--- a/service/chimesdkmediapipelines/CHANGELOG.md
+++ b/service/chimesdkmediapipelines/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.22.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.22.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/chimesdkmediapipelines/go.mod b/service/chimesdkmediapipelines/go.mod
index 897b0695eaa..a4a1a79f919 100644
--- a/service/chimesdkmediapipelines/go.mod
+++ b/service/chimesdkmediapipelines/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmediapipelines
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/chimesdkmediapipelines/go.sum b/service/chimesdkmediapipelines/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/chimesdkmediapipelines/go.sum
+++ b/service/chimesdkmediapipelines/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/chimesdkmediapipelines/go_module_metadata.go b/service/chimesdkmediapipelines/go_module_metadata.go
index 83b79e52c83..4d5c4edff50 100644
--- a/service/chimesdkmediapipelines/go_module_metadata.go
+++ b/service/chimesdkmediapipelines/go_module_metadata.go
@@ -3,4 +3,4 @@
package chimesdkmediapipelines
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.22.3"
+const goModuleVersion = "1.22.4"
diff --git a/service/chimesdkmeetings/CHANGELOG.md b/service/chimesdkmeetings/CHANGELOG.md
index b1dbc99fabb..1b1381dcafb 100644
--- a/service/chimesdkmeetings/CHANGELOG.md
+++ b/service/chimesdkmeetings/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/chimesdkmeetings/go.mod b/service/chimesdkmeetings/go.mod
index 00feeb74028..00b50e0b884 100644
--- a/service/chimesdkmeetings/go.mod
+++ b/service/chimesdkmeetings/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmeetings
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/chimesdkmeetings/go.sum b/service/chimesdkmeetings/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/chimesdkmeetings/go.sum
+++ b/service/chimesdkmeetings/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/chimesdkmeetings/go_module_metadata.go b/service/chimesdkmeetings/go_module_metadata.go
index b55bde535b1..dee8c6a6d24 100644
--- a/service/chimesdkmeetings/go_module_metadata.go
+++ b/service/chimesdkmeetings/go_module_metadata.go
@@ -3,4 +3,4 @@
package chimesdkmeetings
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/chimesdkmessaging/CHANGELOG.md b/service/chimesdkmessaging/CHANGELOG.md
index 384145f0211..b118444f843 100644
--- a/service/chimesdkmessaging/CHANGELOG.md
+++ b/service/chimesdkmessaging/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/chimesdkmessaging/go.mod b/service/chimesdkmessaging/go.mod
index c102e8f84ce..0e43ca93d4f 100644
--- a/service/chimesdkmessaging/go.mod
+++ b/service/chimesdkmessaging/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmessaging
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/chimesdkmessaging/go.sum b/service/chimesdkmessaging/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/chimesdkmessaging/go.sum
+++ b/service/chimesdkmessaging/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/chimesdkmessaging/go_module_metadata.go b/service/chimesdkmessaging/go_module_metadata.go
index e6511f254c1..d0ad601e397 100644
--- a/service/chimesdkmessaging/go_module_metadata.go
+++ b/service/chimesdkmessaging/go_module_metadata.go
@@ -3,4 +3,4 @@
package chimesdkmessaging
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/chimesdkvoice/CHANGELOG.md b/service/chimesdkvoice/CHANGELOG.md
index aa5d690d312..63369ade555 100644
--- a/service/chimesdkvoice/CHANGELOG.md
+++ b/service/chimesdkvoice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.22.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.22.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/chimesdkvoice/go.mod b/service/chimesdkvoice/go.mod
index 76703fc80e6..815483ded64 100644
--- a/service/chimesdkvoice/go.mod
+++ b/service/chimesdkvoice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkvoice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/chimesdkvoice/go.sum b/service/chimesdkvoice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/chimesdkvoice/go.sum
+++ b/service/chimesdkvoice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/chimesdkvoice/go_module_metadata.go b/service/chimesdkvoice/go_module_metadata.go
index be78f1bce74..0009d7b303e 100644
--- a/service/chimesdkvoice/go_module_metadata.go
+++ b/service/chimesdkvoice/go_module_metadata.go
@@ -3,4 +3,4 @@
package chimesdkvoice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.22.1"
+const goModuleVersion = "1.22.2"
diff --git a/service/cleanrooms/CHANGELOG.md b/service/cleanrooms/CHANGELOG.md
index f6a93ecda7a..38a4531c017 100644
--- a/service/cleanrooms/CHANGELOG.md
+++ b/service/cleanrooms/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cleanrooms/go.mod b/service/cleanrooms/go.mod
index 78352e0bd11..d147e9c0292 100644
--- a/service/cleanrooms/go.mod
+++ b/service/cleanrooms/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cleanrooms
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cleanrooms/go.sum b/service/cleanrooms/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cleanrooms/go.sum
+++ b/service/cleanrooms/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cleanrooms/go_module_metadata.go b/service/cleanrooms/go_module_metadata.go
index 24c6c96b4df..583ad305c59 100644
--- a/service/cleanrooms/go_module_metadata.go
+++ b/service/cleanrooms/go_module_metadata.go
@@ -3,4 +3,4 @@
package cleanrooms
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.1"
+const goModuleVersion = "1.25.2"
diff --git a/service/cleanroomsml/CHANGELOG.md b/service/cleanroomsml/CHANGELOG.md
index a6cbb4f24a2..3e54f61e761 100644
--- a/service/cleanroomsml/CHANGELOG.md
+++ b/service/cleanroomsml/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.12.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.12.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cleanroomsml/go.mod b/service/cleanroomsml/go.mod
index e82528a14aa..5f8bc9f94b1 100644
--- a/service/cleanroomsml/go.mod
+++ b/service/cleanroomsml/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cleanroomsml
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cleanroomsml/go.sum b/service/cleanroomsml/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cleanroomsml/go.sum
+++ b/service/cleanroomsml/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cleanroomsml/go_module_metadata.go b/service/cleanroomsml/go_module_metadata.go
index 9a2275e2d13..23db3a66944 100644
--- a/service/cleanroomsml/go_module_metadata.go
+++ b/service/cleanroomsml/go_module_metadata.go
@@ -3,4 +3,4 @@
package cleanroomsml
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.12.3"
+const goModuleVersion = "1.12.4"
diff --git a/service/cloud9/CHANGELOG.md b/service/cloud9/CHANGELOG.md
index 6168823bd19..42eb51ab5b6 100644
--- a/service/cloud9/CHANGELOG.md
+++ b/service/cloud9/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod
index a3a9385961d..b9fa3fd6e37 100644
--- a/service/cloud9/go.mod
+++ b/service/cloud9/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloud9
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloud9/go.sum
+++ b/service/cloud9/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloud9/go_module_metadata.go b/service/cloud9/go_module_metadata.go
index 3c43aff9d98..00780621592 100644
--- a/service/cloud9/go_module_metadata.go
+++ b/service/cloud9/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloud9
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/cloudcontrol/CHANGELOG.md b/service/cloudcontrol/CHANGELOG.md
index 6abd5f34fdc..61f7146588d 100644
--- a/service/cloudcontrol/CHANGELOG.md
+++ b/service/cloudcontrol/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudcontrol/go.mod b/service/cloudcontrol/go.mod
index c24a1f0e508..399d6094cc2 100644
--- a/service/cloudcontrol/go.mod
+++ b/service/cloudcontrol/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudcontrol
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudcontrol/go.sum b/service/cloudcontrol/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudcontrol/go.sum
+++ b/service/cloudcontrol/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudcontrol/go_module_metadata.go b/service/cloudcontrol/go_module_metadata.go
index 78884d040e0..e106e9d6598 100644
--- a/service/cloudcontrol/go_module_metadata.go
+++ b/service/cloudcontrol/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudcontrol
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.5"
+const goModuleVersion = "1.24.6"
diff --git a/service/clouddirectory/CHANGELOG.md b/service/clouddirectory/CHANGELOG.md
index 46488ac596b..3f96b95f3ac 100644
--- a/service/clouddirectory/CHANGELOG.md
+++ b/service/clouddirectory/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod
index 64f0668a9f3..df4bea33d17 100644
--- a/service/clouddirectory/go.mod
+++ b/service/clouddirectory/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/clouddirectory
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/clouddirectory/go.sum
+++ b/service/clouddirectory/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/clouddirectory/go_module_metadata.go b/service/clouddirectory/go_module_metadata.go
index 91d0f8a41af..adad0d1a7d6 100644
--- a/service/clouddirectory/go_module_metadata.go
+++ b/service/clouddirectory/go_module_metadata.go
@@ -3,4 +3,4 @@
package clouddirectory
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/cloudformation/CHANGELOG.md b/service/cloudformation/CHANGELOG.md
index 16150b9fcf9..3118d8f8f4e 100644
--- a/service/cloudformation/CHANGELOG.md
+++ b/service/cloudformation/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.60.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.60.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod
index f8b6129458b..96864205c86 100644
--- a/service/cloudformation/go.mod
+++ b/service/cloudformation/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudformation
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudformation/go.sum
+++ b/service/cloudformation/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudformation/go_module_metadata.go b/service/cloudformation/go_module_metadata.go
index ae99455c370..9b50112a945 100644
--- a/service/cloudformation/go_module_metadata.go
+++ b/service/cloudformation/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudformation
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.60.2"
+const goModuleVersion = "1.60.3"
diff --git a/service/cloudfront/CHANGELOG.md b/service/cloudfront/CHANGELOG.md
index d7242ae058e..5c68ceef444 100644
--- a/service/cloudfront/CHANGELOG.md
+++ b/service/cloudfront/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.46.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.46.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod
index b09259a8c24..33461fb9121 100644
--- a/service/cloudfront/go.mod
+++ b/service/cloudfront/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudfront
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudfront/go.sum
+++ b/service/cloudfront/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudfront/go_module_metadata.go b/service/cloudfront/go_module_metadata.go
index 989f16b1e20..d628d7cfd59 100644
--- a/service/cloudfront/go_module_metadata.go
+++ b/service/cloudfront/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudfront
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.46.2"
+const goModuleVersion = "1.46.3"
diff --git a/service/cloudfrontkeyvaluestore/CHANGELOG.md b/service/cloudfrontkeyvaluestore/CHANGELOG.md
index d3d756b0056..e7efe037287 100644
--- a/service/cloudfrontkeyvaluestore/CHANGELOG.md
+++ b/service/cloudfrontkeyvaluestore/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.9.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.9.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudfrontkeyvaluestore/go.mod b/service/cloudfrontkeyvaluestore/go.mod
index f856582127c..98d2e3b6726 100644
--- a/service/cloudfrontkeyvaluestore/go.mod
+++ b/service/cloudfrontkeyvaluestore/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/cloudfrontkeyvaluestore
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudfrontkeyvaluestore/go.sum b/service/cloudfrontkeyvaluestore/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudfrontkeyvaluestore/go.sum
+++ b/service/cloudfrontkeyvaluestore/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudfrontkeyvaluestore/go_module_metadata.go b/service/cloudfrontkeyvaluestore/go_module_metadata.go
index 459aa492e8a..01d9b51e06e 100644
--- a/service/cloudfrontkeyvaluestore/go_module_metadata.go
+++ b/service/cloudfrontkeyvaluestore/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudfrontkeyvaluestore
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.9.3"
+const goModuleVersion = "1.9.4"
diff --git a/service/cloudhsm/CHANGELOG.md b/service/cloudhsm/CHANGELOG.md
index 89d90dc3e09..13882dfd497 100644
--- a/service/cloudhsm/CHANGELOG.md
+++ b/service/cloudhsm/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod
index 6a397416a36..00b7c22d02e 100644
--- a/service/cloudhsm/go.mod
+++ b/service/cloudhsm/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudhsm
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudhsm/go.sum
+++ b/service/cloudhsm/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudhsm/go_module_metadata.go b/service/cloudhsm/go_module_metadata.go
index 750941c5884..d1daa05ea5b 100644
--- a/service/cloudhsm/go_module_metadata.go
+++ b/service/cloudhsm/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudhsm
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/cloudhsmv2/CHANGELOG.md b/service/cloudhsmv2/CHANGELOG.md
index aa545078438..0c558db929a 100644
--- a/service/cloudhsmv2/CHANGELOG.md
+++ b/service/cloudhsmv2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod
index c146ee46867..d29c938fb0e 100644
--- a/service/cloudhsmv2/go.mod
+++ b/service/cloudhsmv2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudhsmv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudhsmv2/go.sum
+++ b/service/cloudhsmv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudhsmv2/go_module_metadata.go b/service/cloudhsmv2/go_module_metadata.go
index ec391ed67d8..038048ff8a5 100644
--- a/service/cloudhsmv2/go_module_metadata.go
+++ b/service/cloudhsmv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudhsmv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/cloudsearch/CHANGELOG.md b/service/cloudsearch/CHANGELOG.md
index 3fbd558e68e..9d30931ec32 100644
--- a/service/cloudsearch/CHANGELOG.md
+++ b/service/cloudsearch/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod
index 2ede70f1c4c..205beb01e0d 100644
--- a/service/cloudsearch/go.mod
+++ b/service/cloudsearch/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudsearch
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudsearch/go.sum
+++ b/service/cloudsearch/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudsearch/go_module_metadata.go b/service/cloudsearch/go_module_metadata.go
index 81a9f330a5c..11ccbf3d9a5 100644
--- a/service/cloudsearch/go_module_metadata.go
+++ b/service/cloudsearch/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudsearch
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/cloudsearchdomain/CHANGELOG.md b/service/cloudsearchdomain/CHANGELOG.md
index 6dc3faca5d3..47d33f2dda8 100644
--- a/service/cloudsearchdomain/CHANGELOG.md
+++ b/service/cloudsearchdomain/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod
index 25e294b9a3a..2cf074a7714 100644
--- a/service/cloudsearchdomain/go.mod
+++ b/service/cloudsearchdomain/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudsearchdomain
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudsearchdomain/go.sum
+++ b/service/cloudsearchdomain/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudsearchdomain/go_module_metadata.go b/service/cloudsearchdomain/go_module_metadata.go
index c6381f811b9..44c86372e68 100644
--- a/service/cloudsearchdomain/go_module_metadata.go
+++ b/service/cloudsearchdomain/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudsearchdomain
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/cloudtrail/CHANGELOG.md b/service/cloudtrail/CHANGELOG.md
index 86e40f1b484..4c2cc1b82a4 100644
--- a/service/cloudtrail/CHANGELOG.md
+++ b/service/cloudtrail/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.49.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.49.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod
index 5c7618272d2..8776b174936 100644
--- a/service/cloudtrail/go.mod
+++ b/service/cloudtrail/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudtrail
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudtrail/go.sum
+++ b/service/cloudtrail/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudtrail/go_module_metadata.go b/service/cloudtrail/go_module_metadata.go
index 732a706c4c3..3020f6ccb54 100644
--- a/service/cloudtrail/go_module_metadata.go
+++ b/service/cloudtrail/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudtrail
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.49.2"
+const goModuleVersion = "1.49.3"
diff --git a/service/cloudtraildata/CHANGELOG.md b/service/cloudtraildata/CHANGELOG.md
index ac04e893312..be15ef28f88 100644
--- a/service/cloudtraildata/CHANGELOG.md
+++ b/service/cloudtraildata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.12.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.12.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudtraildata/go.mod b/service/cloudtraildata/go.mod
index fd18d1e39f6..d54f82f3b5a 100644
--- a/service/cloudtraildata/go.mod
+++ b/service/cloudtraildata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudtraildata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudtraildata/go.sum b/service/cloudtraildata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudtraildata/go.sum
+++ b/service/cloudtraildata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudtraildata/go_module_metadata.go b/service/cloudtraildata/go_module_metadata.go
index 4f774863600..ea02b7f4541 100644
--- a/service/cloudtraildata/go_module_metadata.go
+++ b/service/cloudtraildata/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudtraildata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.12.3"
+const goModuleVersion = "1.12.4"
diff --git a/service/cloudwatch/CHANGELOG.md b/service/cloudwatch/CHANGELOG.md
index 0f7e96faa79..3174327546f 100644
--- a/service/cloudwatch/CHANGELOG.md
+++ b/service/cloudwatch/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.45.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.45.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod
index 7a6d019a6c5..1a115635810 100644
--- a/service/cloudwatch/go.mod
+++ b/service/cloudwatch/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatch
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudwatch/go.sum
+++ b/service/cloudwatch/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudwatch/go_module_metadata.go b/service/cloudwatch/go_module_metadata.go
index 8e1655e0009..b3771f2fa87 100644
--- a/service/cloudwatch/go_module_metadata.go
+++ b/service/cloudwatch/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudwatch
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.45.2"
+const goModuleVersion = "1.45.3"
diff --git a/service/cloudwatchevents/CHANGELOG.md b/service/cloudwatchevents/CHANGELOG.md
index 20af2bc2e34..f0a559eec6a 100644
--- a/service/cloudwatchevents/CHANGELOG.md
+++ b/service/cloudwatchevents/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod
index aa52c034f63..0d3a70bd884 100644
--- a/service/cloudwatchevents/go.mod
+++ b/service/cloudwatchevents/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatchevents
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudwatchevents/go.sum
+++ b/service/cloudwatchevents/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudwatchevents/go_module_metadata.go b/service/cloudwatchevents/go_module_metadata.go
index e830aac8585..900f7a47425 100644
--- a/service/cloudwatchevents/go_module_metadata.go
+++ b/service/cloudwatchevents/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudwatchevents
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.6"
+const goModuleVersion = "1.28.7"
diff --git a/service/cloudwatchlogs/CHANGELOG.md b/service/cloudwatchlogs/CHANGELOG.md
index b8b15b4f31a..88c3f5b3cd3 100644
--- a/service/cloudwatchlogs/CHANGELOG.md
+++ b/service/cloudwatchlogs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.50.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.50.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod
index d8b5ce94b6d..f81860d415b 100644
--- a/service/cloudwatchlogs/go.mod
+++ b/service/cloudwatchlogs/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cloudwatchlogs/go.sum
+++ b/service/cloudwatchlogs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cloudwatchlogs/go_module_metadata.go b/service/cloudwatchlogs/go_module_metadata.go
index 8da7015d3da..ff05e5cf843 100644
--- a/service/cloudwatchlogs/go_module_metadata.go
+++ b/service/cloudwatchlogs/go_module_metadata.go
@@ -3,4 +3,4 @@
package cloudwatchlogs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.50.2"
+const goModuleVersion = "1.50.3"
diff --git a/service/codeartifact/CHANGELOG.md b/service/codeartifact/CHANGELOG.md
index 820cd056f69..8d21aabd8f0 100644
--- a/service/codeartifact/CHANGELOG.md
+++ b/service/codeartifact/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.34.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.34.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod
index 47e8723db88..c9a6d32aec9 100644
--- a/service/codeartifact/go.mod
+++ b/service/codeartifact/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codeartifact
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codeartifact/go.sum
+++ b/service/codeartifact/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codeartifact/go_module_metadata.go b/service/codeartifact/go_module_metadata.go
index 9aa52cd970c..21924a3c255 100644
--- a/service/codeartifact/go_module_metadata.go
+++ b/service/codeartifact/go_module_metadata.go
@@ -3,4 +3,4 @@
package codeartifact
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.3"
+const goModuleVersion = "1.34.4"
diff --git a/service/codebuild/CHANGELOG.md b/service/codebuild/CHANGELOG.md
index 8ae1c0159d1..a719366d25d 100644
--- a/service/codebuild/CHANGELOG.md
+++ b/service/codebuild/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.61.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.61.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod
index 4dc1020b23e..c9881182797 100644
--- a/service/codebuild/go.mod
+++ b/service/codebuild/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codebuild
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codebuild/go.sum
+++ b/service/codebuild/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codebuild/go_module_metadata.go b/service/codebuild/go_module_metadata.go
index 5b7ba9e6521..4d2b51661b0 100644
--- a/service/codebuild/go_module_metadata.go
+++ b/service/codebuild/go_module_metadata.go
@@ -3,4 +3,4 @@
package codebuild
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.61.1"
+const goModuleVersion = "1.61.2"
diff --git a/service/codecatalyst/CHANGELOG.md b/service/codecatalyst/CHANGELOG.md
index 25788c8fbf8..ead9e9ca79d 100644
--- a/service/codecatalyst/CHANGELOG.md
+++ b/service/codecatalyst/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.21 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.20 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codecatalyst/go.mod b/service/codecatalyst/go.mod
index 8148c6a2d86..49caaa6b01f 100644
--- a/service/codecatalyst/go.mod
+++ b/service/codecatalyst/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codecatalyst
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codecatalyst/go.sum b/service/codecatalyst/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codecatalyst/go.sum
+++ b/service/codecatalyst/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codecatalyst/go_module_metadata.go b/service/codecatalyst/go_module_metadata.go
index 94b3effeafe..1a3bd6109c8 100644
--- a/service/codecatalyst/go_module_metadata.go
+++ b/service/codecatalyst/go_module_metadata.go
@@ -3,4 +3,4 @@
package codecatalyst
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.20"
+const goModuleVersion = "1.17.21"
diff --git a/service/codecommit/CHANGELOG.md b/service/codecommit/CHANGELOG.md
index ac240805575..123b8264214 100644
--- a/service/codecommit/CHANGELOG.md
+++ b/service/codecommit/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod
index 4c6835b4b9b..d9ea0c347ae 100644
--- a/service/codecommit/go.mod
+++ b/service/codecommit/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codecommit
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codecommit/go.sum
+++ b/service/codecommit/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codecommit/go_module_metadata.go b/service/codecommit/go_module_metadata.go
index f31cd699fe1..db91da89c9e 100644
--- a/service/codecommit/go_module_metadata.go
+++ b/service/codecommit/go_module_metadata.go
@@ -3,4 +3,4 @@
package codecommit
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/codeconnections/CHANGELOG.md b/service/codeconnections/CHANGELOG.md
index 4e43a2d22c8..4787e0e312b 100644
--- a/service/codeconnections/CHANGELOG.md
+++ b/service/codeconnections/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.6.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.6.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codeconnections/go.mod b/service/codeconnections/go.mod
index 682918a9705..0330ee7890b 100644
--- a/service/codeconnections/go.mod
+++ b/service/codeconnections/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codeconnections
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codeconnections/go.sum b/service/codeconnections/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codeconnections/go.sum
+++ b/service/codeconnections/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codeconnections/go_module_metadata.go b/service/codeconnections/go_module_metadata.go
index f9735adf060..c562601fdfb 100644
--- a/service/codeconnections/go_module_metadata.go
+++ b/service/codeconnections/go_module_metadata.go
@@ -3,4 +3,4 @@
package codeconnections
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.6.3"
+const goModuleVersion = "1.6.4"
diff --git a/service/codedeploy/CHANGELOG.md b/service/codedeploy/CHANGELOG.md
index 9ce2675b2ba..66c1caf468c 100644
--- a/service/codedeploy/CHANGELOG.md
+++ b/service/codedeploy/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod
index 2a4574668ee..48feed86365 100644
--- a/service/codedeploy/go.mod
+++ b/service/codedeploy/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codedeploy
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codedeploy/go.sum
+++ b/service/codedeploy/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codedeploy/go_module_metadata.go b/service/codedeploy/go_module_metadata.go
index a74371470bb..537ef96f8c3 100644
--- a/service/codedeploy/go_module_metadata.go
+++ b/service/codedeploy/go_module_metadata.go
@@ -3,4 +3,4 @@
package codedeploy
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.5"
+const goModuleVersion = "1.30.6"
diff --git a/service/codeguruprofiler/CHANGELOG.md b/service/codeguruprofiler/CHANGELOG.md
index 7628edc69e9..6a3e07a4635 100644
--- a/service/codeguruprofiler/CHANGELOG.md
+++ b/service/codeguruprofiler/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod
index e952f9eac17..27a7fe26b59 100644
--- a/service/codeguruprofiler/go.mod
+++ b/service/codeguruprofiler/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codeguruprofiler
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codeguruprofiler/go.sum
+++ b/service/codeguruprofiler/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codeguruprofiler/go_module_metadata.go b/service/codeguruprofiler/go_module_metadata.go
index 2efcac9ade5..a5be408afea 100644
--- a/service/codeguruprofiler/go_module_metadata.go
+++ b/service/codeguruprofiler/go_module_metadata.go
@@ -3,4 +3,4 @@
package codeguruprofiler
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/codegurureviewer/CHANGELOG.md b/service/codegurureviewer/CHANGELOG.md
index 064d7eee258..54556bf4513 100644
--- a/service/codegurureviewer/CHANGELOG.md
+++ b/service/codegurureviewer/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod
index 27e303e6444..07bb0168fea 100644
--- a/service/codegurureviewer/go.mod
+++ b/service/codegurureviewer/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codegurureviewer
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codegurureviewer/go.sum
+++ b/service/codegurureviewer/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codegurureviewer/go_module_metadata.go b/service/codegurureviewer/go_module_metadata.go
index a180a5cabe6..9f416193aec 100644
--- a/service/codegurureviewer/go_module_metadata.go
+++ b/service/codegurureviewer/go_module_metadata.go
@@ -3,4 +3,4 @@
package codegurureviewer
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/codegurusecurity/CHANGELOG.md b/service/codegurusecurity/CHANGELOG.md
index 85d8ba378fb..89f44bcb563 100644
--- a/service/codegurusecurity/CHANGELOG.md
+++ b/service/codegurusecurity/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.13.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.13.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codegurusecurity/go.mod b/service/codegurusecurity/go.mod
index a47d1b61127..66fe4e03496 100644
--- a/service/codegurusecurity/go.mod
+++ b/service/codegurusecurity/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codegurusecurity
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codegurusecurity/go.sum b/service/codegurusecurity/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codegurusecurity/go.sum
+++ b/service/codegurusecurity/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codegurusecurity/go_module_metadata.go b/service/codegurusecurity/go_module_metadata.go
index 2e9d83820e7..138d02bc076 100644
--- a/service/codegurusecurity/go_module_metadata.go
+++ b/service/codegurusecurity/go_module_metadata.go
@@ -3,4 +3,4 @@
package codegurusecurity
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.13.3"
+const goModuleVersion = "1.13.4"
diff --git a/service/codepipeline/CHANGELOG.md b/service/codepipeline/CHANGELOG.md
index a4d5138b60e..6eefb2d3eea 100644
--- a/service/codepipeline/CHANGELOG.md
+++ b/service/codepipeline/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.42.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.42.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod
index 3c88aefdbb1..57574aaee66 100644
--- a/service/codepipeline/go.mod
+++ b/service/codepipeline/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codepipeline
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codepipeline/go.sum
+++ b/service/codepipeline/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codepipeline/go_module_metadata.go b/service/codepipeline/go_module_metadata.go
index 2411ae6a331..881c2439f08 100644
--- a/service/codepipeline/go_module_metadata.go
+++ b/service/codepipeline/go_module_metadata.go
@@ -3,4 +3,4 @@
package codepipeline
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.42.1"
+const goModuleVersion = "1.42.2"
diff --git a/service/codestarconnections/CHANGELOG.md b/service/codestarconnections/CHANGELOG.md
index a8e692b5d26..975b5e40bbc 100644
--- a/service/codestarconnections/CHANGELOG.md
+++ b/service/codestarconnections/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod
index 1f19e492a82..79861a1f506 100644
--- a/service/codestarconnections/go.mod
+++ b/service/codestarconnections/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codestarconnections
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codestarconnections/go.sum
+++ b/service/codestarconnections/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codestarconnections/go_module_metadata.go b/service/codestarconnections/go_module_metadata.go
index a0aa120973b..afd52564aa1 100644
--- a/service/codestarconnections/go_module_metadata.go
+++ b/service/codestarconnections/go_module_metadata.go
@@ -3,4 +3,4 @@
package codestarconnections
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/codestarnotifications/CHANGELOG.md b/service/codestarnotifications/CHANGELOG.md
index 763ce94a99e..c731246ebd2 100644
--- a/service/codestarnotifications/CHANGELOG.md
+++ b/service/codestarnotifications/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod
index 62b78d08e30..a02350c53f4 100644
--- a/service/codestarnotifications/go.mod
+++ b/service/codestarnotifications/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codestarnotifications
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/codestarnotifications/go.sum
+++ b/service/codestarnotifications/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/codestarnotifications/go_module_metadata.go b/service/codestarnotifications/go_module_metadata.go
index 202225b1a70..e31f0dc3b97 100644
--- a/service/codestarnotifications/go_module_metadata.go
+++ b/service/codestarnotifications/go_module_metadata.go
@@ -3,4 +3,4 @@
package codestarnotifications
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/cognitoidentity/CHANGELOG.md b/service/cognitoidentity/CHANGELOG.md
index 52d2b583493..e6aed9c5a36 100644
--- a/service/cognitoidentity/CHANGELOG.md
+++ b/service/cognitoidentity/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod
index dbcf4e0da78..4c990e9070c 100644
--- a/service/cognitoidentity/go.mod
+++ b/service/cognitoidentity/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitoidentity
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cognitoidentity/go.sum
+++ b/service/cognitoidentity/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cognitoidentity/go_module_metadata.go b/service/cognitoidentity/go_module_metadata.go
index 3212da81935..b823e3ab43a 100644
--- a/service/cognitoidentity/go_module_metadata.go
+++ b/service/cognitoidentity/go_module_metadata.go
@@ -3,4 +3,4 @@
package cognitoidentity
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.5"
+const goModuleVersion = "1.29.6"
diff --git a/service/cognitoidentityprovider/CHANGELOG.md b/service/cognitoidentityprovider/CHANGELOG.md
index a2b033c307e..d2448d19aa8 100644
--- a/service/cognitoidentityprovider/CHANGELOG.md
+++ b/service/cognitoidentityprovider/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.53.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.53.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod
index e0882d4e011..27d9bc45041 100644
--- a/service/cognitoidentityprovider/go.mod
+++ b/service/cognitoidentityprovider/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cognitoidentityprovider/go.sum
+++ b/service/cognitoidentityprovider/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cognitoidentityprovider/go_module_metadata.go b/service/cognitoidentityprovider/go_module_metadata.go
index feb9beda4ec..939ff4f9e12 100644
--- a/service/cognitoidentityprovider/go_module_metadata.go
+++ b/service/cognitoidentityprovider/go_module_metadata.go
@@ -3,4 +3,4 @@
package cognitoidentityprovider
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.53.1"
+const goModuleVersion = "1.53.2"
diff --git a/service/cognitosync/CHANGELOG.md b/service/cognitosync/CHANGELOG.md
index 6dc3faca5d3..47d33f2dda8 100644
--- a/service/cognitosync/CHANGELOG.md
+++ b/service/cognitosync/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod
index 160c2cf59ed..a9041b4e871 100644
--- a/service/cognitosync/go.mod
+++ b/service/cognitosync/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitosync
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/cognitosync/go.sum
+++ b/service/cognitosync/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/cognitosync/go_module_metadata.go b/service/cognitosync/go_module_metadata.go
index 4b435498694..7bbe6619023 100644
--- a/service/cognitosync/go_module_metadata.go
+++ b/service/cognitosync/go_module_metadata.go
@@ -3,4 +3,4 @@
package cognitosync
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/comprehend/CHANGELOG.md b/service/comprehend/CHANGELOG.md
index c0548e6f3a4..49ed0e46318 100644
--- a/service/comprehend/CHANGELOG.md
+++ b/service/comprehend/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.36.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.36.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod
index 8ea8c381345..76b2d75bfd0 100644
--- a/service/comprehend/go.mod
+++ b/service/comprehend/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/comprehend
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/comprehend/go.sum
+++ b/service/comprehend/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/comprehend/go_module_metadata.go b/service/comprehend/go_module_metadata.go
index ebf0ca28e81..72d040ae401 100644
--- a/service/comprehend/go_module_metadata.go
+++ b/service/comprehend/go_module_metadata.go
@@ -3,4 +3,4 @@
package comprehend
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.36.5"
+const goModuleVersion = "1.36.6"
diff --git a/service/comprehendmedical/CHANGELOG.md b/service/comprehendmedical/CHANGELOG.md
index 6caa8b27199..c47b3070a47 100644
--- a/service/comprehendmedical/CHANGELOG.md
+++ b/service/comprehendmedical/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod
index 8a43ef297da..7245b2e8da0 100644
--- a/service/comprehendmedical/go.mod
+++ b/service/comprehendmedical/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/comprehendmedical
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/comprehendmedical/go.sum
+++ b/service/comprehendmedical/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/comprehendmedical/go_module_metadata.go b/service/comprehendmedical/go_module_metadata.go
index 6997694d011..b28db795fbf 100644
--- a/service/comprehendmedical/go_module_metadata.go
+++ b/service/comprehendmedical/go_module_metadata.go
@@ -3,4 +3,4 @@
package comprehendmedical
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/computeoptimizer/CHANGELOG.md b/service/computeoptimizer/CHANGELOG.md
index 5dc60a7a3ae..9dbb1ef1f32 100644
--- a/service/computeoptimizer/CHANGELOG.md
+++ b/service/computeoptimizer/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.43.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.43.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod
index 1958aaccf10..6ea86b81eba 100644
--- a/service/computeoptimizer/go.mod
+++ b/service/computeoptimizer/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/computeoptimizer
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/computeoptimizer/go.sum
+++ b/service/computeoptimizer/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/computeoptimizer/go_module_metadata.go b/service/computeoptimizer/go_module_metadata.go
index 8f3acb67d45..8a12536802b 100644
--- a/service/computeoptimizer/go_module_metadata.go
+++ b/service/computeoptimizer/go_module_metadata.go
@@ -3,4 +3,4 @@
package computeoptimizer
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.43.1"
+const goModuleVersion = "1.43.2"
diff --git a/service/configservice/CHANGELOG.md b/service/configservice/CHANGELOG.md
index 509f2268761..5d922253b6e 100644
--- a/service/configservice/CHANGELOG.md
+++ b/service/configservice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.52.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.52.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/configservice/go.mod b/service/configservice/go.mod
index 82c2a3f29d8..4024aa8de1d 100644
--- a/service/configservice/go.mod
+++ b/service/configservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/configservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/configservice/go.sum b/service/configservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/configservice/go.sum
+++ b/service/configservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/configservice/go_module_metadata.go b/service/configservice/go_module_metadata.go
index a8b22d4afab..0d445c9a4a8 100644
--- a/service/configservice/go_module_metadata.go
+++ b/service/configservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package configservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.52.5"
+const goModuleVersion = "1.52.6"
diff --git a/service/connect/CHANGELOG.md b/service/connect/CHANGELOG.md
index 27462373918..917b3182e91 100644
--- a/service/connect/CHANGELOG.md
+++ b/service/connect/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.129.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.129.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/connect/go.mod b/service/connect/go.mod
index 10122255fb2..da748abb303 100644
--- a/service/connect/go.mod
+++ b/service/connect/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connect
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/connect/go.sum b/service/connect/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/connect/go.sum
+++ b/service/connect/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/connect/go_module_metadata.go b/service/connect/go_module_metadata.go
index 811713fb729..94232a19eea 100644
--- a/service/connect/go_module_metadata.go
+++ b/service/connect/go_module_metadata.go
@@ -3,4 +3,4 @@
package connect
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.129.1"
+const goModuleVersion = "1.129.2"
diff --git a/service/connectcampaigns/CHANGELOG.md b/service/connectcampaigns/CHANGELOG.md
index eff06718bae..89831f522fc 100644
--- a/service/connectcampaigns/CHANGELOG.md
+++ b/service/connectcampaigns/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.16.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.16.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/connectcampaigns/go.mod b/service/connectcampaigns/go.mod
index a514ca7e332..e635e3969df 100644
--- a/service/connectcampaigns/go.mod
+++ b/service/connectcampaigns/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcampaigns
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/connectcampaigns/go.sum b/service/connectcampaigns/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/connectcampaigns/go.sum
+++ b/service/connectcampaigns/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/connectcampaigns/go_module_metadata.go b/service/connectcampaigns/go_module_metadata.go
index 37968977128..ba355a99ab9 100644
--- a/service/connectcampaigns/go_module_metadata.go
+++ b/service/connectcampaigns/go_module_metadata.go
@@ -3,4 +3,4 @@
package connectcampaigns
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.16.3"
+const goModuleVersion = "1.16.4"
diff --git a/service/connectcampaignsv2/CHANGELOG.md b/service/connectcampaignsv2/CHANGELOG.md
index b0330427894..c43b7648396 100644
--- a/service/connectcampaignsv2/CHANGELOG.md
+++ b/service/connectcampaignsv2/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.3.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.3.0 (2025-06-12)
+
+* **Feature**: Added PutInstanceCommunicationLimits and GetInstanceCommunicationLimits APIs
+
# v1.2.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/connectcampaignsv2/api_op_GetInstanceCommunicationLimits.go b/service/connectcampaignsv2/api_op_GetInstanceCommunicationLimits.go
new file mode 100644
index 00000000000..6c19e4c1138
--- /dev/null
+++ b/service/connectcampaignsv2/api_op_GetInstanceCommunicationLimits.go
@@ -0,0 +1,162 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package connectcampaignsv2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/connectcampaignsv2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Get the instance communication limits.
+func (c *Client) GetInstanceCommunicationLimits(ctx context.Context, params *GetInstanceCommunicationLimitsInput, optFns ...func(*Options)) (*GetInstanceCommunicationLimitsOutput, error) {
+ if params == nil {
+ params = &GetInstanceCommunicationLimitsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetInstanceCommunicationLimits", params, optFns, c.addOperationGetInstanceCommunicationLimitsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetInstanceCommunicationLimitsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+// The request for GetInstanceCommunicationLimits API.
+type GetInstanceCommunicationLimitsInput struct {
+
+ // Amazon Connect Instance Id
+ //
+ // This member is required.
+ ConnectInstanceId *string
+
+ noSmithyDocumentSerde
+}
+
+// The response for GetInstanceCommunicationLimits API.
+type GetInstanceCommunicationLimitsOutput struct {
+
+ // Instance Communication limits config
+ CommunicationLimitsConfig *types.InstanceCommunicationLimitsConfig
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetInstanceCommunicationLimitsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetInstanceCommunicationLimits{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetInstanceCommunicationLimits{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetInstanceCommunicationLimits"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetInstanceCommunicationLimitsValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetInstanceCommunicationLimits(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetInstanceCommunicationLimits(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetInstanceCommunicationLimits",
+ }
+}
diff --git a/service/connectcampaignsv2/api_op_PutInstanceCommunicationLimits.go b/service/connectcampaignsv2/api_op_PutInstanceCommunicationLimits.go
new file mode 100644
index 00000000000..8b0292b4889
--- /dev/null
+++ b/service/connectcampaignsv2/api_op_PutInstanceCommunicationLimits.go
@@ -0,0 +1,162 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package connectcampaignsv2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/connectcampaignsv2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Put the instance communication limits. This API is idempotent.
+func (c *Client) PutInstanceCommunicationLimits(ctx context.Context, params *PutInstanceCommunicationLimitsInput, optFns ...func(*Options)) (*PutInstanceCommunicationLimitsOutput, error) {
+ if params == nil {
+ params = &PutInstanceCommunicationLimitsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "PutInstanceCommunicationLimits", params, optFns, c.addOperationPutInstanceCommunicationLimitsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*PutInstanceCommunicationLimitsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+// The request for PutInstanceCommunicationLimits API.
+type PutInstanceCommunicationLimitsInput struct {
+
+ // Instance Communication limits config
+ //
+ // This member is required.
+ CommunicationLimitsConfig *types.InstanceCommunicationLimitsConfig
+
+ // Amazon Connect Instance Id
+ //
+ // This member is required.
+ ConnectInstanceId *string
+
+ noSmithyDocumentSerde
+}
+
+type PutInstanceCommunicationLimitsOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationPutInstanceCommunicationLimitsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpPutInstanceCommunicationLimits{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutInstanceCommunicationLimits{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "PutInstanceCommunicationLimits"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpPutInstanceCommunicationLimitsValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutInstanceCommunicationLimits(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opPutInstanceCommunicationLimits(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "PutInstanceCommunicationLimits",
+ }
+}
diff --git a/service/connectcampaignsv2/deserializers.go b/service/connectcampaignsv2/deserializers.go
index ed3340c2964..a902301a3b0 100644
--- a/service/connectcampaignsv2/deserializers.go
+++ b/service/connectcampaignsv2/deserializers.go
@@ -1623,6 +1623,167 @@ func awsRestjson1_deserializeOpDocumentGetConnectInstanceConfigOutput(v **GetCon
return nil
}
+type awsRestjson1_deserializeOpGetInstanceCommunicationLimits struct {
+}
+
+func (*awsRestjson1_deserializeOpGetInstanceCommunicationLimits) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpGetInstanceCommunicationLimits) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorGetInstanceCommunicationLimits(response, &metadata)
+ }
+ output := &GetInstanceCommunicationLimitsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetInstanceCommunicationLimitsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorGetInstanceCommunicationLimits(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentGetInstanceCommunicationLimitsOutput(v **GetInstanceCommunicationLimitsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetInstanceCommunicationLimitsOutput
+ if *v == nil {
+ sv = &GetInstanceCommunicationLimitsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "communicationLimitsConfig":
+ if err := awsRestjson1_deserializeDocumentInstanceCommunicationLimitsConfig(&sv.CommunicationLimitsConfig, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
type awsRestjson1_deserializeOpGetInstanceOnboardingJobStatus struct {
}
@@ -2509,6 +2670,112 @@ func awsRestjson1_deserializeOpErrorPutConnectInstanceIntegration(response *smit
}
}
+type awsRestjson1_deserializeOpPutInstanceCommunicationLimits struct {
+}
+
+func (*awsRestjson1_deserializeOpPutInstanceCommunicationLimits) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpPutInstanceCommunicationLimits) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorPutInstanceCommunicationLimits(response, &metadata)
+ }
+ output := &PutInstanceCommunicationLimitsOutput{}
+ out.Result = output
+
+ if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to discard response body, %w", err),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorPutInstanceCommunicationLimits(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
type awsRestjson1_deserializeOpPutOutboundRequestBatch struct {
}
@@ -5401,6 +5668,15 @@ func awsRestjson1_deserializeDocumentCommunicationLimitsConfig(v **types.Communi
return err
}
+ case "instanceLimitsHandling":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected InstanceLimitsHandling to be of type string, got %T instead", value)
+ }
+ sv.InstanceLimitsHandling = types.InstanceLimitsHandling(jtv)
+ }
+
default:
_, _ = key, value
@@ -6127,6 +6403,42 @@ func awsRestjson1_deserializeDocumentFailedRequestList(v *[]types.FailedRequest,
return nil
}
+func awsRestjson1_deserializeDocumentInstanceCommunicationLimitsConfig(v **types.InstanceCommunicationLimitsConfig, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InstanceCommunicationLimitsConfig
+ if *v == nil {
+ sv = &types.InstanceCommunicationLimitsConfig{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "allChannelSubtypes":
+ if err := awsRestjson1_deserializeDocumentCommunicationLimits(&sv.AllChannelSubtypes, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentInstanceConfig(v **types.InstanceConfig, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
diff --git a/service/connectcampaignsv2/generated.json b/service/connectcampaignsv2/generated.json
index 02a7d5a4c11..4c37b67943b 100644
--- a/service/connectcampaignsv2/generated.json
+++ b/service/connectcampaignsv2/generated.json
@@ -20,12 +20,14 @@
"api_op_GetCampaignState.go",
"api_op_GetCampaignStateBatch.go",
"api_op_GetConnectInstanceConfig.go",
+ "api_op_GetInstanceCommunicationLimits.go",
"api_op_GetInstanceOnboardingJobStatus.go",
"api_op_ListCampaigns.go",
"api_op_ListConnectInstanceIntegrations.go",
"api_op_ListTagsForResource.go",
"api_op_PauseCampaign.go",
"api_op_PutConnectInstanceIntegration.go",
+ "api_op_PutInstanceCommunicationLimits.go",
"api_op_PutOutboundRequestBatch.go",
"api_op_PutProfileOutboundRequestBatch.go",
"api_op_ResumeCampaign.go",
diff --git a/service/connectcampaignsv2/go.mod b/service/connectcampaignsv2/go.mod
index f4053293cbd..e642ff7032b 100644
--- a/service/connectcampaignsv2/go.mod
+++ b/service/connectcampaignsv2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcampaignsv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/connectcampaignsv2/go.sum b/service/connectcampaignsv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/connectcampaignsv2/go.sum
+++ b/service/connectcampaignsv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/connectcampaignsv2/go_module_metadata.go b/service/connectcampaignsv2/go_module_metadata.go
index bf4cb481e9e..ffa61df7a96 100644
--- a/service/connectcampaignsv2/go_module_metadata.go
+++ b/service/connectcampaignsv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package connectcampaignsv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.3"
+const goModuleVersion = "1.3.1"
diff --git a/service/connectcampaignsv2/serializers.go b/service/connectcampaignsv2/serializers.go
index c84b36b09ac..1719f4be895 100644
--- a/service/connectcampaignsv2/serializers.go
+++ b/service/connectcampaignsv2/serializers.go
@@ -984,6 +984,77 @@ func awsRestjson1_serializeOpHttpBindingsGetConnectInstanceConfigInput(v *GetCon
return nil
}
+type awsRestjson1_serializeOpGetInstanceCommunicationLimits struct {
+}
+
+func (*awsRestjson1_serializeOpGetInstanceCommunicationLimits) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetInstanceCommunicationLimits) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetInstanceCommunicationLimitsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/v2/connect-instance/{connectInstanceId}/communication-limits")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsGetInstanceCommunicationLimitsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetInstanceCommunicationLimitsInput(v *GetInstanceCommunicationLimitsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ConnectInstanceId == nil || len(*v.ConnectInstanceId) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member connectInstanceId must not be empty")}
+ }
+ if v.ConnectInstanceId != nil {
+ if err := encoder.SetURI("connectInstanceId").String(*v.ConnectInstanceId); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpGetInstanceOnboardingJobStatus struct {
}
@@ -1465,6 +1536,102 @@ func awsRestjson1_serializeOpDocumentPutConnectInstanceIntegrationInput(v *PutCo
return nil
}
+type awsRestjson1_serializeOpPutInstanceCommunicationLimits struct {
+}
+
+func (*awsRestjson1_serializeOpPutInstanceCommunicationLimits) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpPutInstanceCommunicationLimits) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*PutInstanceCommunicationLimitsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/v2/connect-instance/{connectInstanceId}/communication-limits")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "PUT"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsPutInstanceCommunicationLimitsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentPutInstanceCommunicationLimitsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsPutInstanceCommunicationLimitsInput(v *PutInstanceCommunicationLimitsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ConnectInstanceId == nil || len(*v.ConnectInstanceId) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member connectInstanceId must not be empty")}
+ }
+ if v.ConnectInstanceId != nil {
+ if err := encoder.SetURI("connectInstanceId").String(*v.ConnectInstanceId); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentPutInstanceCommunicationLimitsInput(v *PutInstanceCommunicationLimitsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.CommunicationLimitsConfig != nil {
+ ok := object.Key("communicationLimitsConfig")
+ if err := awsRestjson1_serializeDocumentInstanceCommunicationLimitsConfig(v.CommunicationLimitsConfig, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpPutOutboundRequestBatch struct {
}
@@ -2989,6 +3156,11 @@ func awsRestjson1_serializeDocumentCommunicationLimitsConfig(v *types.Communicat
}
}
+ if len(v.InstanceLimitsHandling) > 0 {
+ ok := object.Key("instanceLimitsHandling")
+ ok.String(string(v.InstanceLimitsHandling))
+ }
+
return nil
}
@@ -3216,6 +3388,20 @@ func awsRestjson1_serializeDocumentEventTrigger(v *types.EventTrigger, value smi
return nil
}
+func awsRestjson1_serializeDocumentInstanceCommunicationLimitsConfig(v *types.InstanceCommunicationLimitsConfig, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AllChannelSubtypes != nil {
+ ok := object.Key("allChannelSubtypes")
+ if err := awsRestjson1_serializeDocumentCommunicationLimits(v.AllChannelSubtypes, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentInstanceIdFilter(v *types.InstanceIdFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
diff --git a/service/connectcampaignsv2/snapshot/api_op_GetInstanceCommunicationLimits.go.snap b/service/connectcampaignsv2/snapshot/api_op_GetInstanceCommunicationLimits.go.snap
new file mode 100644
index 00000000000..79b123e9dd8
--- /dev/null
+++ b/service/connectcampaignsv2/snapshot/api_op_GetInstanceCommunicationLimits.go.snap
@@ -0,0 +1,42 @@
+GetInstanceCommunicationLimits
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/connectcampaignsv2/snapshot/api_op_PutInstanceCommunicationLimits.go.snap b/service/connectcampaignsv2/snapshot/api_op_PutInstanceCommunicationLimits.go.snap
new file mode 100644
index 00000000000..0f24e506caf
--- /dev/null
+++ b/service/connectcampaignsv2/snapshot/api_op_PutInstanceCommunicationLimits.go.snap
@@ -0,0 +1,42 @@
+PutInstanceCommunicationLimits
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/connectcampaignsv2/snapshot_test.go b/service/connectcampaignsv2/snapshot_test.go
index 40be11550f5..31741657445 100644
--- a/service/connectcampaignsv2/snapshot_test.go
+++ b/service/connectcampaignsv2/snapshot_test.go
@@ -206,6 +206,18 @@ func TestCheckSnapshot_GetConnectInstanceConfig(t *testing.T) {
}
}
+func TestCheckSnapshot_GetInstanceCommunicationLimits(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetInstanceCommunicationLimits(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetInstanceCommunicationLimits")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_GetInstanceOnboardingJobStatus(t *testing.T) {
svc := New(Options{})
_, err := svc.GetInstanceOnboardingJobStatus(context.Background(), nil, func(o *Options) {
@@ -278,6 +290,18 @@ func TestCheckSnapshot_PutConnectInstanceIntegration(t *testing.T) {
}
}
+func TestCheckSnapshot_PutInstanceCommunicationLimits(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.PutInstanceCommunicationLimits(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "PutInstanceCommunicationLimits")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_PutOutboundRequestBatch(t *testing.T) {
svc := New(Options{})
_, err := svc.PutOutboundRequestBatch(context.Background(), nil, func(o *Options) {
@@ -601,6 +625,18 @@ func TestUpdateSnapshot_GetConnectInstanceConfig(t *testing.T) {
}
}
+func TestUpdateSnapshot_GetInstanceCommunicationLimits(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetInstanceCommunicationLimits(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetInstanceCommunicationLimits")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_GetInstanceOnboardingJobStatus(t *testing.T) {
svc := New(Options{})
_, err := svc.GetInstanceOnboardingJobStatus(context.Background(), nil, func(o *Options) {
@@ -673,6 +709,18 @@ func TestUpdateSnapshot_PutConnectInstanceIntegration(t *testing.T) {
}
}
+func TestUpdateSnapshot_PutInstanceCommunicationLimits(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.PutInstanceCommunicationLimits(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "PutInstanceCommunicationLimits")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_PutOutboundRequestBatch(t *testing.T) {
svc := New(Options{})
_, err := svc.PutOutboundRequestBatch(context.Background(), nil, func(o *Options) {
diff --git a/service/connectcampaignsv2/sra_operation_order_test.go b/service/connectcampaignsv2/sra_operation_order_test.go
index ce6c7d0239a..fec05fccd2b 100644
--- a/service/connectcampaignsv2/sra_operation_order_test.go
+++ b/service/connectcampaignsv2/sra_operation_order_test.go
@@ -439,6 +439,41 @@ func TestOpGetConnectInstanceConfigSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpGetInstanceCommunicationLimitsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetInstanceCommunicationLimits(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpGetInstanceOnboardingJobStatusSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -649,6 +684,41 @@ func TestOpPutConnectInstanceIntegrationSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpPutInstanceCommunicationLimitsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.PutInstanceCommunicationLimits(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpPutOutboundRequestBatchSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
diff --git a/service/connectcampaignsv2/types/enums.go b/service/connectcampaignsv2/types/enums.go
index 53fc3bf1ac4..04247d2bfa3 100644
--- a/service/connectcampaignsv2/types/enums.go
+++ b/service/connectcampaignsv2/types/enums.go
@@ -267,6 +267,25 @@ func (InstanceIdFilterOperator) Values() []InstanceIdFilterOperator {
}
}
+type InstanceLimitsHandling string
+
+// Enum values for InstanceLimitsHandling
+const (
+ InstanceLimitsHandlingOptIn InstanceLimitsHandling = "OPT_IN"
+ InstanceLimitsHandlingOptOut InstanceLimitsHandling = "OPT_OUT"
+)
+
+// Values returns all known values for InstanceLimitsHandling. Note that this can
+// be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (InstanceLimitsHandling) Values() []InstanceLimitsHandling {
+ return []InstanceLimitsHandling{
+ "OPT_IN",
+ "OPT_OUT",
+ }
+}
+
type InstanceOnboardingJobFailureCode string
// Enum values for InstanceOnboardingJobFailureCode
diff --git a/service/connectcampaignsv2/types/types.go b/service/connectcampaignsv2/types/types.go
index 86ad94a155e..50b17c6d627 100644
--- a/service/connectcampaignsv2/types/types.go
+++ b/service/connectcampaignsv2/types/types.go
@@ -220,6 +220,9 @@ type CommunicationLimitsConfig struct {
// Communication limits
AllChannelSubtypes CommunicationLimits
+ // Instance limits handling
+ InstanceLimitsHandling InstanceLimitsHandling
+
noSmithyDocumentSerde
}
@@ -441,6 +444,15 @@ type FailedRequest struct {
noSmithyDocumentSerde
}
+// Instance Communication limits config
+type InstanceCommunicationLimitsConfig struct {
+
+ // Communication limits
+ AllChannelSubtypes CommunicationLimits
+
+ noSmithyDocumentSerde
+}
+
// Instance config object
type InstanceConfig struct {
diff --git a/service/connectcampaignsv2/validators.go b/service/connectcampaignsv2/validators.go
index 34b2a9ee5e7..1f17524bf66 100644
--- a/service/connectcampaignsv2/validators.go
+++ b/service/connectcampaignsv2/validators.go
@@ -250,6 +250,26 @@ func (m *validateOpGetConnectInstanceConfig) HandleInitialize(ctx context.Contex
return next.HandleInitialize(ctx, in)
}
+type validateOpGetInstanceCommunicationLimits struct {
+}
+
+func (*validateOpGetInstanceCommunicationLimits) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetInstanceCommunicationLimits) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetInstanceCommunicationLimitsInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetInstanceCommunicationLimitsInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpGetInstanceOnboardingJobStatus struct {
}
@@ -370,6 +390,26 @@ func (m *validateOpPutConnectInstanceIntegration) HandleInitialize(ctx context.C
return next.HandleInitialize(ctx, in)
}
+type validateOpPutInstanceCommunicationLimits struct {
+}
+
+func (*validateOpPutInstanceCommunicationLimits) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpPutInstanceCommunicationLimits) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*PutInstanceCommunicationLimitsInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpPutInstanceCommunicationLimitsInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpPutOutboundRequestBatch struct {
}
@@ -718,6 +758,10 @@ func addOpGetConnectInstanceConfigValidationMiddleware(stack *middleware.Stack)
return stack.Initialize.Add(&validateOpGetConnectInstanceConfig{}, middleware.After)
}
+func addOpGetInstanceCommunicationLimitsValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetInstanceCommunicationLimits{}, middleware.After)
+}
+
func addOpGetInstanceOnboardingJobStatusValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetInstanceOnboardingJobStatus{}, middleware.After)
}
@@ -742,6 +786,10 @@ func addOpPutConnectInstanceIntegrationValidationMiddleware(stack *middleware.St
return stack.Initialize.Add(&validateOpPutConnectInstanceIntegration{}, middleware.After)
}
+func addOpPutInstanceCommunicationLimitsValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpPutInstanceCommunicationLimits{}, middleware.After)
+}
+
func addOpPutOutboundRequestBatchValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutOutboundRequestBatch{}, middleware.After)
}
@@ -1114,6 +1162,23 @@ func validateEncryptionConfig(v *types.EncryptionConfig) error {
}
}
+func validateInstanceCommunicationLimitsConfig(v *types.InstanceCommunicationLimitsConfig) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "InstanceCommunicationLimitsConfig"}
+ if v.AllChannelSubtypes != nil {
+ if err := validateCommunicationLimits(v.AllChannelSubtypes); err != nil {
+ invalidParams.AddNested("AllChannelSubtypes", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateInstanceIdFilter(v *types.InstanceIdFilter) error {
if v == nil {
return nil
@@ -1839,6 +1904,21 @@ func validateOpGetConnectInstanceConfigInput(v *GetConnectInstanceConfigInput) e
}
}
+func validateOpGetInstanceCommunicationLimitsInput(v *GetInstanceCommunicationLimitsInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetInstanceCommunicationLimitsInput"}
+ if v.ConnectInstanceId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ConnectInstanceId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpGetInstanceOnboardingJobStatusInput(v *GetInstanceOnboardingJobStatusInput) error {
if v == nil {
return nil
@@ -1938,6 +2018,28 @@ func validateOpPutConnectInstanceIntegrationInput(v *PutConnectInstanceIntegrati
}
}
+func validateOpPutInstanceCommunicationLimitsInput(v *PutInstanceCommunicationLimitsInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "PutInstanceCommunicationLimitsInput"}
+ if v.ConnectInstanceId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ConnectInstanceId"))
+ }
+ if v.CommunicationLimitsConfig == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("CommunicationLimitsConfig"))
+ } else if v.CommunicationLimitsConfig != nil {
+ if err := validateInstanceCommunicationLimitsConfig(v.CommunicationLimitsConfig); err != nil {
+ invalidParams.AddNested("CommunicationLimitsConfig", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpPutOutboundRequestBatchInput(v *PutOutboundRequestBatchInput) error {
if v == nil {
return nil
diff --git a/service/connectcases/CHANGELOG.md b/service/connectcases/CHANGELOG.md
index 05e1a2257fc..c0a49930502 100644
--- a/service/connectcases/CHANGELOG.md
+++ b/service/connectcases/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/connectcases/go.mod b/service/connectcases/go.mod
index 98bffde307a..12e747656f2 100644
--- a/service/connectcases/go.mod
+++ b/service/connectcases/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcases
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/connectcases/go.sum b/service/connectcases/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/connectcases/go.sum
+++ b/service/connectcases/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/connectcases/go_module_metadata.go b/service/connectcases/go_module_metadata.go
index 8761bd30f81..4fda39a0ef9 100644
--- a/service/connectcases/go_module_metadata.go
+++ b/service/connectcases/go_module_metadata.go
@@ -3,4 +3,4 @@
package connectcases
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.1"
+const goModuleVersion = "1.25.2"
diff --git a/service/connectcontactlens/CHANGELOG.md b/service/connectcontactlens/CHANGELOG.md
index 8c789cf0b1c..06acc8cf195 100644
--- a/service/connectcontactlens/CHANGELOG.md
+++ b/service/connectcontactlens/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/connectcontactlens/go.mod b/service/connectcontactlens/go.mod
index 91ae3275fd5..a64d6d9e2d2 100644
--- a/service/connectcontactlens/go.mod
+++ b/service/connectcontactlens/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcontactlens
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/connectcontactlens/go.sum b/service/connectcontactlens/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/connectcontactlens/go.sum
+++ b/service/connectcontactlens/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/connectcontactlens/go_module_metadata.go b/service/connectcontactlens/go_module_metadata.go
index 8e3df17981d..d9a4a68069f 100644
--- a/service/connectcontactlens/go_module_metadata.go
+++ b/service/connectcontactlens/go_module_metadata.go
@@ -3,4 +3,4 @@
package connectcontactlens
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.1"
+const goModuleVersion = "1.28.2"
diff --git a/service/connectparticipant/CHANGELOG.md b/service/connectparticipant/CHANGELOG.md
index 9ce9d6fad48..6548c210098 100644
--- a/service/connectparticipant/CHANGELOG.md
+++ b/service/connectparticipant/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod
index a45e169ff6d..2a055d001d0 100644
--- a/service/connectparticipant/go.mod
+++ b/service/connectparticipant/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectparticipant
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/connectparticipant/go.sum
+++ b/service/connectparticipant/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/connectparticipant/go_module_metadata.go b/service/connectparticipant/go_module_metadata.go
index 75768bf9085..1563a73d220 100644
--- a/service/connectparticipant/go_module_metadata.go
+++ b/service/connectparticipant/go_module_metadata.go
@@ -3,4 +3,4 @@
package connectparticipant
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/controlcatalog/CHANGELOG.md b/service/controlcatalog/CHANGELOG.md
index f693516dd72..da19abaa01f 100644
--- a/service/controlcatalog/CHANGELOG.md
+++ b/service/controlcatalog/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.9.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.9.0 (2025-06-11)
+
+* **Feature**: Introduced ListControlMappings API that retrieves control mappings. Added control aliases and governed resources fields in GetControl and ListControls APIs. New filtering capability in ListControls API, with implementation identifiers and implementation types.
+
# v1.8.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/controlcatalog/api_op_GetControl.go b/service/controlcatalog/api_op_GetControl.go
index 11c5e8d054b..3291de09198 100644
--- a/service/controlcatalog/api_op_GetControl.go
+++ b/service/controlcatalog/api_op_GetControl.go
@@ -84,8 +84,8 @@ type GetControlOutput struct {
Name *string
// Returns information about the control, including the scope of the control, if
- // enabled, and the Regions in which the control currently is available for
- // deployment. For more information about scope, see [Global services].
+ // enabled, and the Regions in which the control is available for deployment. For
+ // more information about scope, see [Global services].
//
// If you are applying controls through an Amazon Web Services Control Tower
// landing zone environment, remember that the values returned in the
@@ -101,10 +101,23 @@ type GetControlOutput struct {
// This member is required.
RegionConfiguration *types.RegionConfiguration
+ // A list of alternative identifiers for the control. These are human-readable
+ // designators, such as SH.S3.1 . Several aliases can refer to the same control
+ // across different Amazon Web Services services or compliance frameworks.
+ Aliases []string
+
// A timestamp that notes the time when the control was released (start of its
// life) as a governance capability in Amazon Web Services.
CreateTime *time.Time
+ // A list of Amazon Web Services resource types that are governed by this control.
+ // This information helps you understand which controls can govern certain types of
+ // resources, and conversely, which resources are affected when the control is
+ // implemented. The resources are represented as Amazon Web Services CloudFormation
+ // resource types. If GovernedResources cannot be represented by available
+ // CloudFormation resource types, it’s returned as an empty list.
+ GovernedResources []string
+
// Returns information about the control, as an ImplementationDetails object that
// shows the underlying implementation type for a control.
Implementation *types.ImplementationDetails
diff --git a/service/controlcatalog/api_op_ListCommonControls.go b/service/controlcatalog/api_op_ListCommonControls.go
index 81f4cfa600e..332a82c8c51 100644
--- a/service/controlcatalog/api_op_ListCommonControls.go
+++ b/service/controlcatalog/api_op_ListCommonControls.go
@@ -37,7 +37,7 @@ type ListCommonControlsInput struct {
// An optional filter that narrows the results to a specific objective.
//
// This filter allows you to specify one objective ARN at a time. Passing multiple
- // ARNs in the CommonControlFilter isn’t currently supported.
+ // ARNs in the CommonControlFilter isn’t supported.
CommonControlFilter *types.CommonControlFilter
// The maximum number of results on a page or for an API request call.
diff --git a/service/controlcatalog/api_op_ListControlMappings.go b/service/controlcatalog/api_op_ListControlMappings.go
new file mode 100644
index 00000000000..2cf5c6f79ec
--- /dev/null
+++ b/service/controlcatalog/api_op_ListControlMappings.go
@@ -0,0 +1,263 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package controlcatalog
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/controlcatalog/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a paginated list of control mappings from the Control Catalog. Control
+// mappings show relationships between controls and other entities, such as common
+// controls or compliance frameworks.
+func (c *Client) ListControlMappings(ctx context.Context, params *ListControlMappingsInput, optFns ...func(*Options)) (*ListControlMappingsOutput, error) {
+ if params == nil {
+ params = &ListControlMappingsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListControlMappings", params, optFns, c.addOperationListControlMappingsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListControlMappingsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListControlMappingsInput struct {
+
+ // An optional filter that narrows the results to specific control mappings based
+ // on control ARNs, common control ARNs, or mapping types.
+ Filter *types.ControlMappingFilter
+
+ // The maximum number of results on a page or for an API request call.
+ MaxResults *int32
+
+ // The pagination token that's used to fetch the next set of results.
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListControlMappingsOutput struct {
+
+ // The list of control mappings that the ListControlMappings API returns.
+ //
+ // This member is required.
+ ControlMappings []types.ControlMapping
+
+ // The pagination token that's used to fetch the next set of results.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListControlMappingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListControlMappings{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListControlMappings{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListControlMappings"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListControlMappings(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListControlMappingsPaginatorOptions is the paginator options for
+// ListControlMappings
+type ListControlMappingsPaginatorOptions struct {
+ // The maximum number of results on a page or for an API request call.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListControlMappingsPaginator is a paginator for ListControlMappings
+type ListControlMappingsPaginator struct {
+ options ListControlMappingsPaginatorOptions
+ client ListControlMappingsAPIClient
+ params *ListControlMappingsInput
+ nextToken *string
+ firstPage bool
+}
+
+// NewListControlMappingsPaginator returns a new ListControlMappingsPaginator
+func NewListControlMappingsPaginator(client ListControlMappingsAPIClient, params *ListControlMappingsInput, optFns ...func(*ListControlMappingsPaginatorOptions)) *ListControlMappingsPaginator {
+ if params == nil {
+ params = &ListControlMappingsInput{}
+ }
+
+ options := ListControlMappingsPaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListControlMappingsPaginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListControlMappingsPaginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListControlMappings page.
+func (p *ListControlMappingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListControlMappingsOutput, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListControlMappings(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListControlMappingsAPIClient is a client that implements the
+// ListControlMappings operation.
+type ListControlMappingsAPIClient interface {
+ ListControlMappings(context.Context, *ListControlMappingsInput, ...func(*Options)) (*ListControlMappingsOutput, error)
+}
+
+var _ ListControlMappingsAPIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListControlMappings(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListControlMappings",
+ }
+}
diff --git a/service/controlcatalog/api_op_ListControls.go b/service/controlcatalog/api_op_ListControls.go
index 41f0bcd5386..ac2866de08a 100644
--- a/service/controlcatalog/api_op_ListControls.go
+++ b/service/controlcatalog/api_op_ListControls.go
@@ -11,10 +11,10 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Returns a paginated list of all available controls in the Amazon Web Services
-// Control Catalog library. Allows you to discover available controls. The list of
-// controls is given as structures of type controlSummary. The ARN is returned in
-// the global controlcatalog format, as shown in the examples.
+// Returns a paginated list of all available controls in the Control Catalog
+// library. Allows you to discover available controls. The list of controls is
+// given as structures of type controlSummary. The ARN is returned in the global
+// controlcatalog format, as shown in the examples.
func (c *Client) ListControls(ctx context.Context, params *ListControlsInput, optFns ...func(*Options)) (*ListControlsOutput, error) {
if params == nil {
params = &ListControlsInput{}
@@ -32,6 +32,11 @@ func (c *Client) ListControls(ctx context.Context, params *ListControlsInput, op
type ListControlsInput struct {
+ // An optional filter that narrows the results to controls with specific
+ // implementation types or identifiers. If you don't provide a filter, the
+ // operation returns all available controls.
+ Filter *types.ControlFilter
+
// The maximum number of results on a page or for an API request call.
MaxResults *int32
diff --git a/service/controlcatalog/api_op_ListDomains.go b/service/controlcatalog/api_op_ListDomains.go
index 1e381f22f2f..9ab1602626b 100644
--- a/service/controlcatalog/api_op_ListDomains.go
+++ b/service/controlcatalog/api_op_ListDomains.go
@@ -11,8 +11,7 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Returns a paginated list of domains from the Amazon Web Services Control
-// Catalog.
+// Returns a paginated list of domains from the Control Catalog.
func (c *Client) ListDomains(ctx context.Context, params *ListDomainsInput, optFns ...func(*Options)) (*ListDomainsOutput, error) {
if params == nil {
params = &ListDomainsInput{}
diff --git a/service/controlcatalog/api_op_ListObjectives.go b/service/controlcatalog/api_op_ListObjectives.go
index 2f55e9a4240..0cddc981065 100644
--- a/service/controlcatalog/api_op_ListObjectives.go
+++ b/service/controlcatalog/api_op_ListObjectives.go
@@ -11,8 +11,7 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Returns a paginated list of objectives from the Amazon Web Services Control
-// Catalog.
+// Returns a paginated list of objectives from the Control Catalog.
//
// You can apply an optional filter to see the objectives that belong to a
// specific domain. If you don’t provide a filter, the operation returns all
@@ -43,7 +42,7 @@ type ListObjectivesInput struct {
// An optional filter that narrows the results to a specific domain.
//
// This filter allows you to specify one domain ARN at a time. Passing multiple
- // ARNs in the ObjectiveFilter isn’t currently supported.
+ // ARNs in the ObjectiveFilter isn’t supported.
ObjectiveFilter *types.ObjectiveFilter
noSmithyDocumentSerde
diff --git a/service/controlcatalog/deserializers.go b/service/controlcatalog/deserializers.go
index f8539cdc348..6b2a2a672e5 100644
--- a/service/controlcatalog/deserializers.go
+++ b/service/controlcatalog/deserializers.go
@@ -179,6 +179,11 @@ func awsRestjson1_deserializeOpDocumentGetControlOutput(v **GetControlOutput, va
for key, value := range shape {
switch key {
+ case "Aliases":
+ if err := awsRestjson1_deserializeDocumentControlAliases(&sv.Aliases, value); err != nil {
+ return err
+ }
+
case "Arn":
if value != nil {
jtv, ok := value.(string)
@@ -222,6 +227,11 @@ func awsRestjson1_deserializeOpDocumentGetControlOutput(v **GetControlOutput, va
sv.Description = ptr.String(jtv)
}
+ case "GovernedResources":
+ if err := awsRestjson1_deserializeDocumentGovernedResources(&sv.GovernedResources, value); err != nil {
+ return err
+ }
+
case "Implementation":
if err := awsRestjson1_deserializeDocumentImplementationDetails(&sv.Implementation, value); err != nil {
return err
@@ -434,6 +444,176 @@ func awsRestjson1_deserializeOpDocumentListCommonControlsOutput(v **ListCommonCo
return nil
}
+type awsRestjson1_deserializeOpListControlMappings struct {
+}
+
+func (*awsRestjson1_deserializeOpListControlMappings) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListControlMappings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListControlMappings(response, &metadata)
+ }
+ output := &ListControlMappingsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListControlMappingsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListControlMappings(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListControlMappingsOutput(v **ListControlMappingsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListControlMappingsOutput
+ if *v == nil {
+ sv = &ListControlMappingsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ControlMappings":
+ if err := awsRestjson1_deserializeDocumentControlMappings(&sv.ControlMappings, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
type awsRestjson1_deserializeOpListControls struct {
}
@@ -1262,6 +1442,46 @@ func awsRestjson1_deserializeDocumentAssociatedObjectiveSummary(v **types.Associ
return nil
}
+func awsRestjson1_deserializeDocumentCommonControlMappingDetails(v **types.CommonControlMappingDetails, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.CommonControlMappingDetails
+ if *v == nil {
+ sv = &types.CommonControlMappingDetails{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "CommonControlArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CommonControlArn to be of type string, got %T instead", value)
+ }
+ sv.CommonControlArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentCommonControlSummary(v **types.CommonControlSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -1396,6 +1616,130 @@ func awsRestjson1_deserializeDocumentCommonControlSummaryList(v *[]types.CommonC
return nil
}
+func awsRestjson1_deserializeDocumentControlAliases(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ControlAlias to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentControlMapping(v **types.ControlMapping, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ControlMapping
+ if *v == nil {
+ sv = &types.ControlMapping{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ControlArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ControlArn to be of type string, got %T instead", value)
+ }
+ sv.ControlArn = ptr.String(jtv)
+ }
+
+ case "Mapping":
+ if err := awsRestjson1_deserializeDocumentMapping(&sv.Mapping, value); err != nil {
+ return err
+ }
+
+ case "MappingType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected MappingType to be of type string, got %T instead", value)
+ }
+ sv.MappingType = types.MappingType(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentControlMappings(v *[]types.ControlMapping, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ControlMapping
+ if *v == nil {
+ cv = []types.ControlMapping{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ControlMapping
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentControlMapping(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentControlParameter(v **types.ControlParameter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -1526,6 +1870,11 @@ func awsRestjson1_deserializeDocumentControlSummary(v **types.ControlSummary, va
for key, value := range shape {
switch key {
+ case "Aliases":
+ if err := awsRestjson1_deserializeDocumentControlAliases(&sv.Aliases, value); err != nil {
+ return err
+ }
+
case "Arn":
if value != nil {
jtv, ok := value.(string)
@@ -1569,6 +1918,11 @@ func awsRestjson1_deserializeDocumentControlSummary(v **types.ControlSummary, va
sv.Description = ptr.String(jtv)
}
+ case "GovernedResources":
+ if err := awsRestjson1_deserializeDocumentGovernedResources(&sv.GovernedResources, value); err != nil {
+ return err
+ }
+
case "Implementation":
if err := awsRestjson1_deserializeDocumentImplementationSummary(&sv.Implementation, value); err != nil {
return err
@@ -1761,6 +2115,91 @@ func awsRestjson1_deserializeDocumentDomainSummaryList(v *[]types.DomainSummary,
return nil
}
+func awsRestjson1_deserializeDocumentFrameworkMappingDetails(v **types.FrameworkMappingDetails, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.FrameworkMappingDetails
+ if *v == nil {
+ sv = &types.FrameworkMappingDetails{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Item":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FrameworkItem to be of type string, got %T instead", value)
+ }
+ sv.Item = ptr.String(jtv)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FrameworkName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentGovernedResources(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected GovernedResource to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentImplementationDetails(v **types.ImplementationDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -1899,6 +2338,56 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS
return nil
}
+func awsRestjson1_deserializeDocumentMapping(v *types.Mapping, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var uv types.Mapping
+loop:
+ for key, value := range shape {
+ if value == nil {
+ continue
+ }
+ switch key {
+ case "CommonControl":
+ var mv types.CommonControlMappingDetails
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentCommonControlMappingDetails(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.MappingMemberCommonControl{Value: mv}
+ break loop
+
+ case "Framework":
+ var mv types.FrameworkMappingDetails
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentFrameworkMappingDetails(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.MappingMemberFramework{Value: mv}
+ break loop
+
+ default:
+ uv = &types.UnknownUnionMember{Tag: key}
+ break loop
+
+ }
+ }
+ *v = uv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentObjectiveSummary(v **types.ObjectiveSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
diff --git a/service/controlcatalog/doc.go b/service/controlcatalog/doc.go
index b76c3dee597..1ccf9245a88 100644
--- a/service/controlcatalog/doc.go
+++ b/service/controlcatalog/doc.go
@@ -3,15 +3,13 @@
// Package controlcatalog provides the API client, operations, and parameter types
// for AWS Control Catalog.
//
-// Welcome to the Amazon Web Services Control Catalog API reference. This guide is
-// for developers who need detailed information about how to programmatically
-// identify and filter the common controls and related metadata that are available
-// to Amazon Web Services customers. This API reference provides descriptions,
-// syntax, and usage examples for each of the actions and data types that are
-// supported by Amazon Web Services Control Catalog.
+// Welcome to the Control Catalog API reference. This guide is for developers who
+// need detailed information about how to programmatically identify and filter the
+// common controls and related metadata that are available to Amazon Web Services
+// customers. This API reference provides descriptions, syntax, and usage examples
+// for each of the actions and data types that are supported by Control Catalog.
//
-// Use the following links to get started with the Amazon Web Services Control
-// Catalog API:
+// Use the following links to get started with the Control Catalog API:
//
// [Actions]
// - : An alphabetical list of all Control Catalog API operations.
diff --git a/service/controlcatalog/generated.json b/service/controlcatalog/generated.json
index c58c7352094..a46f55e35c3 100644
--- a/service/controlcatalog/generated.json
+++ b/service/controlcatalog/generated.json
@@ -10,6 +10,7 @@
"api_client_test.go",
"api_op_GetControl.go",
"api_op_ListCommonControls.go",
+ "api_op_ListControlMappings.go",
"api_op_ListControls.go",
"api_op_ListDomains.go",
"api_op_ListObjectives.go",
@@ -30,6 +31,7 @@
"types/enums.go",
"types/errors.go",
"types/types.go",
+ "types/types_exported_test.go",
"validators.go"
],
"go": "1.22",
diff --git a/service/controlcatalog/go.mod b/service/controlcatalog/go.mod
index a0599d66797..80f4b6da644 100644
--- a/service/controlcatalog/go.mod
+++ b/service/controlcatalog/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/controlcatalog
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/controlcatalog/go.sum b/service/controlcatalog/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/controlcatalog/go.sum
+++ b/service/controlcatalog/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/controlcatalog/go_module_metadata.go b/service/controlcatalog/go_module_metadata.go
index 7801afd3ee9..3c575c53cb1 100644
--- a/service/controlcatalog/go_module_metadata.go
+++ b/service/controlcatalog/go_module_metadata.go
@@ -3,4 +3,4 @@
package controlcatalog
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.8.1"
+const goModuleVersion = "1.9.1"
diff --git a/service/controlcatalog/serializers.go b/service/controlcatalog/serializers.go
index a284d4d6338..bd9c820c1e4 100644
--- a/service/controlcatalog/serializers.go
+++ b/service/controlcatalog/serializers.go
@@ -191,6 +191,101 @@ func awsRestjson1_serializeOpDocumentListCommonControlsInput(v *ListCommonContro
return nil
}
+type awsRestjson1_serializeOpListControlMappings struct {
+}
+
+func (*awsRestjson1_serializeOpListControlMappings) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListControlMappings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListControlMappingsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/list-control-mappings")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListControlMappingsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentListControlMappingsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListControlMappingsInput(v *ListControlMappingsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("maxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("nextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentListControlMappingsInput(v *ListControlMappingsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentControlMappingFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpListControls struct {
}
@@ -236,6 +331,17 @@ func (m *awsRestjson1_serializeOpListControls) HandleSerialize(ctx context.Conte
return out, metadata, &smithy.SerializationError{Err: err}
}
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentListControlsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -261,6 +367,20 @@ func awsRestjson1_serializeOpHttpBindingsListControlsInput(v *ListControlsInput,
return nil
}
+func awsRestjson1_serializeOpDocumentListControlsInput(v *ListControlsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentControlFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpListDomains struct {
}
@@ -426,6 +546,17 @@ func awsRestjson1_serializeOpDocumentListObjectivesInput(v *ListObjectivesInput,
return nil
}
+func awsRestjson1_serializeDocumentCommonControlArnFilterList(v []string, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(v[i])
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentCommonControlFilter(v *types.CommonControlFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -440,6 +571,59 @@ func awsRestjson1_serializeDocumentCommonControlFilter(v *types.CommonControlFil
return nil
}
+func awsRestjson1_serializeDocumentControlArnFilterList(v []string, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(v[i])
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentControlFilter(v *types.ControlFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Implementations != nil {
+ ok := object.Key("Implementations")
+ if err := awsRestjson1_serializeDocumentImplementationFilter(v.Implementations, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentControlMappingFilter(v *types.ControlMappingFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.CommonControlArns != nil {
+ ok := object.Key("CommonControlArns")
+ if err := awsRestjson1_serializeDocumentCommonControlArnFilterList(v.CommonControlArns, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ControlArns != nil {
+ ok := object.Key("ControlArns")
+ if err := awsRestjson1_serializeDocumentControlArnFilterList(v.ControlArns, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MappingTypes != nil {
+ ok := object.Key("MappingTypes")
+ if err := awsRestjson1_serializeDocumentMappingTypeFilterList(v.MappingTypes, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentDomainResourceFilter(v *types.DomainResourceFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -465,6 +649,60 @@ func awsRestjson1_serializeDocumentDomainResourceFilterList(v []types.DomainReso
return nil
}
+func awsRestjson1_serializeDocumentImplementationFilter(v *types.ImplementationFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Identifiers != nil {
+ ok := object.Key("Identifiers")
+ if err := awsRestjson1_serializeDocumentImplementationIdentifierFilterList(v.Identifiers, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Types != nil {
+ ok := object.Key("Types")
+ if err := awsRestjson1_serializeDocumentImplementationTypeFilterList(v.Types, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentImplementationIdentifierFilterList(v []string, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(v[i])
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentImplementationTypeFilterList(v []string, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(v[i])
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentMappingTypeFilterList(v []types.MappingType, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(string(v[i]))
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentObjectiveFilter(v *types.ObjectiveFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
diff --git a/service/controlcatalog/snapshot/api_op_ListControlMappings.go.snap b/service/controlcatalog/snapshot/api_op_ListControlMappings.go.snap
new file mode 100644
index 00000000000..9b2254cf3dc
--- /dev/null
+++ b/service/controlcatalog/snapshot/api_op_ListControlMappings.go.snap
@@ -0,0 +1,41 @@
+ListControlMappings
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/controlcatalog/snapshot_test.go b/service/controlcatalog/snapshot_test.go
index b54dd3227ea..4a8c14168ad 100644
--- a/service/controlcatalog/snapshot_test.go
+++ b/service/controlcatalog/snapshot_test.go
@@ -86,6 +86,18 @@ func TestCheckSnapshot_ListCommonControls(t *testing.T) {
}
}
+func TestCheckSnapshot_ListControlMappings(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListControlMappings(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListControlMappings")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_ListControls(t *testing.T) {
svc := New(Options{})
_, err := svc.ListControls(context.Background(), nil, func(o *Options) {
@@ -145,6 +157,18 @@ func TestUpdateSnapshot_ListCommonControls(t *testing.T) {
}
}
+func TestUpdateSnapshot_ListControlMappings(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListControlMappings(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListControlMappings")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_ListControls(t *testing.T) {
svc := New(Options{})
_, err := svc.ListControls(context.Background(), nil, func(o *Options) {
diff --git a/service/controlcatalog/sra_operation_order_test.go b/service/controlcatalog/sra_operation_order_test.go
index c9499b559cd..ba369c27098 100644
--- a/service/controlcatalog/sra_operation_order_test.go
+++ b/service/controlcatalog/sra_operation_order_test.go
@@ -89,6 +89,41 @@ func TestOpListCommonControlsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpListControlMappingsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListControlMappings(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpListControlsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
diff --git a/service/controlcatalog/types/enums.go b/service/controlcatalog/types/enums.go
index 3950dd02478..e3d06305668 100644
--- a/service/controlcatalog/types/enums.go
+++ b/service/controlcatalog/types/enums.go
@@ -64,3 +64,22 @@ func (ControlSeverity) Values() []ControlSeverity {
"CRITICAL",
}
}
+
+type MappingType string
+
+// Enum values for MappingType
+const (
+ MappingTypeFramework MappingType = "FRAMEWORK"
+ MappingTypeCommonControl MappingType = "COMMON_CONTROL"
+)
+
+// Values returns all known values for MappingType. Note that this can be expanded
+// in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (MappingType) Values() []MappingType {
+ return []MappingType{
+ "FRAMEWORK",
+ "COMMON_CONTROL",
+ }
+}
diff --git a/service/controlcatalog/types/types.go b/service/controlcatalog/types/types.go
index 6006cd3e175..febde5aae36 100644
--- a/service/controlcatalog/types/types.go
+++ b/service/controlcatalog/types/types.go
@@ -37,12 +37,25 @@ type CommonControlFilter struct {
// The objective that's used as filter criteria.
//
// You can use this parameter to specify one objective ARN at a time. Passing
- // multiple ARNs in the CommonControlFilter isn’t currently supported.
+ // multiple ARNs in the CommonControlFilter isn’t supported.
Objectives []ObjectiveResourceFilter
noSmithyDocumentSerde
}
+// A structure that contains details about a common control mapping. In
+// particular, it returns the Amazon Resource Name (ARN) of the common control.
+type CommonControlMappingDetails struct {
+
+ // The Amazon Resource Name (ARN) that identifies the common control in the
+ // mapping.
+ //
+ // This member is required.
+ CommonControlArn *string
+
+ noSmithyDocumentSerde
+}
+
// A summary of metadata for a common control.
type CommonControlSummary struct {
@@ -84,6 +97,64 @@ type CommonControlSummary struct {
noSmithyDocumentSerde
}
+// A structure that defines filtering criteria for the ListControls operation. You
+// can use this filter to narrow down the list of controls based on their
+// implementation details.
+type ControlFilter struct {
+
+ // A filter that narrows the results to controls with specific implementation
+ // types or identifiers. This field allows you to find controls that are
+ // implemented by specific Amazon Web Services services or with specific service
+ // identifiers.
+ Implementations *ImplementationFilter
+
+ noSmithyDocumentSerde
+}
+
+// A structure that contains information about a control mapping, including the
+// control ARN, mapping type, and mapping details.
+type ControlMapping struct {
+
+ // The Amazon Resource Name (ARN) that identifies the control in the mapping.
+ //
+ // This member is required.
+ ControlArn *string
+
+ // The details of the mapping relationship, containing either framework or common
+ // control information.
+ //
+ // This member is required.
+ Mapping Mapping
+
+ // The type of mapping relationship between the control and other entities.
+ // Indicates whether the mapping is to a framework or common control.
+ //
+ // This member is required.
+ MappingType MappingType
+
+ noSmithyDocumentSerde
+}
+
+// A structure that defines filtering criteria for the ListControlMappings
+// operation. You can use this filter to narrow down the list of control mappings
+// based on control ARNs, common control ARNs, or mapping types.
+type ControlMappingFilter struct {
+
+ // A list of common control ARNs to filter the mappings. When specified, only
+ // mappings associated with these common controls are returned.
+ CommonControlArns []string
+
+ // A list of control ARNs to filter the mappings. When specified, only mappings
+ // associated with these controls are returned.
+ ControlArns []string
+
+ // A list of mapping types to filter the mappings. When specified, only mappings
+ // of these types are returned.
+ MappingTypes []MappingType
+
+ noSmithyDocumentSerde
+}
+
// Five types of control parameters are supported.
//
// - AllowedRegions: List of Amazon Web Services Regions exempted from the
@@ -159,6 +230,11 @@ type ControlSummary struct {
// This member is required.
Name *string
+ // A list of alternative identifiers for the control. These are human-readable
+ // designators, such as SH.S3.1 . Several aliases can refer to the same control
+ // across different Amazon Web Services services or compliance frameworks.
+ Aliases []string
+
// An enumerated type, with the following possible values:
Behavior ControlBehavior
@@ -166,6 +242,14 @@ type ControlSummary struct {
// life) as a governance capability in Amazon Web Services.
CreateTime *time.Time
+ // A list of Amazon Web Services resource types that are governed by this control.
+ // This information helps you understand which controls can govern certain types of
+ // resources, and conversely, which resources are affected when the control is
+ // implemented. The resources are represented as Amazon Web Services CloudFormation
+ // resource types. If GovernedResources cannot be represented by available
+ // CloudFormation resource types, it’s returned as an empty list.
+ GovernedResources []string
+
// An object of type ImplementationSummary that describes how the control is
// implemented.
Implementation *ImplementationSummary
@@ -216,6 +300,23 @@ type DomainSummary struct {
noSmithyDocumentSerde
}
+// A structure that contains details about a framework mapping, including the
+// framework name and specific item within the framework that the control maps to.
+type FrameworkMappingDetails struct {
+
+ // The specific item or requirement within the framework that the control maps to.
+ //
+ // This member is required.
+ Item *string
+
+ // The name of the compliance framework that the control maps to.
+ //
+ // This member is required.
+ Name *string
+
+ noSmithyDocumentSerde
+}
+
// An object that describes the implementation type for a control.
//
// Our ImplementationDetails Type format has three required segments:
@@ -250,6 +351,24 @@ type ImplementationDetails struct {
noSmithyDocumentSerde
}
+// A structure that defines filtering criteria for control implementations. You
+// can use this filter to find controls that are implemented by specific Amazon Web
+// Services services or with specific service identifiers.
+type ImplementationFilter struct {
+
+ // A list of service-specific identifiers that can serve as filters. For example,
+ // you can filter for controls with specific Amazon Web Services Config Rule IDs or
+ // Security Hub Control IDs.
+ Identifiers []string
+
+ // A list of implementation types that can serve as filters. For example, you can
+ // filter for controls implemented as Amazon Web Services Config Rules by
+ // specifying AWS::Config::ConfigRule as a type.
+ Types []string
+
+ noSmithyDocumentSerde
+}
+
// A summary of how the control is implemented, including the Amazon Web Services
// service that enforces the control and its service-specific identifier. For
// example, the value of this field could indicate that the control is implemented
@@ -273,13 +392,44 @@ type ImplementationSummary struct {
noSmithyDocumentSerde
}
+// A structure that contains the details of a mapping relationship, which can be
+// either to a framework or to a common control.
+//
+// The following types satisfy this interface:
+//
+// MappingMemberCommonControl
+// MappingMemberFramework
+type Mapping interface {
+ isMapping()
+}
+
+// The common control mapping details when the mapping type relates to a common
+// control.
+type MappingMemberCommonControl struct {
+ Value CommonControlMappingDetails
+
+ noSmithyDocumentSerde
+}
+
+func (*MappingMemberCommonControl) isMapping() {}
+
+// The framework mapping details when the mapping type relates to a compliance
+// framework.
+type MappingMemberFramework struct {
+ Value FrameworkMappingDetails
+
+ noSmithyDocumentSerde
+}
+
+func (*MappingMemberFramework) isMapping() {}
+
// An optional filter that narrows the list of objectives to a specific domain.
type ObjectiveFilter struct {
// The domain that's used as filter criteria.
//
// You can use this parameter to specify one domain ARN at a time. Passing
- // multiple ARNs in the ObjectiveFilter isn’t currently supported.
+ // multiple ARNs in the ObjectiveFilter isn’t supported.
Domains []DomainResourceFilter
noSmithyDocumentSerde
@@ -331,8 +481,8 @@ type ObjectiveSummary struct {
}
// Returns information about the control, including the scope of the control, if
-// enabled, and the Regions in which the control currently is available for
-// deployment. For more information about scope, see [Global services].
+// enabled, and the Regions in which the control is available for deployment. For
+// more information about scope, see [Global services].
//
// If you are applying controls through an Amazon Web Services Control Tower
// landing zone environment, remember that the values returned in the
@@ -365,3 +515,14 @@ type RegionConfiguration struct {
}
type noSmithyDocumentSerde = smithydocument.NoSerde
+
+// UnknownUnionMember is returned when a union member is returned over the wire,
+// but has an unknown tag.
+type UnknownUnionMember struct {
+ Tag string
+ Value []byte
+
+ noSmithyDocumentSerde
+}
+
+func (*UnknownUnionMember) isMapping() {}
diff --git a/service/controlcatalog/types/types_exported_test.go b/service/controlcatalog/types/types_exported_test.go
new file mode 100644
index 00000000000..bd390a34093
--- /dev/null
+++ b/service/controlcatalog/types/types_exported_test.go
@@ -0,0 +1,30 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package types_test
+
+import (
+ "fmt"
+ "github.com/aws/aws-sdk-go-v2/service/controlcatalog/types"
+)
+
+func ExampleMapping_outputUsage() {
+ var union types.Mapping
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.MappingMemberCommonControl:
+ _ = v.Value // Value is types.CommonControlMappingDetails
+
+ case *types.MappingMemberFramework:
+ _ = v.Value // Value is types.FrameworkMappingDetails
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.FrameworkMappingDetails
+var _ *types.CommonControlMappingDetails
diff --git a/service/controltower/CHANGELOG.md b/service/controltower/CHANGELOG.md
index d994bdf8a1f..34b8a008954 100644
--- a/service/controltower/CHANGELOG.md
+++ b/service/controltower/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.22.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.22.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/controltower/go.mod b/service/controltower/go.mod
index 92f87d5c30e..5af0ebc7552 100644
--- a/service/controltower/go.mod
+++ b/service/controltower/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/controltower
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/controltower/go.sum b/service/controltower/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/controltower/go.sum
+++ b/service/controltower/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/controltower/go_module_metadata.go b/service/controltower/go_module_metadata.go
index 0cc383d7c89..93c84749304 100644
--- a/service/controltower/go_module_metadata.go
+++ b/service/controltower/go_module_metadata.go
@@ -3,4 +3,4 @@
package controltower
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.22.2"
+const goModuleVersion = "1.22.3"
diff --git a/service/costandusagereportservice/CHANGELOG.md b/service/costandusagereportservice/CHANGELOG.md
index d5a5c12508c..a70684980f0 100644
--- a/service/costandusagereportservice/CHANGELOG.md
+++ b/service/costandusagereportservice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod
index f3afa7f5682..5dedd874488 100644
--- a/service/costandusagereportservice/go.mod
+++ b/service/costandusagereportservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costandusagereportservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/costandusagereportservice/go.sum
+++ b/service/costandusagereportservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/costandusagereportservice/go_module_metadata.go b/service/costandusagereportservice/go_module_metadata.go
index a5e610bd3e4..8482af723d1 100644
--- a/service/costandusagereportservice/go_module_metadata.go
+++ b/service/costandusagereportservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package costandusagereportservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/costexplorer/CHANGELOG.md b/service/costexplorer/CHANGELOG.md
index 6bc8dc00396..fd9f756fa9d 100644
--- a/service/costexplorer/CHANGELOG.md
+++ b/service/costexplorer/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.51.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.51.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod
index 6edcad429df..ace4eab303f 100644
--- a/service/costexplorer/go.mod
+++ b/service/costexplorer/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costexplorer
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/costexplorer/go.sum
+++ b/service/costexplorer/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/costexplorer/go_module_metadata.go b/service/costexplorer/go_module_metadata.go
index 1914d54a947..a932f1c58c4 100644
--- a/service/costexplorer/go_module_metadata.go
+++ b/service/costexplorer/go_module_metadata.go
@@ -3,4 +3,4 @@
package costexplorer
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.51.1"
+const goModuleVersion = "1.51.2"
diff --git a/service/costoptimizationhub/CHANGELOG.md b/service/costoptimizationhub/CHANGELOG.md
index f406a5cbe80..0cf66ba1294 100644
--- a/service/costoptimizationhub/CHANGELOG.md
+++ b/service/costoptimizationhub/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.16.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.16.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/costoptimizationhub/go.mod b/service/costoptimizationhub/go.mod
index 3c15578abf2..eab8f80bb15 100644
--- a/service/costoptimizationhub/go.mod
+++ b/service/costoptimizationhub/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costoptimizationhub
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/costoptimizationhub/go.sum b/service/costoptimizationhub/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/costoptimizationhub/go.sum
+++ b/service/costoptimizationhub/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/costoptimizationhub/go_module_metadata.go b/service/costoptimizationhub/go_module_metadata.go
index eb0d18e2102..369b86bf166 100644
--- a/service/costoptimizationhub/go_module_metadata.go
+++ b/service/costoptimizationhub/go_module_metadata.go
@@ -3,4 +3,4 @@
package costoptimizationhub
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.16.1"
+const goModuleVersion = "1.16.2"
diff --git a/service/customerprofiles/CHANGELOG.md b/service/customerprofiles/CHANGELOG.md
index f8c79bb19b4..94b9d78e728 100644
--- a/service/customerprofiles/CHANGELOG.md
+++ b/service/customerprofiles/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.46.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.46.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/customerprofiles/go.mod b/service/customerprofiles/go.mod
index ee023ecb5ae..bf4e3feb791 100644
--- a/service/customerprofiles/go.mod
+++ b/service/customerprofiles/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/customerprofiles
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/customerprofiles/go.sum b/service/customerprofiles/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/customerprofiles/go.sum
+++ b/service/customerprofiles/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/customerprofiles/go_module_metadata.go b/service/customerprofiles/go_module_metadata.go
index f65cdbe31e0..b6b6009b1c1 100644
--- a/service/customerprofiles/go_module_metadata.go
+++ b/service/customerprofiles/go_module_metadata.go
@@ -3,4 +3,4 @@
package customerprofiles
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.46.1"
+const goModuleVersion = "1.46.2"
diff --git a/service/databasemigrationservice/CHANGELOG.md b/service/databasemigrationservice/CHANGELOG.md
index cf226c9e405..7d59a0dc0ac 100644
--- a/service/databasemigrationservice/CHANGELOG.md
+++ b/service/databasemigrationservice/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.53.0 (2025-06-17)
+
+* **Feature**: Add "Virtual" field to Data Provider as well as "S3Path" and "S3AccessRoleArn" fields to DataProvider settings
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.52.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/databasemigrationservice/api_op_BatchStartRecommendations.go b/service/databasemigrationservice/api_op_BatchStartRecommendations.go
index 059a0143174..6305b75202b 100644
--- a/service/databasemigrationservice/api_op_BatchStartRecommendations.go
+++ b/service/databasemigrationservice/api_op_BatchStartRecommendations.go
@@ -11,6 +11,12 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Starts the analysis of up to 20 source databases to recommend target engines
// for each source database. This is a batch version of [StartRecommendations].
//
@@ -19,6 +25,7 @@ import (
// and unsuccessful actions, you should check for batch errors even when the call
// returns an HTTP status code of 200 .
//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
// [StartRecommendations]: https://docs.aws.amazon.com/dms/latest/APIReference/API_StartRecommendations.html
func (c *Client) BatchStartRecommendations(ctx context.Context, params *BatchStartRecommendationsInput, optFns ...func(*Options)) (*BatchStartRecommendationsOutput, error) {
if params == nil {
diff --git a/service/databasemigrationservice/api_op_CreateDataProvider.go b/service/databasemigrationservice/api_op_CreateDataProvider.go
index 1dc38270bae..5afc7bbe939 100644
--- a/service/databasemigrationservice/api_op_CreateDataProvider.go
+++ b/service/databasemigrationservice/api_op_CreateDataProvider.go
@@ -52,6 +52,9 @@ type CreateDataProviderInput struct {
// One or more tags to be assigned to the data provider.
Tags []types.Tag
+ // Indicates whether the data provider is virtual.
+ Virtual *bool
+
noSmithyDocumentSerde
}
diff --git a/service/databasemigrationservice/api_op_CreateFleetAdvisorCollector.go b/service/databasemigrationservice/api_op_CreateFleetAdvisorCollector.go
index 328aec14a7a..b465bdd53e5 100644
--- a/service/databasemigrationservice/api_op_CreateFleetAdvisorCollector.go
+++ b/service/databasemigrationservice/api_op_CreateFleetAdvisorCollector.go
@@ -10,7 +10,15 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Creates a Fleet Advisor collector using the specified parameters.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) CreateFleetAdvisorCollector(ctx context.Context, params *CreateFleetAdvisorCollectorInput, optFns ...func(*Options)) (*CreateFleetAdvisorCollectorOutput, error) {
if params == nil {
params = &CreateFleetAdvisorCollectorInput{}
diff --git a/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go b/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go
index 1a0aeac2937..e05ee0df0eb 100644
--- a/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go
+++ b/service/databasemigrationservice/api_op_CreateReplicationSubnetGroup.go
@@ -44,6 +44,8 @@ type CreateReplicationSubnetGroupInput struct {
// The description for the subnet group.
//
+ // Constraints: This parameter Must not contain non-printable control characters.
+ //
// This member is required.
ReplicationSubnetGroupDescription *string
diff --git a/service/databasemigrationservice/api_op_DeleteFleetAdvisorCollector.go b/service/databasemigrationservice/api_op_DeleteFleetAdvisorCollector.go
index 19aa9de2aa1..19bab34108b 100644
--- a/service/databasemigrationservice/api_op_DeleteFleetAdvisorCollector.go
+++ b/service/databasemigrationservice/api_op_DeleteFleetAdvisorCollector.go
@@ -10,7 +10,15 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Deletes the specified Fleet Advisor collector.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DeleteFleetAdvisorCollector(ctx context.Context, params *DeleteFleetAdvisorCollectorInput, optFns ...func(*Options)) (*DeleteFleetAdvisorCollectorOutput, error) {
if params == nil {
params = &DeleteFleetAdvisorCollectorInput{}
diff --git a/service/databasemigrationservice/api_op_DeleteFleetAdvisorDatabases.go b/service/databasemigrationservice/api_op_DeleteFleetAdvisorDatabases.go
index 81cde5f50e0..4e0c118f1c1 100644
--- a/service/databasemigrationservice/api_op_DeleteFleetAdvisorDatabases.go
+++ b/service/databasemigrationservice/api_op_DeleteFleetAdvisorDatabases.go
@@ -10,7 +10,15 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Deletes the specified Fleet Advisor collector databases.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DeleteFleetAdvisorDatabases(ctx context.Context, params *DeleteFleetAdvisorDatabasesInput, optFns ...func(*Options)) (*DeleteFleetAdvisorDatabasesOutput, error) {
if params == nil {
params = &DeleteFleetAdvisorDatabasesInput{}
diff --git a/service/databasemigrationservice/api_op_DescribeFleetAdvisorCollectors.go b/service/databasemigrationservice/api_op_DescribeFleetAdvisorCollectors.go
index 65beadd936a..ba741483228 100644
--- a/service/databasemigrationservice/api_op_DescribeFleetAdvisorCollectors.go
+++ b/service/databasemigrationservice/api_op_DescribeFleetAdvisorCollectors.go
@@ -11,7 +11,15 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Returns a list of the Fleet Advisor collectors in your account.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DescribeFleetAdvisorCollectors(ctx context.Context, params *DescribeFleetAdvisorCollectorsInput, optFns ...func(*Options)) (*DescribeFleetAdvisorCollectorsOutput, error) {
if params == nil {
params = &DescribeFleetAdvisorCollectorsInput{}
diff --git a/service/databasemigrationservice/api_op_DescribeFleetAdvisorDatabases.go b/service/databasemigrationservice/api_op_DescribeFleetAdvisorDatabases.go
index e2c2716c709..562f6f506ee 100644
--- a/service/databasemigrationservice/api_op_DescribeFleetAdvisorDatabases.go
+++ b/service/databasemigrationservice/api_op_DescribeFleetAdvisorDatabases.go
@@ -11,7 +11,15 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Returns a list of Fleet Advisor databases in your account.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DescribeFleetAdvisorDatabases(ctx context.Context, params *DescribeFleetAdvisorDatabasesInput, optFns ...func(*Options)) (*DescribeFleetAdvisorDatabasesOutput, error) {
if params == nil {
params = &DescribeFleetAdvisorDatabasesInput{}
diff --git a/service/databasemigrationservice/api_op_DescribeFleetAdvisorLsaAnalysis.go b/service/databasemigrationservice/api_op_DescribeFleetAdvisorLsaAnalysis.go
index 48fe00c711e..5d13efcbc40 100644
--- a/service/databasemigrationservice/api_op_DescribeFleetAdvisorLsaAnalysis.go
+++ b/service/databasemigrationservice/api_op_DescribeFleetAdvisorLsaAnalysis.go
@@ -11,8 +11,16 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Provides descriptions of large-scale assessment (LSA) analyses produced by your
// Fleet Advisor collectors.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DescribeFleetAdvisorLsaAnalysis(ctx context.Context, params *DescribeFleetAdvisorLsaAnalysisInput, optFns ...func(*Options)) (*DescribeFleetAdvisorLsaAnalysisOutput, error) {
if params == nil {
params = &DescribeFleetAdvisorLsaAnalysisInput{}
diff --git a/service/databasemigrationservice/api_op_DescribeFleetAdvisorSchemaObjectSummary.go b/service/databasemigrationservice/api_op_DescribeFleetAdvisorSchemaObjectSummary.go
index dd974ad3287..80596571022 100644
--- a/service/databasemigrationservice/api_op_DescribeFleetAdvisorSchemaObjectSummary.go
+++ b/service/databasemigrationservice/api_op_DescribeFleetAdvisorSchemaObjectSummary.go
@@ -11,8 +11,16 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Provides descriptions of the schemas discovered by your Fleet Advisor
// collectors.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DescribeFleetAdvisorSchemaObjectSummary(ctx context.Context, params *DescribeFleetAdvisorSchemaObjectSummaryInput, optFns ...func(*Options)) (*DescribeFleetAdvisorSchemaObjectSummaryOutput, error) {
if params == nil {
params = &DescribeFleetAdvisorSchemaObjectSummaryInput{}
@@ -40,7 +48,14 @@ type DescribeFleetAdvisorSchemaObjectSummaryInput struct {
// Name="schema-id",Values="50"
Filters []types.Filter
+ // End of support notice: On May 20, 2026, Amazon Web Services will end support
+ // for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+ // longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+ // Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+ //
// Sets the maximum number of records returned in the response.
+ //
+ // [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
MaxRecords *int32
// If NextToken is returned by a previous response, there are more results
@@ -175,7 +190,14 @@ func (c *Client) addOperationDescribeFleetAdvisorSchemaObjectSummaryMiddlewares(
// DescribeFleetAdvisorSchemaObjectSummaryPaginatorOptions is the paginator
// options for DescribeFleetAdvisorSchemaObjectSummary
type DescribeFleetAdvisorSchemaObjectSummaryPaginatorOptions struct {
+ // End of support notice: On May 20, 2026, Amazon Web Services will end support
+ // for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+ // longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+ // Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+ //
// Sets the maximum number of records returned in the response.
+ //
+ // [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
diff --git a/service/databasemigrationservice/api_op_DescribeFleetAdvisorSchemas.go b/service/databasemigrationservice/api_op_DescribeFleetAdvisorSchemas.go
index 57af29c45ec..dfd9beec6df 100644
--- a/service/databasemigrationservice/api_op_DescribeFleetAdvisorSchemas.go
+++ b/service/databasemigrationservice/api_op_DescribeFleetAdvisorSchemas.go
@@ -11,7 +11,15 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Returns a list of schemas detected by Fleet Advisor Collectors in your account.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DescribeFleetAdvisorSchemas(ctx context.Context, params *DescribeFleetAdvisorSchemasInput, optFns ...func(*Options)) (*DescribeFleetAdvisorSchemasOutput, error) {
if params == nil {
params = &DescribeFleetAdvisorSchemasInput{}
diff --git a/service/databasemigrationservice/api_op_DescribeRecommendationLimitations.go b/service/databasemigrationservice/api_op_DescribeRecommendationLimitations.go
index 4f1c2dde85b..7c30310b49a 100644
--- a/service/databasemigrationservice/api_op_DescribeRecommendationLimitations.go
+++ b/service/databasemigrationservice/api_op_DescribeRecommendationLimitations.go
@@ -11,8 +11,16 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Returns a paginated list of limitations for recommendations of target Amazon
// Web Services engines.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DescribeRecommendationLimitations(ctx context.Context, params *DescribeRecommendationLimitationsInput, optFns ...func(*Options)) (*DescribeRecommendationLimitationsOutput, error) {
if params == nil {
params = &DescribeRecommendationLimitationsInput{}
diff --git a/service/databasemigrationservice/api_op_DescribeRecommendations.go b/service/databasemigrationservice/api_op_DescribeRecommendations.go
index e6a754c5c91..9f45791b189 100644
--- a/service/databasemigrationservice/api_op_DescribeRecommendations.go
+++ b/service/databasemigrationservice/api_op_DescribeRecommendations.go
@@ -11,8 +11,16 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Returns a paginated list of target engine recommendations for your source
// databases.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) DescribeRecommendations(ctx context.Context, params *DescribeRecommendationsInput, optFns ...func(*Options)) (*DescribeRecommendationsOutput, error) {
if params == nil {
params = &DescribeRecommendationsInput{}
diff --git a/service/databasemigrationservice/api_op_ModifyDataProvider.go b/service/databasemigrationservice/api_op_ModifyDataProvider.go
index a9a588bdfbc..51156f5491c 100644
--- a/service/databasemigrationservice/api_op_ModifyDataProvider.go
+++ b/service/databasemigrationservice/api_op_ModifyDataProvider.go
@@ -66,6 +66,9 @@ type ModifyDataProviderInput struct {
// The settings in JSON format for a data provider.
Settings types.DataProviderSettings
+ // Indicates whether the data provider is virtual.
+ Virtual *bool
+
noSmithyDocumentSerde
}
diff --git a/service/databasemigrationservice/api_op_RunFleetAdvisorLsaAnalysis.go b/service/databasemigrationservice/api_op_RunFleetAdvisorLsaAnalysis.go
index 588afc89a2a..16859a286e3 100644
--- a/service/databasemigrationservice/api_op_RunFleetAdvisorLsaAnalysis.go
+++ b/service/databasemigrationservice/api_op_RunFleetAdvisorLsaAnalysis.go
@@ -10,8 +10,16 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in
// your account.
+//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
func (c *Client) RunFleetAdvisorLsaAnalysis(ctx context.Context, params *RunFleetAdvisorLsaAnalysisInput, optFns ...func(*Options)) (*RunFleetAdvisorLsaAnalysisOutput, error) {
if params == nil {
params = &RunFleetAdvisorLsaAnalysisInput{}
diff --git a/service/databasemigrationservice/api_op_StartRecommendations.go b/service/databasemigrationservice/api_op_StartRecommendations.go
index b414af1c416..de97a0a687d 100644
--- a/service/databasemigrationservice/api_op_StartRecommendations.go
+++ b/service/databasemigrationservice/api_op_StartRecommendations.go
@@ -11,11 +11,18 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
+// End of support notice: On May 20, 2026, Amazon Web Services will end support
+//
+// for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no
+// longer be able to access the Amazon Web Services DMS Fleet Advisor; console or
+// Amazon Web Services DMS Fleet Advisor; resources. For more information, see [Amazon Web Services DMS Fleet Advisor end of support].
+//
// Starts the analysis of your source database to provide recommendations of
// target engines.
//
// You can create recommendations for multiple source databases using [BatchStartRecommendations].
//
+// [Amazon Web Services DMS Fleet Advisor end of support]: https://docs.aws.amazon.com/dms/latest/userguide/dms_fleet.advisor-end-of-support.html
// [BatchStartRecommendations]: https://docs.aws.amazon.com/dms/latest/APIReference/API_BatchStartRecommendations.html
func (c *Client) StartRecommendations(ctx context.Context, params *StartRecommendationsInput, optFns ...func(*Options)) (*StartRecommendationsOutput, error) {
if params == nil {
diff --git a/service/databasemigrationservice/api_op_StartReplicationTask.go b/service/databasemigrationservice/api_op_StartReplicationTask.go
index f6121e80a92..eff5addbfe1 100644
--- a/service/databasemigrationservice/api_op_StartReplicationTask.go
+++ b/service/databasemigrationservice/api_op_StartReplicationTask.go
@@ -42,21 +42,29 @@ type StartReplicationTaskInput struct {
// The type of replication task to start.
//
- // When the migration type is full-load or full-load-and-cdc , the only valid value
- // for the first run of the task is start-replication . This option will start the
- // migration.
+ // start-replication is the only valid action that can be used for the first time
+ // a task with the migration type of full-load full-load, full-load-and-cdc or cdc
+ // is run. Any other action used for the first time on a given task, such as
+ // resume-processing and reload-target will result in data errors.
//
// You can also use ReloadTables to reload specific tables that failed during migration
// instead of restarting the task.
//
- // The resume-processing option isn't applicable for a full-load task, because you
- // can't resume partially loaded tables during the full load phase.
+ // For a full-load task, the resume-processing option will reload any tables that
+ // were partially loaded or not yet loaded during the full load phase.
//
// For a full-load-and-cdc task, DMS migrates table data, and then applies data
// changes that occur on the source. To load all the tables again, and start
// capturing source changes, use reload-target . Otherwise use resume-processing ,
// to replicate the changes from the last stop position.
//
+ // For a cdc only task, to start from a specific position, you must use
+ // start-replication and also specify the start position. Check the source endpoint
+ // DMS documentation for any limitations. For example, not all sources support
+ // starting from a time.
+ //
+ // resume-processing is only available for previously executed tasks.
+ //
// This member is required.
StartReplicationTaskType types.StartReplicationTaskTypeValue
diff --git a/service/databasemigrationservice/deserializers.go b/service/databasemigrationservice/deserializers.go
index 0a292b1fd49..2d208bcc0ef 100644
--- a/service/databasemigrationservice/deserializers.go
+++ b/service/databasemigrationservice/deserializers.go
@@ -16014,6 +16014,15 @@ func awsAwsjson11_deserializeDocumentDataProvider(v **types.DataProvider, value
return err
}
+ case "Virtual":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected BooleanOptional to be of type *bool, got %T instead", value)
+ }
+ sv.Virtual = ptr.Bool(jtv)
+ }
+
default:
_, _ = key, value
@@ -18410,6 +18419,24 @@ func awsAwsjson11_deserializeDocumentIbmDb2LuwDataProviderSettings(v **types.Ibm
sv.Port = ptr.Int32(int32(i64))
}
+ case "S3AccessRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3AccessRoleArn = ptr.String(jtv)
+ }
+
+ case "S3Path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3Path = ptr.String(jtv)
+ }
+
case "ServerName":
if value != nil {
jtv, ok := value.(string)
@@ -18667,6 +18694,24 @@ func awsAwsjson11_deserializeDocumentIbmDb2zOsDataProviderSettings(v **types.Ibm
sv.Port = ptr.Int32(int32(i64))
}
+ case "S3AccessRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3AccessRoleArn = ptr.String(jtv)
+ }
+
+ case "S3Path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3Path = ptr.String(jtv)
+ }
+
case "ServerName":
if value != nil {
jtv, ok := value.(string)
@@ -20037,6 +20082,24 @@ func awsAwsjson11_deserializeDocumentMariaDbDataProviderSettings(v **types.Maria
sv.Port = ptr.Int32(int32(i64))
}
+ case "S3AccessRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3AccessRoleArn = ptr.String(jtv)
+ }
+
+ case "S3Path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3Path = ptr.String(jtv)
+ }
+
case "ServerName":
if value != nil {
jtv, ok := value.(string)
@@ -20117,6 +20180,24 @@ func awsAwsjson11_deserializeDocumentMicrosoftSqlServerDataProviderSettings(v **
sv.Port = ptr.Int32(int32(i64))
}
+ case "S3AccessRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3AccessRoleArn = ptr.String(jtv)
+ }
+
+ case "S3Path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3Path = ptr.String(jtv)
+ }
+
case "ServerName":
if value != nil {
jtv, ok := value.(string)
@@ -20822,6 +20903,24 @@ func awsAwsjson11_deserializeDocumentMySqlDataProviderSettings(v **types.MySqlDa
sv.Port = ptr.Int32(int32(i64))
}
+ case "S3AccessRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3AccessRoleArn = ptr.String(jtv)
+ }
+
+ case "S3Path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3Path = ptr.String(jtv)
+ }
+
case "ServerName":
if value != nil {
jtv, ok := value.(string)
@@ -21221,6 +21320,24 @@ func awsAwsjson11_deserializeDocumentOracleDataProviderSettings(v **types.Oracle
sv.Port = ptr.Int32(int32(i64))
}
+ case "S3AccessRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3AccessRoleArn = ptr.String(jtv)
+ }
+
+ case "S3Path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3Path = ptr.String(jtv)
+ }
+
case "SecretsManagerOracleAsmAccessRoleArn":
if value != nil {
jtv, ok := value.(string)
@@ -22128,6 +22245,24 @@ func awsAwsjson11_deserializeDocumentPostgreSqlDataProviderSettings(v **types.Po
sv.Port = ptr.Int32(int32(i64))
}
+ case "S3AccessRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3AccessRoleArn = ptr.String(jtv)
+ }
+
+ case "S3Path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3Path = ptr.String(jtv)
+ }
+
case "ServerName":
if value != nil {
jtv, ok := value.(string)
@@ -23457,6 +23592,24 @@ func awsAwsjson11_deserializeDocumentRedshiftDataProviderSettings(v **types.Reds
sv.Port = ptr.Int32(int32(i64))
}
+ case "S3AccessRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3AccessRoleArn = ptr.String(jtv)
+ }
+
+ case "S3Path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.S3Path = ptr.String(jtv)
+ }
+
case "ServerName":
if value != nil {
jtv, ok := value.(string)
diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod
index 19a67af8519..e9f9a087b25 100644
--- a/service/databasemigrationservice/go.mod
+++ b/service/databasemigrationservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/databasemigrationservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/databasemigrationservice/go.sum
+++ b/service/databasemigrationservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/databasemigrationservice/go_module_metadata.go b/service/databasemigrationservice/go_module_metadata.go
index 1bff47c66bb..e6231b8b381 100644
--- a/service/databasemigrationservice/go_module_metadata.go
+++ b/service/databasemigrationservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package databasemigrationservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.52.2"
+const goModuleVersion = "1.53.0"
diff --git a/service/databasemigrationservice/serializers.go b/service/databasemigrationservice/serializers.go
index 9f2ced3134c..4e8b7943d12 100644
--- a/service/databasemigrationservice/serializers.go
+++ b/service/databasemigrationservice/serializers.go
@@ -7353,6 +7353,16 @@ func awsAwsjson11_serializeDocumentIbmDb2LuwDataProviderSettings(v *types.IbmDb2
ok.Integer(*v.Port)
}
+ if v.S3AccessRoleArn != nil {
+ ok := object.Key("S3AccessRoleArn")
+ ok.String(*v.S3AccessRoleArn)
+ }
+
+ if v.S3Path != nil {
+ ok := object.Key("S3Path")
+ ok.String(*v.S3Path)
+ }
+
if v.ServerName != nil {
ok := object.Key("ServerName")
ok.String(*v.ServerName)
@@ -7462,6 +7472,16 @@ func awsAwsjson11_serializeDocumentIbmDb2zOsDataProviderSettings(v *types.IbmDb2
ok.Integer(*v.Port)
}
+ if v.S3AccessRoleArn != nil {
+ ok := object.Key("S3AccessRoleArn")
+ ok.String(*v.S3AccessRoleArn)
+ }
+
+ if v.S3Path != nil {
+ ok := object.Key("S3Path")
+ ok.String(*v.S3Path)
+ }
+
if v.ServerName != nil {
ok := object.Key("ServerName")
ok.String(*v.ServerName)
@@ -7718,6 +7738,16 @@ func awsAwsjson11_serializeDocumentMariaDbDataProviderSettings(v *types.MariaDbD
ok.Integer(*v.Port)
}
+ if v.S3AccessRoleArn != nil {
+ ok := object.Key("S3AccessRoleArn")
+ ok.String(*v.S3AccessRoleArn)
+ }
+
+ if v.S3Path != nil {
+ ok := object.Key("S3Path")
+ ok.String(*v.S3Path)
+ }
+
if v.ServerName != nil {
ok := object.Key("ServerName")
ok.String(*v.ServerName)
@@ -7750,6 +7780,16 @@ func awsAwsjson11_serializeDocumentMicrosoftSqlServerDataProviderSettings(v *typ
ok.Integer(*v.Port)
}
+ if v.S3AccessRoleArn != nil {
+ ok := object.Key("S3AccessRoleArn")
+ ok.String(*v.S3AccessRoleArn)
+ }
+
+ if v.S3Path != nil {
+ ok := object.Key("S3Path")
+ ok.String(*v.S3Path)
+ }
+
if v.ServerName != nil {
ok := object.Key("ServerName")
ok.String(*v.ServerName)
@@ -8008,6 +8048,16 @@ func awsAwsjson11_serializeDocumentMySqlDataProviderSettings(v *types.MySqlDataP
ok.Integer(*v.Port)
}
+ if v.S3AccessRoleArn != nil {
+ ok := object.Key("S3AccessRoleArn")
+ ok.String(*v.S3AccessRoleArn)
+ }
+
+ if v.S3Path != nil {
+ ok := object.Key("S3Path")
+ ok.String(*v.S3Path)
+ }
+
if v.ServerName != nil {
ok := object.Key("ServerName")
ok.String(*v.ServerName)
@@ -8179,6 +8229,16 @@ func awsAwsjson11_serializeDocumentOracleDataProviderSettings(v *types.OracleDat
ok.Integer(*v.Port)
}
+ if v.S3AccessRoleArn != nil {
+ ok := object.Key("S3AccessRoleArn")
+ ok.String(*v.S3AccessRoleArn)
+ }
+
+ if v.S3Path != nil {
+ ok := object.Key("S3Path")
+ ok.String(*v.S3Path)
+ }
+
if v.SecretsManagerOracleAsmAccessRoleArn != nil {
ok := object.Key("SecretsManagerOracleAsmAccessRoleArn")
ok.String(*v.SecretsManagerOracleAsmAccessRoleArn)
@@ -8460,6 +8520,16 @@ func awsAwsjson11_serializeDocumentPostgreSqlDataProviderSettings(v *types.Postg
ok.Integer(*v.Port)
}
+ if v.S3AccessRoleArn != nil {
+ ok := object.Key("S3AccessRoleArn")
+ ok.String(*v.S3AccessRoleArn)
+ }
+
+ if v.S3Path != nil {
+ ok := object.Key("S3Path")
+ ok.String(*v.S3Path)
+ }
+
if v.ServerName != nil {
ok := object.Key("ServerName")
ok.String(*v.ServerName)
@@ -8688,6 +8758,16 @@ func awsAwsjson11_serializeDocumentRedshiftDataProviderSettings(v *types.Redshif
ok.Integer(*v.Port)
}
+ if v.S3AccessRoleArn != nil {
+ ok := object.Key("S3AccessRoleArn")
+ ok.String(*v.S3AccessRoleArn)
+ }
+
+ if v.S3Path != nil {
+ ok := object.Key("S3Path")
+ ok.String(*v.S3Path)
+ }
+
if v.ServerName != nil {
ok := object.Key("ServerName")
ok.String(*v.ServerName)
@@ -9530,6 +9610,11 @@ func awsAwsjson11_serializeOpDocumentCreateDataProviderInput(v *CreateDataProvid
}
}
+ if v.Virtual != nil {
+ ok := object.Key("Virtual")
+ ok.Boolean(*v.Virtual)
+ }
+
return nil
}
@@ -11679,6 +11764,11 @@ func awsAwsjson11_serializeOpDocumentModifyDataProviderInput(v *ModifyDataProvid
}
}
+ if v.Virtual != nil {
+ ok := object.Key("Virtual")
+ ok.Boolean(*v.Virtual)
+ }
+
return nil
}
diff --git a/service/databasemigrationservice/types/types.go b/service/databasemigrationservice/types/types.go
index f9f4acc1edb..7e03d98717d 100644
--- a/service/databasemigrationservice/types/types.go
+++ b/service/databasemigrationservice/types/types.go
@@ -507,6 +507,9 @@ type DataProvider struct {
// The settings in JSON format for a data provider.
Settings DataProviderSettings
+ // Indicates whether the data provider is virtual.
+ Virtual *bool
+
noSmithyDocumentSerde
}
@@ -1362,6 +1365,13 @@ type IbmDb2LuwDataProviderSettings struct {
// The port value for the DB2 LUW data provider.
Port *int32
+ // The ARN for the role the application uses to access its Amazon S3 bucket.
+ S3AccessRoleArn *string
+
+ // The path for the Amazon S3 bucket that the application uses for accessing the
+ // user-defined schema.
+ S3Path *string
+
// The name of the DB2 LUW server.
ServerName *string
@@ -1454,6 +1464,13 @@ type IbmDb2zOsDataProviderSettings struct {
// The port value for the DB2 for z/OS data provider.
Port *int32
+ // The ARN for the role the application uses to access its Amazon S3 bucket.
+ S3AccessRoleArn *string
+
+ // The path for the Amazon S3 bucket that the application uses for accessing the
+ // user-defined schema.
+ S3Path *string
+
// The name of the DB2 for z/OS server.
ServerName *string
@@ -1772,6 +1789,13 @@ type MariaDbDataProviderSettings struct {
// The port value for the MariaDB data provider
Port *int32
+ // The ARN for the role the application uses to access its Amazon S3 bucket.
+ S3AccessRoleArn *string
+
+ // The path for the Amazon S3 bucket that the application uses for accessing the
+ // user-defined schema.
+ S3Path *string
+
// The name of the MariaDB server.
ServerName *string
@@ -1794,6 +1818,13 @@ type MicrosoftSqlServerDataProviderSettings struct {
// The port value for the Microsoft SQL Server data provider.
Port *int32
+ // The ARN for the role the application uses to access its Amazon S3 bucket.
+ S3AccessRoleArn *string
+
+ // The path for the Amazon S3 bucket that the application uses for accessing the
+ // user-defined schema.
+ S3Path *string
+
// The name of the Microsoft SQL Server server.
ServerName *string
@@ -2102,6 +2133,13 @@ type MySqlDataProviderSettings struct {
// The port value for the MySQL data provider.
Port *int32
+ // The ARN for the role the application uses to access its Amazon S3 bucket.
+ S3AccessRoleArn *string
+
+ // The path for the Amazon S3 bucket that the application uses for accessing the
+ // user-defined schema.
+ S3Path *string
+
// The name of the MySQL server.
ServerName *string
@@ -2294,6 +2332,13 @@ type OracleDataProviderSettings struct {
// The port value for the Oracle data provider.
Port *int32
+ // The ARN for the role the application uses to access its Amazon S3 bucket.
+ S3AccessRoleArn *string
+
+ // The path for the Amazon S3 bucket that the application uses for accessing the
+ // user-defined schema.
+ S3Path *string
+
// The ARN of the IAM role that provides access to the secret in Secrets Manager
// that contains the Oracle ASM connection details.
SecretsManagerOracleAsmAccessRoleArn *string
@@ -2740,6 +2785,13 @@ type PostgreSqlDataProviderSettings struct {
// The port value for the PostgreSQL data provider.
Port *int32
+ // The ARN for the role the application uses to access its Amazon S3 bucket.
+ S3AccessRoleArn *string
+
+ // The path for the Amazon S3 bucket that the application uses for accessing the
+ // user-defined schema.
+ S3Path *string
+
// The name of the PostgreSQL server.
ServerName *string
@@ -3256,6 +3308,13 @@ type RedshiftDataProviderSettings struct {
// The port value for the Amazon Redshift data provider.
Port *int32
+ // The ARN for the role the application uses to access its Amazon S3 bucket.
+ S3AccessRoleArn *string
+
+ // The path for the Amazon S3 bucket that the application uses for accessing the
+ // user-defined schema.
+ S3Path *string
+
// The name of the Amazon Redshift server.
ServerName *string
@@ -4565,7 +4624,7 @@ type S3Settings struct {
// current UTC time into a specified time zone. The conversion occurs when a date
// partition folder is created and a CDC filename is generated. The time zone
// format is Area/Location. Use this parameter when DatePartitionedEnabled is set
- // to true , as shown in the following example.
+ // to true, as shown in the following example:
//
// s3-settings='{"DatePartitionEnabled": true, "DatePartitionSequence":
// "YYYYMMDDHH", "DatePartitionDelimiter": "SLASH",
diff --git a/service/databrew/CHANGELOG.md b/service/databrew/CHANGELOG.md
index ce132e2c8df..8a2f1256839 100644
--- a/service/databrew/CHANGELOG.md
+++ b/service/databrew/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.34.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.34.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/databrew/go.mod b/service/databrew/go.mod
index 667ba26856a..784fa45245d 100644
--- a/service/databrew/go.mod
+++ b/service/databrew/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/databrew
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/databrew/go.sum b/service/databrew/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/databrew/go.sum
+++ b/service/databrew/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/databrew/go_module_metadata.go b/service/databrew/go_module_metadata.go
index b2de12ca089..7469f541534 100644
--- a/service/databrew/go_module_metadata.go
+++ b/service/databrew/go_module_metadata.go
@@ -3,4 +3,4 @@
package databrew
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.3"
+const goModuleVersion = "1.34.4"
diff --git a/service/dataexchange/CHANGELOG.md b/service/dataexchange/CHANGELOG.md
index 017f002f293..19966df67b9 100644
--- a/service/dataexchange/CHANGELOG.md
+++ b/service/dataexchange/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod
index 41149b89054..c756d84945b 100644
--- a/service/dataexchange/go.mod
+++ b/service/dataexchange/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dataexchange
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/dataexchange/go.sum
+++ b/service/dataexchange/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/dataexchange/go_module_metadata.go b/service/dataexchange/go_module_metadata.go
index bbe5d3312ab..8cd996edb12 100644
--- a/service/dataexchange/go_module_metadata.go
+++ b/service/dataexchange/go_module_metadata.go
@@ -3,4 +3,4 @@
package dataexchange
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.1"
+const goModuleVersion = "1.35.2"
diff --git a/service/datapipeline/CHANGELOG.md b/service/datapipeline/CHANGELOG.md
index c8a65ea1c75..20b98911eae 100644
--- a/service/datapipeline/CHANGELOG.md
+++ b/service/datapipeline/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod
index 5023d4a0c58..7b374115088 100644
--- a/service/datapipeline/go.mod
+++ b/service/datapipeline/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datapipeline
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/datapipeline/go.sum
+++ b/service/datapipeline/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/datapipeline/go_module_metadata.go b/service/datapipeline/go_module_metadata.go
index c9ac7d4730f..877cf410bbb 100644
--- a/service/datapipeline/go_module_metadata.go
+++ b/service/datapipeline/go_module_metadata.go
@@ -3,4 +3,4 @@
package datapipeline
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/datasync/CHANGELOG.md b/service/datasync/CHANGELOG.md
index 7d9b2515118..938ee4b2ecf 100644
--- a/service/datasync/CHANGELOG.md
+++ b/service/datasync/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.49.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.49.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/datasync/go.mod b/service/datasync/go.mod
index ecf3764de9e..50e6a654d40 100644
--- a/service/datasync/go.mod
+++ b/service/datasync/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datasync
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/datasync/go.sum b/service/datasync/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/datasync/go.sum
+++ b/service/datasync/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/datasync/go_module_metadata.go b/service/datasync/go_module_metadata.go
index 1db13aac4ce..d200a57a41a 100644
--- a/service/datasync/go_module_metadata.go
+++ b/service/datasync/go_module_metadata.go
@@ -3,4 +3,4 @@
package datasync
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.49.2"
+const goModuleVersion = "1.49.3"
diff --git a/service/datazone/CHANGELOG.md b/service/datazone/CHANGELOG.md
index 1b0625c05e9..8c0aabdb0c1 100644
--- a/service/datazone/CHANGELOG.md
+++ b/service/datazone/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/datazone/go.mod b/service/datazone/go.mod
index 1896c848692..01a2a390187 100644
--- a/service/datazone/go.mod
+++ b/service/datazone/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datazone
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/datazone/go.sum b/service/datazone/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/datazone/go.sum
+++ b/service/datazone/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/datazone/go_module_metadata.go b/service/datazone/go_module_metadata.go
index 2987a3595dc..7ee5abbed20 100644
--- a/service/datazone/go_module_metadata.go
+++ b/service/datazone/go_module_metadata.go
@@ -3,4 +3,4 @@
package datazone
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.2"
+const goModuleVersion = "1.30.3"
diff --git a/service/dax/CHANGELOG.md b/service/dax/CHANGELOG.md
index 93082bee3de..02afc9c1ad6 100644
--- a/service/dax/CHANGELOG.md
+++ b/service/dax/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/dax/go.mod b/service/dax/go.mod
index 37724e641ca..937421ea643 100644
--- a/service/dax/go.mod
+++ b/service/dax/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dax
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/dax/go.sum b/service/dax/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/dax/go.sum
+++ b/service/dax/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/dax/go_module_metadata.go b/service/dax/go_module_metadata.go
index a160131d7fe..537548a0189 100644
--- a/service/dax/go_module_metadata.go
+++ b/service/dax/go_module_metadata.go
@@ -3,4 +3,4 @@
package dax
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/deadline/CHANGELOG.md b/service/deadline/CHANGELOG.md
index f044d0147f1..3c198c002b8 100644
--- a/service/deadline/CHANGELOG.md
+++ b/service/deadline/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.13.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.13.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/deadline/go.mod b/service/deadline/go.mod
index fc450c4929a..3e7ef174c24 100644
--- a/service/deadline/go.mod
+++ b/service/deadline/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/deadline
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/deadline/go.sum b/service/deadline/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/deadline/go.sum
+++ b/service/deadline/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/deadline/go_module_metadata.go b/service/deadline/go_module_metadata.go
index 7fbf3c6c2df..fac88420b08 100644
--- a/service/deadline/go_module_metadata.go
+++ b/service/deadline/go_module_metadata.go
@@ -3,4 +3,4 @@
package deadline
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.13.1"
+const goModuleVersion = "1.13.2"
diff --git a/service/detective/CHANGELOG.md b/service/detective/CHANGELOG.md
index cdf12720b8b..2a4f7fe2cc2 100644
--- a/service/detective/CHANGELOG.md
+++ b/service/detective/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/detective/go.mod b/service/detective/go.mod
index 03594f055fd..bc08d54d571 100644
--- a/service/detective/go.mod
+++ b/service/detective/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/detective
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/detective/go.sum b/service/detective/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/detective/go.sum
+++ b/service/detective/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/detective/go_module_metadata.go b/service/detective/go_module_metadata.go
index f7e14da2b31..d344c490736 100644
--- a/service/detective/go_module_metadata.go
+++ b/service/detective/go_module_metadata.go
@@ -3,4 +3,4 @@
package detective
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.1"
+const goModuleVersion = "1.33.2"
diff --git a/service/devicefarm/CHANGELOG.md b/service/devicefarm/CHANGELOG.md
index e0936df65be..f8d6e252067 100644
--- a/service/devicefarm/CHANGELOG.md
+++ b/service/devicefarm/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod
index 2bbf89a9436..5f76bdffded 100644
--- a/service/devicefarm/go.mod
+++ b/service/devicefarm/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/devicefarm
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/devicefarm/go.sum
+++ b/service/devicefarm/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/devicefarm/go_module_metadata.go b/service/devicefarm/go_module_metadata.go
index ba308179a55..05aad296212 100644
--- a/service/devicefarm/go_module_metadata.go
+++ b/service/devicefarm/go_module_metadata.go
@@ -3,4 +3,4 @@
package devicefarm
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.1"
+const goModuleVersion = "1.31.2"
diff --git a/service/devopsguru/CHANGELOG.md b/service/devopsguru/CHANGELOG.md
index 71297bc39a5..5d701110ccd 100644
--- a/service/devopsguru/CHANGELOG.md
+++ b/service/devopsguru/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/devopsguru/go.mod b/service/devopsguru/go.mod
index 252f0e22dc3..6cb24aa637f 100644
--- a/service/devopsguru/go.mod
+++ b/service/devopsguru/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/devopsguru
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/devopsguru/go.sum b/service/devopsguru/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/devopsguru/go.sum
+++ b/service/devopsguru/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/devopsguru/go_module_metadata.go b/service/devopsguru/go_module_metadata.go
index 346257a1e2c..57694b142c3 100644
--- a/service/devopsguru/go_module_metadata.go
+++ b/service/devopsguru/go_module_metadata.go
@@ -3,4 +3,4 @@
package devopsguru
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.3"
+const goModuleVersion = "1.35.4"
diff --git a/service/directconnect/CHANGELOG.md b/service/directconnect/CHANGELOG.md
index c0f72e13407..2f893abd740 100644
--- a/service/directconnect/CHANGELOG.md
+++ b/service/directconnect/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.32.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.32.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod
index 06bcf594480..b623f45f9c4 100644
--- a/service/directconnect/go.mod
+++ b/service/directconnect/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/directconnect
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/directconnect/go.sum
+++ b/service/directconnect/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/directconnect/go_module_metadata.go b/service/directconnect/go_module_metadata.go
index 061b01dec03..391c416ae60 100644
--- a/service/directconnect/go_module_metadata.go
+++ b/service/directconnect/go_module_metadata.go
@@ -3,4 +3,4 @@
package directconnect
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.32.4"
+const goModuleVersion = "1.32.5"
diff --git a/service/directoryservice/CHANGELOG.md b/service/directoryservice/CHANGELOG.md
index 8f7a1711917..392f9efc50c 100644
--- a/service/directoryservice/CHANGELOG.md
+++ b/service/directoryservice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod
index ca098bba169..3e80938811a 100644
--- a/service/directoryservice/go.mod
+++ b/service/directoryservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/directoryservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/directoryservice/go.sum
+++ b/service/directoryservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/directoryservice/go_module_metadata.go b/service/directoryservice/go_module_metadata.go
index 10a34bd751e..13834a2b029 100644
--- a/service/directoryservice/go_module_metadata.go
+++ b/service/directoryservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package directoryservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.6"
+const goModuleVersion = "1.31.7"
diff --git a/service/directoryservicedata/CHANGELOG.md b/service/directoryservicedata/CHANGELOG.md
index 0559a1ff696..aec4c6ea0be 100644
--- a/service/directoryservicedata/CHANGELOG.md
+++ b/service/directoryservicedata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.3.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.3.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/directoryservicedata/go.mod b/service/directoryservicedata/go.mod
index caa66ff3131..31546a0df6f 100644
--- a/service/directoryservicedata/go.mod
+++ b/service/directoryservicedata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/directoryservicedata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/directoryservicedata/go.sum b/service/directoryservicedata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/directoryservicedata/go.sum
+++ b/service/directoryservicedata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/directoryservicedata/go_module_metadata.go b/service/directoryservicedata/go_module_metadata.go
index 8c7d3c3c8dd..2cf7567baea 100644
--- a/service/directoryservicedata/go_module_metadata.go
+++ b/service/directoryservicedata/go_module_metadata.go
@@ -3,4 +3,4 @@
package directoryservicedata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.3.4"
+const goModuleVersion = "1.3.5"
diff --git a/service/dlm/CHANGELOG.md b/service/dlm/CHANGELOG.md
index 026808b5256..12b59d6f8e0 100644
--- a/service/dlm/CHANGELOG.md
+++ b/service/dlm/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/dlm/go.mod b/service/dlm/go.mod
index 15e711903c5..18005cb8b6f 100644
--- a/service/dlm/go.mod
+++ b/service/dlm/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dlm
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/dlm/go.sum b/service/dlm/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/dlm/go.sum
+++ b/service/dlm/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/dlm/go_module_metadata.go b/service/dlm/go_module_metadata.go
index 2109a5aeae8..b320b71d1fc 100644
--- a/service/dlm/go_module_metadata.go
+++ b/service/dlm/go_module_metadata.go
@@ -3,4 +3,4 @@
package dlm
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.6"
+const goModuleVersion = "1.30.7"
diff --git a/service/docdb/CHANGELOG.md b/service/docdb/CHANGELOG.md
index 9ea5cd674be..d6239a44dbd 100644
--- a/service/docdb/CHANGELOG.md
+++ b/service/docdb/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.41.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.41.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/docdb/go.mod b/service/docdb/go.mod
index 0feca25253f..b365ac11e58 100644
--- a/service/docdb/go.mod
+++ b/service/docdb/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/docdb
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/docdb/go.sum b/service/docdb/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/docdb/go.sum
+++ b/service/docdb/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/docdb/go_module_metadata.go b/service/docdb/go_module_metadata.go
index 6c7cc06eb96..1607998c038 100644
--- a/service/docdb/go_module_metadata.go
+++ b/service/docdb/go_module_metadata.go
@@ -3,4 +3,4 @@
package docdb
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.41.5"
+const goModuleVersion = "1.41.6"
diff --git a/service/docdbelastic/CHANGELOG.md b/service/docdbelastic/CHANGELOG.md
index fe1a771d239..3f17ff55712 100644
--- a/service/docdbelastic/CHANGELOG.md
+++ b/service/docdbelastic/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.15.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/docdbelastic/go.mod b/service/docdbelastic/go.mod
index 71f201c1a26..47e55f0fb68 100644
--- a/service/docdbelastic/go.mod
+++ b/service/docdbelastic/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/docdbelastic
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/docdbelastic/go.sum b/service/docdbelastic/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/docdbelastic/go.sum
+++ b/service/docdbelastic/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/docdbelastic/go_module_metadata.go b/service/docdbelastic/go_module_metadata.go
index 61dcb04fd88..005f84e5b5d 100644
--- a/service/docdbelastic/go_module_metadata.go
+++ b/service/docdbelastic/go_module_metadata.go
@@ -3,4 +3,4 @@
package docdbelastic
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.15.3"
+const goModuleVersion = "1.15.4"
diff --git a/service/drs/CHANGELOG.md b/service/drs/CHANGELOG.md
index 08b08cc4221..2b8ed772f11 100644
--- a/service/drs/CHANGELOG.md
+++ b/service/drs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/drs/go.mod b/service/drs/go.mod
index f781b678ca2..ca53ed93d73 100644
--- a/service/drs/go.mod
+++ b/service/drs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/drs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/drs/go.sum b/service/drs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/drs/go.sum
+++ b/service/drs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/drs/go_module_metadata.go b/service/drs/go_module_metadata.go
index ecb33480f72..49b2bfe78d6 100644
--- a/service/drs/go_module_metadata.go
+++ b/service/drs/go_module_metadata.go
@@ -3,4 +3,4 @@
package drs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.3"
+const goModuleVersion = "1.31.4"
diff --git a/service/dsql/CHANGELOG.md b/service/dsql/CHANGELOG.md
index a703e122cae..a11c5a1ce61 100644
--- a/service/dsql/CHANGELOG.md
+++ b/service/dsql/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/dsql/go.mod b/service/dsql/go.mod
index 1b079d7cdd9..b81c31d165a 100644
--- a/service/dsql/go.mod
+++ b/service/dsql/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dsql
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/dsql/go.sum b/service/dsql/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/dsql/go.sum
+++ b/service/dsql/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/dsql/go_module_metadata.go b/service/dsql/go_module_metadata.go
index 93369b8c90b..7cc79b35c56 100644
--- a/service/dsql/go_module_metadata.go
+++ b/service/dsql/go_module_metadata.go
@@ -3,4 +3,4 @@
package dsql
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.1"
+const goModuleVersion = "1.5.2"
diff --git a/service/dynamodb/CHANGELOG.md b/service/dynamodb/CHANGELOG.md
index 854ec93954d..8eb231cdca9 100644
--- a/service/dynamodb/CHANGELOG.md
+++ b/service/dynamodb/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.43.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.43.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod
index de7299c98c4..8437b4c9516 100644
--- a/service/dynamodb/go.mod
+++ b/service/dynamodb/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/dynamodb
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3
- github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4
+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/dynamodb/go.sum
+++ b/service/dynamodb/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/dynamodb/go_module_metadata.go b/service/dynamodb/go_module_metadata.go
index a5d5ffda9a1..ff37a4551db 100644
--- a/service/dynamodb/go_module_metadata.go
+++ b/service/dynamodb/go_module_metadata.go
@@ -3,4 +3,4 @@
package dynamodb
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.43.3"
+const goModuleVersion = "1.43.4"
diff --git a/service/dynamodbstreams/CHANGELOG.md b/service/dynamodbstreams/CHANGELOG.md
index b033f6a880a..6be6d64e548 100644
--- a/service/dynamodbstreams/CHANGELOG.md
+++ b/service/dynamodbstreams/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod
index 4c738b0857d..2dbc69c33db 100644
--- a/service/dynamodbstreams/go.mod
+++ b/service/dynamodbstreams/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dynamodbstreams
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/dynamodbstreams/go.sum
+++ b/service/dynamodbstreams/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/dynamodbstreams/go_module_metadata.go b/service/dynamodbstreams/go_module_metadata.go
index 9dcac22bd3e..ea2c0fac448 100644
--- a/service/dynamodbstreams/go_module_metadata.go
+++ b/service/dynamodbstreams/go_module_metadata.go
@@ -3,4 +3,4 @@
package dynamodbstreams
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.5"
+const goModuleVersion = "1.25.6"
diff --git a/service/ebs/CHANGELOG.md b/service/ebs/CHANGELOG.md
index 322fce926da..29135f568ed 100644
--- a/service/ebs/CHANGELOG.md
+++ b/service/ebs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ebs/go.mod b/service/ebs/go.mod
index 5c91871c75c..9f0dc1a530e 100644
--- a/service/ebs/go.mod
+++ b/service/ebs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ebs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ebs/go.sum b/service/ebs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ebs/go.sum
+++ b/service/ebs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ebs/go_module_metadata.go b/service/ebs/go_module_metadata.go
index 2bbfcaf3627..a5973dc5f90 100644
--- a/service/ebs/go_module_metadata.go
+++ b/service/ebs/go_module_metadata.go
@@ -3,4 +3,4 @@
package ebs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.5"
+const goModuleVersion = "1.28.6"
diff --git a/service/ec2/CHANGELOG.md b/service/ec2/CHANGELOG.md
index 521e4f488eb..e0e0ba7e112 100644
--- a/service/ec2/CHANGELOG.md
+++ b/service/ec2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.225.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.225.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ec2/go.mod b/service/ec2/go.mod
index 1f046264a05..91752d7510e 100644
--- a/service/ec2/go.mod
+++ b/service/ec2/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/ec2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ec2/go.sum b/service/ec2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ec2/go.sum
+++ b/service/ec2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ec2/go_module_metadata.go b/service/ec2/go_module_metadata.go
index 79b98dcd665..b29db7f560c 100644
--- a/service/ec2/go_module_metadata.go
+++ b/service/ec2/go_module_metadata.go
@@ -3,4 +3,4 @@
package ec2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.225.1"
+const goModuleVersion = "1.225.2"
diff --git a/service/ec2instanceconnect/CHANGELOG.md b/service/ec2instanceconnect/CHANGELOG.md
index eac034069bf..9128cb8d48b 100644
--- a/service/ec2instanceconnect/CHANGELOG.md
+++ b/service/ec2instanceconnect/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod
index e156c07b867..6e9bd6ec12b 100644
--- a/service/ec2instanceconnect/go.mod
+++ b/service/ec2instanceconnect/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ec2instanceconnect
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ec2instanceconnect/go.sum
+++ b/service/ec2instanceconnect/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ec2instanceconnect/go_module_metadata.go b/service/ec2instanceconnect/go_module_metadata.go
index d7827b47186..572c80b6718 100644
--- a/service/ec2instanceconnect/go_module_metadata.go
+++ b/service/ec2instanceconnect/go_module_metadata.go
@@ -3,4 +3,4 @@
package ec2instanceconnect
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/ecr/CHANGELOG.md b/service/ecr/CHANGELOG.md
index 13b9c213bce..41abdb8aa6d 100644
--- a/service/ecr/CHANGELOG.md
+++ b/service/ecr/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.45.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.45.0 (2025-06-16)
+
+* **Feature**: The `DescribeImageScanning` API now includes `lastInUseAt` and `InUseCount` fields that can be used to prioritize vulnerability remediation for images that are actively being used.
+
# v1.44.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ecr/api_op_CreatePullThroughCacheRule.go b/service/ecr/api_op_CreatePullThroughCacheRule.go
index a14f6b5dd7d..e4c95171a47 100644
--- a/service/ecr/api_op_CreatePullThroughCacheRule.go
+++ b/service/ecr/api_op_CreatePullThroughCacheRule.go
@@ -47,7 +47,7 @@ type CreatePullThroughCacheRuleInput struct {
// pull through cache rule. The following is the syntax to use for each supported
// upstream registry.
//
- // - Amazon ECR ( ecr ) – dkr.ecr..amazonaws.com
+ // - Amazon ECR ( ecr ) – .dkr.ecr..amazonaws.com
//
// - Amazon ECR Public ( ecr-public ) – public.ecr.aws
//
diff --git a/service/ecr/api_op_DescribeImages.go b/service/ecr/api_op_DescribeImages.go
index 1d32d8ff641..07698b62528 100644
--- a/service/ecr/api_op_DescribeImages.go
+++ b/service/ecr/api_op_DescribeImages.go
@@ -13,10 +13,16 @@ import (
// Returns metadata about the images in a repository.
//
-// Beginning with Docker version 1.9, the Docker client compresses image layers
+// Starting with Docker version 1.9, the Docker client compresses image layers
// before pushing them to a V2 Docker registry. The output of the docker images
-// command shows the uncompressed image size, so it may return a larger image size
-// than the image sizes returned by DescribeImages.
+// command shows the uncompressed image size. Therefore, Docker might return a
+// larger image than the image shown in the Amazon Web Services Management Console.
+//
+// The new version of Amazon ECR Basic Scanning doesn't use the ImageDetail$imageScanFindingsSummary and ImageDetail$imageScanStatus attributes
+// from the API response to return scan results. Use the DescribeImageScanFindingsAPI instead. For more
+// information about Amazon Web Services native basic scanning, see [Scan images for software vulnerabilities in Amazon ECR].
+//
+// [Scan images for software vulnerabilities in Amazon ECR]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html
func (c *Client) DescribeImages(ctx context.Context, params *DescribeImagesInput, optFns ...func(*Options)) (*DescribeImagesOutput, error) {
if params == nil {
params = &DescribeImagesInput{}
diff --git a/service/ecr/api_op_GetAuthorizationToken.go b/service/ecr/api_op_GetAuthorizationToken.go
index 69a4d053354..af6d9aeef59 100644
--- a/service/ecr/api_op_GetAuthorizationToken.go
+++ b/service/ecr/api_op_GetAuthorizationToken.go
@@ -56,6 +56,9 @@ type GetAuthorizationTokenOutput struct {
// A list of authorization token data objects that correspond to the registryIds
// values in the request.
+ //
+ // The size of the authorization token returned by Amazon ECR is not fixed. We
+ // recommend that you don't make assumptions about the maximum size.
AuthorizationData []types.AuthorizationData
// Metadata pertaining to the operation's result.
diff --git a/service/ecr/api_op_GetLifecyclePolicyPreview.go b/service/ecr/api_op_GetLifecyclePolicyPreview.go
index 3a99b02a6e9..7067e11fd47 100644
--- a/service/ecr/api_op_GetLifecyclePolicyPreview.go
+++ b/service/ecr/api_op_GetLifecyclePolicyPreview.go
@@ -51,8 +51,8 @@ type GetLifecyclePolicyPreviewInput struct {
// single page along with a nextToken
response element. The remaining results of
// the initial request can be seen by sending
another
// GetLifecyclePolicyPreviewRequest request with the returned nextToken
value.
- // This value can be between 1 and 1000. If this
parameter is not used, then
- // GetLifecyclePolicyPreviewRequest returns up to
100 results and a nextToken
+ // This value can be between 1 and 100. If this
parameter is not used, then
+ // GetLifecyclePolicyPreviewRequest returns up to
100 results and a nextToken
// value, if
applicable. This option cannot be used when you specify images with
// imageIds .
MaxResults *int32
@@ -407,8 +407,8 @@ type GetLifecyclePolicyPreviewPaginatorOptions struct {
// single page along with a nextToken
response element. The remaining results of
// the initial request can be seen by sending
another
// GetLifecyclePolicyPreviewRequest request with the returned nextToken
value.
- // This value can be between 1 and 1000. If this
parameter is not used, then
- // GetLifecyclePolicyPreviewRequest returns up to
100 results and a nextToken
+ // This value can be between 1 and 100. If this
parameter is not used, then
+ // GetLifecyclePolicyPreviewRequest returns up to
100 results and a nextToken
// value, if
applicable. This option cannot be used when you specify images with
// imageIds .
Limit int32
diff --git a/service/ecr/deserializers.go b/service/ecr/deserializers.go
index 2a669930a2a..dc6758fc5b9 100644
--- a/service/ecr/deserializers.go
+++ b/service/ecr/deserializers.go
@@ -7627,6 +7627,35 @@ func awsAwsjson11_deserializeDocumentAwsEcrContainerImageDetails(v **types.AwsEc
return err
}
+ case "inUseCount":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected InUseCount to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.InUseCount = ptr.Int64(i64)
+ }
+
+ case "lastInUseAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastInUseAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Date to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
case "platform":
if value != nil {
jtv, ok := value.(string)
diff --git a/service/ecr/go.mod b/service/ecr/go.mod
index c42f07b7c39..ebfbd2cedea 100644
--- a/service/ecr/go.mod
+++ b/service/ecr/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecr
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ecr/go.sum b/service/ecr/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ecr/go.sum
+++ b/service/ecr/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ecr/go_module_metadata.go b/service/ecr/go_module_metadata.go
index ec8b2bb98c8..d861242c1fd 100644
--- a/service/ecr/go_module_metadata.go
+++ b/service/ecr/go_module_metadata.go
@@ -3,4 +3,4 @@
package ecr
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.44.2"
+const goModuleVersion = "1.45.1"
diff --git a/service/ecr/types/types.go b/service/ecr/types/types.go
index 4dffb62310e..70406066170 100644
--- a/service/ecr/types/types.go
+++ b/service/ecr/types/types.go
@@ -57,6 +57,12 @@ type AwsEcrContainerImageDetails struct {
// The image tags attached to the Amazon ECR container image.
ImageTags []string
+ // The number of Amazon ECS or Amazon EKS clusters currently running the image.
+ InUseCount *int64
+
+ // The most recent date and time a cluster was running the image.
+ LastInUseAt *time.Time
+
// The platform of the Amazon ECR container image.
Platform *string
@@ -329,7 +335,7 @@ type ImageDetail struct {
// Starting with Docker version 1.9, the Docker client compresses image layers
// before pushing them to a V2 Docker registry. The output of the docker images
// command shows the uncompressed image size. Therefore, Docker might return a
- // larger image than the image sizes returned by DescribeImages.
+ // larger image than the image shown in the Amazon Web Services Management Console.
ImageSizeInBytes *int64
// The list of tags associated with this image.
diff --git a/service/ecrpublic/CHANGELOG.md b/service/ecrpublic/CHANGELOG.md
index ae1d5a1869c..d93e75b7c76 100644
--- a/service/ecrpublic/CHANGELOG.md
+++ b/service/ecrpublic/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ecrpublic/go.mod b/service/ecrpublic/go.mod
index 4a8cf14712f..a28e161b91b 100644
--- a/service/ecrpublic/go.mod
+++ b/service/ecrpublic/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecrpublic
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ecrpublic/go.sum b/service/ecrpublic/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ecrpublic/go.sum
+++ b/service/ecrpublic/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ecrpublic/go_module_metadata.go b/service/ecrpublic/go_module_metadata.go
index d389dbf668b..872cb8f5ea5 100644
--- a/service/ecrpublic/go_module_metadata.go
+++ b/service/ecrpublic/go_module_metadata.go
@@ -3,4 +3,4 @@
package ecrpublic
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.1"
+const goModuleVersion = "1.33.2"
diff --git a/service/ecs/CHANGELOG.md b/service/ecs/CHANGELOG.md
index 13b4718100f..98c8890f737 100644
--- a/service/ecs/CHANGELOG.md
+++ b/service/ecs/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.57.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.57.5 (2025-06-12)
+
+* **Documentation**: This Amazon ECS release supports updating the capacityProviderStrategy parameter in update-service.
+
# v1.57.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ecs/api_op_UpdateService.go b/service/ecs/api_op_UpdateService.go
index d664a00c038..c9d8d74c0f5 100644
--- a/service/ecs/api_op_UpdateService.go
+++ b/service/ecs/api_op_UpdateService.go
@@ -123,17 +123,6 @@ import (
// (based on the previous steps), favoring container instances with the largest
// number of running tasks for this service.
//
-// You must have a service-linked role when you update any of the following
-// service properties:
-//
-// - loadBalancers ,
-//
-// - serviceRegistries
-//
-// For more information about the role see the CreateService request parameter [role]role
-// .
-//
-// [role]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role
// [CreateTaskSet]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateTaskSet.html
// [UpdateService]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html
// [Amazon EBS volumes]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types
@@ -168,38 +157,40 @@ type UpdateServiceInput struct {
// [Balancing an Amazon ECS service across Availability Zones]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html
AvailabilityZoneRebalancing types.AvailabilityZoneRebalancing
- // The capacity provider strategy to update the service to use.
+ // The details of a capacity provider strategy. You can set a capacity provider
+ // when you create a cluster, run a task, or update a service.
+ //
+ // When you use Fargate, the capacity providers are FARGATE or FARGATE_SPOT .
+ //
+ // When you use Amazon EC2, the capacity providers are Auto Scaling groups.
+ //
+ // You can change capacity providers for rolling deployments and blue/green
+ // deployments.
//
- // if the service uses the default capacity provider strategy for the cluster, the
- // service can be updated to use one or more capacity providers as opposed to the
- // default capacity provider strategy. However, when a service is using a capacity
- // provider strategy that's not the default capacity provider strategy, the service
- // can't be updated to use the cluster's default capacity provider strategy.
+ // The following list provides the valid transitions:
//
- // A capacity provider strategy consists of one or more capacity providers along
- // with the base and weight to assign to them. A capacity provider must be
- // associated with the cluster to be used in a capacity provider strategy. The [PutClusterCapacityProviders]API
- // is used to associate a capacity provider with a cluster. Only capacity providers
- // with an ACTIVE or UPDATING status can be used.
+ // - Update the Fargate launch type to an EC2 capacity provider.
//
- // If specifying a capacity provider that uses an Auto Scaling group, the capacity
- // provider must already be created. New capacity providers can be created with the
- // [CreateClusterCapacityProvider]API operation.
+ // - Update the Amazon EC2 launch type to a Fargate capacity provider.
//
- // To use a Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT
- // capacity providers. The Fargate capacity providers are available to all accounts
- // and only need to be associated with a cluster to be used.
+ // - Update the Fargate capacity provider to an EC2 capacity provider.
//
- // The [PutClusterCapacityProviders]API operation is used to update the list of available capacity providers
- // for a cluster after the cluster is created.
+ // - Update the Amazon EC2 capacity provider to a Fargate capacity provider.
//
- // [PutClusterCapacityProviders]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html
- // [CreateClusterCapacityProvider]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateClusterCapacityProvider.html
+ // - Update the EC2 or Fargate capacity provider back to the launch type.
+ //
+ // Pass an empty list in the capacityProvider parameter.
+ //
+ // For information about Amazon Web Services CDK considerations, see [Amazon Web Services CDK considerations].
+ //
+ // [Amazon Web Services CDK considerations]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service-parameters.html
CapacityProviderStrategy []types.CapacityProviderStrategyItem
// The short name or full Amazon Resource Name (ARN) of the cluster that your
// service runs on. If you do not specify a cluster, the default cluster is
// assumed.
+ //
+ // You can't change the cluster name.
Cluster *string
// Optional deployment parameters that control how many tasks run during the
@@ -247,6 +238,8 @@ type UpdateServiceInput struct {
// as unhealthy and stopping them before they have time to come up.
HealthCheckGracePeriodSeconds *int32
+ // You must have a service-linked role when you update this property
+ //
// A list of Elastic Load Balancing load balancer objects. It contains the load
// balancer name, the container name, and the container port to access from the
// load balancer. The container name is as it appears in a container definition.
@@ -327,6 +320,11 @@ type UpdateServiceInput struct {
// [Service Connect]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html
ServiceConnectConfiguration *types.ServiceConnectConfiguration
+ // You must have a service-linked role when you update this property.
+ //
+ // For more information about the role see the CreateService request parameter [role]role
+ // .
+ //
// The details for the service discovery registries to assign to this service. For
// more information, see [Service Discovery].
//
@@ -336,6 +334,7 @@ type UpdateServiceInput struct {
//
// You can remove existing serviceRegistries by passing an empty list.
//
+ // [role]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html#ECS-CreateService-request-role
// [Service Discovery]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html
ServiceRegistries []types.ServiceRegistry
diff --git a/service/ecs/go.mod b/service/ecs/go.mod
index 35f76dec670..9e9e835dcce 100644
--- a/service/ecs/go.mod
+++ b/service/ecs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ecs/go.sum b/service/ecs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ecs/go.sum
+++ b/service/ecs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ecs/go_module_metadata.go b/service/ecs/go_module_metadata.go
index ef6a1ed9d4a..1696f407b5d 100644
--- a/service/ecs/go_module_metadata.go
+++ b/service/ecs/go_module_metadata.go
@@ -3,4 +3,4 @@
package ecs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.57.4"
+const goModuleVersion = "1.57.6"
diff --git a/service/ecs/types/types.go b/service/ecs/types/types.go
index b3db29e26bd..e53457f7faa 100644
--- a/service/ecs/types/types.go
+++ b/service/ecs/types/types.go
@@ -2481,6 +2481,41 @@ type FSxWindowsFileServerVolumeConfiguration struct {
// service, if the task reports as unhealthy then the task will be stopped and the
// service scheduler will replace it.
//
+// When a container health check fails for a task that is part of a service, the
+// following process occurs:
+//
+// - The task is marked as UNHEALTHY .
+//
+// - The unhealthy task will be stopped, and during the stopping process, it
+// will go through the following states:
+//
+// - DEACTIVATING - In this state, Amazon ECS performs additional steps before
+// stopping the task. For example, for tasks that are part of services configured
+// to use Elastic Load Balancing target groups, target groups will be deregistered
+// in this state.
+//
+// - STOPPING - The task is in the process of being stopped.
+//
+// - DEPROVISIONING - Resources associated with the task are being cleaned up.
+//
+// - STOPPED - The task has been completely stopped.
+//
+// - After the old task stops, a new task will be launched to ensure service
+// operation, and the new task will go through the following lifecycle:
+//
+// - PROVISIONING - Resources required for the task are being provisioned.
+//
+// - PENDING - The task is waiting to be placed on a container instance.
+//
+// - ACTIVATING - In this state, Amazon ECS pulls container images, creates
+// containers, configures task networking, registers load balancer target groups,
+// and configures service discovery status.
+//
+// - RUNNING - The task is running and performing its work.
+//
+// For more detailed information about task lifecycle states, see [Task lifecycle] in the Amazon
+// Elastic Container Service Developer Guide.
+//
// The following are notes about container health check support:
//
// - If the Amazon ECS container agent becomes disconnected from the Amazon ECS
@@ -2506,6 +2541,7 @@ type FSxWindowsFileServerVolumeConfiguration struct {
// Service Developer Guide.
//
// [Updating the Amazon ECS container agent]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html
+// [Task lifecycle]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle-explanation.html
// [Fargate platform versions]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html
// [Container dependency]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/example_task_definitions.html#example_task_definition-containerdependency
type HealthCheck struct {
diff --git a/service/efs/CHANGELOG.md b/service/efs/CHANGELOG.md
index 6987cadd9b3..882f619c65f 100644
--- a/service/efs/CHANGELOG.md
+++ b/service/efs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.36.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.36.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/efs/go.mod b/service/efs/go.mod
index 7520a2a37b1..3154f8f3fa9 100644
--- a/service/efs/go.mod
+++ b/service/efs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/efs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/efs/go.sum b/service/efs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/efs/go.sum
+++ b/service/efs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/efs/go_module_metadata.go b/service/efs/go_module_metadata.go
index d0f5687ad8a..d57d1cac919 100644
--- a/service/efs/go_module_metadata.go
+++ b/service/efs/go_module_metadata.go
@@ -3,4 +3,4 @@
package efs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.36.1"
+const goModuleVersion = "1.36.2"
diff --git a/service/eks/CHANGELOG.md b/service/eks/CHANGELOG.md
index 7a1705c7ebb..b51f049ed1d 100644
--- a/service/eks/CHANGELOG.md
+++ b/service/eks/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.66.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.66.0 (2025-06-11)
+
+* **Feature**: Release for EKS Pod Identity Cross Account feature and disableSessionTags flag.
+
# v1.65.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/eks/api_op_CreateAddon.go b/service/eks/api_op_CreateAddon.go
index 4a9114d2825..5841baadcdd 100644
--- a/service/eks/api_op_CreateAddon.go
+++ b/service/eks/api_op_CreateAddon.go
@@ -61,12 +61,12 @@ type CreateAddonInput struct {
// DescribeAddonConfiguration .
ConfigurationValues *string
- // An array of Pod Identity Assocations to be created. Each EKS Pod Identity
- // association maps a Kubernetes service account to an IAM Role.
+ // An array of EKS Pod Identity associations to be created. Each association maps
+ // a Kubernetes service account to an IAM role.
//
- // For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod Identity] in the Amazon EKS User Guide.
+ // For more information, see [Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity] in the Amazon EKS User Guide.
//
- // [Attach an IAM Role to an Amazon EKS add-on using Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html
+ // [Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html
PodIdentityAssociations []types.AddonPodIdentityAssociations
// How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are
diff --git a/service/eks/api_op_CreateCluster.go b/service/eks/api_op_CreateCluster.go
index 66919e016f3..8d5c86ba4e8 100644
--- a/service/eks/api_op_CreateCluster.go
+++ b/service/eks/api_op_CreateCluster.go
@@ -32,7 +32,9 @@ import (
// You can use the endpointPublicAccess and endpointPrivateAccess parameters to
// enable or disable public and private access to your cluster's Kubernetes API
// server endpoint. By default, public access is enabled, and private access is
-// disabled. For more information, see [Amazon EKS Cluster Endpoint Access Control]in the Amazon EKS User Guide .
+// disabled. The endpoint domain name and IP address family depends on the value of
+// the ipFamily for the cluster. For more information, see [Amazon EKS Cluster Endpoint Access Control] in the Amazon EKS User
+// Guide .
//
// You can use the logging parameter to enable or disable exporting the Kubernetes
// control plane logs for your cluster to CloudWatch Logs. By default, cluster
@@ -105,7 +107,7 @@ type CreateClusterInput struct {
// If you set this value to False when creating a cluster, the default networking
// add-ons will not be installed.
//
- // The default networking addons include vpc-cni, coredns, and kube-proxy.
+ // The default networking add-ons include vpc-cni , coredns , and kube-proxy .
//
// Use this option when you plan to install third-party alternative add-ons or
// self-manage the default networking add-ons.
diff --git a/service/eks/api_op_CreatePodIdentityAssociation.go b/service/eks/api_op_CreatePodIdentityAssociation.go
index c61e1de6d02..b35b84575e7 100644
--- a/service/eks/api_op_CreatePodIdentityAssociation.go
+++ b/service/eks/api_op_CreatePodIdentityAssociation.go
@@ -13,20 +13,36 @@ import (
// Creates an EKS Pod Identity association between a service account in an Amazon
// EKS cluster and an IAM role with EKS Pod Identity. Use EKS Pod Identity to give
-// temporary IAM credentials to pods and the credentials are rotated automatically.
+// temporary IAM credentials to Pods and the credentials are rotated automatically.
//
// Amazon EKS Pod Identity associations provide the ability to manage credentials
// for your applications, similar to the way that Amazon EC2 instance profiles
// provide credentials to Amazon EC2 instances.
//
-// If a pod uses a service account that has an association, Amazon EKS sets
-// environment variables in the containers of the pod. The environment variables
+// If a Pod uses a service account that has an association, Amazon EKS sets
+// environment variables in the containers of the Pod. The environment variables
// configure the Amazon Web Services SDKs, including the Command Line Interface, to
// use the EKS Pod Identity credentials.
//
-// Pod Identity is a simpler method than IAM roles for service accounts, as this
-// method doesn't use OIDC identity providers. Additionally, you can configure a
-// role for Pod Identity once, and reuse it across clusters.
+// EKS Pod Identity is a simpler method than IAM roles for service accounts, as
+// this method doesn't use OIDC identity providers. Additionally, you can configure
+// a role for EKS Pod Identity once, and reuse it across clusters.
+//
+// Similar to Amazon Web Services IAM behavior, EKS Pod Identity associations are
+// eventually consistent, and may take several seconds to be effective after the
+// initial API call returns successfully. You must design your applications to
+// account for these potential delays. We recommend that you don’t include
+// association create/updates in the critical, high-availability code paths of your
+// application. Instead, make changes in a separate initialization or setup routine
+// that you run less frequently.
+//
+// You can set a target IAM role in the same or a different account for advanced
+// scenarios. With a target role, EKS Pod Identity automatically performs two role
+// assumptions in sequence: first assuming the role in the association that is in
+// this account, then using those credentials to assume the target IAM role. This
+// process provides your Pod with temporary credentials that have the permissions
+// defined in the target role, allowing secure access to resources in another
+// Amazon Web Services account.
func (c *Client) CreatePodIdentityAssociation(ctx context.Context, params *CreatePodIdentityAssociationInput, optFns ...func(*Options)) (*CreatePodIdentityAssociationOutput, error) {
if params == nil {
params = &CreatePodIdentityAssociationInput{}
@@ -44,21 +60,21 @@ func (c *Client) CreatePodIdentityAssociation(ctx context.Context, params *Creat
type CreatePodIdentityAssociationInput struct {
- // The name of the cluster to create the association in.
+ // The name of the cluster to create the EKS Pod Identity association in.
//
// This member is required.
ClusterName *string
- // The name of the Kubernetes namespace inside the cluster to create the
- // association in. The service account and the pods that use the service account
- // must be in this namespace.
+ // The name of the Kubernetes namespace inside the cluster to create the EKS Pod
+ // Identity association in. The service account and the Pods that use the service
+ // account must be in this namespace.
//
// This member is required.
Namespace *string
// The Amazon Resource Name (ARN) of the IAM role to associate with the service
// account. The EKS Pod Identity agent manages credentials to assume this role for
- // applications in the containers in the pods that use this service account.
+ // applications in the containers in the Pods that use this service account.
//
// This member is required.
RoleArn *string
@@ -73,6 +89,24 @@ type CreatePodIdentityAssociationInput struct {
// of the request.
ClientRequestToken *string
+ // Disable the automatic sessions tags that are appended by EKS Pod Identity.
+ //
+ // EKS Pod Identity adds a pre-defined set of session tags when it assumes the
+ // role. You can use these tags to author a single role that can work across
+ // resources by allowing access to Amazon Web Services resources based on matching
+ // tags. By default, EKS Pod Identity attaches six tags, including tags for cluster
+ // name, namespace, and service account name. For the list of tags added by EKS Pod
+ // Identity, see [List of session tags added by EKS Pod Identity]in the Amazon EKS User Guide.
+ //
+ // Amazon Web Services compresses inline session policies, managed policy ARNs,
+ // and session tags into a packed binary format that has a separate limit. If you
+ // receive a PackedPolicyTooLarge error indicating the packed binary format has
+ // exceeded the size limit, you can attempt to reduce the size by disabling the
+ // session tags added by EKS Pod Identity.
+ //
+ // [List of session tags added by EKS Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/pod-id-abac.html#pod-id-abac-tags
+ DisableSessionTags *bool
+
// Metadata that assists with categorization and organization. Each tag consists
// of a key and an optional value. You define both. Tags don't propagate to any
// other cluster or Amazon Web Services resources.
@@ -101,6 +135,24 @@ type CreatePodIdentityAssociationInput struct {
// prefix do not count against your tags per resource limit.
Tags map[string]string
+ // The Amazon Resource Name (ARN) of the target IAM role to associate with the
+ // service account. This role is assumed by using the EKS Pod Identity association
+ // role, then the credentials for this role are injected into the Pod.
+ //
+ // When you run applications on Amazon EKS, your application might need to access
+ // Amazon Web Services resources from a different role that exists in the same or
+ // different Amazon Web Services account. For example, your application running in
+ // “Account A” might need to access resources, such as Amazon S3 buckets in
+ // “Account B” or within “Account A” itself. You can create a association to access
+ // Amazon Web Services resources in “Account B” by creating two IAM roles: a role
+ // in “Account A” and a role in “Account B” (which can be the same or different
+ // account), each with the necessary trust and permission policies. After you
+ // provide these roles in the IAM role and Target IAM role fields, EKS will perform
+ // role chaining to ensure your application gets the required permissions. This
+ // means Role A will assume Role B, allowing your Pods to securely access resources
+ // like S3 buckets in the target account.
+ TargetRoleArn *string
+
noSmithyDocumentSerde
}
diff --git a/service/eks/api_op_DescribeAddonConfiguration.go b/service/eks/api_op_DescribeAddonConfiguration.go
index 8cd5ef3acff..8d8535a7cde 100644
--- a/service/eks/api_op_DescribeAddonConfiguration.go
+++ b/service/eks/api_op_DescribeAddonConfiguration.go
@@ -61,8 +61,8 @@ type DescribeAddonConfigurationOutput struct {
// an add-on is created or updated.
ConfigurationSchema *string
- // The Kubernetes service account name used by the addon, and any suggested IAM
- // policies. Use this information to create an IAM Role for the Addon.
+ // The Kubernetes service account name used by the add-on, and any suggested IAM
+ // policies. Use this information to create an IAM Role for the add-on.
PodIdentityConfiguration []types.AddonPodIdentityConfiguration
// Metadata pertaining to the operation's result.
diff --git a/service/eks/api_op_UpdateAddon.go b/service/eks/api_op_UpdateAddon.go
index 9824f31db34..3cc0f051e30 100644
--- a/service/eks/api_op_UpdateAddon.go
+++ b/service/eks/api_op_UpdateAddon.go
@@ -57,14 +57,14 @@ type UpdateAddonInput struct {
// DescribeAddonConfiguration .
ConfigurationValues *string
- // An array of Pod Identity Assocations to be updated. Each EKS Pod Identity
- // association maps a Kubernetes service account to an IAM Role. If this value is
- // left blank, no change. If an empty array is provided, existing Pod Identity
- // Assocations owned by the Addon are deleted.
+ // An array of EKS Pod Identity associations to be updated. Each association maps
+ // a Kubernetes service account to an IAM role. If this value is left blank, no
+ // change. If an empty array is provided, existing associations owned by the add-on
+ // are deleted.
//
- // For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod Identity] in the Amazon EKS User Guide.
+ // For more information, see [Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity] in the Amazon EKS User Guide.
//
- // [Attach an IAM Role to an Amazon EKS add-on using Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html
+ // [Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html
PodIdentityAssociations []types.AddonPodIdentityAssociations
// How to resolve field value conflicts for an Amazon EKS add-on if you've changed
diff --git a/service/eks/api_op_UpdateClusterConfig.go b/service/eks/api_op_UpdateClusterConfig.go
index 96603a57335..c9502ee4133 100644
--- a/service/eks/api_op_UpdateClusterConfig.go
+++ b/service/eks/api_op_UpdateClusterConfig.go
@@ -28,7 +28,7 @@ import (
//
// - You can also use this API operation to enable or disable public and private
// access to your cluster's Kubernetes API server endpoint. By default, public
-// access is enabled, and private access is disabled. For more information, see [Amazon EKS cluster endpoint access control]
+// access is enabled, and private access is disabled. For more information, see [Cluster API server endpoint]
// in the Amazon EKS User Guide .
//
// - You can also use this API operation to choose different subnets and
@@ -55,9 +55,9 @@ import (
//
// [Amazon EKS Cluster control plane logs]: https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html
//
+// [Cluster API server endpoint]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
// [CloudWatch Pricing]: http://aws.amazon.com/cloudwatch/pricing/
// [https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html]: https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html
-// [Amazon EKS cluster endpoint access control]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
func (c *Client) UpdateClusterConfig(ctx context.Context, params *UpdateClusterConfigInput, optFns ...func(*Options)) (*UpdateClusterConfigOutput, error) {
if params == nil {
params = &UpdateClusterConfigInput{}
diff --git a/service/eks/api_op_UpdatePodIdentityAssociation.go b/service/eks/api_op_UpdatePodIdentityAssociation.go
index 13014e354c4..185ae866e42 100644
--- a/service/eks/api_op_UpdatePodIdentityAssociation.go
+++ b/service/eks/api_op_UpdatePodIdentityAssociation.go
@@ -11,10 +11,28 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Updates a EKS Pod Identity association. Only the IAM role can be changed; an
-// association can't be moved between clusters, namespaces, or service accounts. If
-// you need to edit the namespace or service account, you need to delete the
-// association and then create a new association with your desired settings.
+// Updates a EKS Pod Identity association. In an update, you can change the IAM
+// role, the target IAM role, or disableSessionTags . You must change at least one
+// of these in an update. An association can't be moved between clusters,
+// namespaces, or service accounts. If you need to edit the namespace or service
+// account, you need to delete the association and then create a new association
+// with your desired settings.
+//
+// Similar to Amazon Web Services IAM behavior, EKS Pod Identity associations are
+// eventually consistent, and may take several seconds to be effective after the
+// initial API call returns successfully. You must design your applications to
+// account for these potential delays. We recommend that you don’t include
+// association create/updates in the critical, high-availability code paths of your
+// application. Instead, make changes in a separate initialization or setup routine
+// that you run less frequently.
+//
+// You can set a target IAM role in the same or a different account for advanced
+// scenarios. With a target role, EKS Pod Identity automatically performs two role
+// assumptions in sequence: first assuming the role in the association that is in
+// this account, then using those credentials to assume the target IAM role. This
+// process provides your Pod with temporary credentials that have the permissions
+// defined in the target role, allowing secure access to resources in another
+// Amazon Web Services account.
func (c *Client) UpdatePodIdentityAssociation(ctx context.Context, params *UpdatePodIdentityAssociationInput, optFns ...func(*Options)) (*UpdatePodIdentityAssociationOutput, error) {
if params == nil {
params = &UpdatePodIdentityAssociationInput{}
@@ -46,15 +64,51 @@ type UpdatePodIdentityAssociationInput struct {
// of the request.
ClientRequestToken *string
- // The new IAM role to change the
+ // Disable the automatic sessions tags that are appended by EKS Pod Identity.
+ //
+ // EKS Pod Identity adds a pre-defined set of session tags when it assumes the
+ // role. You can use these tags to author a single role that can work across
+ // resources by allowing access to Amazon Web Services resources based on matching
+ // tags. By default, EKS Pod Identity attaches six tags, including tags for cluster
+ // name, namespace, and service account name. For the list of tags added by EKS Pod
+ // Identity, see [List of session tags added by EKS Pod Identity]in the Amazon EKS User Guide.
+ //
+ // Amazon Web Services compresses inline session policies, managed policy ARNs,
+ // and session tags into a packed binary format that has a separate limit. If you
+ // receive a PackedPolicyTooLarge error indicating the packed binary format has
+ // exceeded the size limit, you can attempt to reduce the size by disabling the
+ // session tags added by EKS Pod Identity.
+ //
+ // [List of session tags added by EKS Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/pod-id-abac.html#pod-id-abac-tags
+ DisableSessionTags *bool
+
+ // The new IAM role to change in the association.
RoleArn *string
+ // The Amazon Resource Name (ARN) of the target IAM role to associate with the
+ // service account. This role is assumed by using the EKS Pod Identity association
+ // role, then the credentials for this role are injected into the Pod.
+ //
+ // When you run applications on Amazon EKS, your application might need to access
+ // Amazon Web Services resources from a different role that exists in the same or
+ // different Amazon Web Services account. For example, your application running in
+ // “Account A” might need to access resources, such as buckets in “Account B” or
+ // within “Account A” itself. You can create a association to access Amazon Web
+ // Services resources in “Account B” by creating two IAM roles: a role in “Account
+ // A” and a role in “Account B” (which can be the same or different account), each
+ // with the necessary trust and permission policies. After you provide these roles
+ // in the IAM role and Target IAM role fields, EKS will perform role chaining to
+ // ensure your application gets the required permissions. This means Role A will
+ // assume Role B, allowing your Pods to securely access resources like S3 buckets
+ // in the target account.
+ TargetRoleArn *string
+
noSmithyDocumentSerde
}
type UpdatePodIdentityAssociationOutput struct {
- // The full description of the EKS Pod Identity association that was updated.
+ // The full description of the association that was updated.
Association *types.PodIdentityAssociation
// Metadata pertaining to the operation's result.
diff --git a/service/eks/deserializers.go b/service/eks/deserializers.go
index 1bba2ee3d7f..82c6f8464f7 100644
--- a/service/eks/deserializers.go
+++ b/service/eks/deserializers.go
@@ -15149,6 +15149,24 @@ func awsRestjson1_deserializeDocumentPodIdentityAssociation(v **types.PodIdentit
}
}
+ case "disableSessionTags":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected BoxedBoolean to be of type *bool, got %T instead", value)
+ }
+ sv.DisableSessionTags = ptr.Bool(jtv)
+ }
+
+ case "externalId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ExternalId = ptr.String(jtv)
+ }
+
case "modifiedAt":
if value != nil {
switch jtv := value.(type) {
@@ -15206,6 +15224,15 @@ func awsRestjson1_deserializeDocumentPodIdentityAssociation(v **types.PodIdentit
return err
}
+ case "targetRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.TargetRoleArn = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
diff --git a/service/eks/go.mod b/service/eks/go.mod
index 8e3ce0fffb9..20b56b3339f 100644
--- a/service/eks/go.mod
+++ b/service/eks/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/eks
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/eks/go.sum b/service/eks/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/eks/go.sum
+++ b/service/eks/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/eks/go_module_metadata.go b/service/eks/go_module_metadata.go
index 30a94d771d0..42abd9c159a 100644
--- a/service/eks/go_module_metadata.go
+++ b/service/eks/go_module_metadata.go
@@ -3,4 +3,4 @@
package eks
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.65.2"
+const goModuleVersion = "1.66.1"
diff --git a/service/eks/serializers.go b/service/eks/serializers.go
index d839ffa3235..8e42ff73af9 100644
--- a/service/eks/serializers.go
+++ b/service/eks/serializers.go
@@ -1305,6 +1305,11 @@ func awsRestjson1_serializeOpDocumentCreatePodIdentityAssociationInput(v *Create
ok.String(*v.ClientRequestToken)
}
+ if v.DisableSessionTags != nil {
+ ok := object.Key("disableSessionTags")
+ ok.Boolean(*v.DisableSessionTags)
+ }
+
if v.Namespace != nil {
ok := object.Key("namespace")
ok.String(*v.Namespace)
@@ -1327,6 +1332,11 @@ func awsRestjson1_serializeOpDocumentCreatePodIdentityAssociationInput(v *Create
}
}
+ if v.TargetRoleArn != nil {
+ ok := object.Key("targetRoleArn")
+ ok.String(*v.TargetRoleArn)
+ }
+
return nil
}
@@ -5506,11 +5516,21 @@ func awsRestjson1_serializeOpDocumentUpdatePodIdentityAssociationInput(v *Update
ok.String(*v.ClientRequestToken)
}
+ if v.DisableSessionTags != nil {
+ ok := object.Key("disableSessionTags")
+ ok.Boolean(*v.DisableSessionTags)
+ }
+
if v.RoleArn != nil {
ok := object.Key("roleArn")
ok.String(*v.RoleArn)
}
+ if v.TargetRoleArn != nil {
+ ok := object.Key("targetRoleArn")
+ ok.String(*v.TargetRoleArn)
+ }
+
return nil
}
diff --git a/service/eks/types/types.go b/service/eks/types/types.go
index 32c169e0c27..87d928026e5 100644
--- a/service/eks/types/types.go
+++ b/service/eks/types/types.go
@@ -141,12 +141,12 @@ type Addon struct {
// The owner of the add-on.
Owner *string
- // An array of Pod Identity Assocations owned by the Addon. Each EKS Pod Identity
- // association maps a role to a service account in a namespace in the cluster.
+ // An array of EKS Pod Identity associations owned by the add-on. Each association
+ // maps a role to a service account in a namespace in the cluster.
//
- // For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod Identity] in the Amazon EKS User Guide.
+ // For more information, see [Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity] in the Amazon EKS User Guide.
//
- // [Attach an IAM Role to an Amazon EKS add-on using Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html
+ // [Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html
PodIdentityAssociations []string
// The publisher of the add-on.
@@ -230,14 +230,13 @@ type AddonIssue struct {
noSmithyDocumentSerde
}
-// A type of Pod Identity Association owned by an Amazon EKS Add-on.
+// A type of EKS Pod Identity association owned by an Amazon EKS add-on.
//
-// Each EKS Pod Identity Association maps a role to a service account in a
-// namespace in the cluster.
+// Each association maps a role to a service account in a namespace in the cluster.
//
-// For more information, see [Attach an IAM Role to an Amazon EKS add-on using Pod Identity] in the Amazon EKS User Guide.
+// For more information, see [Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity] in the Amazon EKS User Guide.
//
-// [Attach an IAM Role to an Amazon EKS add-on using Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html
+// [Attach an IAM Role to an Amazon EKS add-on using EKS Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/add-ons-iam.html
type AddonPodIdentityAssociations struct {
// The ARN of an IAM Role.
@@ -253,13 +252,13 @@ type AddonPodIdentityAssociations struct {
noSmithyDocumentSerde
}
-// Information about how to configure IAM for an Addon.
+// Information about how to configure IAM for an add-on.
type AddonPodIdentityConfiguration struct {
- // A suggested IAM Policy for the addon.
+ // A suggested IAM Policy for the add-on.
RecommendedManagedPolicies []string
- // The Kubernetes Service Account name used by the addon.
+ // The Kubernetes Service Account name used by the add-on.
ServiceAccount *string
noSmithyDocumentSerde
@@ -277,13 +276,13 @@ type AddonVersionInfo struct {
// An object representing the compatibilities of a version.
Compatibilities []Compatibility
- // Indicates the compute type of the addon version.
+ // Indicates the compute type of the add-on version.
ComputeTypes []string
// Whether the add-on requires configuration.
RequiresConfiguration bool
- // Indicates if the Addon requires IAM Permissions to operate, such as networking
+ // Indicates if the add-on requires IAM Permissions to operate, such as networking
// permissions.
RequiresIamPermissions bool
@@ -1772,20 +1771,45 @@ type PodIdentityAssociation struct {
// The timestamp that the association was created at.
CreatedAt *time.Time
- // The most recent timestamp that the association was modified at
+ // The state of the automatic sessions tags. The value of true disables these tags.
+ //
+ // EKS Pod Identity adds a pre-defined set of session tags when it assumes the
+ // role. You can use these tags to author a single role that can work across
+ // resources by allowing access to Amazon Web Services resources based on matching
+ // tags. By default, EKS Pod Identity attaches six tags, including tags for cluster
+ // name, namespace, and service account name. For the list of tags added by EKS Pod
+ // Identity, see [List of session tags added by EKS Pod Identity]in the Amazon EKS User Guide.
+ //
+ // [List of session tags added by EKS Pod Identity]: https://docs.aws.amazon.com/eks/latest/userguide/pod-id-abac.html#pod-id-abac-tags
+ DisableSessionTags *bool
+
+ // The unique identifier for this EKS Pod Identity association for a target IAM
+ // role. You put this value in the trust policy of the target role, in a Condition
+ // to match the sts.ExternalId . This ensures that the target role can only be
+ // assumed by this association. This prevents the confused deputy problem. For more
+ // information about the confused deputy problem, see [The confused deputy problem]in the IAM User Guide.
+ //
+ // If you want to use the same target role with multiple associations or other
+ // roles, use independent statements in the trust policy to allow sts:AssumeRole
+ // access from each role.
+ //
+ // [The confused deputy problem]: https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html
+ ExternalId *string
+
+ // The most recent timestamp that the association was modified at.
ModifiedAt *time.Time
// The name of the Kubernetes namespace inside the cluster to create the
- // association in. The service account and the pods that use the service account
+ // association in. The service account and the Pods that use the service account
// must be in this namespace.
Namespace *string
- // If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
+ // If defined, the EKS Pod Identity association is owned by an Amazon EKS add-on.
OwnerArn *string
// The Amazon Resource Name (ARN) of the IAM role to associate with the service
// account. The EKS Pod Identity agent manages credentials to assume this role for
- // applications in the containers in the pods that use this service account.
+ // applications in the containers in the Pods that use this service account.
RoleArn *string
// The name of the Kubernetes service account inside the cluster to associate the
@@ -1820,6 +1844,11 @@ type PodIdentityAssociation struct {
// prefix do not count against your tags per resource limit.
Tags map[string]string
+ // The Amazon Resource Name (ARN) of the target IAM role to associate with the
+ // service account. This role is assumed by using the EKS Pod Identity association
+ // role, then the credentials for this role are injected into the Pod.
+ TargetRoleArn *string
+
noSmithyDocumentSerde
}
@@ -1849,11 +1878,11 @@ type PodIdentityAssociationSummary struct {
ClusterName *string
// The name of the Kubernetes namespace inside the cluster to create the
- // association in. The service account and the pods that use the service account
+ // association in. The service account and the Pods that use the service account
// must be in this namespace.
Namespace *string
- // If defined, the Pod Identity Association is owned by an Amazon EKS Addon.
+ // If defined, the association is owned by an Amazon EKS add-on.
OwnerArn *string
// The name of the Kubernetes service account inside the cluster to associate the
@@ -1920,7 +1949,7 @@ type RemoteNetworkConfigRequest struct {
// It must satisfy the following requirements:
//
// - Each block must be within an IPv4 RFC-1918 network range. Minimum allowed
- // size is /24, maximum allowed size is /8. Publicly-routable addresses aren't
+ // size is /32, maximum allowed size is /8. Publicly-routable addresses aren't
// supported.
//
// - Each block cannot overlap with the range of the VPC CIDR blocks for your
@@ -1954,7 +1983,7 @@ type RemoteNetworkConfigRequest struct {
// It must satisfy the following requirements:
//
// - Each block must be within an IPv4 RFC-1918 network range. Minimum allowed
- // size is /24, maximum allowed size is /8. Publicly-routable addresses aren't
+ // size is /32, maximum allowed size is /8. Publicly-routable addresses aren't
// supported.
//
// - Each block cannot overlap with the range of the VPC CIDR blocks for your
@@ -1990,7 +2019,7 @@ type RemoteNetworkConfigResponse struct {
// It must satisfy the following requirements:
//
// - Each block must be within an IPv4 RFC-1918 network range. Minimum allowed
-// size is /24, maximum allowed size is /8. Publicly-routable addresses aren't
+// size is /32, maximum allowed size is /8. Publicly-routable addresses aren't
// supported.
//
// - Each block cannot overlap with the range of the VPC CIDR blocks for your
@@ -2022,7 +2051,7 @@ type RemoteNodeNetwork struct {
// It must satisfy the following requirements:
//
// - Each block must be within an IPv4 RFC-1918 network range. Minimum allowed
- // size is /24, maximum allowed size is /8. Publicly-routable addresses aren't
+ // size is /32, maximum allowed size is /8. Publicly-routable addresses aren't
// supported.
//
// - Each block cannot overlap with the range of the VPC CIDR blocks for your
@@ -2059,7 +2088,7 @@ type RemoteNodeNetwork struct {
// It must satisfy the following requirements:
//
// - Each block must be within an IPv4 RFC-1918 network range. Minimum allowed
-// size is /24, maximum allowed size is /8. Publicly-routable addresses aren't
+// size is /32, maximum allowed size is /8. Publicly-routable addresses aren't
// supported.
//
// - Each block cannot overlap with the range of the VPC CIDR blocks for your
@@ -2080,7 +2109,7 @@ type RemotePodNetwork struct {
// It must satisfy the following requirements:
//
// - Each block must be within an IPv4 RFC-1918 network range. Minimum allowed
- // size is /24, maximum allowed size is /8. Publicly-routable addresses aren't
+ // size is /32, maximum allowed size is /8. Publicly-routable addresses aren't
// supported.
//
// - Each block cannot overlap with the range of the VPC CIDR blocks for your
@@ -2252,29 +2281,36 @@ type VpcConfigRequest struct {
// this parameter is false , which disables private access for your Kubernetes API
// server. If you disable private access and you have nodes or Fargate pods in the
// cluster, then ensure that publicAccessCidrs includes the necessary CIDR blocks
- // for communication with the nodes or Fargate pods. For more information, see [Amazon EKS cluster endpoint access control]in
+ // for communication with the nodes or Fargate pods. For more information, see [Cluster API server endpoint]in
// the Amazon EKS User Guide .
//
- // [Amazon EKS cluster endpoint access control]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
+ // [Cluster API server endpoint]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
EndpointPrivateAccess *bool
// Set this value to false to disable public access to your cluster's Kubernetes
// API server endpoint. If you disable public access, your cluster's Kubernetes API
// server can only receive requests from within the cluster VPC. The default value
// for this parameter is true , which enables public access for your Kubernetes API
- // server. For more information, see [Amazon EKS cluster endpoint access control]in the Amazon EKS User Guide .
+ // server. The endpoint domain name and IP address family depends on the value of
+ // the ipFamily for the cluster. For more information, see [Cluster API server endpoint] in the Amazon EKS User
+ // Guide .
//
- // [Amazon EKS cluster endpoint access control]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
+ // [Cluster API server endpoint]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
EndpointPublicAccess *bool
// The CIDR blocks that are allowed access to your cluster's public Kubernetes API
// server endpoint. Communication to the endpoint from addresses outside of the
- // CIDR blocks that you specify is denied. The default value is 0.0.0.0/0 . If
- // you've disabled private endpoint access, make sure that you specify the
- // necessary CIDR blocks for every node and Fargate Pod in the cluster. For more
- // information, see [Amazon EKS cluster endpoint access control]in the Amazon EKS User Guide .
+ // CIDR blocks that you specify is denied. The default value is 0.0.0.0/0 and
+ // additionally ::/0 for dual-stack `IPv6` clusters. If you've disabled private
+ // endpoint access, make sure that you specify the necessary CIDR blocks for every
+ // node and Fargate Pod in the cluster. For more information, see [Cluster API server endpoint] in the Amazon
+ // EKS User Guide .
+ //
+ // Note that the public endpoints are dual-stack for only IPv6 clusters that are
+ // made after October 2024. You can't add IPv6 CIDR blocks to IPv4 clusters or IPv6
+ // clusters that were made before October 2024.
//
- // [Amazon EKS cluster endpoint access control]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
+ // [Cluster API server endpoint]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
PublicAccessCidrs []string
// Specify one or more security groups for the cross-account elastic network
@@ -2309,16 +2345,27 @@ type VpcConfigResponse struct {
// endpoint instead of traversing the internet. If this value is disabled and you
// have nodes or Fargate pods in the cluster, then ensure that publicAccessCidrs
// includes the necessary CIDR blocks for communication with the nodes or Fargate
- // pods. For more information, see [Amazon EKS cluster endpoint access control]in the Amazon EKS User Guide .
+ // pods. For more information, see [Cluster API server endpoint]in the Amazon EKS User Guide .
//
- // [Amazon EKS cluster endpoint access control]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
+ // [Cluster API server endpoint]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
EndpointPrivateAccess bool
// Whether the public API server endpoint is enabled.
EndpointPublicAccess bool
// The CIDR blocks that are allowed access to your cluster's public Kubernetes API
- // server endpoint.
+ // server endpoint. Communication to the endpoint from addresses outside of the
+ // CIDR blocks that you specify is denied. The default value is 0.0.0.0/0 and
+ // additionally ::/0 for dual-stack `IPv6` clusters. If you've disabled private
+ // endpoint access, make sure that you specify the necessary CIDR blocks for every
+ // node and Fargate Pod in the cluster. For more information, see [Cluster API server endpoint] in the Amazon
+ // EKS User Guide .
+ //
+ // Note that the public endpoints are dual-stack for only IPv6 clusters that are
+ // made after October 2024. You can't add IPv6 CIDR blocks to IPv4 clusters or IPv6
+ // clusters that were made before October 2024.
+ //
+ // [Cluster API server endpoint]: https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
PublicAccessCidrs []string
// The security groups associated with the cross-account elastic network
diff --git a/service/eksauth/CHANGELOG.md b/service/eksauth/CHANGELOG.md
index 96a7e2de78e..17b07bbf058 100644
--- a/service/eksauth/CHANGELOG.md
+++ b/service/eksauth/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.8.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.8.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/eksauth/go.mod b/service/eksauth/go.mod
index 801dab0f055..725ffc9afc4 100644
--- a/service/eksauth/go.mod
+++ b/service/eksauth/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/eksauth
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/eksauth/go.sum b/service/eksauth/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/eksauth/go.sum
+++ b/service/eksauth/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/eksauth/go_module_metadata.go b/service/eksauth/go_module_metadata.go
index 0a5a3a2ce82..279881dd245 100644
--- a/service/eksauth/go_module_metadata.go
+++ b/service/eksauth/go_module_metadata.go
@@ -3,4 +3,4 @@
package eksauth
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.8.4"
+const goModuleVersion = "1.8.5"
diff --git a/service/elasticache/CHANGELOG.md b/service/elasticache/CHANGELOG.md
index 679de27d25b..9d15ce00df8 100644
--- a/service/elasticache/CHANGELOG.md
+++ b/service/elasticache/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.46.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.46.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod
index 10d64afdee4..937bff2ebde 100644
--- a/service/elasticache/go.mod
+++ b/service/elasticache/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticache
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/elasticache/go.sum
+++ b/service/elasticache/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/elasticache/go_module_metadata.go b/service/elasticache/go_module_metadata.go
index f622ea00cdf..83380d12e07 100644
--- a/service/elasticache/go_module_metadata.go
+++ b/service/elasticache/go_module_metadata.go
@@ -3,4 +3,4 @@
package elasticache
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.46.2"
+const goModuleVersion = "1.46.3"
diff --git a/service/elasticbeanstalk/CHANGELOG.md b/service/elasticbeanstalk/CHANGELOG.md
index 1462768b5db..d7de7a33d86 100644
--- a/service/elasticbeanstalk/CHANGELOG.md
+++ b/service/elasticbeanstalk/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod
index 29e5184c145..8b4a91aa308 100644
--- a/service/elasticbeanstalk/go.mod
+++ b/service/elasticbeanstalk/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/elasticbeanstalk/go.sum
+++ b/service/elasticbeanstalk/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/elasticbeanstalk/go_module_metadata.go b/service/elasticbeanstalk/go_module_metadata.go
index 81ee89e7d85..0312616c9de 100644
--- a/service/elasticbeanstalk/go_module_metadata.go
+++ b/service/elasticbeanstalk/go_module_metadata.go
@@ -3,4 +3,4 @@
package elasticbeanstalk
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/elasticloadbalancing/CHANGELOG.md b/service/elasticloadbalancing/CHANGELOG.md
index a6208b2e5f2..091288c5404 100644
--- a/service/elasticloadbalancing/CHANGELOG.md
+++ b/service/elasticloadbalancing/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod
index 4e690c4107d..22fa7092275 100644
--- a/service/elasticloadbalancing/go.mod
+++ b/service/elasticloadbalancing/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/elasticloadbalancing/go.sum
+++ b/service/elasticloadbalancing/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/elasticloadbalancing/go_module_metadata.go b/service/elasticloadbalancing/go_module_metadata.go
index 51db45bd50a..1a1dfe6ade7 100644
--- a/service/elasticloadbalancing/go_module_metadata.go
+++ b/service/elasticloadbalancing/go_module_metadata.go
@@ -3,4 +3,4 @@
package elasticloadbalancing
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.5"
+const goModuleVersion = "1.29.6"
diff --git a/service/elasticloadbalancingv2/CHANGELOG.md b/service/elasticloadbalancingv2/CHANGELOG.md
index 03429eaa273..58aff8a2c21 100644
--- a/service/elasticloadbalancingv2/CHANGELOG.md
+++ b/service/elasticloadbalancingv2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.45.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.45.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod
index 749659039d0..d9f6a7c14fc 100644
--- a/service/elasticloadbalancingv2/go.mod
+++ b/service/elasticloadbalancingv2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/elasticloadbalancingv2/go.sum
+++ b/service/elasticloadbalancingv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/elasticloadbalancingv2/go_module_metadata.go b/service/elasticloadbalancingv2/go_module_metadata.go
index adab0df7da4..7c11fd87a68 100644
--- a/service/elasticloadbalancingv2/go_module_metadata.go
+++ b/service/elasticloadbalancingv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package elasticloadbalancingv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.45.4"
+const goModuleVersion = "1.45.5"
diff --git a/service/elasticsearchservice/CHANGELOG.md b/service/elasticsearchservice/CHANGELOG.md
index 6111b65c863..e79163e09a5 100644
--- a/service/elasticsearchservice/CHANGELOG.md
+++ b/service/elasticsearchservice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod
index 3e5645ec2b4..395aaab52b2 100644
--- a/service/elasticsearchservice/go.mod
+++ b/service/elasticsearchservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticsearchservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/elasticsearchservice/go.sum
+++ b/service/elasticsearchservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/elasticsearchservice/go_module_metadata.go b/service/elasticsearchservice/go_module_metadata.go
index 29405010ece..c010a51838e 100644
--- a/service/elasticsearchservice/go_module_metadata.go
+++ b/service/elasticsearchservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package elasticsearchservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.5"
+const goModuleVersion = "1.33.6"
diff --git a/service/elastictranscoder/CHANGELOG.md b/service/elastictranscoder/CHANGELOG.md
index d1648451772..f1e626b8d27 100644
--- a/service/elastictranscoder/CHANGELOG.md
+++ b/service/elastictranscoder/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod
index 821809deaf7..8f932107012 100644
--- a/service/elastictranscoder/go.mod
+++ b/service/elastictranscoder/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elastictranscoder
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/elastictranscoder/go.sum
+++ b/service/elastictranscoder/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/elastictranscoder/go_module_metadata.go b/service/elastictranscoder/go_module_metadata.go
index e4ba3193770..53df1c2d925 100644
--- a/service/elastictranscoder/go_module_metadata.go
+++ b/service/elastictranscoder/go_module_metadata.go
@@ -3,4 +3,4 @@
package elastictranscoder
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/emr/CHANGELOG.md b/service/emr/CHANGELOG.md
index 0cf344682a9..8b92e3413dd 100644
--- a/service/emr/CHANGELOG.md
+++ b/service/emr/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.49.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.49.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/emr/go.mod b/service/emr/go.mod
index a7d21c22163..aea6208f307 100644
--- a/service/emr/go.mod
+++ b/service/emr/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emr
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/emr/go.sum b/service/emr/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/emr/go.sum
+++ b/service/emr/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/emr/go_module_metadata.go b/service/emr/go_module_metadata.go
index 93de4d1e496..e92a5cbbac0 100644
--- a/service/emr/go_module_metadata.go
+++ b/service/emr/go_module_metadata.go
@@ -3,4 +3,4 @@
package emr
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.49.2"
+const goModuleVersion = "1.49.3"
diff --git a/service/emrcontainers/CHANGELOG.md b/service/emrcontainers/CHANGELOG.md
index 43b53bcbefc..004be9b04c1 100644
--- a/service/emrcontainers/CHANGELOG.md
+++ b/service/emrcontainers/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/emrcontainers/go.mod b/service/emrcontainers/go.mod
index b7ec47b24df..aaad8a7110a 100644
--- a/service/emrcontainers/go.mod
+++ b/service/emrcontainers/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emrcontainers
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/emrcontainers/go.sum b/service/emrcontainers/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/emrcontainers/go.sum
+++ b/service/emrcontainers/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/emrcontainers/go_module_metadata.go b/service/emrcontainers/go_module_metadata.go
index 5e2515693d6..c8d27b36a3f 100644
--- a/service/emrcontainers/go_module_metadata.go
+++ b/service/emrcontainers/go_module_metadata.go
@@ -3,4 +3,4 @@
package emrcontainers
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.3"
+const goModuleVersion = "1.35.4"
diff --git a/service/emrserverless/CHANGELOG.md b/service/emrserverless/CHANGELOG.md
index a96a7c803c4..1088196cbd8 100644
--- a/service/emrserverless/CHANGELOG.md
+++ b/service/emrserverless/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.31.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.31.0 (2025-06-12)
+
+* **Feature**: This release adds support for retrieval of the optional executionIamPolicy field in the GetJobRun API response.
+
# v1.30.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/emrserverless/api_op_CancelJobRun.go b/service/emrserverless/api_op_CancelJobRun.go
index b06468b0929..d44e92e5d07 100644
--- a/service/emrserverless/api_op_CancelJobRun.go
+++ b/service/emrserverless/api_op_CancelJobRun.go
@@ -38,7 +38,7 @@ type CancelJobRunInput struct {
// This member is required.
JobRunId *string
- // The duration (in seconds) to wait before forcefully terminating the job after
+ // The duration in seconds to wait before forcefully terminating the job after
// cancellation is requested.
ShutdownGracePeriodInSeconds *int32
diff --git a/service/emrserverless/deserializers.go b/service/emrserverless/deserializers.go
index 966b2d6a9a0..6c721e0f5f9 100644
--- a/service/emrserverless/deserializers.go
+++ b/service/emrserverless/deserializers.go
@@ -3705,6 +3705,11 @@ func awsRestjson1_deserializeDocumentJobRun(v **types.JobRun, value interface{})
}
}
+ case "executionIamPolicy":
+ if err := awsRestjson1_deserializeDocumentJobRunExecutionIamPolicy(&sv.ExecutionIamPolicy, value); err != nil {
+ return err
+ }
+
case "executionRole":
if value != nil {
jtv, ok := value.(string)
@@ -4098,6 +4103,51 @@ func awsRestjson1_deserializeDocumentJobRunAttemptSummary(v **types.JobRunAttemp
return nil
}
+func awsRestjson1_deserializeDocumentJobRunExecutionIamPolicy(v **types.JobRunExecutionIamPolicy, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.JobRunExecutionIamPolicy
+ if *v == nil {
+ sv = &types.JobRunExecutionIamPolicy{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "policy":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value)
+ }
+ sv.Policy = ptr.String(jtv)
+ }
+
+ case "policyArns":
+ if err := awsRestjson1_deserializeDocumentPolicyArnList(&sv.PolicyArns, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentJobRuns(v *[]types.JobRunSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -4608,6 +4658,42 @@ func awsRestjson1_deserializeDocumentNetworkConfiguration(v **types.NetworkConfi
return nil
}
+func awsRestjson1_deserializeDocumentPolicyArnList(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Arn to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentPrometheusMonitoringConfiguration(v **types.PrometheusMonitoringConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
diff --git a/service/emrserverless/go.mod b/service/emrserverless/go.mod
index 7777b839632..109a5e81962 100644
--- a/service/emrserverless/go.mod
+++ b/service/emrserverless/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emrserverless
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/emrserverless/go.sum b/service/emrserverless/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/emrserverless/go.sum
+++ b/service/emrserverless/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/emrserverless/go_module_metadata.go b/service/emrserverless/go_module_metadata.go
index 6b1f07f7b63..b8fb6fd5ade 100644
--- a/service/emrserverless/go_module_metadata.go
+++ b/service/emrserverless/go_module_metadata.go
@@ -3,4 +3,4 @@
package emrserverless
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.1"
+const goModuleVersion = "1.31.1"
diff --git a/service/emrserverless/types/types.go b/service/emrserverless/types/types.go
index ba414a495df..684f102155e 100644
--- a/service/emrserverless/types/types.go
+++ b/service/emrserverless/types/types.go
@@ -430,6 +430,11 @@ type JobRun struct {
// The date and time when the job was terminated.
EndedAt *time.Time
+ // Optional IAM policy. The resulting job IAM role permissions will be an
+ // intersection of the policies passed and the policy associated with your job
+ // execution role.
+ ExecutionIamPolicy *JobRunExecutionIamPolicy
+
// Returns the job run timeout value from the StartJobRun call. If no timeout was
// specified, then it returns the default timeout of 720 minutes.
ExecutionTimeoutMinutes *int64
diff --git a/service/entityresolution/CHANGELOG.md b/service/entityresolution/CHANGELOG.md
index e27cfa42b19..7a88e18610d 100644
--- a/service/entityresolution/CHANGELOG.md
+++ b/service/entityresolution/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.19.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.19.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/entityresolution/go.mod b/service/entityresolution/go.mod
index 83b93b1cb04..a2fd49bcff6 100644
--- a/service/entityresolution/go.mod
+++ b/service/entityresolution/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/entityresolution
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/entityresolution/go.sum b/service/entityresolution/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/entityresolution/go.sum
+++ b/service/entityresolution/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/entityresolution/go_module_metadata.go b/service/entityresolution/go_module_metadata.go
index 0b5f87ea78a..4a4a1962c07 100644
--- a/service/entityresolution/go_module_metadata.go
+++ b/service/entityresolution/go_module_metadata.go
@@ -3,4 +3,4 @@
package entityresolution
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.19.1"
+const goModuleVersion = "1.19.2"
diff --git a/service/eventbridge/CHANGELOG.md b/service/eventbridge/CHANGELOG.md
index c4ef8a70f9c..9b2a98bff9d 100644
--- a/service/eventbridge/CHANGELOG.md
+++ b/service/eventbridge/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.39.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.39.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod
index bd08104b2d6..c5de3416023 100644
--- a/service/eventbridge/go.mod
+++ b/service/eventbridge/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/eventbridge
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/eventbridge/go.sum
+++ b/service/eventbridge/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/eventbridge/go_module_metadata.go b/service/eventbridge/go_module_metadata.go
index b33b58f41ab..25cde8a7f0f 100644
--- a/service/eventbridge/go_module_metadata.go
+++ b/service/eventbridge/go_module_metadata.go
@@ -3,4 +3,4 @@
package eventbridge
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.39.2"
+const goModuleVersion = "1.39.3"
diff --git a/service/evidently/CHANGELOG.md b/service/evidently/CHANGELOG.md
index 6debee2cef1..538404eab5d 100644
--- a/service/evidently/CHANGELOG.md
+++ b/service/evidently/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/evidently/go.mod b/service/evidently/go.mod
index a417194d19e..a6579f82b05 100644
--- a/service/evidently/go.mod
+++ b/service/evidently/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/evidently
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/evidently/go.sum b/service/evidently/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/evidently/go.sum
+++ b/service/evidently/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/evidently/go_module_metadata.go b/service/evidently/go_module_metadata.go
index f1b30d78671..f316405873c 100644
--- a/service/evidently/go_module_metadata.go
+++ b/service/evidently/go_module_metadata.go
@@ -3,4 +3,4 @@
package evidently
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/evs/CHANGELOG.md b/service/evs/CHANGELOG.md
index 861c38a3dd1..47bce7a2e1c 100644
--- a/service/evs/CHANGELOG.md
+++ b/service/evs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.0.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.0.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/evs/go.mod b/service/evs/go.mod
index 6d563b88763..cead0bd3b49 100644
--- a/service/evs/go.mod
+++ b/service/evs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/evs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/evs/go.sum b/service/evs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/evs/go.sum
+++ b/service/evs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/evs/go_module_metadata.go b/service/evs/go_module_metadata.go
index 9373d9e94c4..6ff0c74804e 100644
--- a/service/evs/go_module_metadata.go
+++ b/service/evs/go_module_metadata.go
@@ -3,4 +3,4 @@
package evs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.0.1"
+const goModuleVersion = "1.0.2"
diff --git a/service/finspace/CHANGELOG.md b/service/finspace/CHANGELOG.md
index e9e42a7132e..21641fe56ed 100644
--- a/service/finspace/CHANGELOG.md
+++ b/service/finspace/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/finspace/go.mod b/service/finspace/go.mod
index f2678e1c890..5bddc5ce32c 100644
--- a/service/finspace/go.mod
+++ b/service/finspace/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/finspace
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/finspace/go.sum b/service/finspace/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/finspace/go.sum
+++ b/service/finspace/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/finspace/go_module_metadata.go b/service/finspace/go_module_metadata.go
index a8e1a5300d6..5cf62caea11 100644
--- a/service/finspace/go_module_metadata.go
+++ b/service/finspace/go_module_metadata.go
@@ -3,4 +3,4 @@
package finspace
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/finspacedata/CHANGELOG.md b/service/finspacedata/CHANGELOG.md
index cd4d9cdd7f0..1f7ccd5ce5b 100644
--- a/service/finspacedata/CHANGELOG.md
+++ b/service/finspacedata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/finspacedata/go.mod b/service/finspacedata/go.mod
index e3ea668a3dd..7429518dacd 100644
--- a/service/finspacedata/go.mod
+++ b/service/finspacedata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/finspacedata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/finspacedata/go.sum b/service/finspacedata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/finspacedata/go.sum
+++ b/service/finspacedata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/finspacedata/go_module_metadata.go b/service/finspacedata/go_module_metadata.go
index 8e16b51d87c..37538ad62fe 100644
--- a/service/finspacedata/go_module_metadata.go
+++ b/service/finspacedata/go_module_metadata.go
@@ -3,4 +3,4 @@
package finspacedata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/firehose/CHANGELOG.md b/service/firehose/CHANGELOG.md
index 9589de526d3..e3873126e30 100644
--- a/service/firehose/CHANGELOG.md
+++ b/service/firehose/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.37.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.37.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/firehose/go.mod b/service/firehose/go.mod
index eecb3a9b0f1..d8139997a4c 100644
--- a/service/firehose/go.mod
+++ b/service/firehose/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/firehose
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/firehose/go.sum b/service/firehose/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/firehose/go.sum
+++ b/service/firehose/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/firehose/go_module_metadata.go b/service/firehose/go_module_metadata.go
index bff7f1b3a05..c9fed9a24ee 100644
--- a/service/firehose/go_module_metadata.go
+++ b/service/firehose/go_module_metadata.go
@@ -3,4 +3,4 @@
package firehose
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.37.6"
+const goModuleVersion = "1.37.7"
diff --git a/service/fis/CHANGELOG.md b/service/fis/CHANGELOG.md
index 53722b44943..64a090c22f6 100644
--- a/service/fis/CHANGELOG.md
+++ b/service/fis/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/fis/go.mod b/service/fis/go.mod
index b108e57990d..4c5db70a4fb 100644
--- a/service/fis/go.mod
+++ b/service/fis/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fis
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/fis/go.sum b/service/fis/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/fis/go.sum
+++ b/service/fis/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/fis/go_module_metadata.go b/service/fis/go_module_metadata.go
index 1e3fc9afebf..9c3c31f56c9 100644
--- a/service/fis/go_module_metadata.go
+++ b/service/fis/go_module_metadata.go
@@ -3,4 +3,4 @@
package fis
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.3"
+const goModuleVersion = "1.33.4"
diff --git a/service/fms/CHANGELOG.md b/service/fms/CHANGELOG.md
index bdcff900878..47460c582bb 100644
--- a/service/fms/CHANGELOG.md
+++ b/service/fms/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.40.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.40.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/fms/go.mod b/service/fms/go.mod
index 48ffcbbb68e..80d77c32a0d 100644
--- a/service/fms/go.mod
+++ b/service/fms/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fms
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/fms/go.sum b/service/fms/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/fms/go.sum
+++ b/service/fms/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/fms/go_module_metadata.go b/service/fms/go_module_metadata.go
index 20a452dfcb2..9ad49d3f456 100644
--- a/service/fms/go_module_metadata.go
+++ b/service/fms/go_module_metadata.go
@@ -3,4 +3,4 @@
package fms
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.40.4"
+const goModuleVersion = "1.40.5"
diff --git a/service/forecast/CHANGELOG.md b/service/forecast/CHANGELOG.md
index 47efd17be42..bc7abec89db 100644
--- a/service/forecast/CHANGELOG.md
+++ b/service/forecast/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.37.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.37.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/forecast/go.mod b/service/forecast/go.mod
index 8076a3cc169..c6c2e1ef10d 100644
--- a/service/forecast/go.mod
+++ b/service/forecast/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/forecast
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/forecast/go.sum b/service/forecast/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/forecast/go.sum
+++ b/service/forecast/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/forecast/go_module_metadata.go b/service/forecast/go_module_metadata.go
index ee728238644..5473f5e9ead 100644
--- a/service/forecast/go_module_metadata.go
+++ b/service/forecast/go_module_metadata.go
@@ -3,4 +3,4 @@
package forecast
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.37.3"
+const goModuleVersion = "1.37.4"
diff --git a/service/forecastquery/CHANGELOG.md b/service/forecastquery/CHANGELOG.md
index 7534a82efbe..94e0a86049e 100644
--- a/service/forecastquery/CHANGELOG.md
+++ b/service/forecastquery/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod
index efbb50ef54a..fc399a9661d 100644
--- a/service/forecastquery/go.mod
+++ b/service/forecastquery/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/forecastquery
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/forecastquery/go.sum
+++ b/service/forecastquery/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/forecastquery/go_module_metadata.go b/service/forecastquery/go_module_metadata.go
index 7674c3815dd..d153e5d0cff 100644
--- a/service/forecastquery/go_module_metadata.go
+++ b/service/forecastquery/go_module_metadata.go
@@ -3,4 +3,4 @@
package forecastquery
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/frauddetector/CHANGELOG.md b/service/frauddetector/CHANGELOG.md
index 7f720fc7b50..15c9fd74ca8 100644
--- a/service/frauddetector/CHANGELOG.md
+++ b/service/frauddetector/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.36.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.36.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod
index a00c89abede..b1e456909f0 100644
--- a/service/frauddetector/go.mod
+++ b/service/frauddetector/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/frauddetector
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/frauddetector/go.sum
+++ b/service/frauddetector/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/frauddetector/go_module_metadata.go b/service/frauddetector/go_module_metadata.go
index b57fb6b9b7a..f23ed274a20 100644
--- a/service/frauddetector/go_module_metadata.go
+++ b/service/frauddetector/go_module_metadata.go
@@ -3,4 +3,4 @@
package frauddetector
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.36.3"
+const goModuleVersion = "1.36.4"
diff --git a/service/freetier/CHANGELOG.md b/service/freetier/CHANGELOG.md
index 526ec520d05..0d571b594c4 100644
--- a/service/freetier/CHANGELOG.md
+++ b/service/freetier/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.8.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.8.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/freetier/go.mod b/service/freetier/go.mod
index 075ec82a717..35b14053384 100644
--- a/service/freetier/go.mod
+++ b/service/freetier/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/freetier
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/freetier/go.sum b/service/freetier/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/freetier/go.sum
+++ b/service/freetier/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/freetier/go_module_metadata.go b/service/freetier/go_module_metadata.go
index a2a065b8b52..e0eabc5131e 100644
--- a/service/freetier/go_module_metadata.go
+++ b/service/freetier/go_module_metadata.go
@@ -3,4 +3,4 @@
package freetier
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.8.3"
+const goModuleVersion = "1.8.4"
diff --git a/service/fsx/CHANGELOG.md b/service/fsx/CHANGELOG.md
index e0867de621b..690a715b189 100644
--- a/service/fsx/CHANGELOG.md
+++ b/service/fsx/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.54.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.54.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/fsx/go.mod b/service/fsx/go.mod
index 0de59753dec..ec0c2ba8ed5 100644
--- a/service/fsx/go.mod
+++ b/service/fsx/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fsx
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/fsx/go.sum b/service/fsx/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/fsx/go.sum
+++ b/service/fsx/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/fsx/go_module_metadata.go b/service/fsx/go_module_metadata.go
index 3ca98360060..d3c9e0a9161 100644
--- a/service/fsx/go_module_metadata.go
+++ b/service/fsx/go_module_metadata.go
@@ -3,4 +3,4 @@
package fsx
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.54.1"
+const goModuleVersion = "1.54.2"
diff --git a/service/gamelift/CHANGELOG.md b/service/gamelift/CHANGELOG.md
index b86fda2a7aa..af6c68067cc 100644
--- a/service/gamelift/CHANGELOG.md
+++ b/service/gamelift/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.41.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.41.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod
index 0264f879659..2b3b33fdd72 100644
--- a/service/gamelift/go.mod
+++ b/service/gamelift/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/gamelift
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/gamelift/go.sum
+++ b/service/gamelift/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/gamelift/go_module_metadata.go b/service/gamelift/go_module_metadata.go
index 7525560bec6..fe937d77d4c 100644
--- a/service/gamelift/go_module_metadata.go
+++ b/service/gamelift/go_module_metadata.go
@@ -3,4 +3,4 @@
package gamelift
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.41.2"
+const goModuleVersion = "1.41.3"
diff --git a/service/gameliftstreams/CHANGELOG.md b/service/gameliftstreams/CHANGELOG.md
index 13111c43b45..7aa876e85a0 100644
--- a/service/gameliftstreams/CHANGELOG.md
+++ b/service/gameliftstreams/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.1.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.1.3 (2025-06-10)
* **Documentation**: Documentation updates for Amazon GameLift Streams to address formatting errors, correct resource ID examples, and update links to other guides
diff --git a/service/gameliftstreams/go.mod b/service/gameliftstreams/go.mod
index 4248ae1301c..3233ef93aa3 100644
--- a/service/gameliftstreams/go.mod
+++ b/service/gameliftstreams/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/gameliftstreams
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/gameliftstreams/go.sum b/service/gameliftstreams/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/gameliftstreams/go.sum
+++ b/service/gameliftstreams/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/gameliftstreams/go_module_metadata.go b/service/gameliftstreams/go_module_metadata.go
index 02fe357bdea..56354e3c8b2 100644
--- a/service/gameliftstreams/go_module_metadata.go
+++ b/service/gameliftstreams/go_module_metadata.go
@@ -3,4 +3,4 @@
package gameliftstreams
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.1.3"
+const goModuleVersion = "1.1.4"
diff --git a/service/geomaps/CHANGELOG.md b/service/geomaps/CHANGELOG.md
index 29ba706076e..f8ea3a5e1b5 100644
--- a/service/geomaps/CHANGELOG.md
+++ b/service/geomaps/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.2.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.2.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/geomaps/go.mod b/service/geomaps/go.mod
index 6940ddc845d..602ce8497e2 100644
--- a/service/geomaps/go.mod
+++ b/service/geomaps/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/geomaps
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/geomaps/go.sum b/service/geomaps/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/geomaps/go.sum
+++ b/service/geomaps/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/geomaps/go_module_metadata.go b/service/geomaps/go_module_metadata.go
index 3e5d4e82785..1b224af8019 100644
--- a/service/geomaps/go_module_metadata.go
+++ b/service/geomaps/go_module_metadata.go
@@ -3,4 +3,4 @@
package geomaps
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.2"
+const goModuleVersion = "1.2.3"
diff --git a/service/geoplaces/CHANGELOG.md b/service/geoplaces/CHANGELOG.md
index e28eae38104..2edc0230f83 100644
--- a/service/geoplaces/CHANGELOG.md
+++ b/service/geoplaces/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.1.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.1.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/geoplaces/go.mod b/service/geoplaces/go.mod
index 43198a436be..c018f4733c8 100644
--- a/service/geoplaces/go.mod
+++ b/service/geoplaces/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/geoplaces
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/geoplaces/go.sum b/service/geoplaces/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/geoplaces/go.sum
+++ b/service/geoplaces/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/geoplaces/go_module_metadata.go b/service/geoplaces/go_module_metadata.go
index 3a4ff6a4807..34be6c40e18 100644
--- a/service/geoplaces/go_module_metadata.go
+++ b/service/geoplaces/go_module_metadata.go
@@ -3,4 +3,4 @@
package geoplaces
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.1.3"
+const goModuleVersion = "1.1.4"
diff --git a/service/georoutes/CHANGELOG.md b/service/georoutes/CHANGELOG.md
index e374b1e10de..e6063fd2b51 100644
--- a/service/georoutes/CHANGELOG.md
+++ b/service/georoutes/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.2.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.2.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/georoutes/go.mod b/service/georoutes/go.mod
index 2d5bc6640d8..842fda4404a 100644
--- a/service/georoutes/go.mod
+++ b/service/georoutes/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/georoutes
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/georoutes/go.sum b/service/georoutes/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/georoutes/go.sum
+++ b/service/georoutes/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/georoutes/go_module_metadata.go b/service/georoutes/go_module_metadata.go
index 019290bc139..e773057154a 100644
--- a/service/georoutes/go_module_metadata.go
+++ b/service/georoutes/go_module_metadata.go
@@ -3,4 +3,4 @@
package georoutes
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.3"
+const goModuleVersion = "1.2.4"
diff --git a/service/glacier/CHANGELOG.md b/service/glacier/CHANGELOG.md
index fc8735a30e5..04bb087683f 100644
--- a/service/glacier/CHANGELOG.md
+++ b/service/glacier/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/glacier/go.mod b/service/glacier/go.mod
index e4db1530b2e..b841407c55e 100644
--- a/service/glacier/go.mod
+++ b/service/glacier/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/glacier
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/glacier/go.sum b/service/glacier/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/glacier/go.sum
+++ b/service/glacier/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/glacier/go_module_metadata.go b/service/glacier/go_module_metadata.go
index b5146328495..69ffcc07f84 100644
--- a/service/glacier/go_module_metadata.go
+++ b/service/glacier/go_module_metadata.go
@@ -3,4 +3,4 @@
package glacier
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.4"
+const goModuleVersion = "1.27.5"
diff --git a/service/globalaccelerator/CHANGELOG.md b/service/globalaccelerator/CHANGELOG.md
index 7d67561cf6a..b3948571d4c 100644
--- a/service/globalaccelerator/CHANGELOG.md
+++ b/service/globalaccelerator/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod
index 0dbbb7dee4c..313848bb741 100644
--- a/service/globalaccelerator/go.mod
+++ b/service/globalaccelerator/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/globalaccelerator
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/globalaccelerator/go.sum
+++ b/service/globalaccelerator/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/globalaccelerator/go_module_metadata.go b/service/globalaccelerator/go_module_metadata.go
index 77d0abeb504..c86c076fdb3 100644
--- a/service/globalaccelerator/go_module_metadata.go
+++ b/service/globalaccelerator/go_module_metadata.go
@@ -3,4 +3,4 @@
package globalaccelerator
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/glue/CHANGELOG.md b/service/glue/CHANGELOG.md
index d52f2e195c4..b05cb6ba5bf 100644
--- a/service/glue/CHANGELOG.md
+++ b/service/glue/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.113.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.113.2 (2025-06-11)
+
+* No change notes available for this release.
+
# v1.113.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/glue/go.mod b/service/glue/go.mod
index 9c683441e55..e0d15f54ad5 100644
--- a/service/glue/go.mod
+++ b/service/glue/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/glue
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/glue/go.sum b/service/glue/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/glue/go.sum
+++ b/service/glue/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/glue/go_module_metadata.go b/service/glue/go_module_metadata.go
index 9977f6374ea..62baa882e11 100644
--- a/service/glue/go_module_metadata.go
+++ b/service/glue/go_module_metadata.go
@@ -3,4 +3,4 @@
package glue
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.113.1"
+const goModuleVersion = "1.113.3"
diff --git a/service/glue/internal/endpoints/endpoints.go b/service/glue/internal/endpoints/endpoints.go
index 6b10db1c9cb..82a9506a125 100644
--- a/service/glue/internal/endpoints/endpoints.go
+++ b/service/glue/internal/endpoints/endpoints.go
@@ -159,6 +159,9 @@ var defaultPartitions = endpoints.Partitions{
}: {
Hostname: "glue.ap-east-1.api.aws",
},
+ endpoints.EndpointKey{
+ Region: "ap-east-2",
+ }: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-northeast-1",
}: endpoints.Endpoint{},
diff --git a/service/grafana/CHANGELOG.md b/service/grafana/CHANGELOG.md
index 82536126db4..79d0c5f6ff4 100644
--- a/service/grafana/CHANGELOG.md
+++ b/service/grafana/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/grafana/go.mod b/service/grafana/go.mod
index b83e253ac5d..220206d6d48 100644
--- a/service/grafana/go.mod
+++ b/service/grafana/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/grafana
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/grafana/go.sum b/service/grafana/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/grafana/go.sum
+++ b/service/grafana/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/grafana/go_module_metadata.go b/service/grafana/go_module_metadata.go
index 1facf6ea673..20be5544236 100644
--- a/service/grafana/go_module_metadata.go
+++ b/service/grafana/go_module_metadata.go
@@ -3,4 +3,4 @@
package grafana
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/greengrass/CHANGELOG.md b/service/greengrass/CHANGELOG.md
index 2a5c1040ee1..b1fb57abcf0 100644
--- a/service/greengrass/CHANGELOG.md
+++ b/service/greengrass/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod
index f72a48542d9..3b537219474 100644
--- a/service/greengrass/go.mod
+++ b/service/greengrass/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/greengrass
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/greengrass/go.sum
+++ b/service/greengrass/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/greengrass/go_module_metadata.go b/service/greengrass/go_module_metadata.go
index 0685ecd1360..e3cc3fab757 100644
--- a/service/greengrass/go_module_metadata.go
+++ b/service/greengrass/go_module_metadata.go
@@ -3,4 +3,4 @@
package greengrass
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/greengrassv2/CHANGELOG.md b/service/greengrassv2/CHANGELOG.md
index 70b2b2e9032..a08bd3f0c24 100644
--- a/service/greengrassv2/CHANGELOG.md
+++ b/service/greengrassv2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.37.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.37.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/greengrassv2/go.mod b/service/greengrassv2/go.mod
index aee95fb34b7..4de34ad4f54 100644
--- a/service/greengrassv2/go.mod
+++ b/service/greengrassv2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/greengrassv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/greengrassv2/go.sum b/service/greengrassv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/greengrassv2/go.sum
+++ b/service/greengrassv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/greengrassv2/go_module_metadata.go b/service/greengrassv2/go_module_metadata.go
index 384ab9feb06..1dbd8ec66b7 100644
--- a/service/greengrassv2/go_module_metadata.go
+++ b/service/greengrassv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package greengrassv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.37.3"
+const goModuleVersion = "1.37.4"
diff --git a/service/groundstation/CHANGELOG.md b/service/groundstation/CHANGELOG.md
index a6268792be7..b24e55ff911 100644
--- a/service/groundstation/CHANGELOG.md
+++ b/service/groundstation/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod
index 5e4990112e9..60b2502fd65 100644
--- a/service/groundstation/go.mod
+++ b/service/groundstation/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/groundstation
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/groundstation/go.sum
+++ b/service/groundstation/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/groundstation/go_module_metadata.go b/service/groundstation/go_module_metadata.go
index 318fada6aff..a23b8c856a9 100644
--- a/service/groundstation/go_module_metadata.go
+++ b/service/groundstation/go_module_metadata.go
@@ -3,4 +3,4 @@
package groundstation
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.1"
+const goModuleVersion = "1.33.2"
diff --git a/service/guardduty/CHANGELOG.md b/service/guardduty/CHANGELOG.md
index 01fd90f4c21..2b3dc5b5504 100644
--- a/service/guardduty/CHANGELOG.md
+++ b/service/guardduty/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.55.0 (2025-06-17)
+
+* **Feature**: Adding support for extended threat detection for EKS Audit Logs and EKS Runtime Monitoring.
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.54.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/guardduty/api_op_GetAdministratorAccount.go b/service/guardduty/api_op_GetAdministratorAccount.go
index 1e9f6db4852..4830f4a788b 100644
--- a/service/guardduty/api_op_GetAdministratorAccount.go
+++ b/service/guardduty/api_op_GetAdministratorAccount.go
@@ -14,8 +14,18 @@ import (
// Provides the details of the GuardDuty administrator account associated with the
// current GuardDuty member account.
//
-// If the organization's management account or a delegated administrator runs this
-// API, it will return success ( HTTP 200 ) but no content.
+// Based on the type of account that runs this API, the following list shows how
+// the API behavior varies:
+//
+// - When the GuardDuty administrator account runs this API, it will return
+// success ( HTTP 200 ) but no content.
+//
+// - When a member account runs this API, it will return the details of the
+// GuardDuty administrator account that is associated with this calling member
+// account.
+//
+// - When an individual account (not associated with an organization) runs this
+// API, it will return success ( HTTP 200 ) but no content.
func (c *Client) GetAdministratorAccount(ctx context.Context, params *GetAdministratorAccountInput, optFns ...func(*Options)) (*GetAdministratorAccountOutput, error) {
if params == nil {
params = &GetAdministratorAccountInput{}
diff --git a/service/guardduty/deserializers.go b/service/guardduty/deserializers.go
index 8f561edcae1..ec59dac5620 100644
--- a/service/guardduty/deserializers.go
+++ b/service/guardduty/deserializers.go
@@ -11215,6 +11215,11 @@ func awsRestjson1_deserializeDocumentActor(v **types.Actor, value interface{}) e
sv.Id = ptr.String(jtv)
}
+ case "process":
+ if err := awsRestjson1_deserializeDocumentActorProcess(&sv.Process, value); err != nil {
+ return err
+ }
+
case "session":
if err := awsRestjson1_deserializeDocumentSession(&sv.Session, value); err != nil {
return err
@@ -11270,6 +11275,64 @@ func awsRestjson1_deserializeDocumentActorIds(v *[]string, value interface{}) er
return nil
}
+func awsRestjson1_deserializeDocumentActorProcess(v **types.ActorProcess, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ActorProcess
+ if *v == nil {
+ sv = &types.ActorProcess{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ProcessName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "path":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ProcessPath to be of type string, got %T instead", value)
+ }
+ sv.Path = ptr.String(jtv)
+ }
+
+ case "sha256":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ProcessSha256 to be of type string, got %T instead", value)
+ }
+ sv.Sha256 = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentActors(v *[]types.Actor, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -11304,6 +11367,42 @@ func awsRestjson1_deserializeDocumentActors(v *[]types.Actor, value interface{})
return nil
}
+func awsRestjson1_deserializeDocumentAdditionalSequenceTypes(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FindingType to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentAddonDetails(v **types.AddonDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -12611,6 +12710,55 @@ func awsRestjson1_deserializeDocumentContainer(v **types.Container, value interf
return nil
}
+func awsRestjson1_deserializeDocumentContainerFindingResource(v **types.ContainerFindingResource, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ContainerFindingResource
+ if *v == nil {
+ sv = &types.ContainerFindingResource{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "image":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Image = ptr.String(jtv)
+ }
+
+ case "imageUid":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ContainerImageUid to be of type string, got %T instead", value)
+ }
+ sv.ImageUid = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentContainerInstanceDetails(v **types.ContainerInstanceDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -12702,6 +12850,42 @@ func awsRestjson1_deserializeDocumentContainers(v *[]types.Container, value inte
return nil
}
+func awsRestjson1_deserializeDocumentContainerUids(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ContainerUid to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentCountByCoverageStatus(v *map[string]int64, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -14599,6 +14783,42 @@ func awsRestjson1_deserializeDocumentEc2Instance(v **types.Ec2Instance, value in
return nil
}
+func awsRestjson1_deserializeDocumentEc2InstanceUids(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Ec2InstanceUid to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentEc2NetworkInterface(v **types.Ec2NetworkInterface, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -14947,6 +15167,85 @@ func awsRestjson1_deserializeDocumentEcsTaskDetails(v **types.EcsTaskDetails, va
return nil
}
+func awsRestjson1_deserializeDocumentEksCluster(v **types.EksCluster, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.EksCluster
+ if *v == nil {
+ sv = &types.EksCluster{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "createdAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "ec2InstanceUids":
+ if err := awsRestjson1_deserializeDocumentEc2InstanceUids(&sv.Ec2InstanceUids, value); err != nil {
+ return err
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ClusterStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.ClusterStatus(jtv)
+ }
+
+ case "vpcId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.VpcId = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentEksClusterDetails(v **types.EksClusterDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -17552,6 +17851,60 @@ func awsRestjson1_deserializeDocumentKubernetesUserDetails(v **types.KubernetesU
return nil
}
+func awsRestjson1_deserializeDocumentKubernetesWorkload(v **types.KubernetesWorkload, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.KubernetesWorkload
+ if *v == nil {
+ sv = &types.KubernetesWorkload{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "containerUids":
+ if err := awsRestjson1_deserializeDocumentContainerUids(&sv.ContainerUids, value); err != nil {
+ return err
+ }
+
+ case "kubernetesResourcesTypes":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected KubernetesResourcesTypes to be of type string, got %T instead", value)
+ }
+ sv.KubernetesResourcesTypes = types.KubernetesResourcesTypes(jtv)
+ }
+
+ case "namespace":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Namespace = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentKubernetesWorkloadDetails(v **types.KubernetesWorkloadDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -21822,6 +22175,11 @@ func awsRestjson1_deserializeDocumentResourceData(v **types.ResourceData, value
return err
}
+ case "container":
+ if err := awsRestjson1_deserializeDocumentContainerFindingResource(&sv.Container, value); err != nil {
+ return err
+ }
+
case "ec2Instance":
if err := awsRestjson1_deserializeDocumentEc2Instance(&sv.Ec2Instance, value); err != nil {
return err
@@ -21832,6 +22190,16 @@ func awsRestjson1_deserializeDocumentResourceData(v **types.ResourceData, value
return err
}
+ case "eksCluster":
+ if err := awsRestjson1_deserializeDocumentEksCluster(&sv.EksCluster, value); err != nil {
+ return err
+ }
+
+ case "kubernetesWorkload":
+ if err := awsRestjson1_deserializeDocumentKubernetesWorkload(&sv.KubernetesWorkload, value); err != nil {
+ return err
+ }
+
case "s3Bucket":
if err := awsRestjson1_deserializeDocumentS3Bucket(&sv.S3Bucket, value); err != nil {
return err
@@ -23877,6 +24245,11 @@ func awsRestjson1_deserializeDocumentSequence(v **types.Sequence, value interfac
return err
}
+ case "additionalSequenceTypes":
+ if err := awsRestjson1_deserializeDocumentAdditionalSequenceTypes(&sv.AdditionalSequenceTypes, value); err != nil {
+ return err
+ }
+
case "description":
if value != nil {
jtv, ok := value.(string)
diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod
index 94111b633cc..44c23720950 100644
--- a/service/guardduty/go.mod
+++ b/service/guardduty/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/guardduty
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/guardduty/go.sum
+++ b/service/guardduty/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/guardduty/go_module_metadata.go b/service/guardduty/go_module_metadata.go
index d4e91c7b292..2ead612969c 100644
--- a/service/guardduty/go_module_metadata.go
+++ b/service/guardduty/go_module_metadata.go
@@ -3,4 +3,4 @@
package guardduty
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.54.6"
+const goModuleVersion = "1.55.0"
diff --git a/service/guardduty/types/enums.go b/service/guardduty/types/enums.go
index bad5e4220d4..28d6de46c29 100644
--- a/service/guardduty/types/enums.go
+++ b/service/guardduty/types/enums.go
@@ -42,6 +42,33 @@ func (AutoEnableMembers) Values() []AutoEnableMembers {
}
}
+type ClusterStatus string
+
+// Enum values for ClusterStatus
+const (
+ ClusterStatusCreating ClusterStatus = "CREATING"
+ ClusterStatusActive ClusterStatus = "ACTIVE"
+ ClusterStatusDeleting ClusterStatus = "DELETING"
+ ClusterStatusFailed ClusterStatus = "FAILED"
+ ClusterStatusUpdating ClusterStatus = "UPDATING"
+ ClusterStatusPending ClusterStatus = "PENDING"
+)
+
+// Values returns all known values for ClusterStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ClusterStatus) Values() []ClusterStatus {
+ return []ClusterStatus{
+ "CREATING",
+ "ACTIVE",
+ "DELETING",
+ "FAILED",
+ "UPDATING",
+ "PENDING",
+ }
+}
+
type CoverageFilterCriterionKey string
// Enum values for CoverageFilterCriterionKey
@@ -453,6 +480,9 @@ const (
FindingResourceTypeS3Bucket FindingResourceType = "S3_BUCKET"
FindingResourceTypeS3Object FindingResourceType = "S3_OBJECT"
FindingResourceTypeAccessKey FindingResourceType = "ACCESS_KEY"
+ FindingResourceTypeEksCluster FindingResourceType = "EKS_CLUSTER"
+ FindingResourceTypeKubernetesWorkload FindingResourceType = "KUBERNETES_WORKLOAD"
+ FindingResourceTypeContainer FindingResourceType = "CONTAINER"
)
// Values returns all known values for FindingResourceType. Note that this can be
@@ -466,6 +496,9 @@ func (FindingResourceType) Values() []FindingResourceType {
"S3_BUCKET",
"S3_OBJECT",
"ACCESS_KEY",
+ "EKS_CLUSTER",
+ "KUBERNETES_WORKLOAD",
+ "CONTAINER",
}
}
@@ -562,6 +595,12 @@ const (
IndicatorTypeUnusualApiForAccount IndicatorType = "UNUSUAL_API_FOR_ACCOUNT"
IndicatorTypeUnusualAsnForAccount IndicatorType = "UNUSUAL_ASN_FOR_ACCOUNT"
IndicatorTypeUnusualAsnForUser IndicatorType = "UNUSUAL_ASN_FOR_USER"
+ IndicatorTypeSuspiciousProcess IndicatorType = "SUSPICIOUS_PROCESS"
+ IndicatorTypeMaliciousDomain IndicatorType = "MALICIOUS_DOMAIN"
+ IndicatorTypeMaliciousProcess IndicatorType = "MALICIOUS_PROCESS"
+ IndicatorTypeCryptominingIp IndicatorType = "CRYPTOMINING_IP"
+ IndicatorTypeCryptominingDomain IndicatorType = "CRYPTOMINING_DOMAIN"
+ IndicatorTypeCryptominingProcess IndicatorType = "CRYPTOMINING_PROCESS"
)
// Values returns all known values for IndicatorType. Note that this can be
@@ -580,6 +619,12 @@ func (IndicatorType) Values() []IndicatorType {
"UNUSUAL_API_FOR_ACCOUNT",
"UNUSUAL_ASN_FOR_ACCOUNT",
"UNUSUAL_ASN_FOR_USER",
+ "SUSPICIOUS_PROCESS",
+ "MALICIOUS_DOMAIN",
+ "MALICIOUS_PROCESS",
+ "CRYPTOMINING_IP",
+ "CRYPTOMINING_DOMAIN",
+ "CRYPTOMINING_PROCESS",
}
}
@@ -639,6 +684,37 @@ func (IpSetStatus) Values() []IpSetStatus {
}
}
+type KubernetesResourcesTypes string
+
+// Enum values for KubernetesResourcesTypes
+const (
+ KubernetesResourcesTypesPods KubernetesResourcesTypes = "PODS"
+ KubernetesResourcesTypesJobs KubernetesResourcesTypes = "JOBS"
+ KubernetesResourcesTypesCronjobs KubernetesResourcesTypes = "CRONJOBS"
+ KubernetesResourcesTypesDeployments KubernetesResourcesTypes = "DEPLOYMENTS"
+ KubernetesResourcesTypesDaemonsets KubernetesResourcesTypes = "DAEMONSETS"
+ KubernetesResourcesTypesStatefulsets KubernetesResourcesTypes = "STATEFULSETS"
+ KubernetesResourcesTypesReplicasets KubernetesResourcesTypes = "REPLICASETS"
+ KubernetesResourcesTypesReplicationcontrollers KubernetesResourcesTypes = "REPLICATIONCONTROLLERS"
+)
+
+// Values returns all known values for KubernetesResourcesTypes. Note that this
+// can be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (KubernetesResourcesTypes) Values() []KubernetesResourcesTypes {
+ return []KubernetesResourcesTypes{
+ "PODS",
+ "JOBS",
+ "CRONJOBS",
+ "DEPLOYMENTS",
+ "DAEMONSETS",
+ "STATEFULSETS",
+ "REPLICASETS",
+ "REPLICATIONCONTROLLERS",
+ }
+}
+
type MalwareProtectionPlanStatus string
// Enum values for MalwareProtectionPlanStatus
@@ -1054,9 +1130,13 @@ type SignalType string
// Enum values for SignalType
const (
- SignalTypeFinding SignalType = "FINDING"
- SignalTypeCloudTrail SignalType = "CLOUD_TRAIL"
- SignalTypeS3DataEvents SignalType = "S3_DATA_EVENTS"
+ SignalTypeFinding SignalType = "FINDING"
+ SignalTypeCloudTrail SignalType = "CLOUD_TRAIL"
+ SignalTypeS3DataEvents SignalType = "S3_DATA_EVENTS"
+ SignalTypeEksAuditLogs SignalType = "EKS_AUDIT_LOGS"
+ SignalTypeFlowLogs SignalType = "FLOW_LOGS"
+ SignalTypeDnsLogs SignalType = "DNS_LOGS"
+ SignalTypeRuntimeMonitoring SignalType = "RUNTIME_MONITORING"
)
// Values returns all known values for SignalType. Note that this can be expanded
@@ -1068,6 +1148,10 @@ func (SignalType) Values() []SignalType {
"FINDING",
"CLOUD_TRAIL",
"S3_DATA_EVENTS",
+ "EKS_AUDIT_LOGS",
+ "FLOW_LOGS",
+ "DNS_LOGS",
+ "RUNTIME_MONITORING",
}
}
diff --git a/service/guardduty/types/types.go b/service/guardduty/types/types.go
index ad4efa91a6d..bda7c3c318b 100644
--- a/service/guardduty/types/types.go
+++ b/service/guardduty/types/types.go
@@ -78,6 +78,29 @@ type AccountDetail struct {
// The email address of the member account.
//
+ // The rules for a valid email address:
+ //
+ // - The email address must be a minimum of 6 and a maximum of 64 characters
+ // long.
+ //
+ // - All characters must be 7-bit ASCII characters.
+ //
+ // - There must be one and only one @ symbol, which separates the local name
+ // from the domain name.
+ //
+ // - The local name can't contain any of the following characters:
+ //
+ // whitespace, " ' ( ) < > [ ] : ' , \ | % &
+ //
+ // - The local name can't begin with a dot (.).
+ //
+ // - The domain name can consist of only the characters [a-z], [A-Z], [0-9],
+ // hyphen (-), or dot (.).
+ //
+ // - The domain name can't begin or end with a dot (.) or hyphen (-).
+ //
+ // - The domain name must contain at least one dot.
+ //
// This member is required.
Email *string
@@ -172,6 +195,11 @@ type Actor struct {
// This member is required.
Id *string
+ // Contains information about the process associated with the threat actor. This
+ // includes details such as process name, path, execution time, and unique
+ // identifiers that help track the actor's activities within the system.
+ Process *ActorProcess
+
// Contains information about the user session where the activity initiated.
Session *Session
@@ -181,6 +209,27 @@ type Actor struct {
noSmithyDocumentSerde
}
+// Contains information about a process involved in a GuardDuty finding, including
+// process identification, execution details, and file information.
+type ActorProcess struct {
+
+ // The name of the process as it appears in the system.
+ //
+ // This member is required.
+ Name *string
+
+ // The full file path to the process executable on the system.
+ //
+ // This member is required.
+ Path *string
+
+ // The SHA256 hash of the process executable file, which can be used for
+ // identification and verification purposes.
+ Sha256 *string
+
+ noSmithyDocumentSerde
+}
+
// Information about the installed EKS add-on (GuardDuty security agent).
type AddonDetails struct {
@@ -492,6 +541,23 @@ type Container struct {
noSmithyDocumentSerde
}
+// Contains information about container resources involved in a GuardDuty finding.
+// This structure provides details about containers that were identified as part of
+// suspicious or malicious activity.
+type ContainerFindingResource struct {
+
+ // The container image information, including the image name and tag used to run
+ // the container that was involved in the finding.
+ //
+ // This member is required.
+ Image *string
+
+ // The unique ID associated with the container image.
+ ImageUid *string
+
+ noSmithyDocumentSerde
+}
+
// Contains information about the Amazon EC2 instance that is running the Amazon
// ECS container.
type ContainerInstanceDetails struct {
@@ -1211,6 +1277,31 @@ type EcsTaskDetails struct {
noSmithyDocumentSerde
}
+// Contains information about the Amazon EKS cluster involved in a GuardDuty
+// finding, including cluster identification, status, and network configuration.
+type EksCluster struct {
+
+ // The Amazon Resource Name (ARN) that uniquely identifies the Amazon EKS cluster
+ // involved in the finding.
+ Arn *string
+
+ // The timestamp indicating when the Amazon EKS cluster was created, in UTC format.
+ CreatedAt *time.Time
+
+ // A list of unique identifiers for the Amazon EC2 instances that serve as worker
+ // nodes in the Amazon EKS cluster.
+ Ec2InstanceUids []string
+
+ // The current status of the Amazon EKS cluster.
+ Status ClusterStatus
+
+ // The ID of the Amazon Virtual Private Cloud (Amazon VPC) associated with the
+ // Amazon EKS cluster.
+ VpcId *string
+
+ noSmithyDocumentSerde
+}
+
// Details about the EKS cluster involved in a Kubernetes finding.
type EksClusterDetails struct {
@@ -1303,9 +1394,6 @@ type FilterCriterion struct {
// An enum value representing possible scan properties to match with given scan
// entries.
- //
- // Replace the enum value CLUSTER_NAME with EKS_CLUSTER_NAME . CLUSTER_NAME has
- // been deprecated.
CriterionKey CriterionKey
// Contains information about the condition.
@@ -1338,7 +1426,13 @@ type Finding struct {
// This member is required.
Id *string
- // The Region where the finding was generated.
+ // The Region where the finding was generated. For findings generated from [Global Service Events], the
+ // Region value in the finding might differ from the Region where GuardDuty
+ // identifies the potential threat. For more information, see [How GuardDuty handles Amazon Web Services CloudTrail global events]in the Amazon
+ // GuardDuty User Guide.
+ //
+ // [Global Service Events]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-global-service-events
+ // [How GuardDuty handles Amazon Web Services CloudTrail global events]: https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_data-sources.html#cloudtrail_global
//
// This member is required.
Region *string
@@ -1829,6 +1923,24 @@ type KubernetesUserDetails struct {
noSmithyDocumentSerde
}
+// Contains information about Kubernetes workloads involved in a GuardDuty
+// finding, including pods, deployments, and other Kubernetes resources.
+type KubernetesWorkload struct {
+
+ // A list of unique identifiers for the containers that are part of the Kubernetes
+ // workload.
+ ContainerUids []string
+
+ // The types of Kubernetes resources involved in the workload.
+ KubernetesResourcesTypes KubernetesResourcesTypes
+
+ // The Kubernetes namespace in which the workload is running, providing logical
+ // isolation within the cluster.
+ Namespace *string
+
+ noSmithyDocumentSerde
+}
+
// Details about the Kubernetes workload involved in a Kubernetes finding.
type KubernetesWorkloadDetails struct {
@@ -3108,6 +3220,10 @@ type ResourceData struct {
// in the GuardDuty finding.
AccessKey *AccessKey
+ // Contains detailed information about the container associated with the activity
+ // that prompted GuardDuty to generate a finding.
+ Container *ContainerFindingResource
+
// Contains information about the Amazon EC2 instance.
Ec2Instance *Ec2Instance
@@ -3115,6 +3231,14 @@ type ResourceData struct {
// instance.
Ec2NetworkInterface *Ec2NetworkInterface
+ // Contains detailed information about the Amazon EKS cluster associated with the
+ // activity that prompted GuardDuty to generate a finding.
+ EksCluster *EksCluster
+
+ // Contains detailed information about the Kubernetes workload associated with the
+ // activity that prompted GuardDuty to generate a finding.
+ KubernetesWorkload *KubernetesWorkload
+
// Contains information about the Amazon S3 bucket.
S3Bucket *S3Bucket
@@ -3712,6 +3836,10 @@ type Sequence struct {
// Contains information about the actors involved in the attack sequence.
Actors []Actor
+ // Additional types of sequences that may be associated with the attack sequence
+ // finding, providing further context about the nature of the detected threat.
+ AdditionalSequenceTypes []string
+
// Contains information about the network endpoints that were used in the attack
// sequence.
Endpoints []NetworkEndpoint
diff --git a/service/health/CHANGELOG.md b/service/health/CHANGELOG.md
index 4e7d6b41a28..c4e08c48763 100644
--- a/service/health/CHANGELOG.md
+++ b/service/health/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/health/go.mod b/service/health/go.mod
index 8d6e1e7daec..0273cf75c5e 100644
--- a/service/health/go.mod
+++ b/service/health/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/health
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/health/go.sum b/service/health/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/health/go.sum
+++ b/service/health/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/health/go_module_metadata.go b/service/health/go_module_metadata.go
index 5f4c34d6dbd..124b0e9d460 100644
--- a/service/health/go_module_metadata.go
+++ b/service/health/go_module_metadata.go
@@ -3,4 +3,4 @@
package health
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/healthlake/CHANGELOG.md b/service/healthlake/CHANGELOG.md
index e37d3d7eb2a..584f5462bbe 100644
--- a/service/healthlake/CHANGELOG.md
+++ b/service/healthlake/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/healthlake/go.mod b/service/healthlake/go.mod
index d6bbaf9ddea..958ba87d8f5 100644
--- a/service/healthlake/go.mod
+++ b/service/healthlake/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/healthlake
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/healthlake/go.sum b/service/healthlake/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/healthlake/go.sum
+++ b/service/healthlake/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/healthlake/go_module_metadata.go b/service/healthlake/go_module_metadata.go
index 5d38521723e..9f4312f3445 100644
--- a/service/healthlake/go_module_metadata.go
+++ b/service/healthlake/go_module_metadata.go
@@ -3,4 +3,4 @@
package healthlake
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.4"
+const goModuleVersion = "1.30.5"
diff --git a/service/iam/CHANGELOG.md b/service/iam/CHANGELOG.md
index f9593ac69b4..025f11e1c29 100644
--- a/service/iam/CHANGELOG.md
+++ b/service/iam/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.42.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.42.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iam/go.mod b/service/iam/go.mod
index 6bdebfce21c..28225e87540 100644
--- a/service/iam/go.mod
+++ b/service/iam/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iam
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iam/go.sum b/service/iam/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iam/go.sum
+++ b/service/iam/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iam/go_module_metadata.go b/service/iam/go_module_metadata.go
index f81f4e25d59..f6e72dc979f 100644
--- a/service/iam/go_module_metadata.go
+++ b/service/iam/go_module_metadata.go
@@ -3,4 +3,4 @@
package iam
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.42.1"
+const goModuleVersion = "1.42.2"
diff --git a/service/identitystore/CHANGELOG.md b/service/identitystore/CHANGELOG.md
index d2aba4ddb0f..e8ceff26027 100644
--- a/service/identitystore/CHANGELOG.md
+++ b/service/identitystore/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.28.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.28.5 (2025-06-11)
+
+* No change notes available for this release.
+
# v1.28.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod
index 9f692c0a912..ecae1938148 100644
--- a/service/identitystore/go.mod
+++ b/service/identitystore/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/identitystore
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/identitystore/go.sum
+++ b/service/identitystore/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/identitystore/go_module_metadata.go b/service/identitystore/go_module_metadata.go
index f169e68867e..0514c60d79c 100644
--- a/service/identitystore/go_module_metadata.go
+++ b/service/identitystore/go_module_metadata.go
@@ -3,4 +3,4 @@
package identitystore
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.4"
+const goModuleVersion = "1.28.6"
diff --git a/service/identitystore/internal/endpoints/endpoints.go b/service/identitystore/internal/endpoints/endpoints.go
index e5e6eaf882e..e550f46feee 100644
--- a/service/identitystore/internal/endpoints/endpoints.go
+++ b/service/identitystore/internal/endpoints/endpoints.go
@@ -219,6 +219,9 @@ var defaultPartitions = endpoints.Partitions{
endpoints.EndpointKey{
Region: "me-south-1",
}: endpoints.Endpoint{},
+ endpoints.EndpointKey{
+ Region: "mx-central-1",
+ }: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "sa-east-1",
}: endpoints.Endpoint{},
diff --git a/service/imagebuilder/CHANGELOG.md b/service/imagebuilder/CHANGELOG.md
index 815b24005f0..0f270f574b1 100644
--- a/service/imagebuilder/CHANGELOG.md
+++ b/service/imagebuilder/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.42.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.42.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod
index 4b0d386ca8a..82ad88cdbf1 100644
--- a/service/imagebuilder/go.mod
+++ b/service/imagebuilder/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/imagebuilder
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/imagebuilder/go.sum
+++ b/service/imagebuilder/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/imagebuilder/go_module_metadata.go b/service/imagebuilder/go_module_metadata.go
index dab0293893c..8aece07e6e3 100644
--- a/service/imagebuilder/go_module_metadata.go
+++ b/service/imagebuilder/go_module_metadata.go
@@ -3,4 +3,4 @@
package imagebuilder
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.42.2"
+const goModuleVersion = "1.42.3"
diff --git a/service/inspector/CHANGELOG.md b/service/inspector/CHANGELOG.md
index 2c7aa097a7b..d981ee72924 100644
--- a/service/inspector/CHANGELOG.md
+++ b/service/inspector/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/inspector/go.mod b/service/inspector/go.mod
index 23c617c4cc1..b8d18687e06 100644
--- a/service/inspector/go.mod
+++ b/service/inspector/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspector
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/inspector/go.sum b/service/inspector/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/inspector/go.sum
+++ b/service/inspector/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/inspector/go_module_metadata.go b/service/inspector/go_module_metadata.go
index 7a3870c59de..98b30eebde4 100644
--- a/service/inspector/go_module_metadata.go
+++ b/service/inspector/go_module_metadata.go
@@ -3,4 +3,4 @@
package inspector
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/inspector2/CHANGELOG.md b/service/inspector2/CHANGELOG.md
index 1abd272b981..2a34122426a 100644
--- a/service/inspector2/CHANGELOG.md
+++ b/service/inspector2/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.38.0 (2025-06-17)
+
+* **Feature**: Add Code Repository Scanning as part of AWS InspectorV2
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.37.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/inspector2/api_op_BatchAssociateCodeSecurityScanConfiguration.go b/service/inspector2/api_op_BatchAssociateCodeSecurityScanConfiguration.go
new file mode 100644
index 00000000000..c330a149160
--- /dev/null
+++ b/service/inspector2/api_op_BatchAssociateCodeSecurityScanConfiguration.go
@@ -0,0 +1,166 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Associates multiple code repositories with an Amazon Inspector code security
+// scan configuration.
+func (c *Client) BatchAssociateCodeSecurityScanConfiguration(ctx context.Context, params *BatchAssociateCodeSecurityScanConfigurationInput, optFns ...func(*Options)) (*BatchAssociateCodeSecurityScanConfigurationOutput, error) {
+ if params == nil {
+ params = &BatchAssociateCodeSecurityScanConfigurationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "BatchAssociateCodeSecurityScanConfiguration", params, optFns, c.addOperationBatchAssociateCodeSecurityScanConfigurationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*BatchAssociateCodeSecurityScanConfigurationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type BatchAssociateCodeSecurityScanConfigurationInput struct {
+
+ // A list of code repositories to associate with the specified scan configuration.
+ //
+ // This member is required.
+ AssociateConfigurationRequests []types.AssociateConfigurationRequest
+
+ noSmithyDocumentSerde
+}
+
+type BatchAssociateCodeSecurityScanConfigurationOutput struct {
+
+ // Details of any code repositories that failed to be associated with the scan
+ // configuration.
+ FailedAssociations []types.FailedAssociationResult
+
+ // Details of code repositories that were successfully associated with the scan
+ // configuration.
+ SuccessfulAssociations []types.SuccessfulAssociationResult
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationBatchAssociateCodeSecurityScanConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchAssociateCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchAssociateCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "BatchAssociateCodeSecurityScanConfiguration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpBatchAssociateCodeSecurityScanConfigurationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchAssociateCodeSecurityScanConfiguration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opBatchAssociateCodeSecurityScanConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "BatchAssociateCodeSecurityScanConfiguration",
+ }
+}
diff --git a/service/inspector2/api_op_BatchDisassociateCodeSecurityScanConfiguration.go b/service/inspector2/api_op_BatchDisassociateCodeSecurityScanConfiguration.go
new file mode 100644
index 00000000000..56aa618d8e1
--- /dev/null
+++ b/service/inspector2/api_op_BatchDisassociateCodeSecurityScanConfiguration.go
@@ -0,0 +1,167 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Disassociates multiple code repositories from an Amazon Inspector code security
+// scan configuration.
+func (c *Client) BatchDisassociateCodeSecurityScanConfiguration(ctx context.Context, params *BatchDisassociateCodeSecurityScanConfigurationInput, optFns ...func(*Options)) (*BatchDisassociateCodeSecurityScanConfigurationOutput, error) {
+ if params == nil {
+ params = &BatchDisassociateCodeSecurityScanConfigurationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "BatchDisassociateCodeSecurityScanConfiguration", params, optFns, c.addOperationBatchDisassociateCodeSecurityScanConfigurationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*BatchDisassociateCodeSecurityScanConfigurationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type BatchDisassociateCodeSecurityScanConfigurationInput struct {
+
+ // A list of code repositories to disassociate from the specified scan
+ // configuration.
+ //
+ // This member is required.
+ DisassociateConfigurationRequests []types.DisassociateConfigurationRequest
+
+ noSmithyDocumentSerde
+}
+
+type BatchDisassociateCodeSecurityScanConfigurationOutput struct {
+
+ // Details of any code repositories that failed to be disassociated from the scan
+ // configuration.
+ FailedAssociations []types.FailedAssociationResult
+
+ // Details of code repositories that were successfully disassociated from the scan
+ // configuration.
+ SuccessfulAssociations []types.SuccessfulAssociationResult
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationBatchDisassociateCodeSecurityScanConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchDisassociateCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchDisassociateCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "BatchDisassociateCodeSecurityScanConfiguration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpBatchDisassociateCodeSecurityScanConfigurationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchDisassociateCodeSecurityScanConfiguration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opBatchDisassociateCodeSecurityScanConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "BatchDisassociateCodeSecurityScanConfiguration",
+ }
+}
diff --git a/service/inspector2/api_op_CreateCodeSecurityIntegration.go b/service/inspector2/api_op_CreateCodeSecurityIntegration.go
new file mode 100644
index 00000000000..8834124feaa
--- /dev/null
+++ b/service/inspector2/api_op_CreateCodeSecurityIntegration.go
@@ -0,0 +1,186 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Creates a code security integration with a source code repository provider.
+//
+// After calling the CreateCodeSecurityIntegration operation, you complete
+// authentication and authorization with your provider. Next you call the
+// UpdateCodeSecurityIntegration operation to provide the details to complete the
+// integration setup
+func (c *Client) CreateCodeSecurityIntegration(ctx context.Context, params *CreateCodeSecurityIntegrationInput, optFns ...func(*Options)) (*CreateCodeSecurityIntegrationOutput, error) {
+ if params == nil {
+ params = &CreateCodeSecurityIntegrationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateCodeSecurityIntegration", params, optFns, c.addOperationCreateCodeSecurityIntegrationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateCodeSecurityIntegrationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateCodeSecurityIntegrationInput struct {
+
+ // The name of the code security integration.
+ //
+ // This member is required.
+ Name *string
+
+ // The type of repository provider for the integration.
+ //
+ // This member is required.
+ Type types.IntegrationType
+
+ // The integration details specific to the repository provider type.
+ Details types.CreateIntegrationDetail
+
+ // The tags to apply to the code security integration.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type CreateCodeSecurityIntegrationOutput struct {
+
+ // The Amazon Resource Name (ARN) of the created code security integration.
+ //
+ // This member is required.
+ IntegrationArn *string
+
+ // The current status of the code security integration.
+ //
+ // This member is required.
+ Status types.IntegrationStatus
+
+ // The URL used to authorize the integration with the repository provider.
+ AuthorizationUrl *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateCodeSecurityIntegrationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCodeSecurityIntegration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCodeSecurityIntegration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCodeSecurityIntegration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateCodeSecurityIntegrationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCodeSecurityIntegration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opCreateCodeSecurityIntegration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateCodeSecurityIntegration",
+ }
+}
diff --git a/service/inspector2/api_op_CreateCodeSecurityScanConfiguration.go b/service/inspector2/api_op_CreateCodeSecurityScanConfiguration.go
new file mode 100644
index 00000000000..7e36bead3fa
--- /dev/null
+++ b/service/inspector2/api_op_CreateCodeSecurityScanConfiguration.go
@@ -0,0 +1,185 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Creates a scan configuration for code security scanning.
+func (c *Client) CreateCodeSecurityScanConfiguration(ctx context.Context, params *CreateCodeSecurityScanConfigurationInput, optFns ...func(*Options)) (*CreateCodeSecurityScanConfigurationOutput, error) {
+ if params == nil {
+ params = &CreateCodeSecurityScanConfigurationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateCodeSecurityScanConfiguration", params, optFns, c.addOperationCreateCodeSecurityScanConfigurationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateCodeSecurityScanConfigurationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateCodeSecurityScanConfigurationInput struct {
+
+ // The configuration settings for the code security scan.
+ //
+ // This member is required.
+ Configuration *types.CodeSecurityScanConfiguration
+
+ // The security level for the scan configuration.
+ //
+ // This member is required.
+ Level types.ConfigurationLevel
+
+ // The name of the scan configuration.
+ //
+ // This member is required.
+ Name *string
+
+ // The scope settings that define which repositories will be scanned. Include this
+ // parameter to create a default scan configuration. Otherwise Amazon Inspector
+ // creates a general scan configuration.
+ //
+ // A default scan configuration automatically applies to all existing and future
+ // projects imported into Amazon Inspector. Use the
+ // BatchAssociateCodeSecurityScanConfiguration operation to associate a general
+ // scan configuration with projects.
+ ScopeSettings *types.ScopeSettings
+
+ // The tags to apply to the scan configuration.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type CreateCodeSecurityScanConfigurationOutput struct {
+
+ // The Amazon Resource Name (ARN) of the created scan configuration.
+ //
+ // This member is required.
+ ScanConfigurationArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateCodeSecurityScanConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCodeSecurityScanConfiguration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateCodeSecurityScanConfigurationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCodeSecurityScanConfiguration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opCreateCodeSecurityScanConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateCodeSecurityScanConfiguration",
+ }
+}
diff --git a/service/inspector2/api_op_DeleteCodeSecurityIntegration.go b/service/inspector2/api_op_DeleteCodeSecurityIntegration.go
new file mode 100644
index 00000000000..1c9baf2957a
--- /dev/null
+++ b/service/inspector2/api_op_DeleteCodeSecurityIntegration.go
@@ -0,0 +1,159 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Deletes a code security integration.
+func (c *Client) DeleteCodeSecurityIntegration(ctx context.Context, params *DeleteCodeSecurityIntegrationInput, optFns ...func(*Options)) (*DeleteCodeSecurityIntegrationOutput, error) {
+ if params == nil {
+ params = &DeleteCodeSecurityIntegrationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DeleteCodeSecurityIntegration", params, optFns, c.addOperationDeleteCodeSecurityIntegrationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DeleteCodeSecurityIntegrationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteCodeSecurityIntegrationInput struct {
+
+ // The Amazon Resource Name (ARN) of the code security integration to delete.
+ //
+ // This member is required.
+ IntegrationArn *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteCodeSecurityIntegrationOutput struct {
+
+ // The Amazon Resource Name (ARN) of the deleted code security integration.
+ IntegrationArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDeleteCodeSecurityIntegrationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteCodeSecurityIntegration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteCodeSecurityIntegration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteCodeSecurityIntegration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDeleteCodeSecurityIntegrationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCodeSecurityIntegration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDeleteCodeSecurityIntegration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DeleteCodeSecurityIntegration",
+ }
+}
diff --git a/service/inspector2/api_op_DeleteCodeSecurityScanConfiguration.go b/service/inspector2/api_op_DeleteCodeSecurityScanConfiguration.go
new file mode 100644
index 00000000000..20d738df920
--- /dev/null
+++ b/service/inspector2/api_op_DeleteCodeSecurityScanConfiguration.go
@@ -0,0 +1,159 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Deletes a code security scan configuration.
+func (c *Client) DeleteCodeSecurityScanConfiguration(ctx context.Context, params *DeleteCodeSecurityScanConfigurationInput, optFns ...func(*Options)) (*DeleteCodeSecurityScanConfigurationOutput, error) {
+ if params == nil {
+ params = &DeleteCodeSecurityScanConfigurationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DeleteCodeSecurityScanConfiguration", params, optFns, c.addOperationDeleteCodeSecurityScanConfigurationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DeleteCodeSecurityScanConfigurationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteCodeSecurityScanConfigurationInput struct {
+
+ // The Amazon Resource Name (ARN) of the scan configuration to delete.
+ //
+ // This member is required.
+ ScanConfigurationArn *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteCodeSecurityScanConfigurationOutput struct {
+
+ // The Amazon Resource Name (ARN) of the deleted scan configuration.
+ ScanConfigurationArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDeleteCodeSecurityScanConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteCodeSecurityScanConfiguration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDeleteCodeSecurityScanConfigurationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteCodeSecurityScanConfiguration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDeleteCodeSecurityScanConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DeleteCodeSecurityScanConfiguration",
+ }
+}
diff --git a/service/inspector2/api_op_GetCodeSecurityIntegration.go b/service/inspector2/api_op_GetCodeSecurityIntegration.go
new file mode 100644
index 00000000000..f5c358ca2ad
--- /dev/null
+++ b/service/inspector2/api_op_GetCodeSecurityIntegration.go
@@ -0,0 +1,204 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Retrieves information about a code security integration.
+func (c *Client) GetCodeSecurityIntegration(ctx context.Context, params *GetCodeSecurityIntegrationInput, optFns ...func(*Options)) (*GetCodeSecurityIntegrationOutput, error) {
+ if params == nil {
+ params = &GetCodeSecurityIntegrationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetCodeSecurityIntegration", params, optFns, c.addOperationGetCodeSecurityIntegrationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetCodeSecurityIntegrationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetCodeSecurityIntegrationInput struct {
+
+ // The Amazon Resource Name (ARN) of the code security integration to retrieve.
+ //
+ // This member is required.
+ IntegrationArn *string
+
+ // The tags associated with the code security integration.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type GetCodeSecurityIntegrationOutput struct {
+
+ // The timestamp when the code security integration was created.
+ //
+ // This member is required.
+ CreatedOn *time.Time
+
+ // The Amazon Resource Name (ARN) of the code security integration.
+ //
+ // This member is required.
+ IntegrationArn *string
+
+ // The timestamp when the code security integration was last updated.
+ //
+ // This member is required.
+ LastUpdateOn *time.Time
+
+ // The name of the code security integration.
+ //
+ // This member is required.
+ Name *string
+
+ // The current status of the code security integration.
+ //
+ // This member is required.
+ Status types.IntegrationStatus
+
+ // The reason for the current status of the code security integration.
+ //
+ // This member is required.
+ StatusReason *string
+
+ // The type of repository provider for the integration.
+ //
+ // This member is required.
+ Type types.IntegrationType
+
+ // The URL used to authorize the integration with the repository provider. This is
+ // only returned if reauthorization is required to fix a connection issue.
+ // Otherwise, it is null.
+ AuthorizationUrl *string
+
+ // The tags associated with the code security integration.
+ Tags map[string]string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetCodeSecurityIntegrationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCodeSecurityIntegration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCodeSecurityIntegration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetCodeSecurityIntegration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetCodeSecurityIntegrationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCodeSecurityIntegration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetCodeSecurityIntegration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetCodeSecurityIntegration",
+ }
+}
diff --git a/service/inspector2/api_op_GetCodeSecurityScan.go b/service/inspector2/api_op_GetCodeSecurityScan.go
new file mode 100644
index 00000000000..b423136822e
--- /dev/null
+++ b/service/inspector2/api_op_GetCodeSecurityScan.go
@@ -0,0 +1,188 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Retrieves information about a specific code security scan.
+func (c *Client) GetCodeSecurityScan(ctx context.Context, params *GetCodeSecurityScanInput, optFns ...func(*Options)) (*GetCodeSecurityScanOutput, error) {
+ if params == nil {
+ params = &GetCodeSecurityScanInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetCodeSecurityScan", params, optFns, c.addOperationGetCodeSecurityScanMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetCodeSecurityScanOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetCodeSecurityScanInput struct {
+
+ // The resource identifier for the code repository that was scanned.
+ //
+ // This member is required.
+ Resource types.CodeSecurityResource
+
+ // The unique identifier of the scan to retrieve.
+ //
+ // This member is required.
+ ScanId *string
+
+ noSmithyDocumentSerde
+}
+
+type GetCodeSecurityScanOutput struct {
+
+ // The Amazon Web Services account ID associated with the scan.
+ AccountId *string
+
+ // The timestamp when the scan was created.
+ CreatedAt *time.Time
+
+ // The identifier of the last commit that was scanned. This is only returned if
+ // the scan was successful or skipped.
+ LastCommitId *string
+
+ // The resource identifier for the code repository that was scanned.
+ Resource types.CodeSecurityResource
+
+ // The unique identifier of the scan.
+ ScanId *string
+
+ // The current status of the scan.
+ Status types.CodeScanStatus
+
+ // The reason for the current status of the scan.
+ StatusReason *string
+
+ // The timestamp when the scan was last updated.
+ UpdatedAt *time.Time
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetCodeSecurityScanMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCodeSecurityScan{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCodeSecurityScan{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetCodeSecurityScan"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetCodeSecurityScanValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCodeSecurityScan(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetCodeSecurityScan(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetCodeSecurityScan",
+ }
+}
diff --git a/service/inspector2/api_op_GetCodeSecurityScanConfiguration.go b/service/inspector2/api_op_GetCodeSecurityScanConfiguration.go
new file mode 100644
index 00000000000..604d20dd858
--- /dev/null
+++ b/service/inspector2/api_op_GetCodeSecurityScanConfiguration.go
@@ -0,0 +1,184 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Retrieves information about a code security scan configuration.
+func (c *Client) GetCodeSecurityScanConfiguration(ctx context.Context, params *GetCodeSecurityScanConfigurationInput, optFns ...func(*Options)) (*GetCodeSecurityScanConfigurationOutput, error) {
+ if params == nil {
+ params = &GetCodeSecurityScanConfigurationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetCodeSecurityScanConfiguration", params, optFns, c.addOperationGetCodeSecurityScanConfigurationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetCodeSecurityScanConfigurationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetCodeSecurityScanConfigurationInput struct {
+
+ // The Amazon Resource Name (ARN) of the scan configuration to retrieve.
+ //
+ // This member is required.
+ ScanConfigurationArn *string
+
+ noSmithyDocumentSerde
+}
+
+type GetCodeSecurityScanConfigurationOutput struct {
+
+ // The configuration settings for the code security scan.
+ Configuration *types.CodeSecurityScanConfiguration
+
+ // The timestamp when the scan configuration was created.
+ CreatedAt *time.Time
+
+ // The timestamp when the scan configuration was last updated.
+ LastUpdatedAt *time.Time
+
+ // The security level for the scan configuration.
+ Level types.ConfigurationLevel
+
+ // The name of the scan configuration.
+ Name *string
+
+ // The Amazon Resource Name (ARN) of the scan configuration.
+ ScanConfigurationArn *string
+
+ // The scope settings that define which repositories will be scanned. If the
+ // ScopeSetting parameter is ALL the scan configuration applies to all existing
+ // and future projects imported into Amazon Inspector.
+ ScopeSettings *types.ScopeSettings
+
+ // The tags associated with the scan configuration.
+ Tags map[string]string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetCodeSecurityScanConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetCodeSecurityScanConfiguration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetCodeSecurityScanConfigurationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetCodeSecurityScanConfiguration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetCodeSecurityScanConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetCodeSecurityScanConfiguration",
+ }
+}
diff --git a/service/inspector2/api_op_ListCodeSecurityIntegrations.go b/service/inspector2/api_op_ListCodeSecurityIntegrations.go
new file mode 100644
index 00000000000..01e8e6e29eb
--- /dev/null
+++ b/service/inspector2/api_op_ListCodeSecurityIntegrations.go
@@ -0,0 +1,167 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Lists all code security integrations in your account.
+func (c *Client) ListCodeSecurityIntegrations(ctx context.Context, params *ListCodeSecurityIntegrationsInput, optFns ...func(*Options)) (*ListCodeSecurityIntegrationsOutput, error) {
+ if params == nil {
+ params = &ListCodeSecurityIntegrationsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListCodeSecurityIntegrations", params, optFns, c.addOperationListCodeSecurityIntegrationsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListCodeSecurityIntegrationsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListCodeSecurityIntegrationsInput struct {
+
+ // The maximum number of results to return in a single call.
+ MaxResults *int32
+
+ // A token to use for paginating results that are returned in the response. Set
+ // the value of this parameter to null for the first request. For subsequent calls,
+ // use the NextToken value returned from the previous request to continue listing
+ // results after the first page.
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListCodeSecurityIntegrationsOutput struct {
+
+ // A list of code security integration summaries.
+ Integrations []types.CodeSecurityIntegrationSummary
+
+ // A token to use for paginating results that are returned in the response. Set
+ // the value of this parameter to null for the first request. For subsequent calls,
+ // use the NextToken value returned from the previous request to continue listing
+ // results after the first page.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListCodeSecurityIntegrationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListCodeSecurityIntegrations{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCodeSecurityIntegrations{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListCodeSecurityIntegrations"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCodeSecurityIntegrations(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opListCodeSecurityIntegrations(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListCodeSecurityIntegrations",
+ }
+}
diff --git a/service/inspector2/api_op_ListCodeSecurityScanConfigurationAssociations.go b/service/inspector2/api_op_ListCodeSecurityScanConfigurationAssociations.go
new file mode 100644
index 00000000000..7cd0d153766
--- /dev/null
+++ b/service/inspector2/api_op_ListCodeSecurityScanConfigurationAssociations.go
@@ -0,0 +1,179 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Lists the associations between code repositories and Amazon Inspector code
+// security scan configurations.
+func (c *Client) ListCodeSecurityScanConfigurationAssociations(ctx context.Context, params *ListCodeSecurityScanConfigurationAssociationsInput, optFns ...func(*Options)) (*ListCodeSecurityScanConfigurationAssociationsOutput, error) {
+ if params == nil {
+ params = &ListCodeSecurityScanConfigurationAssociationsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListCodeSecurityScanConfigurationAssociations", params, optFns, c.addOperationListCodeSecurityScanConfigurationAssociationsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListCodeSecurityScanConfigurationAssociationsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListCodeSecurityScanConfigurationAssociationsInput struct {
+
+ // The Amazon Resource Name (ARN) of the scan configuration to list associations
+ // for.
+ //
+ // This member is required.
+ ScanConfigurationArn *string
+
+ // The maximum number of results to return in the response. If your request would
+ // return more than the maximum the response will return a nextToken value, use
+ // this value when you call the action again to get the remaining results.
+ MaxResults *int32
+
+ // A token to use for paginating results that are returned in the response. Set
+ // the value of this parameter to null for the first request to a list action. For
+ // subsequent calls, use the NextToken value returned from the previous request to
+ // continue listing results after the first page.
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListCodeSecurityScanConfigurationAssociationsOutput struct {
+
+ // A list of associations between code repositories and scan configurations.
+ Associations []types.CodeSecurityScanConfigurationAssociationSummary
+
+ // A token to use for paginating results that are returned in the response. Set
+ // the value of this parameter to null for the first request to a list action. For
+ // subsequent calls, use the NextToken value returned from the previous request to
+ // continue listing results after the first page.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListCodeSecurityScanConfigurationAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListCodeSecurityScanConfigurationAssociations{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCodeSecurityScanConfigurationAssociations{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListCodeSecurityScanConfigurationAssociations"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpListCodeSecurityScanConfigurationAssociationsValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCodeSecurityScanConfigurationAssociations(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opListCodeSecurityScanConfigurationAssociations(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListCodeSecurityScanConfigurationAssociations",
+ }
+}
diff --git a/service/inspector2/api_op_ListCodeSecurityScanConfigurations.go b/service/inspector2/api_op_ListCodeSecurityScanConfigurations.go
new file mode 100644
index 00000000000..43c8085e411
--- /dev/null
+++ b/service/inspector2/api_op_ListCodeSecurityScanConfigurations.go
@@ -0,0 +1,167 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Lists all code security scan configurations in your account.
+func (c *Client) ListCodeSecurityScanConfigurations(ctx context.Context, params *ListCodeSecurityScanConfigurationsInput, optFns ...func(*Options)) (*ListCodeSecurityScanConfigurationsOutput, error) {
+ if params == nil {
+ params = &ListCodeSecurityScanConfigurationsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListCodeSecurityScanConfigurations", params, optFns, c.addOperationListCodeSecurityScanConfigurationsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListCodeSecurityScanConfigurationsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListCodeSecurityScanConfigurationsInput struct {
+
+ // The maximum number of results to return in a single call.
+ MaxResults *int32
+
+ // A token to use for paginating results that are returned in the response. Set
+ // the value of this parameter to null for the first request. For subsequent calls,
+ // use the NextToken value returned from the previous request to continue listing
+ // results after the first page.
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListCodeSecurityScanConfigurationsOutput struct {
+
+ // A list of code security scan configuration summaries.
+ Configurations []types.CodeSecurityScanConfigurationSummary
+
+ // A token to use for paginating results that are returned in the response. Set
+ // the value of this parameter to null for the first request. For subsequent calls,
+ // use the NextToken value returned from the previous request to continue listing
+ // results after the first page.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListCodeSecurityScanConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListCodeSecurityScanConfigurations{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListCodeSecurityScanConfigurations{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListCodeSecurityScanConfigurations"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListCodeSecurityScanConfigurations(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opListCodeSecurityScanConfigurations(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListCodeSecurityScanConfigurations",
+ }
+}
diff --git a/service/inspector2/api_op_StartCodeSecurityScan.go b/service/inspector2/api_op_StartCodeSecurityScan.go
new file mode 100644
index 00000000000..ac253295a65
--- /dev/null
+++ b/service/inspector2/api_op_StartCodeSecurityScan.go
@@ -0,0 +1,203 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Initiates a code security scan on a specified repository.
+func (c *Client) StartCodeSecurityScan(ctx context.Context, params *StartCodeSecurityScanInput, optFns ...func(*Options)) (*StartCodeSecurityScanOutput, error) {
+ if params == nil {
+ params = &StartCodeSecurityScanInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "StartCodeSecurityScan", params, optFns, c.addOperationStartCodeSecurityScanMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*StartCodeSecurityScanOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type StartCodeSecurityScanInput struct {
+
+ // The resource identifier for the code repository to scan.
+ //
+ // This member is required.
+ Resource types.CodeSecurityResource
+
+ // A unique, case-sensitive identifier that you provide to ensure the idempotency
+ // of the request.
+ ClientToken *string
+
+ noSmithyDocumentSerde
+}
+
+type StartCodeSecurityScanOutput struct {
+
+ // The unique identifier of the initiated scan.
+ ScanId *string
+
+ // The current status of the initiated scan.
+ Status types.CodeScanStatus
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationStartCodeSecurityScanMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpStartCodeSecurityScan{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartCodeSecurityScan{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "StartCodeSecurityScan"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opStartCodeSecurityScanMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpStartCodeSecurityScanValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartCodeSecurityScan(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpStartCodeSecurityScan struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpStartCodeSecurityScan) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpStartCodeSecurityScan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*StartCodeSecurityScanInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *StartCodeSecurityScanInput ")
+ }
+
+ if input.ClientToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.ClientToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opStartCodeSecurityScanMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpStartCodeSecurityScan{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opStartCodeSecurityScan(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "StartCodeSecurityScan",
+ }
+}
diff --git a/service/inspector2/api_op_UpdateCodeSecurityIntegration.go b/service/inspector2/api_op_UpdateCodeSecurityIntegration.go
new file mode 100644
index 00000000000..b776e1353e8
--- /dev/null
+++ b/service/inspector2/api_op_UpdateCodeSecurityIntegration.go
@@ -0,0 +1,177 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Updates an existing code security integration.
+//
+// After calling the CreateCodeSecurityIntegration operation, you complete
+// authentication and authorization with your provider. Next you call the
+// UpdateCodeSecurityIntegration operation to provide the details to complete the
+// integration setup
+func (c *Client) UpdateCodeSecurityIntegration(ctx context.Context, params *UpdateCodeSecurityIntegrationInput, optFns ...func(*Options)) (*UpdateCodeSecurityIntegrationOutput, error) {
+ if params == nil {
+ params = &UpdateCodeSecurityIntegrationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "UpdateCodeSecurityIntegration", params, optFns, c.addOperationUpdateCodeSecurityIntegrationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*UpdateCodeSecurityIntegrationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type UpdateCodeSecurityIntegrationInput struct {
+
+ // The updated integration details specific to the repository provider type.
+ //
+ // This member is required.
+ Details types.UpdateIntegrationDetails
+
+ // The Amazon Resource Name (ARN) of the code security integration to update.
+ //
+ // This member is required.
+ IntegrationArn *string
+
+ noSmithyDocumentSerde
+}
+
+type UpdateCodeSecurityIntegrationOutput struct {
+
+ // The Amazon Resource Name (ARN) of the updated code security integration.
+ //
+ // This member is required.
+ IntegrationArn *string
+
+ // The current status of the updated code security integration.
+ //
+ // This member is required.
+ Status types.IntegrationStatus
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationUpdateCodeSecurityIntegrationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateCodeSecurityIntegration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateCodeSecurityIntegration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateCodeSecurityIntegration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpUpdateCodeSecurityIntegrationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateCodeSecurityIntegration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opUpdateCodeSecurityIntegration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "UpdateCodeSecurityIntegration",
+ }
+}
diff --git a/service/inspector2/api_op_UpdateCodeSecurityScanConfiguration.go b/service/inspector2/api_op_UpdateCodeSecurityScanConfiguration.go
new file mode 100644
index 00000000000..47f2b4db828
--- /dev/null
+++ b/service/inspector2/api_op_UpdateCodeSecurityScanConfiguration.go
@@ -0,0 +1,165 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package inspector2
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/inspector2/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Updates an existing code security scan configuration.
+func (c *Client) UpdateCodeSecurityScanConfiguration(ctx context.Context, params *UpdateCodeSecurityScanConfigurationInput, optFns ...func(*Options)) (*UpdateCodeSecurityScanConfigurationOutput, error) {
+ if params == nil {
+ params = &UpdateCodeSecurityScanConfigurationInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "UpdateCodeSecurityScanConfiguration", params, optFns, c.addOperationUpdateCodeSecurityScanConfigurationMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*UpdateCodeSecurityScanConfigurationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type UpdateCodeSecurityScanConfigurationInput struct {
+
+ // The updated configuration settings for the code security scan.
+ //
+ // This member is required.
+ Configuration *types.CodeSecurityScanConfiguration
+
+ // The Amazon Resource Name (ARN) of the scan configuration to update.
+ //
+ // This member is required.
+ ScanConfigurationArn *string
+
+ noSmithyDocumentSerde
+}
+
+type UpdateCodeSecurityScanConfigurationOutput struct {
+
+ // The Amazon Resource Name (ARN) of the updated scan configuration.
+ ScanConfigurationArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationUpdateCodeSecurityScanConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateCodeSecurityScanConfiguration{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateCodeSecurityScanConfiguration"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpUpdateCodeSecurityScanConfigurationValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateCodeSecurityScanConfiguration(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opUpdateCodeSecurityScanConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "UpdateCodeSecurityScanConfiguration",
+ }
+}
diff --git a/service/inspector2/deserializers.go b/service/inspector2/deserializers.go
index 5980cc1ab35..d641629688c 100644
--- a/service/inspector2/deserializers.go
+++ b/service/inspector2/deserializers.go
@@ -199,14 +199,14 @@ func awsRestjson1_deserializeOpDocumentAssociateMemberOutput(v **AssociateMember
return nil
}
-type awsRestjson1_deserializeOpBatchGetAccountStatus struct {
+type awsRestjson1_deserializeOpBatchAssociateCodeSecurityScanConfiguration struct {
}
-func (*awsRestjson1_deserializeOpBatchGetAccountStatus) ID() string {
+func (*awsRestjson1_deserializeOpBatchAssociateCodeSecurityScanConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpBatchGetAccountStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchAssociateCodeSecurityScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -224,9 +224,9 @@ func (m *awsRestjson1_deserializeOpBatchGetAccountStatus) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorBatchGetAccountStatus(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchAssociateCodeSecurityScanConfiguration(response, &metadata)
}
- output := &BatchGetAccountStatusOutput{}
+ output := &BatchAssociateCodeSecurityScanConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -247,7 +247,7 @@ func (m *awsRestjson1_deserializeOpBatchGetAccountStatus) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentBatchGetAccountStatusOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchAssociateCodeSecurityScanConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -261,7 +261,7 @@ func (m *awsRestjson1_deserializeOpBatchGetAccountStatus) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorBatchGetAccountStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchAssociateCodeSecurityScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -305,6 +305,9 @@ func awsRestjson1_deserializeOpErrorBatchGetAccountStatus(response *smithyhttp.R
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -327,7 +330,7 @@ func awsRestjson1_deserializeOpErrorBatchGetAccountStatus(response *smithyhttp.R
}
}
-func awsRestjson1_deserializeOpDocumentBatchGetAccountStatusOutput(v **BatchGetAccountStatusOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchAssociateCodeSecurityScanConfigurationOutput(v **BatchAssociateCodeSecurityScanConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -340,22 +343,22 @@ func awsRestjson1_deserializeOpDocumentBatchGetAccountStatusOutput(v **BatchGetA
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *BatchGetAccountStatusOutput
+ var sv *BatchAssociateCodeSecurityScanConfigurationOutput
if *v == nil {
- sv = &BatchGetAccountStatusOutput{}
+ sv = &BatchAssociateCodeSecurityScanConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accounts":
- if err := awsRestjson1_deserializeDocumentAccountStateList(&sv.Accounts, value); err != nil {
+ case "failedAssociations":
+ if err := awsRestjson1_deserializeDocumentFailedAssociationResultList(&sv.FailedAssociations, value); err != nil {
return err
}
- case "failedAccounts":
- if err := awsRestjson1_deserializeDocumentFailedAccountList(&sv.FailedAccounts, value); err != nil {
+ case "successfulAssociations":
+ if err := awsRestjson1_deserializeDocumentSuccessfulAssociationResultList(&sv.SuccessfulAssociations, value); err != nil {
return err
}
@@ -368,14 +371,14 @@ func awsRestjson1_deserializeOpDocumentBatchGetAccountStatusOutput(v **BatchGetA
return nil
}
-type awsRestjson1_deserializeOpBatchGetCodeSnippet struct {
+type awsRestjson1_deserializeOpBatchDisassociateCodeSecurityScanConfiguration struct {
}
-func (*awsRestjson1_deserializeOpBatchGetCodeSnippet) ID() string {
+func (*awsRestjson1_deserializeOpBatchDisassociateCodeSecurityScanConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpBatchGetCodeSnippet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchDisassociateCodeSecurityScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -393,9 +396,9 @@ func (m *awsRestjson1_deserializeOpBatchGetCodeSnippet) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorBatchGetCodeSnippet(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchDisassociateCodeSecurityScanConfiguration(response, &metadata)
}
- output := &BatchGetCodeSnippetOutput{}
+ output := &BatchDisassociateCodeSecurityScanConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -416,7 +419,7 @@ func (m *awsRestjson1_deserializeOpBatchGetCodeSnippet) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentBatchGetCodeSnippetOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchDisassociateCodeSecurityScanConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -430,7 +433,7 @@ func (m *awsRestjson1_deserializeOpBatchGetCodeSnippet) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorBatchGetCodeSnippet(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchDisassociateCodeSecurityScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -474,9 +477,15 @@ func awsRestjson1_deserializeOpErrorBatchGetCodeSnippet(response *smithyhttp.Res
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -493,7 +502,7 @@ func awsRestjson1_deserializeOpErrorBatchGetCodeSnippet(response *smithyhttp.Res
}
}
-func awsRestjson1_deserializeOpDocumentBatchGetCodeSnippetOutput(v **BatchGetCodeSnippetOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchDisassociateCodeSecurityScanConfigurationOutput(v **BatchDisassociateCodeSecurityScanConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -506,22 +515,22 @@ func awsRestjson1_deserializeOpDocumentBatchGetCodeSnippetOutput(v **BatchGetCod
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *BatchGetCodeSnippetOutput
+ var sv *BatchDisassociateCodeSecurityScanConfigurationOutput
if *v == nil {
- sv = &BatchGetCodeSnippetOutput{}
+ sv = &BatchDisassociateCodeSecurityScanConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "codeSnippetResults":
- if err := awsRestjson1_deserializeDocumentCodeSnippetResultList(&sv.CodeSnippetResults, value); err != nil {
+ case "failedAssociations":
+ if err := awsRestjson1_deserializeDocumentFailedAssociationResultList(&sv.FailedAssociations, value); err != nil {
return err
}
- case "errors":
- if err := awsRestjson1_deserializeDocumentCodeSnippetErrorList(&sv.Errors, value); err != nil {
+ case "successfulAssociations":
+ if err := awsRestjson1_deserializeDocumentSuccessfulAssociationResultList(&sv.SuccessfulAssociations, value); err != nil {
return err
}
@@ -534,14 +543,14 @@ func awsRestjson1_deserializeOpDocumentBatchGetCodeSnippetOutput(v **BatchGetCod
return nil
}
-type awsRestjson1_deserializeOpBatchGetFindingDetails struct {
+type awsRestjson1_deserializeOpBatchGetAccountStatus struct {
}
-func (*awsRestjson1_deserializeOpBatchGetFindingDetails) ID() string {
+func (*awsRestjson1_deserializeOpBatchGetAccountStatus) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpBatchGetFindingDetails) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchGetAccountStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -559,9 +568,9 @@ func (m *awsRestjson1_deserializeOpBatchGetFindingDetails) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorBatchGetFindingDetails(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchGetAccountStatus(response, &metadata)
}
- output := &BatchGetFindingDetailsOutput{}
+ output := &BatchGetAccountStatusOutput{}
out.Result = output
var buff [1024]byte
@@ -582,7 +591,7 @@ func (m *awsRestjson1_deserializeOpBatchGetFindingDetails) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentBatchGetFindingDetailsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchGetAccountStatusOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -596,7 +605,7 @@ func (m *awsRestjson1_deserializeOpBatchGetFindingDetails) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorBatchGetFindingDetails(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchGetAccountStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -643,6 +652,9 @@ func awsRestjson1_deserializeOpErrorBatchGetFindingDetails(response *smithyhttp.
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -659,7 +671,7 @@ func awsRestjson1_deserializeOpErrorBatchGetFindingDetails(response *smithyhttp.
}
}
-func awsRestjson1_deserializeOpDocumentBatchGetFindingDetailsOutput(v **BatchGetFindingDetailsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchGetAccountStatusOutput(v **BatchGetAccountStatusOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -672,22 +684,22 @@ func awsRestjson1_deserializeOpDocumentBatchGetFindingDetailsOutput(v **BatchGet
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *BatchGetFindingDetailsOutput
+ var sv *BatchGetAccountStatusOutput
if *v == nil {
- sv = &BatchGetFindingDetailsOutput{}
+ sv = &BatchGetAccountStatusOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "errors":
- if err := awsRestjson1_deserializeDocumentFindingDetailsErrorList(&sv.Errors, value); err != nil {
+ case "accounts":
+ if err := awsRestjson1_deserializeDocumentAccountStateList(&sv.Accounts, value); err != nil {
return err
}
- case "findingDetails":
- if err := awsRestjson1_deserializeDocumentFindingDetails(&sv.FindingDetails, value); err != nil {
+ case "failedAccounts":
+ if err := awsRestjson1_deserializeDocumentFailedAccountList(&sv.FailedAccounts, value); err != nil {
return err
}
@@ -700,14 +712,14 @@ func awsRestjson1_deserializeOpDocumentBatchGetFindingDetailsOutput(v **BatchGet
return nil
}
-type awsRestjson1_deserializeOpBatchGetFreeTrialInfo struct {
+type awsRestjson1_deserializeOpBatchGetCodeSnippet struct {
}
-func (*awsRestjson1_deserializeOpBatchGetFreeTrialInfo) ID() string {
+func (*awsRestjson1_deserializeOpBatchGetCodeSnippet) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpBatchGetFreeTrialInfo) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchGetCodeSnippet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -725,9 +737,9 @@ func (m *awsRestjson1_deserializeOpBatchGetFreeTrialInfo) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorBatchGetFreeTrialInfo(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchGetCodeSnippet(response, &metadata)
}
- output := &BatchGetFreeTrialInfoOutput{}
+ output := &BatchGetCodeSnippetOutput{}
out.Result = output
var buff [1024]byte
@@ -748,7 +760,7 @@ func (m *awsRestjson1_deserializeOpBatchGetFreeTrialInfo) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentBatchGetFreeTrialInfoOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchGetCodeSnippetOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -762,7 +774,7 @@ func (m *awsRestjson1_deserializeOpBatchGetFreeTrialInfo) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorBatchGetFreeTrialInfo(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchGetCodeSnippet(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -825,7 +837,7 @@ func awsRestjson1_deserializeOpErrorBatchGetFreeTrialInfo(response *smithyhttp.R
}
}
-func awsRestjson1_deserializeOpDocumentBatchGetFreeTrialInfoOutput(v **BatchGetFreeTrialInfoOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchGetCodeSnippetOutput(v **BatchGetCodeSnippetOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -838,22 +850,22 @@ func awsRestjson1_deserializeOpDocumentBatchGetFreeTrialInfoOutput(v **BatchGetF
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *BatchGetFreeTrialInfoOutput
+ var sv *BatchGetCodeSnippetOutput
if *v == nil {
- sv = &BatchGetFreeTrialInfoOutput{}
+ sv = &BatchGetCodeSnippetOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accounts":
- if err := awsRestjson1_deserializeDocumentFreeTrialAccountInfoList(&sv.Accounts, value); err != nil {
+ case "codeSnippetResults":
+ if err := awsRestjson1_deserializeDocumentCodeSnippetResultList(&sv.CodeSnippetResults, value); err != nil {
return err
}
- case "failedAccounts":
- if err := awsRestjson1_deserializeDocumentFreeTrialInfoErrorList(&sv.FailedAccounts, value); err != nil {
+ case "errors":
+ if err := awsRestjson1_deserializeDocumentCodeSnippetErrorList(&sv.Errors, value); err != nil {
return err
}
@@ -866,14 +878,14 @@ func awsRestjson1_deserializeOpDocumentBatchGetFreeTrialInfoOutput(v **BatchGetF
return nil
}
-type awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus struct {
+type awsRestjson1_deserializeOpBatchGetFindingDetails struct {
}
-func (*awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus) ID() string {
+func (*awsRestjson1_deserializeOpBatchGetFindingDetails) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchGetFindingDetails) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -891,9 +903,9 @@ func (m *awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus) Handle
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorBatchGetMemberEc2DeepInspectionStatus(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchGetFindingDetails(response, &metadata)
}
- output := &BatchGetMemberEc2DeepInspectionStatusOutput{}
+ output := &BatchGetFindingDetailsOutput{}
out.Result = output
var buff [1024]byte
@@ -914,7 +926,7 @@ func (m *awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus) Handle
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentBatchGetMemberEc2DeepInspectionStatusOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchGetFindingDetailsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -928,7 +940,7 @@ func (m *awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus) Handle
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorBatchGetMemberEc2DeepInspectionStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchGetFindingDetails(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -991,7 +1003,7 @@ func awsRestjson1_deserializeOpErrorBatchGetMemberEc2DeepInspectionStatus(respon
}
}
-func awsRestjson1_deserializeOpDocumentBatchGetMemberEc2DeepInspectionStatusOutput(v **BatchGetMemberEc2DeepInspectionStatusOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchGetFindingDetailsOutput(v **BatchGetFindingDetailsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -1004,22 +1016,22 @@ func awsRestjson1_deserializeOpDocumentBatchGetMemberEc2DeepInspectionStatusOutp
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *BatchGetMemberEc2DeepInspectionStatusOutput
+ var sv *BatchGetFindingDetailsOutput
if *v == nil {
- sv = &BatchGetMemberEc2DeepInspectionStatusOutput{}
+ sv = &BatchGetFindingDetailsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountIds":
- if err := awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusStateList(&sv.AccountIds, value); err != nil {
+ case "errors":
+ if err := awsRestjson1_deserializeDocumentFindingDetailsErrorList(&sv.Errors, value); err != nil {
return err
}
- case "failedAccountIds":
- if err := awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusStateList(&sv.FailedAccountIds, value); err != nil {
+ case "findingDetails":
+ if err := awsRestjson1_deserializeDocumentFindingDetails(&sv.FindingDetails, value); err != nil {
return err
}
@@ -1032,14 +1044,14 @@ func awsRestjson1_deserializeOpDocumentBatchGetMemberEc2DeepInspectionStatusOutp
return nil
}
-type awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus struct {
+type awsRestjson1_deserializeOpBatchGetFreeTrialInfo struct {
}
-func (*awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus) ID() string {
+func (*awsRestjson1_deserializeOpBatchGetFreeTrialInfo) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchGetFreeTrialInfo) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1057,9 +1069,9 @@ func (m *awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus) Han
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorBatchUpdateMemberEc2DeepInspectionStatus(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchGetFreeTrialInfo(response, &metadata)
}
- output := &BatchUpdateMemberEc2DeepInspectionStatusOutput{}
+ output := &BatchGetFreeTrialInfoOutput{}
out.Result = output
var buff [1024]byte
@@ -1080,7 +1092,7 @@ func (m *awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus) Han
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentBatchUpdateMemberEc2DeepInspectionStatusOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchGetFreeTrialInfoOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1094,7 +1106,7 @@ func (m *awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus) Han
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorBatchUpdateMemberEc2DeepInspectionStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchGetFreeTrialInfo(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1157,7 +1169,7 @@ func awsRestjson1_deserializeOpErrorBatchUpdateMemberEc2DeepInspectionStatus(res
}
}
-func awsRestjson1_deserializeOpDocumentBatchUpdateMemberEc2DeepInspectionStatusOutput(v **BatchUpdateMemberEc2DeepInspectionStatusOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchGetFreeTrialInfoOutput(v **BatchGetFreeTrialInfoOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -1170,22 +1182,22 @@ func awsRestjson1_deserializeOpDocumentBatchUpdateMemberEc2DeepInspectionStatusO
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *BatchUpdateMemberEc2DeepInspectionStatusOutput
+ var sv *BatchGetFreeTrialInfoOutput
if *v == nil {
- sv = &BatchUpdateMemberEc2DeepInspectionStatusOutput{}
+ sv = &BatchGetFreeTrialInfoOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountIds":
- if err := awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusStateList(&sv.AccountIds, value); err != nil {
+ case "accounts":
+ if err := awsRestjson1_deserializeDocumentFreeTrialAccountInfoList(&sv.Accounts, value); err != nil {
return err
}
- case "failedAccountIds":
- if err := awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusStateList(&sv.FailedAccountIds, value); err != nil {
+ case "failedAccounts":
+ if err := awsRestjson1_deserializeDocumentFreeTrialInfoErrorList(&sv.FailedAccounts, value); err != nil {
return err
}
@@ -1198,14 +1210,14 @@ func awsRestjson1_deserializeOpDocumentBatchUpdateMemberEc2DeepInspectionStatusO
return nil
}
-type awsRestjson1_deserializeOpCancelFindingsReport struct {
+type awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus struct {
}
-func (*awsRestjson1_deserializeOpCancelFindingsReport) ID() string {
+func (*awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCancelFindingsReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchGetMemberEc2DeepInspectionStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1223,9 +1235,9 @@ func (m *awsRestjson1_deserializeOpCancelFindingsReport) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCancelFindingsReport(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchGetMemberEc2DeepInspectionStatus(response, &metadata)
}
- output := &CancelFindingsReportOutput{}
+ output := &BatchGetMemberEc2DeepInspectionStatusOutput{}
out.Result = output
var buff [1024]byte
@@ -1246,7 +1258,7 @@ func (m *awsRestjson1_deserializeOpCancelFindingsReport) HandleDeserialize(ctx c
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCancelFindingsReportOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchGetMemberEc2DeepInspectionStatusOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1260,7 +1272,7 @@ func (m *awsRestjson1_deserializeOpCancelFindingsReport) HandleDeserialize(ctx c
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCancelFindingsReport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchGetMemberEc2DeepInspectionStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1307,9 +1319,6 @@ func awsRestjson1_deserializeOpErrorCancelFindingsReport(response *smithyhttp.Re
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -1326,7 +1335,7 @@ func awsRestjson1_deserializeOpErrorCancelFindingsReport(response *smithyhttp.Re
}
}
-func awsRestjson1_deserializeOpDocumentCancelFindingsReportOutput(v **CancelFindingsReportOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchGetMemberEc2DeepInspectionStatusOutput(v **BatchGetMemberEc2DeepInspectionStatusOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -1339,22 +1348,23 @@ func awsRestjson1_deserializeOpDocumentCancelFindingsReportOutput(v **CancelFind
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CancelFindingsReportOutput
+ var sv *BatchGetMemberEc2DeepInspectionStatusOutput
if *v == nil {
- sv = &CancelFindingsReportOutput{}
+ sv = &BatchGetMemberEc2DeepInspectionStatusOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "reportId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
- }
- sv.ReportId = ptr.String(jtv)
+ case "accountIds":
+ if err := awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusStateList(&sv.AccountIds, value); err != nil {
+ return err
+ }
+
+ case "failedAccountIds":
+ if err := awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusStateList(&sv.FailedAccountIds, value); err != nil {
+ return err
}
default:
@@ -1366,14 +1376,14 @@ func awsRestjson1_deserializeOpDocumentCancelFindingsReportOutput(v **CancelFind
return nil
}
-type awsRestjson1_deserializeOpCancelSbomExport struct {
+type awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus struct {
}
-func (*awsRestjson1_deserializeOpCancelSbomExport) ID() string {
+func (*awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCancelSbomExport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchUpdateMemberEc2DeepInspectionStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1391,9 +1401,9 @@ func (m *awsRestjson1_deserializeOpCancelSbomExport) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCancelSbomExport(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchUpdateMemberEc2DeepInspectionStatus(response, &metadata)
}
- output := &CancelSbomExportOutput{}
+ output := &BatchUpdateMemberEc2DeepInspectionStatusOutput{}
out.Result = output
var buff [1024]byte
@@ -1414,7 +1424,7 @@ func (m *awsRestjson1_deserializeOpCancelSbomExport) HandleDeserialize(ctx conte
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCancelSbomExportOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchUpdateMemberEc2DeepInspectionStatusOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1428,7 +1438,7 @@ func (m *awsRestjson1_deserializeOpCancelSbomExport) HandleDeserialize(ctx conte
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCancelSbomExport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchUpdateMemberEc2DeepInspectionStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1475,9 +1485,6 @@ func awsRestjson1_deserializeOpErrorCancelSbomExport(response *smithyhttp.Respon
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -1494,7 +1501,7 @@ func awsRestjson1_deserializeOpErrorCancelSbomExport(response *smithyhttp.Respon
}
}
-func awsRestjson1_deserializeOpDocumentCancelSbomExportOutput(v **CancelSbomExportOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchUpdateMemberEc2DeepInspectionStatusOutput(v **BatchUpdateMemberEc2DeepInspectionStatusOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -1507,22 +1514,23 @@ func awsRestjson1_deserializeOpDocumentCancelSbomExportOutput(v **CancelSbomExpo
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CancelSbomExportOutput
+ var sv *BatchUpdateMemberEc2DeepInspectionStatusOutput
if *v == nil {
- sv = &CancelSbomExportOutput{}
+ sv = &BatchUpdateMemberEc2DeepInspectionStatusOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "reportId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
- }
- sv.ReportId = ptr.String(jtv)
+ case "accountIds":
+ if err := awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusStateList(&sv.AccountIds, value); err != nil {
+ return err
+ }
+
+ case "failedAccountIds":
+ if err := awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusStateList(&sv.FailedAccountIds, value); err != nil {
+ return err
}
default:
@@ -1534,14 +1542,14 @@ func awsRestjson1_deserializeOpDocumentCancelSbomExportOutput(v **CancelSbomExpo
return nil
}
-type awsRestjson1_deserializeOpCreateCisScanConfiguration struct {
+type awsRestjson1_deserializeOpCancelFindingsReport struct {
}
-func (*awsRestjson1_deserializeOpCreateCisScanConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpCancelFindingsReport) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateCisScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCancelFindingsReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1559,9 +1567,9 @@ func (m *awsRestjson1_deserializeOpCreateCisScanConfiguration) HandleDeserialize
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateCisScanConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCancelFindingsReport(response, &metadata)
}
- output := &CreateCisScanConfigurationOutput{}
+ output := &CancelFindingsReportOutput{}
out.Result = output
var buff [1024]byte
@@ -1582,7 +1590,7 @@ func (m *awsRestjson1_deserializeOpCreateCisScanConfiguration) HandleDeserialize
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateCisScanConfigurationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCancelFindingsReportOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1596,7 +1604,7 @@ func (m *awsRestjson1_deserializeOpCreateCisScanConfiguration) HandleDeserialize
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateCisScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCancelFindingsReport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1643,6 +1651,9 @@ func awsRestjson1_deserializeOpErrorCreateCisScanConfiguration(response *smithyh
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -1659,7 +1670,7 @@ func awsRestjson1_deserializeOpErrorCreateCisScanConfiguration(response *smithyh
}
}
-func awsRestjson1_deserializeOpDocumentCreateCisScanConfigurationOutput(v **CreateCisScanConfigurationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCancelFindingsReportOutput(v **CancelFindingsReportOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -1672,22 +1683,22 @@ func awsRestjson1_deserializeOpDocumentCreateCisScanConfigurationOutput(v **Crea
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateCisScanConfigurationOutput
+ var sv *CancelFindingsReportOutput
if *v == nil {
- sv = &CreateCisScanConfigurationOutput{}
+ sv = &CancelFindingsReportOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "scanConfigurationArn":
+ case "reportId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
}
- sv.ScanConfigurationArn = ptr.String(jtv)
+ sv.ReportId = ptr.String(jtv)
}
default:
@@ -1699,14 +1710,14 @@ func awsRestjson1_deserializeOpDocumentCreateCisScanConfigurationOutput(v **Crea
return nil
}
-type awsRestjson1_deserializeOpCreateFilter struct {
+type awsRestjson1_deserializeOpCancelSbomExport struct {
}
-func (*awsRestjson1_deserializeOpCreateFilter) ID() string {
+func (*awsRestjson1_deserializeOpCancelSbomExport) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCancelSbomExport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1724,9 +1735,9 @@ func (m *awsRestjson1_deserializeOpCreateFilter) HandleDeserialize(ctx context.C
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateFilter(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCancelSbomExport(response, &metadata)
}
- output := &CreateFilterOutput{}
+ output := &CancelSbomExportOutput{}
out.Result = output
var buff [1024]byte
@@ -1747,7 +1758,7 @@ func (m *awsRestjson1_deserializeOpCreateFilter) HandleDeserialize(ctx context.C
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateFilterOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCancelSbomExportOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1761,7 +1772,7 @@ func (m *awsRestjson1_deserializeOpCreateFilter) HandleDeserialize(ctx context.C
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCancelSbomExport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1805,14 +1816,11 @@ func awsRestjson1_deserializeOpErrorCreateFilter(response *smithyhttp.Response,
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("BadRequestException", errorCode):
- return awsRestjson1_deserializeErrorBadRequestException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ServiceQuotaExceededException", errorCode):
- return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -1830,7 +1838,7 @@ func awsRestjson1_deserializeOpErrorCreateFilter(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentCreateFilterOutput(v **CreateFilterOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCancelSbomExportOutput(v **CancelSbomExportOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -1843,22 +1851,22 @@ func awsRestjson1_deserializeOpDocumentCreateFilterOutput(v **CreateFilterOutput
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateFilterOutput
+ var sv *CancelSbomExportOutput
if *v == nil {
- sv = &CreateFilterOutput{}
+ sv = &CancelSbomExportOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "arn":
+ case "reportId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FilterArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
}
- sv.Arn = ptr.String(jtv)
+ sv.ReportId = ptr.String(jtv)
}
default:
@@ -1870,14 +1878,14 @@ func awsRestjson1_deserializeOpDocumentCreateFilterOutput(v **CreateFilterOutput
return nil
}
-type awsRestjson1_deserializeOpCreateFindingsReport struct {
+type awsRestjson1_deserializeOpCreateCisScanConfiguration struct {
}
-func (*awsRestjson1_deserializeOpCreateFindingsReport) ID() string {
+func (*awsRestjson1_deserializeOpCreateCisScanConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateFindingsReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateCisScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1895,9 +1903,9 @@ func (m *awsRestjson1_deserializeOpCreateFindingsReport) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateFindingsReport(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateCisScanConfiguration(response, &metadata)
}
- output := &CreateFindingsReportOutput{}
+ output := &CreateCisScanConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -1918,7 +1926,7 @@ func (m *awsRestjson1_deserializeOpCreateFindingsReport) HandleDeserialize(ctx c
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateFindingsReportOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateCisScanConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1932,7 +1940,7 @@ func (m *awsRestjson1_deserializeOpCreateFindingsReport) HandleDeserialize(ctx c
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateFindingsReport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateCisScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1979,9 +1987,6 @@ func awsRestjson1_deserializeOpErrorCreateFindingsReport(response *smithyhttp.Re
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -1998,7 +2003,7 @@ func awsRestjson1_deserializeOpErrorCreateFindingsReport(response *smithyhttp.Re
}
}
-func awsRestjson1_deserializeOpDocumentCreateFindingsReportOutput(v **CreateFindingsReportOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateCisScanConfigurationOutput(v **CreateCisScanConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2011,22 +2016,22 @@ func awsRestjson1_deserializeOpDocumentCreateFindingsReportOutput(v **CreateFind
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateFindingsReportOutput
+ var sv *CreateCisScanConfigurationOutput
if *v == nil {
- sv = &CreateFindingsReportOutput{}
+ sv = &CreateCisScanConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "reportId":
+ case "scanConfigurationArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
}
- sv.ReportId = ptr.String(jtv)
+ sv.ScanConfigurationArn = ptr.String(jtv)
}
default:
@@ -2038,14 +2043,14 @@ func awsRestjson1_deserializeOpDocumentCreateFindingsReportOutput(v **CreateFind
return nil
}
-type awsRestjson1_deserializeOpCreateSbomExport struct {
+type awsRestjson1_deserializeOpCreateCodeSecurityIntegration struct {
}
-func (*awsRestjson1_deserializeOpCreateSbomExport) ID() string {
+func (*awsRestjson1_deserializeOpCreateCodeSecurityIntegration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateSbomExport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateCodeSecurityIntegration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2063,9 +2068,9 @@ func (m *awsRestjson1_deserializeOpCreateSbomExport) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateSbomExport(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateCodeSecurityIntegration(response, &metadata)
}
- output := &CreateSbomExportOutput{}
+ output := &CreateCodeSecurityIntegrationOutput{}
out.Result = output
var buff [1024]byte
@@ -2086,7 +2091,7 @@ func (m *awsRestjson1_deserializeOpCreateSbomExport) HandleDeserialize(ctx conte
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateSbomExportOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateCodeSecurityIntegrationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2100,7 +2105,7 @@ func (m *awsRestjson1_deserializeOpCreateSbomExport) HandleDeserialize(ctx conte
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateSbomExport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateCodeSecurityIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2144,11 +2149,14 @@ func awsRestjson1_deserializeOpErrorCreateSbomExport(response *smithyhttp.Respon
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ServiceQuotaExceededException", errorCode):
+ return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -2166,7 +2174,7 @@ func awsRestjson1_deserializeOpErrorCreateSbomExport(response *smithyhttp.Respon
}
}
-func awsRestjson1_deserializeOpDocumentCreateSbomExportOutput(v **CreateSbomExportOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateCodeSecurityIntegrationOutput(v **CreateCodeSecurityIntegrationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2179,22 +2187,40 @@ func awsRestjson1_deserializeOpDocumentCreateSbomExportOutput(v **CreateSbomExpo
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateSbomExportOutput
+ var sv *CreateCodeSecurityIntegrationOutput
if *v == nil {
- sv = &CreateSbomExportOutput{}
+ sv = &CreateCodeSecurityIntegrationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "reportId":
+ case "authorizationUrl":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AuthorizationUrl to be of type string, got %T instead", value)
}
- sv.ReportId = ptr.String(jtv)
+ sv.AuthorizationUrl = ptr.String(jtv)
+ }
+
+ case "integrationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeSecurityIntegrationArn to be of type string, got %T instead", value)
+ }
+ sv.IntegrationArn = ptr.String(jtv)
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IntegrationStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.IntegrationStatus(jtv)
}
default:
@@ -2206,14 +2232,14 @@ func awsRestjson1_deserializeOpDocumentCreateSbomExportOutput(v **CreateSbomExpo
return nil
}
-type awsRestjson1_deserializeOpDeleteCisScanConfiguration struct {
+type awsRestjson1_deserializeOpCreateCodeSecurityScanConfiguration struct {
}
-func (*awsRestjson1_deserializeOpDeleteCisScanConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpCreateCodeSecurityScanConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDeleteCisScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateCodeSecurityScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2231,9 +2257,9 @@ func (m *awsRestjson1_deserializeOpDeleteCisScanConfiguration) HandleDeserialize
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeleteCisScanConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateCodeSecurityScanConfiguration(response, &metadata)
}
- output := &DeleteCisScanConfigurationOutput{}
+ output := &CreateCodeSecurityScanConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -2254,7 +2280,7 @@ func (m *awsRestjson1_deserializeOpDeleteCisScanConfiguration) HandleDeserialize
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDeleteCisScanConfigurationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateCodeSecurityScanConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2268,7 +2294,7 @@ func (m *awsRestjson1_deserializeOpDeleteCisScanConfiguration) HandleDeserialize
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDeleteCisScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateCodeSecurityScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2312,11 +2338,14 @@ func awsRestjson1_deserializeOpErrorDeleteCisScanConfiguration(response *smithyh
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ServiceQuotaExceededException", errorCode):
+ return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -2334,7 +2363,7 @@ func awsRestjson1_deserializeOpErrorDeleteCisScanConfiguration(response *smithyh
}
}
-func awsRestjson1_deserializeOpDocumentDeleteCisScanConfigurationOutput(v **DeleteCisScanConfigurationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateCodeSecurityScanConfigurationOutput(v **CreateCodeSecurityScanConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2347,9 +2376,9 @@ func awsRestjson1_deserializeOpDocumentDeleteCisScanConfigurationOutput(v **Dele
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DeleteCisScanConfigurationOutput
+ var sv *CreateCodeSecurityScanConfigurationOutput
if *v == nil {
- sv = &DeleteCisScanConfigurationOutput{}
+ sv = &CreateCodeSecurityScanConfigurationOutput{}
} else {
sv = *v
}
@@ -2360,7 +2389,7 @@ func awsRestjson1_deserializeOpDocumentDeleteCisScanConfigurationOutput(v **Dele
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ScanConfigurationArn to be of type string, got %T instead", value)
}
sv.ScanConfigurationArn = ptr.String(jtv)
}
@@ -2374,14 +2403,14 @@ func awsRestjson1_deserializeOpDocumentDeleteCisScanConfigurationOutput(v **Dele
return nil
}
-type awsRestjson1_deserializeOpDeleteFilter struct {
+type awsRestjson1_deserializeOpCreateFilter struct {
}
-func (*awsRestjson1_deserializeOpDeleteFilter) ID() string {
+func (*awsRestjson1_deserializeOpCreateFilter) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDeleteFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2399,9 +2428,9 @@ func (m *awsRestjson1_deserializeOpDeleteFilter) HandleDeserialize(ctx context.C
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeleteFilter(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateFilter(response, &metadata)
}
- output := &DeleteFilterOutput{}
+ output := &CreateFilterOutput{}
out.Result = output
var buff [1024]byte
@@ -2422,7 +2451,7 @@ func (m *awsRestjson1_deserializeOpDeleteFilter) HandleDeserialize(ctx context.C
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDeleteFilterOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateFilterOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2436,7 +2465,7 @@ func (m *awsRestjson1_deserializeOpDeleteFilter) HandleDeserialize(ctx context.C
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDeleteFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2480,11 +2509,14 @@ func awsRestjson1_deserializeOpErrorDeleteFilter(response *smithyhttp.Response,
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+ case strings.EqualFold("BadRequestException", errorCode):
+ return awsRestjson1_deserializeErrorBadRequestException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ServiceQuotaExceededException", errorCode):
+ return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -2502,7 +2534,7 @@ func awsRestjson1_deserializeOpErrorDeleteFilter(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentDeleteFilterOutput(v **DeleteFilterOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateFilterOutput(v **CreateFilterOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2515,9 +2547,9 @@ func awsRestjson1_deserializeOpDocumentDeleteFilterOutput(v **DeleteFilterOutput
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DeleteFilterOutput
+ var sv *CreateFilterOutput
if *v == nil {
- sv = &DeleteFilterOutput{}
+ sv = &CreateFilterOutput{}
} else {
sv = *v
}
@@ -2542,14 +2574,14 @@ func awsRestjson1_deserializeOpDocumentDeleteFilterOutput(v **DeleteFilterOutput
return nil
}
-type awsRestjson1_deserializeOpDescribeOrganizationConfiguration struct {
+type awsRestjson1_deserializeOpCreateFindingsReport struct {
}
-func (*awsRestjson1_deserializeOpDescribeOrganizationConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpCreateFindingsReport) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDescribeOrganizationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateFindingsReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2567,9 +2599,9 @@ func (m *awsRestjson1_deserializeOpDescribeOrganizationConfiguration) HandleDese
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateFindingsReport(response, &metadata)
}
- output := &DescribeOrganizationConfigurationOutput{}
+ output := &CreateFindingsReportOutput{}
out.Result = output
var buff [1024]byte
@@ -2590,7 +2622,7 @@ func (m *awsRestjson1_deserializeOpDescribeOrganizationConfiguration) HandleDese
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateFindingsReportOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2604,7 +2636,7 @@ func (m *awsRestjson1_deserializeOpDescribeOrganizationConfiguration) HandleDese
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateFindingsReport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2651,6 +2683,9 @@ func awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response *
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -2667,7 +2702,7 @@ func awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response *
}
}
-func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v **DescribeOrganizationConfigurationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateFindingsReportOutput(v **CreateFindingsReportOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2680,27 +2715,22 @@ func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DescribeOrganizationConfigurationOutput
+ var sv *CreateFindingsReportOutput
if *v == nil {
- sv = &DescribeOrganizationConfigurationOutput{}
+ sv = &CreateFindingsReportOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "autoEnable":
- if err := awsRestjson1_deserializeDocumentAutoEnable(&sv.AutoEnable, value); err != nil {
- return err
- }
-
- case "maxAccountLimitReached":
+ case "reportId":
if value != nil {
- jtv, ok := value.(bool)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
}
- sv.MaxAccountLimitReached = ptr.Bool(jtv)
+ sv.ReportId = ptr.String(jtv)
}
default:
@@ -2712,14 +2742,14 @@ func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v
return nil
}
-type awsRestjson1_deserializeOpDisable struct {
+type awsRestjson1_deserializeOpCreateSbomExport struct {
}
-func (*awsRestjson1_deserializeOpDisable) ID() string {
+func (*awsRestjson1_deserializeOpCreateSbomExport) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateSbomExport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2737,9 +2767,9 @@ func (m *awsRestjson1_deserializeOpDisable) HandleDeserialize(ctx context.Contex
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisable(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateSbomExport(response, &metadata)
}
- output := &DisableOutput{}
+ output := &CreateSbomExportOutput{}
out.Result = output
var buff [1024]byte
@@ -2760,7 +2790,7 @@ func (m *awsRestjson1_deserializeOpDisable) HandleDeserialize(ctx context.Contex
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDisableOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateSbomExportOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2774,7 +2804,7 @@ func (m *awsRestjson1_deserializeOpDisable) HandleDeserialize(ctx context.Contex
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisable(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateSbomExport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2840,7 +2870,7 @@ func awsRestjson1_deserializeOpErrorDisable(response *smithyhttp.Response, metad
}
}
-func awsRestjson1_deserializeOpDocumentDisableOutput(v **DisableOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateSbomExportOutput(v **CreateSbomExportOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2853,23 +2883,22 @@ func awsRestjson1_deserializeOpDocumentDisableOutput(v **DisableOutput, value in
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DisableOutput
+ var sv *CreateSbomExportOutput
if *v == nil {
- sv = &DisableOutput{}
+ sv = &CreateSbomExportOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accounts":
- if err := awsRestjson1_deserializeDocumentAccountList(&sv.Accounts, value); err != nil {
- return err
- }
-
- case "failedAccounts":
- if err := awsRestjson1_deserializeDocumentFailedAccountList(&sv.FailedAccounts, value); err != nil {
- return err
+ case "reportId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
+ }
+ sv.ReportId = ptr.String(jtv)
}
default:
@@ -2881,14 +2910,14 @@ func awsRestjson1_deserializeOpDocumentDisableOutput(v **DisableOutput, value in
return nil
}
-type awsRestjson1_deserializeOpDisableDelegatedAdminAccount struct {
+type awsRestjson1_deserializeOpDeleteCisScanConfiguration struct {
}
-func (*awsRestjson1_deserializeOpDisableDelegatedAdminAccount) ID() string {
+func (*awsRestjson1_deserializeOpDeleteCisScanConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisableDelegatedAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteCisScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2906,9 +2935,9 @@ func (m *awsRestjson1_deserializeOpDisableDelegatedAdminAccount) HandleDeseriali
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisableDelegatedAdminAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteCisScanConfiguration(response, &metadata)
}
- output := &DisableDelegatedAdminAccountOutput{}
+ output := &DeleteCisScanConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -2929,7 +2958,7 @@ func (m *awsRestjson1_deserializeOpDisableDelegatedAdminAccount) HandleDeseriali
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDisableDelegatedAdminAccountOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDeleteCisScanConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2943,7 +2972,7 @@ func (m *awsRestjson1_deserializeOpDisableDelegatedAdminAccount) HandleDeseriali
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisableDelegatedAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteCisScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2987,9 +3016,6 @@ func awsRestjson1_deserializeOpErrorDisableDelegatedAdminAccount(response *smith
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("ConflictException", errorCode):
- return awsRestjson1_deserializeErrorConflictException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -3012,7 +3038,7 @@ func awsRestjson1_deserializeOpErrorDisableDelegatedAdminAccount(response *smith
}
}
-func awsRestjson1_deserializeOpDocumentDisableDelegatedAdminAccountOutput(v **DisableDelegatedAdminAccountOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDeleteCisScanConfigurationOutput(v **DeleteCisScanConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3025,22 +3051,22 @@ func awsRestjson1_deserializeOpDocumentDisableDelegatedAdminAccountOutput(v **Di
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DisableDelegatedAdminAccountOutput
+ var sv *DeleteCisScanConfigurationOutput
if *v == nil {
- sv = &DisableDelegatedAdminAccountOutput{}
+ sv = &DeleteCisScanConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "delegatedAdminAccountId":
+ case "scanConfigurationArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
}
- sv.DelegatedAdminAccountId = ptr.String(jtv)
+ sv.ScanConfigurationArn = ptr.String(jtv)
}
default:
@@ -3052,14 +3078,14 @@ func awsRestjson1_deserializeOpDocumentDisableDelegatedAdminAccountOutput(v **Di
return nil
}
-type awsRestjson1_deserializeOpDisassociateMember struct {
+type awsRestjson1_deserializeOpDeleteCodeSecurityIntegration struct {
}
-func (*awsRestjson1_deserializeOpDisassociateMember) ID() string {
+func (*awsRestjson1_deserializeOpDeleteCodeSecurityIntegration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisassociateMember) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteCodeSecurityIntegration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3077,9 +3103,9 @@ func (m *awsRestjson1_deserializeOpDisassociateMember) HandleDeserialize(ctx con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisassociateMember(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteCodeSecurityIntegration(response, &metadata)
}
- output := &DisassociateMemberOutput{}
+ output := &DeleteCodeSecurityIntegrationOutput{}
out.Result = output
var buff [1024]byte
@@ -3100,7 +3126,7 @@ func (m *awsRestjson1_deserializeOpDisassociateMember) HandleDeserialize(ctx con
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDisassociateMemberOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDeleteCodeSecurityIntegrationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3114,7 +3140,7 @@ func (m *awsRestjson1_deserializeOpDisassociateMember) HandleDeserialize(ctx con
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisassociateMember(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteCodeSecurityIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3161,6 +3187,9 @@ func awsRestjson1_deserializeOpErrorDisassociateMember(response *smithyhttp.Resp
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -3177,7 +3206,7 @@ func awsRestjson1_deserializeOpErrorDisassociateMember(response *smithyhttp.Resp
}
}
-func awsRestjson1_deserializeOpDocumentDisassociateMemberOutput(v **DisassociateMemberOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDeleteCodeSecurityIntegrationOutput(v **DeleteCodeSecurityIntegrationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3190,22 +3219,22 @@ func awsRestjson1_deserializeOpDocumentDisassociateMemberOutput(v **Disassociate
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DisassociateMemberOutput
+ var sv *DeleteCodeSecurityIntegrationOutput
if *v == nil {
- sv = &DisassociateMemberOutput{}
+ sv = &DeleteCodeSecurityIntegrationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
+ case "integrationArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CodeSecurityIntegrationArn to be of type string, got %T instead", value)
}
- sv.AccountId = ptr.String(jtv)
+ sv.IntegrationArn = ptr.String(jtv)
}
default:
@@ -3217,14 +3246,14 @@ func awsRestjson1_deserializeOpDocumentDisassociateMemberOutput(v **Disassociate
return nil
}
-type awsRestjson1_deserializeOpEnable struct {
+type awsRestjson1_deserializeOpDeleteCodeSecurityScanConfiguration struct {
}
-func (*awsRestjson1_deserializeOpEnable) ID() string {
+func (*awsRestjson1_deserializeOpDeleteCodeSecurityScanConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpEnable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteCodeSecurityScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3242,9 +3271,9 @@ func (m *awsRestjson1_deserializeOpEnable) HandleDeserialize(ctx context.Context
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorEnable(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteCodeSecurityScanConfiguration(response, &metadata)
}
- output := &EnableOutput{}
+ output := &DeleteCodeSecurityScanConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -3265,7 +3294,7 @@ func (m *awsRestjson1_deserializeOpEnable) HandleDeserialize(ctx context.Context
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentEnableOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDeleteCodeSecurityScanConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3279,7 +3308,7 @@ func (m *awsRestjson1_deserializeOpEnable) HandleDeserialize(ctx context.Context
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorEnable(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteCodeSecurityScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3345,7 +3374,7 @@ func awsRestjson1_deserializeOpErrorEnable(response *smithyhttp.Response, metada
}
}
-func awsRestjson1_deserializeOpDocumentEnableOutput(v **EnableOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDeleteCodeSecurityScanConfigurationOutput(v **DeleteCodeSecurityScanConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3358,23 +3387,22 @@ func awsRestjson1_deserializeOpDocumentEnableOutput(v **EnableOutput, value inte
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *EnableOutput
+ var sv *DeleteCodeSecurityScanConfigurationOutput
if *v == nil {
- sv = &EnableOutput{}
+ sv = &DeleteCodeSecurityScanConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accounts":
- if err := awsRestjson1_deserializeDocumentAccountList(&sv.Accounts, value); err != nil {
- return err
- }
-
- case "failedAccounts":
- if err := awsRestjson1_deserializeDocumentFailedAccountList(&sv.FailedAccounts, value); err != nil {
- return err
+ case "scanConfigurationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ScanConfigurationArn to be of type string, got %T instead", value)
+ }
+ sv.ScanConfigurationArn = ptr.String(jtv)
}
default:
@@ -3386,14 +3414,14 @@ func awsRestjson1_deserializeOpDocumentEnableOutput(v **EnableOutput, value inte
return nil
}
-type awsRestjson1_deserializeOpEnableDelegatedAdminAccount struct {
+type awsRestjson1_deserializeOpDeleteFilter struct {
}
-func (*awsRestjson1_deserializeOpEnableDelegatedAdminAccount) ID() string {
+func (*awsRestjson1_deserializeOpDeleteFilter) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpEnableDelegatedAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3411,9 +3439,9 @@ func (m *awsRestjson1_deserializeOpEnableDelegatedAdminAccount) HandleDeserializ
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorEnableDelegatedAdminAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteFilter(response, &metadata)
}
- output := &EnableDelegatedAdminAccountOutput{}
+ output := &DeleteFilterOutput{}
out.Result = output
var buff [1024]byte
@@ -3434,7 +3462,7 @@ func (m *awsRestjson1_deserializeOpEnableDelegatedAdminAccount) HandleDeserializ
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentEnableDelegatedAdminAccountOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDeleteFilterOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3448,7 +3476,7 @@ func (m *awsRestjson1_deserializeOpEnableDelegatedAdminAccount) HandleDeserializ
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorEnableDelegatedAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3492,9 +3520,6 @@ func awsRestjson1_deserializeOpErrorEnableDelegatedAdminAccount(response *smithy
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("ConflictException", errorCode):
- return awsRestjson1_deserializeErrorConflictException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -3517,7 +3542,7 @@ func awsRestjson1_deserializeOpErrorEnableDelegatedAdminAccount(response *smithy
}
}
-func awsRestjson1_deserializeOpDocumentEnableDelegatedAdminAccountOutput(v **EnableDelegatedAdminAccountOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDeleteFilterOutput(v **DeleteFilterOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3530,22 +3555,22 @@ func awsRestjson1_deserializeOpDocumentEnableDelegatedAdminAccountOutput(v **Ena
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *EnableDelegatedAdminAccountOutput
+ var sv *DeleteFilterOutput
if *v == nil {
- sv = &EnableDelegatedAdminAccountOutput{}
+ sv = &DeleteFilterOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "delegatedAdminAccountId":
+ case "arn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FilterArn to be of type string, got %T instead", value)
}
- sv.DelegatedAdminAccountId = ptr.String(jtv)
+ sv.Arn = ptr.String(jtv)
}
default:
@@ -3557,14 +3582,14 @@ func awsRestjson1_deserializeOpDocumentEnableDelegatedAdminAccountOutput(v **Ena
return nil
}
-type awsRestjson1_deserializeOpGetCisScanReport struct {
+type awsRestjson1_deserializeOpDescribeOrganizationConfiguration struct {
}
-func (*awsRestjson1_deserializeOpGetCisScanReport) ID() string {
+func (*awsRestjson1_deserializeOpDescribeOrganizationConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetCisScanReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeOrganizationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3582,9 +3607,9 @@ func (m *awsRestjson1_deserializeOpGetCisScanReport) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetCisScanReport(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response, &metadata)
}
- output := &GetCisScanReportOutput{}
+ output := &DescribeOrganizationConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -3605,7 +3630,7 @@ func (m *awsRestjson1_deserializeOpGetCisScanReport) HandleDeserialize(ctx conte
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetCisScanReportOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3619,7 +3644,7 @@ func (m *awsRestjson1_deserializeOpGetCisScanReport) HandleDeserialize(ctx conte
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetCisScanReport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3666,9 +3691,6 @@ func awsRestjson1_deserializeOpErrorGetCisScanReport(response *smithyhttp.Respon
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -3685,7 +3707,7 @@ func awsRestjson1_deserializeOpErrorGetCisScanReport(response *smithyhttp.Respon
}
}
-func awsRestjson1_deserializeOpDocumentGetCisScanReportOutput(v **GetCisScanReportOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v **DescribeOrganizationConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3698,31 +3720,27 @@ func awsRestjson1_deserializeOpDocumentGetCisScanReportOutput(v **GetCisScanRepo
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetCisScanReportOutput
+ var sv *DescribeOrganizationConfigurationOutput
if *v == nil {
- sv = &GetCisScanReportOutput{}
+ sv = &DescribeOrganizationConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "status":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisReportStatus to be of type string, got %T instead", value)
- }
- sv.Status = types.CisReportStatus(jtv)
+ case "autoEnable":
+ if err := awsRestjson1_deserializeDocumentAutoEnable(&sv.AutoEnable, value); err != nil {
+ return err
}
- case "url":
+ case "maxAccountLimitReached":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(bool)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
}
- sv.Url = ptr.String(jtv)
+ sv.MaxAccountLimitReached = ptr.Bool(jtv)
}
default:
@@ -3734,14 +3752,14 @@ func awsRestjson1_deserializeOpDocumentGetCisScanReportOutput(v **GetCisScanRepo
return nil
}
-type awsRestjson1_deserializeOpGetCisScanResultDetails struct {
+type awsRestjson1_deserializeOpDisable struct {
}
-func (*awsRestjson1_deserializeOpGetCisScanResultDetails) ID() string {
+func (*awsRestjson1_deserializeOpDisable) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetCisScanResultDetails) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDisable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3759,9 +3777,9 @@ func (m *awsRestjson1_deserializeOpGetCisScanResultDetails) HandleDeserialize(ct
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetCisScanResultDetails(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDisable(response, &metadata)
}
- output := &GetCisScanResultDetailsOutput{}
+ output := &DisableOutput{}
out.Result = output
var buff [1024]byte
@@ -3782,7 +3800,7 @@ func (m *awsRestjson1_deserializeOpGetCisScanResultDetails) HandleDeserialize(ct
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetCisScanResultDetailsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDisableOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3796,7 +3814,7 @@ func (m *awsRestjson1_deserializeOpGetCisScanResultDetails) HandleDeserialize(ct
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetCisScanResultDetails(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDisable(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3843,6 +3861,9 @@ func awsRestjson1_deserializeOpErrorGetCisScanResultDetails(response *smithyhttp
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -3859,7 +3880,7 @@ func awsRestjson1_deserializeOpErrorGetCisScanResultDetails(response *smithyhttp
}
}
-func awsRestjson1_deserializeOpDocumentGetCisScanResultDetailsOutput(v **GetCisScanResultDetailsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDisableOutput(v **DisableOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3872,26 +3893,22 @@ func awsRestjson1_deserializeOpDocumentGetCisScanResultDetailsOutput(v **GetCisS
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetCisScanResultDetailsOutput
+ var sv *DisableOutput
if *v == nil {
- sv = &GetCisScanResultDetailsOutput{}
+ sv = &DisableOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "nextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
+ case "accounts":
+ if err := awsRestjson1_deserializeDocumentAccountList(&sv.Accounts, value); err != nil {
+ return err
}
- case "scanResultDetails":
- if err := awsRestjson1_deserializeDocumentCisScanResultDetailsList(&sv.ScanResultDetails, value); err != nil {
+ case "failedAccounts":
+ if err := awsRestjson1_deserializeDocumentFailedAccountList(&sv.FailedAccounts, value); err != nil {
return err
}
@@ -3904,14 +3921,14 @@ func awsRestjson1_deserializeOpDocumentGetCisScanResultDetailsOutput(v **GetCisS
return nil
}
-type awsRestjson1_deserializeOpGetClustersForImage struct {
+type awsRestjson1_deserializeOpDisableDelegatedAdminAccount struct {
}
-func (*awsRestjson1_deserializeOpGetClustersForImage) ID() string {
+func (*awsRestjson1_deserializeOpDisableDelegatedAdminAccount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetClustersForImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDisableDelegatedAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3929,9 +3946,9 @@ func (m *awsRestjson1_deserializeOpGetClustersForImage) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetClustersForImage(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDisableDelegatedAdminAccount(response, &metadata)
}
- output := &GetClustersForImageOutput{}
+ output := &DisableDelegatedAdminAccountOutput{}
out.Result = output
var buff [1024]byte
@@ -3952,7 +3969,7 @@ func (m *awsRestjson1_deserializeOpGetClustersForImage) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetClustersForImageOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDisableDelegatedAdminAccountOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3966,7 +3983,7 @@ func (m *awsRestjson1_deserializeOpGetClustersForImage) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetClustersForImage(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDisableDelegatedAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4010,9 +4027,15 @@ func awsRestjson1_deserializeOpErrorGetClustersForImage(response *smithyhttp.Res
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -4029,7 +4052,7 @@ func awsRestjson1_deserializeOpErrorGetClustersForImage(response *smithyhttp.Res
}
}
-func awsRestjson1_deserializeOpDocumentGetClustersForImageOutput(v **GetClustersForImageOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDisableDelegatedAdminAccountOutput(v **DisableDelegatedAdminAccountOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4042,27 +4065,22 @@ func awsRestjson1_deserializeOpDocumentGetClustersForImageOutput(v **GetClusters
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetClustersForImageOutput
+ var sv *DisableDelegatedAdminAccountOutput
if *v == nil {
- sv = &GetClustersForImageOutput{}
+ sv = &DisableDelegatedAdminAccountOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "cluster":
- if err := awsRestjson1_deserializeDocumentClusterInformationList(&sv.Cluster, value); err != nil {
- return err
- }
-
- case "nextToken":
+ case "delegatedAdminAccountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected GetClustersForImageNextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.DelegatedAdminAccountId = ptr.String(jtv)
}
default:
@@ -4074,14 +4092,14 @@ func awsRestjson1_deserializeOpDocumentGetClustersForImageOutput(v **GetClusters
return nil
}
-type awsRestjson1_deserializeOpGetConfiguration struct {
+type awsRestjson1_deserializeOpDisassociateMember struct {
}
-func (*awsRestjson1_deserializeOpGetConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpDisassociateMember) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDisassociateMember) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4099,9 +4117,9 @@ func (m *awsRestjson1_deserializeOpGetConfiguration) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDisassociateMember(response, &metadata)
}
- output := &GetConfigurationOutput{}
+ output := &DisassociateMemberOutput{}
out.Result = output
var buff [1024]byte
@@ -4122,7 +4140,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguration) HandleDeserialize(ctx conte
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetConfigurationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDisassociateMemberOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4136,7 +4154,7 @@ func (m *awsRestjson1_deserializeOpGetConfiguration) HandleDeserialize(ctx conte
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDisassociateMember(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4177,15 +4195,18 @@ func awsRestjson1_deserializeOpErrorGetConfiguration(response *smithyhttp.Respon
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -4196,7 +4217,7 @@ func awsRestjson1_deserializeOpErrorGetConfiguration(response *smithyhttp.Respon
}
}
-func awsRestjson1_deserializeOpDocumentGetConfigurationOutput(v **GetConfigurationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDisassociateMemberOutput(v **DisassociateMemberOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4209,23 +4230,22 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationOutput(v **GetConfigurati
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetConfigurationOutput
+ var sv *DisassociateMemberOutput
if *v == nil {
- sv = &GetConfigurationOutput{}
+ sv = &DisassociateMemberOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ec2Configuration":
- if err := awsRestjson1_deserializeDocumentEc2ConfigurationState(&sv.Ec2Configuration, value); err != nil {
- return err
- }
-
- case "ecrConfiguration":
- if err := awsRestjson1_deserializeDocumentEcrConfigurationState(&sv.EcrConfiguration, value); err != nil {
- return err
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
}
default:
@@ -4237,14 +4257,14 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationOutput(v **GetConfigurati
return nil
}
-type awsRestjson1_deserializeOpGetDelegatedAdminAccount struct {
+type awsRestjson1_deserializeOpEnable struct {
}
-func (*awsRestjson1_deserializeOpGetDelegatedAdminAccount) ID() string {
+func (*awsRestjson1_deserializeOpEnable) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetDelegatedAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpEnable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4262,9 +4282,9 @@ func (m *awsRestjson1_deserializeOpGetDelegatedAdminAccount) HandleDeserialize(c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetDelegatedAdminAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorEnable(response, &metadata)
}
- output := &GetDelegatedAdminAccountOutput{}
+ output := &EnableOutput{}
out.Result = output
var buff [1024]byte
@@ -4285,7 +4305,7 @@ func (m *awsRestjson1_deserializeOpGetDelegatedAdminAccount) HandleDeserialize(c
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetDelegatedAdminAccountOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentEnableOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4299,7 +4319,7 @@ func (m *awsRestjson1_deserializeOpGetDelegatedAdminAccount) HandleDeserialize(c
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetDelegatedAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorEnable(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4365,7 +4385,7 @@ func awsRestjson1_deserializeOpErrorGetDelegatedAdminAccount(response *smithyhtt
}
}
-func awsRestjson1_deserializeOpDocumentGetDelegatedAdminAccountOutput(v **GetDelegatedAdminAccountOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentEnableOutput(v **EnableOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4378,17 +4398,22 @@ func awsRestjson1_deserializeOpDocumentGetDelegatedAdminAccountOutput(v **GetDel
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetDelegatedAdminAccountOutput
+ var sv *EnableOutput
if *v == nil {
- sv = &GetDelegatedAdminAccountOutput{}
+ sv = &EnableOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "delegatedAdmin":
- if err := awsRestjson1_deserializeDocumentDelegatedAdmin(&sv.DelegatedAdmin, value); err != nil {
+ case "accounts":
+ if err := awsRestjson1_deserializeDocumentAccountList(&sv.Accounts, value); err != nil {
+ return err
+ }
+
+ case "failedAccounts":
+ if err := awsRestjson1_deserializeDocumentFailedAccountList(&sv.FailedAccounts, value); err != nil {
return err
}
@@ -4401,14 +4426,14 @@ func awsRestjson1_deserializeOpDocumentGetDelegatedAdminAccountOutput(v **GetDel
return nil
}
-type awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration struct {
+type awsRestjson1_deserializeOpEnableDelegatedAdminAccount struct {
}
-func (*awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpEnableDelegatedAdminAccount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpEnableDelegatedAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4426,9 +4451,9 @@ func (m *awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration) HandleDese
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetEc2DeepInspectionConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorEnableDelegatedAdminAccount(response, &metadata)
}
- output := &GetEc2DeepInspectionConfigurationOutput{}
+ output := &EnableDelegatedAdminAccountOutput{}
out.Result = output
var buff [1024]byte
@@ -4449,7 +4474,7 @@ func (m *awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration) HandleDese
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetEc2DeepInspectionConfigurationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentEnableDelegatedAdminAccountOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4463,7 +4488,7 @@ func (m *awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration) HandleDese
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetEc2DeepInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorEnableDelegatedAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4507,6 +4532,9 @@ func awsRestjson1_deserializeOpErrorGetEc2DeepInspectionConfiguration(response *
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -4516,6 +4544,9 @@ func awsRestjson1_deserializeOpErrorGetEc2DeepInspectionConfiguration(response *
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -4526,7 +4557,7 @@ func awsRestjson1_deserializeOpErrorGetEc2DeepInspectionConfiguration(response *
}
}
-func awsRestjson1_deserializeOpDocumentGetEc2DeepInspectionConfigurationOutput(v **GetEc2DeepInspectionConfigurationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentEnableDelegatedAdminAccountOutput(v **EnableDelegatedAdminAccountOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4539,41 +4570,22 @@ func awsRestjson1_deserializeOpDocumentGetEc2DeepInspectionConfigurationOutput(v
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetEc2DeepInspectionConfigurationOutput
+ var sv *EnableDelegatedAdminAccountOutput
if *v == nil {
- sv = &GetEc2DeepInspectionConfigurationOutput{}
+ sv = &EnableDelegatedAdminAccountOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "errorMessage":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ErrorMessage = ptr.String(jtv)
- }
-
- case "orgPackagePaths":
- if err := awsRestjson1_deserializeDocumentPathList(&sv.OrgPackagePaths, value); err != nil {
- return err
- }
-
- case "packagePaths":
- if err := awsRestjson1_deserializeDocumentPathList(&sv.PackagePaths, value); err != nil {
- return err
- }
-
- case "status":
+ case "delegatedAdminAccountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Ec2DeepInspectionStatus to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.Status = types.Ec2DeepInspectionStatus(jtv)
+ sv.DelegatedAdminAccountId = ptr.String(jtv)
}
default:
@@ -4585,14 +4597,14 @@ func awsRestjson1_deserializeOpDocumentGetEc2DeepInspectionConfigurationOutput(v
return nil
}
-type awsRestjson1_deserializeOpGetEncryptionKey struct {
+type awsRestjson1_deserializeOpGetCisScanReport struct {
}
-func (*awsRestjson1_deserializeOpGetEncryptionKey) ID() string {
+func (*awsRestjson1_deserializeOpGetCisScanReport) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetEncryptionKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetCisScanReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4610,9 +4622,9 @@ func (m *awsRestjson1_deserializeOpGetEncryptionKey) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetEncryptionKey(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetCisScanReport(response, &metadata)
}
- output := &GetEncryptionKeyOutput{}
+ output := &GetCisScanReportOutput{}
out.Result = output
var buff [1024]byte
@@ -4633,7 +4645,7 @@ func (m *awsRestjson1_deserializeOpGetEncryptionKey) HandleDeserialize(ctx conte
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetEncryptionKeyOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetCisScanReportOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4647,7 +4659,7 @@ func (m *awsRestjson1_deserializeOpGetEncryptionKey) HandleDeserialize(ctx conte
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetEncryptionKey(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetCisScanReport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4713,7 +4725,7 @@ func awsRestjson1_deserializeOpErrorGetEncryptionKey(response *smithyhttp.Respon
}
}
-func awsRestjson1_deserializeOpDocumentGetEncryptionKeyOutput(v **GetEncryptionKeyOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetCisScanReportOutput(v **GetCisScanReportOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4726,22 +4738,31 @@ func awsRestjson1_deserializeOpDocumentGetEncryptionKeyOutput(v **GetEncryptionK
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetEncryptionKeyOutput
+ var sv *GetCisScanReportOutput
if *v == nil {
- sv = &GetEncryptionKeyOutput{}
+ sv = &GetCisScanReportOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "kmsKeyId":
+ case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisReportStatus to be of type string, got %T instead", value)
}
- sv.KmsKeyId = ptr.String(jtv)
+ sv.Status = types.CisReportStatus(jtv)
+ }
+
+ case "url":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Url = ptr.String(jtv)
}
default:
@@ -4753,14 +4774,14 @@ func awsRestjson1_deserializeOpDocumentGetEncryptionKeyOutput(v **GetEncryptionK
return nil
}
-type awsRestjson1_deserializeOpGetFindingsReportStatus struct {
+type awsRestjson1_deserializeOpGetCisScanResultDetails struct {
}
-func (*awsRestjson1_deserializeOpGetFindingsReportStatus) ID() string {
+func (*awsRestjson1_deserializeOpGetCisScanResultDetails) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetFindingsReportStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetCisScanResultDetails) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4778,9 +4799,9 @@ func (m *awsRestjson1_deserializeOpGetFindingsReportStatus) HandleDeserialize(ct
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetFindingsReportStatus(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetCisScanResultDetails(response, &metadata)
}
- output := &GetFindingsReportStatusOutput{}
+ output := &GetCisScanResultDetailsOutput{}
out.Result = output
var buff [1024]byte
@@ -4801,7 +4822,7 @@ func (m *awsRestjson1_deserializeOpGetFindingsReportStatus) HandleDeserialize(ct
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetFindingsReportStatusOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetCisScanResultDetailsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4815,7 +4836,7 @@ func (m *awsRestjson1_deserializeOpGetFindingsReportStatus) HandleDeserialize(ct
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetFindingsReportStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetCisScanResultDetails(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4862,9 +4883,6 @@ func awsRestjson1_deserializeOpErrorGetFindingsReportStatus(response *smithyhttp
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -4881,7 +4899,7 @@ func awsRestjson1_deserializeOpErrorGetFindingsReportStatus(response *smithyhttp
}
}
-func awsRestjson1_deserializeOpDocumentGetFindingsReportStatusOutput(v **GetFindingsReportStatusOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetCisScanResultDetailsOutput(v **GetCisScanResultDetailsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4894,61 +4912,29 @@ func awsRestjson1_deserializeOpDocumentGetFindingsReportStatusOutput(v **GetFind
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetFindingsReportStatusOutput
+ var sv *GetCisScanResultDetailsOutput
if *v == nil {
- sv = &GetFindingsReportStatusOutput{}
+ sv = &GetCisScanResultDetailsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "destination":
- if err := awsRestjson1_deserializeDocumentDestination(&sv.Destination, value); err != nil {
- return err
- }
-
- case "errorCode":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ReportingErrorCode to be of type string, got %T instead", value)
- }
- sv.ErrorCode = types.ReportingErrorCode(jtv)
- }
-
- case "errorMessage":
+ case "nextToken":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
}
- sv.ErrorMessage = ptr.String(jtv)
+ sv.NextToken = ptr.String(jtv)
}
- case "filterCriteria":
- if err := awsRestjson1_deserializeDocumentFilterCriteria(&sv.FilterCriteria, value); err != nil {
+ case "scanResultDetails":
+ if err := awsRestjson1_deserializeDocumentCisScanResultDetailsList(&sv.ScanResultDetails, value); err != nil {
return err
}
- case "reportId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
- }
- sv.ReportId = ptr.String(jtv)
- }
-
- case "status":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ExternalReportStatus to be of type string, got %T instead", value)
- }
- sv.Status = types.ExternalReportStatus(jtv)
- }
-
default:
_, _ = key, value
@@ -4958,14 +4944,14 @@ func awsRestjson1_deserializeOpDocumentGetFindingsReportStatusOutput(v **GetFind
return nil
}
-type awsRestjson1_deserializeOpGetMember struct {
+type awsRestjson1_deserializeOpGetClustersForImage struct {
}
-func (*awsRestjson1_deserializeOpGetMember) ID() string {
+func (*awsRestjson1_deserializeOpGetClustersForImage) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetMember) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetClustersForImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4983,9 +4969,9 @@ func (m *awsRestjson1_deserializeOpGetMember) HandleDeserialize(ctx context.Cont
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetMember(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetClustersForImage(response, &metadata)
}
- output := &GetMemberOutput{}
+ output := &GetClustersForImageOutput{}
out.Result = output
var buff [1024]byte
@@ -5006,7 +4992,7 @@ func (m *awsRestjson1_deserializeOpGetMember) HandleDeserialize(ctx context.Cont
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetMemberOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetClustersForImageOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -5020,7 +5006,7 @@ func (m *awsRestjson1_deserializeOpGetMember) HandleDeserialize(ctx context.Cont
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetMember(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetClustersForImage(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5067,9 +5053,6 @@ func awsRestjson1_deserializeOpErrorGetMember(response *smithyhttp.Response, met
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -5086,7 +5069,7 @@ func awsRestjson1_deserializeOpErrorGetMember(response *smithyhttp.Response, met
}
}
-func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetClustersForImageOutput(v **GetClustersForImageOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -5099,20 +5082,29 @@ func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, valu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetMemberOutput
+ var sv *GetClustersForImageOutput
if *v == nil {
- sv = &GetMemberOutput{}
+ sv = &GetClustersForImageOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "member":
- if err := awsRestjson1_deserializeDocumentMember(&sv.Member, value); err != nil {
+ case "cluster":
+ if err := awsRestjson1_deserializeDocumentClusterInformationList(&sv.Cluster, value); err != nil {
return err
}
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected GetClustersForImageNextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
@@ -5122,14 +5114,14 @@ func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, valu
return nil
}
-type awsRestjson1_deserializeOpGetSbomExport struct {
+type awsRestjson1_deserializeOpGetCodeSecurityIntegration struct {
}
-func (*awsRestjson1_deserializeOpGetSbomExport) ID() string {
+func (*awsRestjson1_deserializeOpGetCodeSecurityIntegration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetSbomExport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetCodeSecurityIntegration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5147,9 +5139,9 @@ func (m *awsRestjson1_deserializeOpGetSbomExport) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetSbomExport(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetCodeSecurityIntegration(response, &metadata)
}
- output := &GetSbomExportOutput{}
+ output := &GetCodeSecurityIntegrationOutput{}
out.Result = output
var buff [1024]byte
@@ -5170,7 +5162,7 @@ func (m *awsRestjson1_deserializeOpGetSbomExport) HandleDeserialize(ctx context.
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetSbomExportOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetCodeSecurityIntegrationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -5184,7 +5176,7 @@ func (m *awsRestjson1_deserializeOpGetSbomExport) HandleDeserialize(ctx context.
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetSbomExport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetCodeSecurityIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5250,7 +5242,7 @@ func awsRestjson1_deserializeOpErrorGetSbomExport(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentGetSbomExportOutput(v **GetSbomExportOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetCodeSecurityIntegrationOutput(v **GetCodeSecurityIntegrationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -5263,68 +5255,104 @@ func awsRestjson1_deserializeOpDocumentGetSbomExportOutput(v **GetSbomExportOutp
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetSbomExportOutput
+ var sv *GetCodeSecurityIntegrationOutput
if *v == nil {
- sv = &GetSbomExportOutput{}
+ sv = &GetCodeSecurityIntegrationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "errorCode":
+ case "authorizationUrl":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ReportingErrorCode to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AuthorizationUrl to be of type string, got %T instead", value)
}
- sv.ErrorCode = types.ReportingErrorCode(jtv)
+ sv.AuthorizationUrl = ptr.String(jtv)
}
- case "errorMessage":
+ case "createdOn":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.CreatedOn = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "integrationArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CodeSecurityIntegrationArn to be of type string, got %T instead", value)
}
- sv.ErrorMessage = ptr.String(jtv)
+ sv.IntegrationArn = ptr.String(jtv)
}
- case "filterCriteria":
- if err := awsRestjson1_deserializeDocumentResourceFilterCriteria(&sv.FilterCriteria, value); err != nil {
- return err
+ case "lastUpdateOn":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastUpdateOn = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
}
- case "format":
+ case "name":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected SbomReportFormat to be of type string, got %T instead", value)
+ return fmt.Errorf("expected IntegrationName to be of type string, got %T instead", value)
}
- sv.Format = types.SbomReportFormat(jtv)
+ sv.Name = ptr.String(jtv)
}
- case "reportId":
+ case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected IntegrationStatus to be of type string, got %T instead", value)
}
- sv.ReportId = ptr.String(jtv)
+ sv.Status = types.IntegrationStatus(jtv)
}
- case "s3Destination":
- if err := awsRestjson1_deserializeDocumentDestination(&sv.S3Destination, value); err != nil {
+ case "statusReason":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.StatusReason = ptr.String(jtv)
+ }
+
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
return err
}
- case "status":
+ case "type":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ExternalReportStatus to be of type string, got %T instead", value)
+ return fmt.Errorf("expected IntegrationType to be of type string, got %T instead", value)
}
- sv.Status = types.ExternalReportStatus(jtv)
+ sv.Type = types.IntegrationType(jtv)
}
default:
@@ -5336,14 +5364,14 @@ func awsRestjson1_deserializeOpDocumentGetSbomExportOutput(v **GetSbomExportOutp
return nil
}
-type awsRestjson1_deserializeOpListAccountPermissions struct {
+type awsRestjson1_deserializeOpGetCodeSecurityScan struct {
}
-func (*awsRestjson1_deserializeOpListAccountPermissions) ID() string {
+func (*awsRestjson1_deserializeOpGetCodeSecurityScan) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListAccountPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetCodeSecurityScan) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5361,9 +5389,9 @@ func (m *awsRestjson1_deserializeOpListAccountPermissions) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListAccountPermissions(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetCodeSecurityScan(response, &metadata)
}
- output := &ListAccountPermissionsOutput{}
+ output := &GetCodeSecurityScanOutput{}
out.Result = output
var buff [1024]byte
@@ -5384,7 +5412,7 @@ func (m *awsRestjson1_deserializeOpListAccountPermissions) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListAccountPermissionsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetCodeSecurityScanOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -5398,7 +5426,7 @@ func (m *awsRestjson1_deserializeOpListAccountPermissions) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListAccountPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetCodeSecurityScan(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5442,11 +5470,17 @@ func awsRestjson1_deserializeOpErrorListAccountPermissions(response *smithyhttp.
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ThrottlingException", errorCode):
- return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
@@ -5461,7 +5495,7 @@ func awsRestjson1_deserializeOpErrorListAccountPermissions(response *smithyhttp.
}
}
-func awsRestjson1_deserializeOpDocumentListAccountPermissionsOutput(v **ListAccountPermissionsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetCodeSecurityScanOutput(v **GetCodeSecurityScanOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -5474,29 +5508,97 @@ func awsRestjson1_deserializeOpDocumentListAccountPermissionsOutput(v **ListAcco
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListAccountPermissionsOutput
+ var sv *GetCodeSecurityScanOutput
if *v == nil {
- sv = &ListAccountPermissionsOutput{}
+ sv = &GetCodeSecurityScanOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "nextToken":
+ case "accountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.AccountId = ptr.String(jtv)
}
- case "permissions":
- if err := awsRestjson1_deserializeDocumentPermissions(&sv.Permissions, value); err != nil {
+ case "createdAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "lastCommitId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.LastCommitId = ptr.String(jtv)
+ }
+
+ case "resource":
+ if err := awsRestjson1_deserializeDocumentCodeSecurityResource(&sv.Resource, value); err != nil {
return err
}
+ case "scanId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeSecurityUuid to be of type string, got %T instead", value)
+ }
+ sv.ScanId = ptr.String(jtv)
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeScanStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.CodeScanStatus(jtv)
+ }
+
+ case "statusReason":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.StatusReason = ptr.String(jtv)
+ }
+
+ case "updatedAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
default:
_, _ = key, value
@@ -5506,14 +5608,14 @@ func awsRestjson1_deserializeOpDocumentListAccountPermissionsOutput(v **ListAcco
return nil
}
-type awsRestjson1_deserializeOpListCisScanConfigurations struct {
+type awsRestjson1_deserializeOpGetCodeSecurityScanConfiguration struct {
}
-func (*awsRestjson1_deserializeOpListCisScanConfigurations) ID() string {
+func (*awsRestjson1_deserializeOpGetCodeSecurityScanConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListCisScanConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetCodeSecurityScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5531,9 +5633,9 @@ func (m *awsRestjson1_deserializeOpListCisScanConfigurations) HandleDeserialize(
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListCisScanConfigurations(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetCodeSecurityScanConfiguration(response, &metadata)
}
- output := &ListCisScanConfigurationsOutput{}
+ output := &GetCodeSecurityScanConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -5554,7 +5656,7 @@ func (m *awsRestjson1_deserializeOpListCisScanConfigurations) HandleDeserialize(
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListCisScanConfigurationsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetCodeSecurityScanConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -5568,7 +5670,7 @@ func (m *awsRestjson1_deserializeOpListCisScanConfigurations) HandleDeserialize(
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListCisScanConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetCodeSecurityScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5615,6 +5717,9 @@ func awsRestjson1_deserializeOpErrorListCisScanConfigurations(response *smithyht
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -5631,7 +5736,7 @@ func awsRestjson1_deserializeOpErrorListCisScanConfigurations(response *smithyht
}
}
-func awsRestjson1_deserializeOpDocumentListCisScanConfigurationsOutput(v **ListCisScanConfigurationsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetCodeSecurityScanConfigurationOutput(v **GetCodeSecurityScanConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -5644,26 +5749,86 @@ func awsRestjson1_deserializeOpDocumentListCisScanConfigurationsOutput(v **ListC
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListCisScanConfigurationsOutput
+ var sv *GetCodeSecurityScanConfigurationOutput
if *v == nil {
- sv = &ListCisScanConfigurationsOutput{}
+ sv = &GetCodeSecurityScanConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "nextToken":
+ case "configuration":
+ if err := awsRestjson1_deserializeDocumentCodeSecurityScanConfiguration(&sv.Configuration, value); err != nil {
+ return err
+ }
+
+ case "createdAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "lastUpdatedAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "level":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ConfigurationLevel to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.Level = types.ConfigurationLevel(jtv)
}
- case "scanConfigurations":
- if err := awsRestjson1_deserializeDocumentCisScanConfigurationList(&sv.ScanConfigurations, value); err != nil {
+ case "name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ScanConfigurationName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "scanConfigurationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ScanConfigurationArn to be of type string, got %T instead", value)
+ }
+ sv.ScanConfigurationArn = ptr.String(jtv)
+ }
+
+ case "scopeSettings":
+ if err := awsRestjson1_deserializeDocumentScopeSettings(&sv.ScopeSettings, value); err != nil {
+ return err
+ }
+
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
return err
}
@@ -5676,14 +5841,14 @@ func awsRestjson1_deserializeOpDocumentListCisScanConfigurationsOutput(v **ListC
return nil
}
-type awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks struct {
+type awsRestjson1_deserializeOpGetConfiguration struct {
}
-func (*awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks) ID() string {
+func (*awsRestjson1_deserializeOpGetConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5701,9 +5866,9 @@ func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks) HandleD
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByChecks(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetConfiguration(response, &metadata)
}
- output := &ListCisScanResultsAggregatedByChecksOutput{}
+ output := &GetConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -5724,7 +5889,7 @@ func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks) HandleD
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByChecksOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -5738,7 +5903,7 @@ func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks) HandleD
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByChecks(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5779,18 +5944,15 @@ func awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByChecks(respons
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("ValidationException", errorCode):
- return awsRestjson1_deserializeErrorValidationException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -5801,7 +5963,7 @@ func awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByChecks(respons
}
}
-func awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByChecksOutput(v **ListCisScanResultsAggregatedByChecksOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetConfigurationOutput(v **GetConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -5814,27 +5976,23 @@ func awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByChecksOutpu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListCisScanResultsAggregatedByChecksOutput
+ var sv *GetConfigurationOutput
if *v == nil {
- sv = &ListCisScanResultsAggregatedByChecksOutput{}
+ sv = &GetConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "checkAggregations":
- if err := awsRestjson1_deserializeDocumentCisCheckAggregationList(&sv.CheckAggregations, value); err != nil {
+ case "ec2Configuration":
+ if err := awsRestjson1_deserializeDocumentEc2ConfigurationState(&sv.Ec2Configuration, value); err != nil {
return err
}
- case "nextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
+ case "ecrConfiguration":
+ if err := awsRestjson1_deserializeDocumentEcrConfigurationState(&sv.EcrConfiguration, value); err != nil {
+ return err
}
default:
@@ -5846,14 +6004,14 @@ func awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByChecksOutpu
return nil
}
-type awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource struct {
+type awsRestjson1_deserializeOpGetDelegatedAdminAccount struct {
}
-func (*awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource) ID() string {
+func (*awsRestjson1_deserializeOpGetDelegatedAdminAccount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetDelegatedAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5871,9 +6029,9 @@ func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource)
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByTargetResource(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetDelegatedAdminAccount(response, &metadata)
}
- output := &ListCisScanResultsAggregatedByTargetResourceOutput{}
+ output := &GetDelegatedAdminAccountOutput{}
out.Result = output
var buff [1024]byte
@@ -5894,7 +6052,7 @@ func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource)
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByTargetResourceOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetDelegatedAdminAccountOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -5908,7 +6066,7 @@ func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource)
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByTargetResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetDelegatedAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5955,6 +6113,9 @@ func awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByTargetResource
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -5971,7 +6132,7 @@ func awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByTargetResource
}
}
-func awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByTargetResourceOutput(v **ListCisScanResultsAggregatedByTargetResourceOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetDelegatedAdminAccountOutput(v **GetDelegatedAdminAccountOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -5984,26 +6145,17 @@ func awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByTargetResou
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListCisScanResultsAggregatedByTargetResourceOutput
+ var sv *GetDelegatedAdminAccountOutput
if *v == nil {
- sv = &ListCisScanResultsAggregatedByTargetResourceOutput{}
+ sv = &GetDelegatedAdminAccountOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "nextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
- case "targetResourceAggregations":
- if err := awsRestjson1_deserializeDocumentCisTargetResourceAggregationList(&sv.TargetResourceAggregations, value); err != nil {
+ case "delegatedAdmin":
+ if err := awsRestjson1_deserializeDocumentDelegatedAdmin(&sv.DelegatedAdmin, value); err != nil {
return err
}
@@ -6016,14 +6168,14 @@ func awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByTargetResou
return nil
}
-type awsRestjson1_deserializeOpListCisScans struct {
+type awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration struct {
}
-func (*awsRestjson1_deserializeOpListCisScans) ID() string {
+func (*awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListCisScans) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetEc2DeepInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6041,9 +6193,9 @@ func (m *awsRestjson1_deserializeOpListCisScans) HandleDeserialize(ctx context.C
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListCisScans(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetEc2DeepInspectionConfiguration(response, &metadata)
}
- output := &ListCisScansOutput{}
+ output := &GetEc2DeepInspectionConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -6064,7 +6216,7 @@ func (m *awsRestjson1_deserializeOpListCisScans) HandleDeserialize(ctx context.C
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListCisScansOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetEc2DeepInspectionConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6078,7 +6230,7 @@ func (m *awsRestjson1_deserializeOpListCisScans) HandleDeserialize(ctx context.C
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListCisScans(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetEc2DeepInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6125,12 +6277,12 @@ func awsRestjson1_deserializeOpErrorListCisScans(response *smithyhttp.Response,
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("ValidationException", errorCode):
- return awsRestjson1_deserializeErrorValidationException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -6141,7 +6293,7 @@ func awsRestjson1_deserializeOpErrorListCisScans(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentListCisScansOutput(v **ListCisScansOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetEc2DeepInspectionConfigurationOutput(v **GetEc2DeepInspectionConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6154,29 +6306,43 @@ func awsRestjson1_deserializeOpDocumentListCisScansOutput(v **ListCisScansOutput
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListCisScansOutput
+ var sv *GetEc2DeepInspectionConfigurationOutput
if *v == nil {
- sv = &ListCisScansOutput{}
+ sv = &GetEc2DeepInspectionConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "nextToken":
+ case "errorMessage":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.ErrorMessage = ptr.String(jtv)
}
- case "scans":
- if err := awsRestjson1_deserializeDocumentCisScanList(&sv.Scans, value); err != nil {
+ case "orgPackagePaths":
+ if err := awsRestjson1_deserializeDocumentPathList(&sv.OrgPackagePaths, value); err != nil {
+ return err
+ }
+
+ case "packagePaths":
+ if err := awsRestjson1_deserializeDocumentPathList(&sv.PackagePaths, value); err != nil {
return err
}
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Ec2DeepInspectionStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.Ec2DeepInspectionStatus(jtv)
+ }
+
default:
_, _ = key, value
@@ -6186,14 +6352,14 @@ func awsRestjson1_deserializeOpDocumentListCisScansOutput(v **ListCisScansOutput
return nil
}
-type awsRestjson1_deserializeOpListCoverage struct {
+type awsRestjson1_deserializeOpGetEncryptionKey struct {
}
-func (*awsRestjson1_deserializeOpListCoverage) ID() string {
+func (*awsRestjson1_deserializeOpGetEncryptionKey) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListCoverage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetEncryptionKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6211,9 +6377,9 @@ func (m *awsRestjson1_deserializeOpListCoverage) HandleDeserialize(ctx context.C
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListCoverage(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetEncryptionKey(response, &metadata)
}
- output := &ListCoverageOutput{}
+ output := &GetEncryptionKeyOutput{}
out.Result = output
var buff [1024]byte
@@ -6234,7 +6400,7 @@ func (m *awsRestjson1_deserializeOpListCoverage) HandleDeserialize(ctx context.C
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListCoverageOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetEncryptionKeyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6248,7 +6414,7 @@ func (m *awsRestjson1_deserializeOpListCoverage) HandleDeserialize(ctx context.C
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListCoverage(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetEncryptionKey(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6289,9 +6455,15 @@ func awsRestjson1_deserializeOpErrorListCoverage(response *smithyhttp.Response,
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -6308,7 +6480,7 @@ func awsRestjson1_deserializeOpErrorListCoverage(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentListCoverageOutput(v **ListCoverageOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetEncryptionKeyOutput(v **GetEncryptionKeyOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6321,27 +6493,22 @@ func awsRestjson1_deserializeOpDocumentListCoverageOutput(v **ListCoverageOutput
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListCoverageOutput
+ var sv *GetEncryptionKeyOutput
if *v == nil {
- sv = &ListCoverageOutput{}
+ sv = &GetEncryptionKeyOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "coveredResources":
- if err := awsRestjson1_deserializeDocumentCoveredResources(&sv.CoveredResources, value); err != nil {
- return err
- }
-
- case "nextToken":
+ case "kmsKeyId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.KmsKeyId = ptr.String(jtv)
}
default:
@@ -6353,14 +6520,14 @@ func awsRestjson1_deserializeOpDocumentListCoverageOutput(v **ListCoverageOutput
return nil
}
-type awsRestjson1_deserializeOpListCoverageStatistics struct {
+type awsRestjson1_deserializeOpGetFindingsReportStatus struct {
}
-func (*awsRestjson1_deserializeOpListCoverageStatistics) ID() string {
+func (*awsRestjson1_deserializeOpGetFindingsReportStatus) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListCoverageStatistics) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetFindingsReportStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6378,9 +6545,9 @@ func (m *awsRestjson1_deserializeOpListCoverageStatistics) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListCoverageStatistics(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetFindingsReportStatus(response, &metadata)
}
- output := &ListCoverageStatisticsOutput{}
+ output := &GetFindingsReportStatusOutput{}
out.Result = output
var buff [1024]byte
@@ -6401,7 +6568,7 @@ func (m *awsRestjson1_deserializeOpListCoverageStatistics) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListCoverageStatisticsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetFindingsReportStatusOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6415,7 +6582,7 @@ func (m *awsRestjson1_deserializeOpListCoverageStatistics) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListCoverageStatistics(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetFindingsReportStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6456,9 +6623,15 @@ func awsRestjson1_deserializeOpErrorListCoverageStatistics(response *smithyhttp.
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -6475,7 +6648,7 @@ func awsRestjson1_deserializeOpErrorListCoverageStatistics(response *smithyhttp.
}
}
-func awsRestjson1_deserializeOpDocumentListCoverageStatisticsOutput(v **ListCoverageStatisticsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetFindingsReportStatusOutput(v **GetFindingsReportStatusOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6488,40 +6661,59 @@ func awsRestjson1_deserializeOpDocumentListCoverageStatisticsOutput(v **ListCove
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListCoverageStatisticsOutput
+ var sv *GetFindingsReportStatusOutput
if *v == nil {
- sv = &ListCoverageStatisticsOutput{}
+ sv = &GetFindingsReportStatusOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "countsByGroup":
- if err := awsRestjson1_deserializeDocumentCountsList(&sv.CountsByGroup, value); err != nil {
+ case "destination":
+ if err := awsRestjson1_deserializeDocumentDestination(&sv.Destination, value); err != nil {
return err
}
- case "nextToken":
+ case "errorCode":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ReportingErrorCode to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.ErrorCode = types.ReportingErrorCode(jtv)
}
- case "totalCounts":
+ case "errorMessage":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value)
}
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ sv.ErrorMessage = ptr.String(jtv)
+ }
+
+ case "filterCriteria":
+ if err := awsRestjson1_deserializeDocumentFilterCriteria(&sv.FilterCriteria, value); err != nil {
+ return err
+ }
+
+ case "reportId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
}
- sv.TotalCounts = ptr.Int64(i64)
+ sv.ReportId = ptr.String(jtv)
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ExternalReportStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.ExternalReportStatus(jtv)
}
default:
@@ -6533,14 +6725,14 @@ func awsRestjson1_deserializeOpDocumentListCoverageStatisticsOutput(v **ListCove
return nil
}
-type awsRestjson1_deserializeOpListDelegatedAdminAccounts struct {
+type awsRestjson1_deserializeOpGetMember struct {
}
-func (*awsRestjson1_deserializeOpListDelegatedAdminAccounts) ID() string {
+func (*awsRestjson1_deserializeOpGetMember) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListDelegatedAdminAccounts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetMember) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6558,9 +6750,9 @@ func (m *awsRestjson1_deserializeOpListDelegatedAdminAccounts) HandleDeserialize
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListDelegatedAdminAccounts(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetMember(response, &metadata)
}
- output := &ListDelegatedAdminAccountsOutput{}
+ output := &GetMemberOutput{}
out.Result = output
var buff [1024]byte
@@ -6581,7 +6773,7 @@ func (m *awsRestjson1_deserializeOpListDelegatedAdminAccounts) HandleDeserialize
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListDelegatedAdminAccountsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetMemberOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6595,7 +6787,7 @@ func (m *awsRestjson1_deserializeOpListDelegatedAdminAccounts) HandleDeserialize
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListDelegatedAdminAccounts(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetMember(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6642,6 +6834,9 @@ func awsRestjson1_deserializeOpErrorListDelegatedAdminAccounts(response *smithyh
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -6658,7 +6853,7 @@ func awsRestjson1_deserializeOpErrorListDelegatedAdminAccounts(response *smithyh
}
}
-func awsRestjson1_deserializeOpDocumentListDelegatedAdminAccountsOutput(v **ListDelegatedAdminAccountsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetMemberOutput(v **GetMemberOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6671,29 +6866,20 @@ func awsRestjson1_deserializeOpDocumentListDelegatedAdminAccountsOutput(v **List
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListDelegatedAdminAccountsOutput
+ var sv *GetMemberOutput
if *v == nil {
- sv = &ListDelegatedAdminAccountsOutput{}
+ sv = &GetMemberOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "delegatedAdminAccounts":
- if err := awsRestjson1_deserializeDocumentDelegatedAdminAccountList(&sv.DelegatedAdminAccounts, value); err != nil {
+ case "member":
+ if err := awsRestjson1_deserializeDocumentMember(&sv.Member, value); err != nil {
return err
}
- case "nextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
default:
_, _ = key, value
@@ -6703,14 +6889,14 @@ func awsRestjson1_deserializeOpDocumentListDelegatedAdminAccountsOutput(v **List
return nil
}
-type awsRestjson1_deserializeOpListFilters struct {
+type awsRestjson1_deserializeOpGetSbomExport struct {
}
-func (*awsRestjson1_deserializeOpListFilters) ID() string {
+func (*awsRestjson1_deserializeOpGetSbomExport) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListFilters) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetSbomExport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6728,9 +6914,9 @@ func (m *awsRestjson1_deserializeOpListFilters) HandleDeserialize(ctx context.Co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListFilters(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetSbomExport(response, &metadata)
}
- output := &ListFiltersOutput{}
+ output := &GetSbomExportOutput{}
out.Result = output
var buff [1024]byte
@@ -6751,7 +6937,7 @@ func (m *awsRestjson1_deserializeOpListFilters) HandleDeserialize(ctx context.Co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListFiltersOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetSbomExportOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6765,7 +6951,7 @@ func (m *awsRestjson1_deserializeOpListFilters) HandleDeserialize(ctx context.Co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListFilters(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetSbomExport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6812,6 +6998,9 @@ func awsRestjson1_deserializeOpErrorListFilters(response *smithyhttp.Response, m
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -6828,7 +7017,7 @@ func awsRestjson1_deserializeOpErrorListFilters(response *smithyhttp.Response, m
}
}
-func awsRestjson1_deserializeOpDocumentListFiltersOutput(v **ListFiltersOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetSbomExportOutput(v **GetSbomExportOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6841,27 +7030,68 @@ func awsRestjson1_deserializeOpDocumentListFiltersOutput(v **ListFiltersOutput,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListFiltersOutput
+ var sv *GetSbomExportOutput
if *v == nil {
- sv = &ListFiltersOutput{}
+ sv = &GetSbomExportOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "filters":
- if err := awsRestjson1_deserializeDocumentFilterList(&sv.Filters, value); err != nil {
+ case "errorCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ReportingErrorCode to be of type string, got %T instead", value)
+ }
+ sv.ErrorCode = types.ReportingErrorCode(jtv)
+ }
+
+ case "errorMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ErrorMessage = ptr.String(jtv)
+ }
+
+ case "filterCriteria":
+ if err := awsRestjson1_deserializeDocumentResourceFilterCriteria(&sv.FilterCriteria, value); err != nil {
return err
}
- case "nextToken":
+ case "format":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected SbomReportFormat to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.Format = types.SbomReportFormat(jtv)
+ }
+
+ case "reportId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ReportId to be of type string, got %T instead", value)
+ }
+ sv.ReportId = ptr.String(jtv)
+ }
+
+ case "s3Destination":
+ if err := awsRestjson1_deserializeDocumentDestination(&sv.S3Destination, value); err != nil {
+ return err
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ExternalReportStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.ExternalReportStatus(jtv)
}
default:
@@ -6873,14 +7103,14 @@ func awsRestjson1_deserializeOpDocumentListFiltersOutput(v **ListFiltersOutput,
return nil
}
-type awsRestjson1_deserializeOpListFindingAggregations struct {
+type awsRestjson1_deserializeOpListAccountPermissions struct {
}
-func (*awsRestjson1_deserializeOpListFindingAggregations) ID() string {
+func (*awsRestjson1_deserializeOpListAccountPermissions) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListFindingAggregations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListAccountPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6898,9 +7128,9 @@ func (m *awsRestjson1_deserializeOpListFindingAggregations) HandleDeserialize(ct
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListFindingAggregations(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListAccountPermissions(response, &metadata)
}
- output := &ListFindingAggregationsOutput{}
+ output := &ListAccountPermissionsOutput{}
out.Result = output
var buff [1024]byte
@@ -6921,7 +7151,7 @@ func (m *awsRestjson1_deserializeOpListFindingAggregations) HandleDeserialize(ct
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListFindingAggregationsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListAccountPermissionsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6935,7 +7165,7 @@ func (m *awsRestjson1_deserializeOpListFindingAggregations) HandleDeserialize(ct
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListFindingAggregations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListAccountPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6976,6 +7206,9 @@ func awsRestjson1_deserializeOpErrorListFindingAggregations(response *smithyhttp
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -6995,7 +7228,7 @@ func awsRestjson1_deserializeOpErrorListFindingAggregations(response *smithyhttp
}
}
-func awsRestjson1_deserializeOpDocumentListFindingAggregationsOutput(v **ListFindingAggregationsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListAccountPermissionsOutput(v **ListAccountPermissionsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -7008,24 +7241,15 @@ func awsRestjson1_deserializeOpDocumentListFindingAggregationsOutput(v **ListFin
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListFindingAggregationsOutput
+ var sv *ListAccountPermissionsOutput
if *v == nil {
- sv = &ListFindingAggregationsOutput{}
+ sv = &ListAccountPermissionsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "aggregationType":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AggregationType to be of type string, got %T instead", value)
- }
- sv.AggregationType = types.AggregationType(jtv)
- }
-
case "nextToken":
if value != nil {
jtv, ok := value.(string)
@@ -7035,8 +7259,8 @@ func awsRestjson1_deserializeOpDocumentListFindingAggregationsOutput(v **ListFin
sv.NextToken = ptr.String(jtv)
}
- case "responses":
- if err := awsRestjson1_deserializeDocumentAggregationResponseList(&sv.Responses, value); err != nil {
+ case "permissions":
+ if err := awsRestjson1_deserializeDocumentPermissions(&sv.Permissions, value); err != nil {
return err
}
@@ -7049,14 +7273,14 @@ func awsRestjson1_deserializeOpDocumentListFindingAggregationsOutput(v **ListFin
return nil
}
-type awsRestjson1_deserializeOpListFindings struct {
+type awsRestjson1_deserializeOpListCisScanConfigurations struct {
}
-func (*awsRestjson1_deserializeOpListFindings) ID() string {
+func (*awsRestjson1_deserializeOpListCisScanConfigurations) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListFindings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCisScanConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7074,9 +7298,9 @@ func (m *awsRestjson1_deserializeOpListFindings) HandleDeserialize(ctx context.C
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListFindings(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCisScanConfigurations(response, &metadata)
}
- output := &ListFindingsOutput{}
+ output := &ListCisScanConfigurationsOutput{}
out.Result = output
var buff [1024]byte
@@ -7097,7 +7321,7 @@ func (m *awsRestjson1_deserializeOpListFindings) HandleDeserialize(ctx context.C
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListFindingsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListCisScanConfigurationsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -7111,7 +7335,7 @@ func (m *awsRestjson1_deserializeOpListFindings) HandleDeserialize(ctx context.C
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListFindings(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListCisScanConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7152,6 +7376,9 @@ func awsRestjson1_deserializeOpErrorListFindings(response *smithyhttp.Response,
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -7171,7 +7398,7 @@ func awsRestjson1_deserializeOpErrorListFindings(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListCisScanConfigurationsOutput(v **ListCisScanConfigurationsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -7184,20 +7411,15 @@ func awsRestjson1_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListFindingsOutput
+ var sv *ListCisScanConfigurationsOutput
if *v == nil {
- sv = &ListFindingsOutput{}
+ sv = &ListCisScanConfigurationsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "findings":
- if err := awsRestjson1_deserializeDocumentFindingList(&sv.Findings, value); err != nil {
- return err
- }
-
case "nextToken":
if value != nil {
jtv, ok := value.(string)
@@ -7207,6 +7429,11 @@ func awsRestjson1_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput
sv.NextToken = ptr.String(jtv)
}
+ case "scanConfigurations":
+ if err := awsRestjson1_deserializeDocumentCisScanConfigurationList(&sv.ScanConfigurations, value); err != nil {
+ return err
+ }
+
default:
_, _ = key, value
@@ -7216,14 +7443,14 @@ func awsRestjson1_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput
return nil
}
-type awsRestjson1_deserializeOpListMembers struct {
+type awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks struct {
}
-func (*awsRestjson1_deserializeOpListMembers) ID() string {
+func (*awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByChecks) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7241,9 +7468,9 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListMembers(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByChecks(response, &metadata)
}
- output := &ListMembersOutput{}
+ output := &ListCisScanResultsAggregatedByChecksOutput{}
out.Result = output
var buff [1024]byte
@@ -7264,7 +7491,7 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListMembersOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByChecksOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -7278,7 +7505,7 @@ func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByChecks(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7341,7 +7568,7 @@ func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, m
}
}
-func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByChecksOutput(v **ListCisScanResultsAggregatedByChecksOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -7354,17 +7581,17 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListMembersOutput
+ var sv *ListCisScanResultsAggregatedByChecksOutput
if *v == nil {
- sv = &ListMembersOutput{}
+ sv = &ListCisScanResultsAggregatedByChecksOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "members":
- if err := awsRestjson1_deserializeDocumentMemberList(&sv.Members, value); err != nil {
+ case "checkAggregations":
+ if err := awsRestjson1_deserializeDocumentCisCheckAggregationList(&sv.CheckAggregations, value); err != nil {
return err
}
@@ -7386,14 +7613,14 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput,
return nil
}
-type awsRestjson1_deserializeOpListTagsForResource struct {
+type awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource struct {
}
-func (*awsRestjson1_deserializeOpListTagsForResource) ID() string {
+func (*awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCisScanResultsAggregatedByTargetResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7411,9 +7638,9 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByTargetResource(response, &metadata)
}
- output := &ListTagsForResourceOutput{}
+ output := &ListCisScanResultsAggregatedByTargetResourceOutput{}
out.Result = output
var buff [1024]byte
@@ -7434,7 +7661,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByTargetResourceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -7448,7 +7675,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListCisScanResultsAggregatedByTargetResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7489,12 +7716,12 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -7511,7 +7738,7 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res
}
}
-func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListCisScanResultsAggregatedByTargetResourceOutput(v **ListCisScanResultsAggregatedByTargetResourceOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -7524,17 +7751,26 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListTagsForResourceOutput
+ var sv *ListCisScanResultsAggregatedByTargetResourceOutput
if *v == nil {
- sv = &ListTagsForResourceOutput{}
+ sv = &ListCisScanResultsAggregatedByTargetResourceOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "tags":
- if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "targetResourceAggregations":
+ if err := awsRestjson1_deserializeDocumentCisTargetResourceAggregationList(&sv.TargetResourceAggregations, value); err != nil {
return err
}
@@ -7547,14 +7783,14 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor
return nil
}
-type awsRestjson1_deserializeOpListUsageTotals struct {
+type awsRestjson1_deserializeOpListCisScans struct {
}
-func (*awsRestjson1_deserializeOpListUsageTotals) ID() string {
+func (*awsRestjson1_deserializeOpListCisScans) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListUsageTotals) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCisScans) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7572,9 +7808,9 @@ func (m *awsRestjson1_deserializeOpListUsageTotals) HandleDeserialize(ctx contex
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListUsageTotals(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCisScans(response, &metadata)
}
- output := &ListUsageTotalsOutput{}
+ output := &ListCisScansOutput{}
out.Result = output
var buff [1024]byte
@@ -7595,7 +7831,7 @@ func (m *awsRestjson1_deserializeOpListUsageTotals) HandleDeserialize(ctx contex
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListUsageTotalsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListCisScansOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -7609,7 +7845,7 @@ func (m *awsRestjson1_deserializeOpListUsageTotals) HandleDeserialize(ctx contex
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListUsageTotals(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListCisScans(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7672,7 +7908,7 @@ func awsRestjson1_deserializeOpErrorListUsageTotals(response *smithyhttp.Respons
}
}
-func awsRestjson1_deserializeOpDocumentListUsageTotalsOutput(v **ListUsageTotalsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListCisScansOutput(v **ListCisScansOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -7685,9 +7921,9 @@ func awsRestjson1_deserializeOpDocumentListUsageTotalsOutput(v **ListUsageTotals
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListUsageTotalsOutput
+ var sv *ListCisScansOutput
if *v == nil {
- sv = &ListUsageTotalsOutput{}
+ sv = &ListCisScansOutput{}
} else {
sv = *v
}
@@ -7698,13 +7934,13 @@ func awsRestjson1_deserializeOpDocumentListUsageTotalsOutput(v **ListUsageTotals
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ListUsageTotalsNextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
}
sv.NextToken = ptr.String(jtv)
}
- case "totals":
- if err := awsRestjson1_deserializeDocumentUsageTotalList(&sv.Totals, value); err != nil {
+ case "scans":
+ if err := awsRestjson1_deserializeDocumentCisScanList(&sv.Scans, value); err != nil {
return err
}
@@ -7717,14 +7953,14 @@ func awsRestjson1_deserializeOpDocumentListUsageTotalsOutput(v **ListUsageTotals
return nil
}
-type awsRestjson1_deserializeOpResetEncryptionKey struct {
+type awsRestjson1_deserializeOpListCodeSecurityIntegrations struct {
}
-func (*awsRestjson1_deserializeOpResetEncryptionKey) ID() string {
+func (*awsRestjson1_deserializeOpListCodeSecurityIntegrations) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpResetEncryptionKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCodeSecurityIntegrations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7742,16 +7978,44 @@ func (m *awsRestjson1_deserializeOpResetEncryptionKey) HandleDeserialize(ctx con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorResetEncryptionKey(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCodeSecurityIntegrations(response, &metadata)
}
- output := &ResetEncryptionKeyOutput{}
+ output := &ListCodeSecurityIntegrationsOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListCodeSecurityIntegrationsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorResetEncryptionKey(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListCodeSecurityIntegrations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7798,9 +8062,6 @@ func awsRestjson1_deserializeOpErrorResetEncryptionKey(response *smithyhttp.Resp
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -7817,14 +8078,59 @@ func awsRestjson1_deserializeOpErrorResetEncryptionKey(response *smithyhttp.Resp
}
}
-type awsRestjson1_deserializeOpSearchVulnerabilities struct {
+func awsRestjson1_deserializeOpDocumentListCodeSecurityIntegrationsOutput(v **ListCodeSecurityIntegrationsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListCodeSecurityIntegrationsOutput
+ if *v == nil {
+ sv = &ListCodeSecurityIntegrationsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "integrations":
+ if err := awsRestjson1_deserializeDocumentIntegrationSummaries(&sv.Integrations, value); err != nil {
+ return err
+ }
+
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpSearchVulnerabilities) ID() string {
+type awsRestjson1_deserializeOpListCodeSecurityScanConfigurationAssociations struct {
+}
+
+func (*awsRestjson1_deserializeOpListCodeSecurityScanConfigurationAssociations) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpSearchVulnerabilities) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCodeSecurityScanConfigurationAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7842,9 +8148,9 @@ func (m *awsRestjson1_deserializeOpSearchVulnerabilities) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorSearchVulnerabilities(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCodeSecurityScanConfigurationAssociations(response, &metadata)
}
- output := &SearchVulnerabilitiesOutput{}
+ output := &ListCodeSecurityScanConfigurationAssociationsOutput{}
out.Result = output
var buff [1024]byte
@@ -7865,7 +8171,7 @@ func (m *awsRestjson1_deserializeOpSearchVulnerabilities) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentSearchVulnerabilitiesOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListCodeSecurityScanConfigurationAssociationsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -7879,7 +8185,7 @@ func (m *awsRestjson1_deserializeOpSearchVulnerabilities) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorSearchVulnerabilities(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListCodeSecurityScanConfigurationAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7926,6 +8232,9 @@ func awsRestjson1_deserializeOpErrorSearchVulnerabilities(response *smithyhttp.R
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -7942,7 +8251,7 @@ func awsRestjson1_deserializeOpErrorSearchVulnerabilities(response *smithyhttp.R
}
}
-func awsRestjson1_deserializeOpDocumentSearchVulnerabilitiesOutput(v **SearchVulnerabilitiesOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListCodeSecurityScanConfigurationAssociationsOutput(v **ListCodeSecurityScanConfigurationAssociationsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -7955,15 +8264,20 @@ func awsRestjson1_deserializeOpDocumentSearchVulnerabilitiesOutput(v **SearchVul
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *SearchVulnerabilitiesOutput
+ var sv *ListCodeSecurityScanConfigurationAssociationsOutput
if *v == nil {
- sv = &SearchVulnerabilitiesOutput{}
+ sv = &ListCodeSecurityScanConfigurationAssociationsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
+ case "associations":
+ if err := awsRestjson1_deserializeDocumentCodeSecurityScanConfigurationAssociationSummaries(&sv.Associations, value); err != nil {
+ return err
+ }
+
case "nextToken":
if value != nil {
jtv, ok := value.(string)
@@ -7973,11 +8287,6 @@ func awsRestjson1_deserializeOpDocumentSearchVulnerabilitiesOutput(v **SearchVul
sv.NextToken = ptr.String(jtv)
}
- case "vulnerabilities":
- if err := awsRestjson1_deserializeDocumentVulnerabilities(&sv.Vulnerabilities, value); err != nil {
- return err
- }
-
default:
_, _ = key, value
@@ -7987,14 +8296,14 @@ func awsRestjson1_deserializeOpDocumentSearchVulnerabilitiesOutput(v **SearchVul
return nil
}
-type awsRestjson1_deserializeOpSendCisSessionHealth struct {
+type awsRestjson1_deserializeOpListCodeSecurityScanConfigurations struct {
}
-func (*awsRestjson1_deserializeOpSendCisSessionHealth) ID() string {
+func (*awsRestjson1_deserializeOpListCodeSecurityScanConfigurations) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpSendCisSessionHealth) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCodeSecurityScanConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8012,23 +8321,51 @@ func (m *awsRestjson1_deserializeOpSendCisSessionHealth) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorSendCisSessionHealth(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCodeSecurityScanConfigurations(response, &metadata)
}
- output := &SendCisSessionHealthOutput{}
+ output := &ListCodeSecurityScanConfigurationsOutput{}
out.Result = output
- span.End()
- return out, metadata, err
-}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
-func awsRestjson1_deserializeOpErrorSendCisSessionHealth(response *smithyhttp.Response, metadata *middleware.Metadata) error {
- var errorBuffer bytes.Buffer
- if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
- }
- errorBody := bytes.NewReader(errorBuffer.Bytes())
+ body := io.TeeReader(response.Body, ringBuffer)
- errorCode := "UnknownError"
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListCodeSecurityScanConfigurationsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListCodeSecurityScanConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
@@ -8065,12 +8402,12 @@ func awsRestjson1_deserializeOpErrorSendCisSessionHealth(response *smithyhttp.Re
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("ConflictException", errorCode):
- return awsRestjson1_deserializeErrorConflictException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -8087,14 +8424,59 @@ func awsRestjson1_deserializeOpErrorSendCisSessionHealth(response *smithyhttp.Re
}
}
-type awsRestjson1_deserializeOpSendCisSessionTelemetry struct {
+func awsRestjson1_deserializeOpDocumentListCodeSecurityScanConfigurationsOutput(v **ListCodeSecurityScanConfigurationsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListCodeSecurityScanConfigurationsOutput
+ if *v == nil {
+ sv = &ListCodeSecurityScanConfigurationsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "configurations":
+ if err := awsRestjson1_deserializeDocumentCodeSecurityScanConfigurationSummaries(&sv.Configurations, value); err != nil {
+ return err
+ }
+
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpSendCisSessionTelemetry) ID() string {
+type awsRestjson1_deserializeOpListCoverage struct {
+}
+
+func (*awsRestjson1_deserializeOpListCoverage) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpSendCisSessionTelemetry) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCoverage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8112,16 +8494,44 @@ func (m *awsRestjson1_deserializeOpSendCisSessionTelemetry) HandleDeserialize(ct
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorSendCisSessionTelemetry(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCoverage(response, &metadata)
}
- output := &SendCisSessionTelemetryOutput{}
+ output := &ListCoverageOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListCoverageOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorSendCisSessionTelemetry(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListCoverage(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8162,12 +8572,6 @@ func awsRestjson1_deserializeOpErrorSendCisSessionTelemetry(response *smithyhttp
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
- case strings.EqualFold("ConflictException", errorCode):
- return awsRestjson1_deserializeErrorConflictException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -8187,14 +8591,59 @@ func awsRestjson1_deserializeOpErrorSendCisSessionTelemetry(response *smithyhttp
}
}
-type awsRestjson1_deserializeOpStartCisSession struct {
+func awsRestjson1_deserializeOpDocumentListCoverageOutput(v **ListCoverageOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListCoverageOutput
+ if *v == nil {
+ sv = &ListCoverageOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "coveredResources":
+ if err := awsRestjson1_deserializeDocumentCoveredResources(&sv.CoveredResources, value); err != nil {
+ return err
+ }
+
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpStartCisSession) ID() string {
+type awsRestjson1_deserializeOpListCoverageStatistics struct {
+}
+
+func (*awsRestjson1_deserializeOpListCoverageStatistics) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpStartCisSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListCoverageStatistics) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8212,16 +8661,44 @@ func (m *awsRestjson1_deserializeOpStartCisSession) HandleDeserialize(ctx contex
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorStartCisSession(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListCoverageStatistics(response, &metadata)
}
- output := &StartCisSessionOutput{}
+ output := &ListCoverageStatisticsOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListCoverageStatisticsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorStartCisSession(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListCoverageStatistics(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8262,12 +8739,6 @@ func awsRestjson1_deserializeOpErrorStartCisSession(response *smithyhttp.Respons
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
- case strings.EqualFold("ConflictException", errorCode):
- return awsRestjson1_deserializeErrorConflictException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -8287,114 +8758,72 @@ func awsRestjson1_deserializeOpErrorStartCisSession(response *smithyhttp.Respons
}
}
-type awsRestjson1_deserializeOpStopCisSession struct {
-}
-
-func (*awsRestjson1_deserializeOpStopCisSession) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsRestjson1_deserializeOpStopCisSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, in)
- if err != nil {
- return out, metadata, err
+func awsRestjson1_deserializeOpDocumentListCoverageStatisticsOutput(v **ListCoverageStatisticsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
}
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
+ shape, ok := value.(map[string]interface{})
if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ return fmt.Errorf("unexpected JSON type %v", value)
}
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorStopCisSession(response, &metadata)
+ var sv *ListCoverageStatisticsOutput
+ if *v == nil {
+ sv = &ListCoverageStatisticsOutput{}
+ } else {
+ sv = *v
}
- output := &StopCisSessionOutput{}
- out.Result = output
-
- span.End()
- return out, metadata, err
-}
-func awsRestjson1_deserializeOpErrorStopCisSession(response *smithyhttp.Response, metadata *middleware.Metadata) error {
- var errorBuffer bytes.Buffer
- if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
- }
- errorBody := bytes.NewReader(errorBuffer.Bytes())
-
- errorCode := "UnknownError"
- errorMessage := errorCode
-
- headerCode := response.Header.Get("X-Amzn-ErrorType")
- if len(headerCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(headerCode)
- }
-
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(errorBody, ringBuffer)
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- jsonCode, message, err := restjson.GetErrorInfo(decoder)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return err
- }
-
- errorBody.Seek(0, io.SeekStart)
- if len(headerCode) == 0 && len(jsonCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(jsonCode)
- }
- if len(message) != 0 {
- errorMessage = message
- }
-
- switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
- case strings.EqualFold("ConflictException", errorCode):
- return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+ for key, value := range shape {
+ switch key {
+ case "countsByGroup":
+ if err := awsRestjson1_deserializeDocumentCountsList(&sv.CountsByGroup, value); err != nil {
+ return err
+ }
- case strings.EqualFold("InternalServerException", errorCode):
- return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
- case strings.EqualFold("ThrottlingException", errorCode):
- return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+ case "totalCounts":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalCounts = ptr.Int64(i64)
+ }
- case strings.EqualFold("ValidationException", errorCode):
- return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+ default:
+ _, _ = key, value
- default:
- genericError := &smithy.GenericAPIError{
- Code: errorCode,
- Message: errorMessage,
}
- return genericError
-
}
+ *v = sv
+ return nil
}
-type awsRestjson1_deserializeOpTagResource struct {
+type awsRestjson1_deserializeOpListDelegatedAdminAccounts struct {
}
-func (*awsRestjson1_deserializeOpTagResource) ID() string {
+func (*awsRestjson1_deserializeOpListDelegatedAdminAccounts) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListDelegatedAdminAccounts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8412,16 +8841,44 @@ func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListDelegatedAdminAccounts(response, &metadata)
}
- output := &TagResourceOutput{}
+ output := &ListDelegatedAdminAccountsOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListDelegatedAdminAccountsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListDelegatedAdminAccounts(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8462,15 +8919,12 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m
}
switch {
- case strings.EqualFold("BadRequestException", errorCode):
- return awsRestjson1_deserializeErrorBadRequestException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -8487,14 +8941,59 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m
}
}
-type awsRestjson1_deserializeOpUntagResource struct {
+func awsRestjson1_deserializeOpDocumentListDelegatedAdminAccountsOutput(v **ListDelegatedAdminAccountsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListDelegatedAdminAccountsOutput
+ if *v == nil {
+ sv = &ListDelegatedAdminAccountsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "delegatedAdminAccounts":
+ if err := awsRestjson1_deserializeDocumentDelegatedAdminAccountList(&sv.DelegatedAdminAccounts, value); err != nil {
+ return err
+ }
+
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpUntagResource) ID() string {
+type awsRestjson1_deserializeOpListFilters struct {
+}
+
+func (*awsRestjson1_deserializeOpListFilters) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListFilters) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8512,16 +9011,44 @@ func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListFilters(response, &metadata)
}
- output := &UntagResourceOutput{}
+ output := &ListFiltersOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListFiltersOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListFilters(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8562,12 +9089,12 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response,
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -8584,34 +9111,79 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response,
}
}
-type awsRestjson1_deserializeOpUpdateCisScanConfiguration struct {
-}
-
-func (*awsRestjson1_deserializeOpUpdateCisScanConfiguration) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsRestjson1_deserializeOpUpdateCisScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, in)
- if err != nil {
- return out, metadata, err
+func awsRestjson1_deserializeOpDocumentListFiltersOutput(v **ListFiltersOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
}
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
+ shape, ok := value.(map[string]interface{})
if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ return fmt.Errorf("unexpected JSON type %v", value)
}
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateCisScanConfiguration(response, &metadata)
- }
- output := &UpdateCisScanConfigurationOutput{}
+ var sv *ListFiltersOutput
+ if *v == nil {
+ sv = &ListFiltersOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "filters":
+ if err := awsRestjson1_deserializeDocumentFilterList(&sv.Filters, value); err != nil {
+ return err
+ }
+
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListFindingAggregations struct {
+}
+
+func (*awsRestjson1_deserializeOpListFindingAggregations) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListFindingAggregations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListFindingAggregations(response, &metadata)
+ }
+ output := &ListFindingAggregationsOutput{}
out.Result = output
var buff [1024]byte
@@ -8632,7 +9204,7 @@ func (m *awsRestjson1_deserializeOpUpdateCisScanConfiguration) HandleDeserialize
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentUpdateCisScanConfigurationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListFindingAggregationsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -8646,7 +9218,7 @@ func (m *awsRestjson1_deserializeOpUpdateCisScanConfiguration) HandleDeserialize
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateCisScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListFindingAggregations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8687,15 +9259,9 @@ func awsRestjson1_deserializeOpErrorUpdateCisScanConfiguration(response *smithyh
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -8712,7 +9278,7 @@ func awsRestjson1_deserializeOpErrorUpdateCisScanConfiguration(response *smithyh
}
}
-func awsRestjson1_deserializeOpDocumentUpdateCisScanConfigurationOutput(v **UpdateCisScanConfigurationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListFindingAggregationsOutput(v **ListFindingAggregationsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -8725,22 +9291,36 @@ func awsRestjson1_deserializeOpDocumentUpdateCisScanConfigurationOutput(v **Upda
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *UpdateCisScanConfigurationOutput
+ var sv *ListFindingAggregationsOutput
if *v == nil {
- sv = &UpdateCisScanConfigurationOutput{}
+ sv = &ListFindingAggregationsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "scanConfigurationArn":
+ case "aggregationType":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AggregationType to be of type string, got %T instead", value)
}
- sv.ScanConfigurationArn = ptr.String(jtv)
+ sv.AggregationType = types.AggregationType(jtv)
+ }
+
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "responses":
+ if err := awsRestjson1_deserializeDocumentAggregationResponseList(&sv.Responses, value); err != nil {
+ return err
}
default:
@@ -8752,14 +9332,14 @@ func awsRestjson1_deserializeOpDocumentUpdateCisScanConfigurationOutput(v **Upda
return nil
}
-type awsRestjson1_deserializeOpUpdateConfiguration struct {
+type awsRestjson1_deserializeOpListFindings struct {
}
-func (*awsRestjson1_deserializeOpUpdateConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpListFindings) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListFindings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8777,16 +9357,44 @@ func (m *awsRestjson1_deserializeOpUpdateConfiguration) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListFindings(response, &metadata)
}
- output := &UpdateConfigurationOutput{}
+ output := &ListFindingsOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListFindingsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListFindings(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8827,9 +9435,6 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguration(response *smithyhttp.Res
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -8849,14 +9454,59 @@ func awsRestjson1_deserializeOpErrorUpdateConfiguration(response *smithyhttp.Res
}
}
-type awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration struct {
+func awsRestjson1_deserializeOpDocumentListFindingsOutput(v **ListFindingsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListFindingsOutput
+ if *v == nil {
+ sv = &ListFindingsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "findings":
+ if err := awsRestjson1_deserializeDocumentFindingList(&sv.Findings, value); err != nil {
+ return err
+ }
+
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration) ID() string {
+type awsRestjson1_deserializeOpListMembers struct {
+}
+
+func (*awsRestjson1_deserializeOpListMembers) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8874,9 +9524,9 @@ func (m *awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration) HandleD
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateEc2DeepInspectionConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListMembers(response, &metadata)
}
- output := &UpdateEc2DeepInspectionConfigurationOutput{}
+ output := &ListMembersOutput{}
out.Result = output
var buff [1024]byte
@@ -8897,7 +9547,7 @@ func (m *awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration) HandleD
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentUpdateEc2DeepInspectionConfigurationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListMembersOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -8911,7 +9561,7 @@ func (m *awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration) HandleD
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateEc2DeepInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8974,7 +9624,7 @@ func awsRestjson1_deserializeOpErrorUpdateEc2DeepInspectionConfiguration(respons
}
}
-func awsRestjson1_deserializeOpDocumentUpdateEc2DeepInspectionConfigurationOutput(v **UpdateEc2DeepInspectionConfigurationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -8987,41 +9637,27 @@ func awsRestjson1_deserializeOpDocumentUpdateEc2DeepInspectionConfigurationOutpu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *UpdateEc2DeepInspectionConfigurationOutput
+ var sv *ListMembersOutput
if *v == nil {
- sv = &UpdateEc2DeepInspectionConfigurationOutput{}
+ sv = &ListMembersOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "errorMessage":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ErrorMessage = ptr.String(jtv)
- }
-
- case "orgPackagePaths":
- if err := awsRestjson1_deserializeDocumentPathList(&sv.OrgPackagePaths, value); err != nil {
- return err
- }
-
- case "packagePaths":
- if err := awsRestjson1_deserializeDocumentPathList(&sv.PackagePaths, value); err != nil {
+ case "members":
+ if err := awsRestjson1_deserializeDocumentMemberList(&sv.Members, value); err != nil {
return err
}
- case "status":
+ case "nextToken":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Ec2DeepInspectionStatus to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
}
- sv.Status = types.Ec2DeepInspectionStatus(jtv)
+ sv.NextToken = ptr.String(jtv)
}
default:
@@ -9033,14 +9669,14 @@ func awsRestjson1_deserializeOpDocumentUpdateEc2DeepInspectionConfigurationOutpu
return nil
}
-type awsRestjson1_deserializeOpUpdateEncryptionKey struct {
+type awsRestjson1_deserializeOpListTagsForResource struct {
}
-func (*awsRestjson1_deserializeOpUpdateEncryptionKey) ID() string {
+func (*awsRestjson1_deserializeOpListTagsForResource) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateEncryptionKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -9058,115 +9694,15 @@ func (m *awsRestjson1_deserializeOpUpdateEncryptionKey) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateEncryptionKey(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata)
}
- output := &UpdateEncryptionKeyOutput{}
+ output := &ListTagsForResourceOutput{}
out.Result = output
- span.End()
- return out, metadata, err
-}
-
-func awsRestjson1_deserializeOpErrorUpdateEncryptionKey(response *smithyhttp.Response, metadata *middleware.Metadata) error {
- var errorBuffer bytes.Buffer
- if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
- }
- errorBody := bytes.NewReader(errorBuffer.Bytes())
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
- errorCode := "UnknownError"
- errorMessage := errorCode
-
- headerCode := response.Header.Get("X-Amzn-ErrorType")
- if len(headerCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(headerCode)
- }
-
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(errorBody, ringBuffer)
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- jsonCode, message, err := restjson.GetErrorInfo(decoder)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return err
- }
-
- errorBody.Seek(0, io.SeekStart)
- if len(headerCode) == 0 && len(jsonCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(jsonCode)
- }
- if len(message) != 0 {
- errorMessage = message
- }
-
- switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
- case strings.EqualFold("InternalServerException", errorCode):
- return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
-
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
- case strings.EqualFold("ThrottlingException", errorCode):
- return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
-
- case strings.EqualFold("ValidationException", errorCode):
- return awsRestjson1_deserializeErrorValidationException(response, errorBody)
-
- default:
- genericError := &smithy.GenericAPIError{
- Code: errorCode,
- Message: errorMessage,
- }
- return genericError
-
- }
-}
-
-type awsRestjson1_deserializeOpUpdateFilter struct {
-}
-
-func (*awsRestjson1_deserializeOpUpdateFilter) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsRestjson1_deserializeOpUpdateFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, in)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateFilter(response, &metadata)
- }
- output := &UpdateFilterOutput{}
- out.Result = output
-
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
+ body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
@@ -9181,7 +9717,7 @@ func (m *awsRestjson1_deserializeOpUpdateFilter) HandleDeserialize(ctx context.C
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentUpdateFilterOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9195,7 +9731,7 @@ func (m *awsRestjson1_deserializeOpUpdateFilter) HandleDeserialize(ctx context.C
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -9236,9 +9772,6 @@ func awsRestjson1_deserializeOpErrorUpdateFilter(response *smithyhttp.Response,
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
@@ -9261,7 +9794,7 @@ func awsRestjson1_deserializeOpErrorUpdateFilter(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentUpdateFilterOutput(v **UpdateFilterOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9274,22 +9807,18 @@ func awsRestjson1_deserializeOpDocumentUpdateFilterOutput(v **UpdateFilterOutput
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *UpdateFilterOutput
+ var sv *ListTagsForResourceOutput
if *v == nil {
- sv = &UpdateFilterOutput{}
+ sv = &ListTagsForResourceOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "arn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected FilterArn to be of type string, got %T instead", value)
- }
- sv.Arn = ptr.String(jtv)
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
+ return err
}
default:
@@ -9301,14 +9830,14 @@ func awsRestjson1_deserializeOpDocumentUpdateFilterOutput(v **UpdateFilterOutput
return nil
}
-type awsRestjson1_deserializeOpUpdateOrganizationConfiguration struct {
+type awsRestjson1_deserializeOpListUsageTotals struct {
}
-func (*awsRestjson1_deserializeOpUpdateOrganizationConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpListUsageTotals) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateOrganizationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListUsageTotals) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -9326,9 +9855,9 @@ func (m *awsRestjson1_deserializeOpUpdateOrganizationConfiguration) HandleDeseri
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListUsageTotals(response, &metadata)
}
- output := &UpdateOrganizationConfigurationOutput{}
+ output := &ListUsageTotalsOutput{}
out.Result = output
var buff [1024]byte
@@ -9349,7 +9878,7 @@ func (m *awsRestjson1_deserializeOpUpdateOrganizationConfiguration) HandleDeseri
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentUpdateOrganizationConfigurationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentListUsageTotalsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9363,7 +9892,7 @@ func (m *awsRestjson1_deserializeOpUpdateOrganizationConfiguration) HandleDeseri
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorListUsageTotals(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -9426,7 +9955,7 @@ func awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response *sm
}
}
-func awsRestjson1_deserializeOpDocumentUpdateOrganizationConfigurationOutput(v **UpdateOrganizationConfigurationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentListUsageTotalsOutput(v **ListUsageTotalsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9439,17 +9968,26 @@ func awsRestjson1_deserializeOpDocumentUpdateOrganizationConfigurationOutput(v *
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *UpdateOrganizationConfigurationOutput
+ var sv *ListUsageTotalsOutput
if *v == nil {
- sv = &UpdateOrganizationConfigurationOutput{}
+ sv = &ListUsageTotalsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "autoEnable":
- if err := awsRestjson1_deserializeDocumentAutoEnable(&sv.AutoEnable, value); err != nil {
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ListUsageTotalsNextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "totals":
+ if err := awsRestjson1_deserializeDocumentUsageTotalList(&sv.Totals, value); err != nil {
return err
}
@@ -9462,14 +10000,14 @@ func awsRestjson1_deserializeOpDocumentUpdateOrganizationConfigurationOutput(v *
return nil
}
-type awsRestjson1_deserializeOpUpdateOrgEc2DeepInspectionConfiguration struct {
+type awsRestjson1_deserializeOpResetEncryptionKey struct {
}
-func (*awsRestjson1_deserializeOpUpdateOrgEc2DeepInspectionConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpResetEncryptionKey) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateOrgEc2DeepInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpResetEncryptionKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -9487,16 +10025,16 @@ func (m *awsRestjson1_deserializeOpUpdateOrgEc2DeepInspectionConfiguration) Hand
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateOrgEc2DeepInspectionConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorResetEncryptionKey(response, &metadata)
}
- output := &UpdateOrgEc2DeepInspectionConfigurationOutput{}
+ output := &ResetEncryptionKeyOutput{}
out.Result = output
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateOrgEc2DeepInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorResetEncryptionKey(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -9543,6 +10081,9 @@ func awsRestjson1_deserializeOpErrorUpdateOrgEc2DeepInspectionConfiguration(resp
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
@@ -9559,44 +10100,41 @@ func awsRestjson1_deserializeOpErrorUpdateOrgEc2DeepInspectionConfiguration(resp
}
}
-func awsRestjson1_deserializeOpHttpBindingsInternalServerException(v *types.InternalServerException, response *smithyhttp.Response) error {
- if v == nil {
- return fmt.Errorf("unsupported deserialization for nil %T", v)
- }
+type awsRestjson1_deserializeOpSearchVulnerabilities struct {
+}
- if headerValues := response.Header.Values("Retry-After"); len(headerValues) != 0 {
- headerValues[0] = strings.TrimSpace(headerValues[0])
- vv, err := strconv.ParseInt(headerValues[0], 0, 32)
- if err != nil {
- return err
- }
- v.RetryAfterSeconds = ptr.Int32(int32(vv))
+func (*awsRestjson1_deserializeOpSearchVulnerabilities) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpSearchVulnerabilities) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
}
- return nil
-}
-func awsRestjson1_deserializeOpHttpBindingsThrottlingException(v *types.ThrottlingException, response *smithyhttp.Response) error {
- if v == nil {
- return fmt.Errorf("unsupported deserialization for nil %T", v)
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
- if headerValues := response.Header.Values("Retry-After"); len(headerValues) != 0 {
- headerValues[0] = strings.TrimSpace(headerValues[0])
- vv, err := strconv.ParseInt(headerValues[0], 0, 32)
- if err != nil {
- return err
- }
- v.RetryAfterSeconds = ptr.Int32(int32(vv))
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorSearchVulnerabilities(response, &metadata)
}
+ output := &SearchVulnerabilitiesOutput{}
+ out.Result = output
- return nil
-}
-func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.AccessDeniedException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
- body := io.TeeReader(errorBody, ringBuffer)
+ body := io.TeeReader(response.Body, ringBuffer)
+
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
@@ -9607,36 +10145,46 @@ func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Res
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
- return err
+ return out, metadata, err
}
- err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape)
-
+ err = awsRestjson1_deserializeOpDocumentSearchVulnerabilitiesOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
- return err
}
- errorBody.Seek(0, io.SeekStart)
-
- return output
+ span.End()
+ return out, metadata, err
}
-func awsRestjson1_deserializeErrorBadRequestException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.BadRequestException{}
+func awsRestjson1_deserializeOpErrorSearchVulnerabilities(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
@@ -9646,69 +10194,139 @@ func awsRestjson1_deserializeErrorBadRequestException(response *smithyhttp.Respo
return err
}
- err := awsRestjson1_deserializeDocumentBadRequestException(&output, shape)
-
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return err
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
}
- errorBody.Seek(0, io.SeekStart)
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- return output
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
}
-func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.ConflictException{}
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
+func awsRestjson1_deserializeOpDocumentSearchVulnerabilitiesOutput(v **SearchVulnerabilitiesOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *SearchVulnerabilitiesOutput
+ if *v == nil {
+ sv = &SearchVulnerabilitiesOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "nextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "vulnerabilities":
+ if err := awsRestjson1_deserializeDocumentVulnerabilities(&sv.Vulnerabilities, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
- body := io.TeeReader(errorBody, ringBuffer)
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
}
- return err
}
+ *v = sv
+ return nil
+}
- err := awsRestjson1_deserializeDocumentConflictException(&output, shape)
+type awsRestjson1_deserializeOpSendCisSessionHealth struct {
+}
+
+func (*awsRestjson1_deserializeOpSendCisSessionHealth) ID() string {
+ return "OperationDeserializer"
+}
+func (m *awsRestjson1_deserializeOpSendCisSessionHealth) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return err
+ return out, metadata, err
}
- errorBody.Seek(0, io.SeekStart)
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
- return output
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorSendCisSessionHealth(response, &metadata)
+ }
+ output := &SendCisSessionHealthOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
}
-func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.InternalServerException{}
+func awsRestjson1_deserializeOpErrorSendCisSessionHealth(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
@@ -9718,48 +10336,96 @@ func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.R
return err
}
- err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape)
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
}
- return err
+ return genericError
+
}
+}
- errorBody.Seek(0, io.SeekStart)
+type awsRestjson1_deserializeOpSendCisSessionTelemetry struct {
+}
- if err := awsRestjson1_deserializeOpHttpBindingsInternalServerException(output, response); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response error with invalid HTTP bindings, %w", err)}
+func (*awsRestjson1_deserializeOpSendCisSessionTelemetry) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpSendCisSessionTelemetry) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
}
- return output
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorSendCisSessionTelemetry(response, &metadata)
+ }
+ output := &SendCisSessionTelemetryOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
}
-func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.ResourceNotFoundException{}
+func awsRestjson1_deserializeOpErrorSendCisSessionTelemetry(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return err
- }
-
- err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape)
-
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9771,20 +10437,96 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp
}
errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpStartCisSession struct {
+}
+
+func (*awsRestjson1_deserializeOpStartCisSession) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpStartCisSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorStartCisSession(response, &metadata)
+ }
+ output := &StartCisSessionOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorStartCisSession(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
- return output
-}
-
-func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.ServiceQuotaExceededException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
@@ -9794,29 +10536,75 @@ func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithy
return err
}
- err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape)
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
}
- return err
+ return genericError
+
}
+}
- errorBody.Seek(0, io.SeekStart)
+type awsRestjson1_deserializeOpStartCodeSecurityScan struct {
+}
- return output
+func (*awsRestjson1_deserializeOpStartCodeSecurityScan) ID() string {
+ return "OperationDeserializer"
}
-func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.ThrottlingException{}
+func (m *awsRestjson1_deserializeOpStartCodeSecurityScan) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorStartCodeSecurityScan(response, &metadata)
+ }
+ output := &StartCodeSecurityScanOutput{}
+ out.Result = output
+
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
- body := io.TeeReader(errorBody, ringBuffer)
+ body := io.TeeReader(response.Body, ringBuffer)
+
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
@@ -9827,51 +10615,45 @@ func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Respo
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
- return err
+ return out, metadata, err
}
- err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape)
-
+ err = awsRestjson1_deserializeOpDocumentStartCodeSecurityScanOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
- return err
}
- errorBody.Seek(0, io.SeekStart)
+ span.End()
+ return out, metadata, err
+}
- if err := awsRestjson1_deserializeOpHttpBindingsThrottlingException(output, response); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response error with invalid HTTP bindings, %w", err)}
+func awsRestjson1_deserializeOpErrorStartCodeSecurityScan(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
- return output
-}
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
-func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.ValidationException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return err
- }
-
- err := awsRestjson1_deserializeDocumentValidationException(&output, shape)
-
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9883,11 +10665,43 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo
}
errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
- return output
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
}
-func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentStartCodeSecurityScanOutput(v **StartCodeSecurityScanOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9900,22 +10714,31 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AccessDeniedException
+ var sv *StartCodeSecurityScanOutput
if *v == nil {
- sv = &types.AccessDeniedException{}
+ sv = &StartCodeSecurityScanOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "message", "Message":
+ case "scanId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CodeSecurityUuid to be of type string, got %T instead", value)
}
- sv.Message = ptr.String(jtv)
+ sv.ScanId = ptr.String(jtv)
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeScanStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.CodeScanStatus(jtv)
}
default:
@@ -9927,22 +10750,2810 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie
return nil
}
-func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+type awsRestjson1_deserializeOpStopCisSession struct {
+}
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+func (*awsRestjson1_deserializeOpStopCisSession) ID() string {
+ return "OperationDeserializer"
+}
- var sv *types.Account
+func (m *awsRestjson1_deserializeOpStopCisSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorStopCisSession(response, &metadata)
+ }
+ output := &StopCisSessionOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorStopCisSession(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpTagResource struct {
+}
+
+func (*awsRestjson1_deserializeOpTagResource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata)
+ }
+ output := &TagResourceOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("BadRequestException", errorCode):
+ return awsRestjson1_deserializeErrorBadRequestException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUntagResource struct {
+}
+
+func (*awsRestjson1_deserializeOpUntagResource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata)
+ }
+ output := &UntagResourceOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateCisScanConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateCisScanConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateCisScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateCisScanConfiguration(response, &metadata)
+ }
+ output := &UpdateCisScanConfigurationOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateCisScanConfigurationOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateCisScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateCisScanConfigurationOutput(v **UpdateCisScanConfigurationOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateCisScanConfigurationOutput
+ if *v == nil {
+ sv = &UpdateCisScanConfigurationOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "scanConfigurationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
+ }
+ sv.ScanConfigurationArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateCodeSecurityIntegration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateCodeSecurityIntegration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateCodeSecurityIntegration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateCodeSecurityIntegration(response, &metadata)
+ }
+ output := &UpdateCodeSecurityIntegrationOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateCodeSecurityIntegrationOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateCodeSecurityIntegration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateCodeSecurityIntegrationOutput(v **UpdateCodeSecurityIntegrationOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateCodeSecurityIntegrationOutput
+ if *v == nil {
+ sv = &UpdateCodeSecurityIntegrationOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "integrationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeSecurityIntegrationArn to be of type string, got %T instead", value)
+ }
+ sv.IntegrationArn = ptr.String(jtv)
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IntegrationStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.IntegrationStatus(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateCodeSecurityScanConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateCodeSecurityScanConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateCodeSecurityScanConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateCodeSecurityScanConfiguration(response, &metadata)
+ }
+ output := &UpdateCodeSecurityScanConfigurationOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateCodeSecurityScanConfigurationOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateCodeSecurityScanConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateCodeSecurityScanConfigurationOutput(v **UpdateCodeSecurityScanConfigurationOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateCodeSecurityScanConfigurationOutput
+ if *v == nil {
+ sv = &UpdateCodeSecurityScanConfigurationOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "scanConfigurationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ScanConfigurationArn to be of type string, got %T instead", value)
+ }
+ sv.ScanConfigurationArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfiguration(response, &metadata)
+ }
+ output := &UpdateConfigurationOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateEc2DeepInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateEc2DeepInspectionConfiguration(response, &metadata)
+ }
+ output := &UpdateEc2DeepInspectionConfigurationOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateEc2DeepInspectionConfigurationOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateEc2DeepInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateEc2DeepInspectionConfigurationOutput(v **UpdateEc2DeepInspectionConfigurationOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateEc2DeepInspectionConfigurationOutput
+ if *v == nil {
+ sv = &UpdateEc2DeepInspectionConfigurationOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "errorMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ErrorMessage = ptr.String(jtv)
+ }
+
+ case "orgPackagePaths":
+ if err := awsRestjson1_deserializeDocumentPathList(&sv.OrgPackagePaths, value); err != nil {
+ return err
+ }
+
+ case "packagePaths":
+ if err := awsRestjson1_deserializeDocumentPathList(&sv.PackagePaths, value); err != nil {
+ return err
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Ec2DeepInspectionStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.Ec2DeepInspectionStatus(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateEncryptionKey struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateEncryptionKey) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateEncryptionKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateEncryptionKey(response, &metadata)
+ }
+ output := &UpdateEncryptionKeyOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateEncryptionKey(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateFilter struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateFilter) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateFilter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateFilter(response, &metadata)
+ }
+ output := &UpdateFilterOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateFilterOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateFilter(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateFilterOutput(v **UpdateFilterOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateFilterOutput
+ if *v == nil {
+ sv = &UpdateFilterOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FilterArn to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateOrganizationConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateOrganizationConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateOrganizationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response, &metadata)
+ }
+ output := &UpdateOrganizationConfigurationOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateOrganizationConfigurationOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateOrganizationConfigurationOutput(v **UpdateOrganizationConfigurationOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateOrganizationConfigurationOutput
+ if *v == nil {
+ sv = &UpdateOrganizationConfigurationOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "autoEnable":
+ if err := awsRestjson1_deserializeDocumentAutoEnable(&sv.AutoEnable, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateOrgEc2DeepInspectionConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateOrgEc2DeepInspectionConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateOrgEc2DeepInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateOrgEc2DeepInspectionConfiguration(response, &metadata)
+ }
+ output := &UpdateOrgEc2DeepInspectionConfigurationOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateOrgEc2DeepInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpHttpBindingsInternalServerException(v *types.InternalServerException, response *smithyhttp.Response) error {
+ if v == nil {
+ return fmt.Errorf("unsupported deserialization for nil %T", v)
+ }
+
+ if headerValues := response.Header.Values("Retry-After"); len(headerValues) != 0 {
+ headerValues[0] = strings.TrimSpace(headerValues[0])
+ vv, err := strconv.ParseInt(headerValues[0], 0, 32)
+ if err != nil {
+ return err
+ }
+ v.RetryAfterSeconds = ptr.Int32(int32(vv))
+ }
+
+ return nil
+}
+func awsRestjson1_deserializeOpHttpBindingsThrottlingException(v *types.ThrottlingException, response *smithyhttp.Response) error {
+ if v == nil {
+ return fmt.Errorf("unsupported deserialization for nil %T", v)
+ }
+
+ if headerValues := response.Header.Values("Retry-After"); len(headerValues) != 0 {
+ headerValues[0] = strings.TrimSpace(headerValues[0])
+ vv, err := strconv.ParseInt(headerValues[0], 0, 32)
+ if err != nil {
+ return err
+ }
+ v.RetryAfterSeconds = ptr.Int32(int32(vv))
+ }
+
+ return nil
+}
+func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.AccessDeniedException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorBadRequestException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.BadRequestException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentBadRequestException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ConflictException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentConflictException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.InternalServerException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ if err := awsRestjson1_deserializeOpHttpBindingsInternalServerException(output, response); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response error with invalid HTTP bindings, %w", err)}
+ }
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ResourceNotFoundException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ServiceQuotaExceededException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ThrottlingException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ if err := awsRestjson1_deserializeOpHttpBindingsThrottlingException(output, response); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response error with invalid HTTP bindings, %w", err)}
+ }
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ValidationException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentValidationException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AccessDeniedException
+ if *v == nil {
+ sv = &types.AccessDeniedException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.Account
+ if *v == nil {
+ sv = &types.Account{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
+ }
+
+ case "resourceStatus":
+ if err := awsRestjson1_deserializeDocumentResourceStatus(&sv.ResourceStatus, value); err != nil {
+ return err
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Status to be of type string, got %T instead", value)
+ }
+ sv.Status = types.Status(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAccountAggregationResponse(v **types.AccountAggregationResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AccountAggregationResponse
+ if *v == nil {
+ sv = &types.AccountAggregationResponse{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
+ }
+
+ case "exploitAvailableCount":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.ExploitAvailableCount = ptr.Int64(i64)
+ }
+
+ case "fixAvailableCount":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.FixAvailableCount = ptr.Int64(i64)
+ }
+
+ case "severityCounts":
+ if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAccountList(v *[]types.Account, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.Account
+ if *v == nil {
+ cv = []types.Account{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.Account
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentAccount(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAccountState(v **types.AccountState, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AccountState
+ if *v == nil {
+ sv = &types.AccountState{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
+ }
+
+ case "resourceState":
+ if err := awsRestjson1_deserializeDocumentResourceState(&sv.ResourceState, value); err != nil {
+ return err
+ }
+
+ case "state":
+ if err := awsRestjson1_deserializeDocumentState(&sv.State, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAccountStateList(v *[]types.AccountState, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.AccountState
+ if *v == nil {
+ cv = []types.AccountState{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.AccountState
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentAccountState(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAggregationResponse(v *types.AggregationResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var uv types.AggregationResponse
+loop:
+ for key, value := range shape {
+ if value == nil {
+ continue
+ }
+ switch key {
+ case "accountAggregation":
+ var mv types.AccountAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentAccountAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberAccountAggregation{Value: mv}
+ break loop
+
+ case "amiAggregation":
+ var mv types.AmiAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentAmiAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberAmiAggregation{Value: mv}
+ break loop
+
+ case "awsEcrContainerAggregation":
+ var mv types.AwsEcrContainerAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentAwsEcrContainerAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberAwsEcrContainerAggregation{Value: mv}
+ break loop
+
+ case "codeRepositoryAggregation":
+ var mv types.CodeRepositoryAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentCodeRepositoryAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberCodeRepositoryAggregation{Value: mv}
+ break loop
+
+ case "ec2InstanceAggregation":
+ var mv types.Ec2InstanceAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentEc2InstanceAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberEc2InstanceAggregation{Value: mv}
+ break loop
+
+ case "findingTypeAggregation":
+ var mv types.FindingTypeAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentFindingTypeAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberFindingTypeAggregation{Value: mv}
+ break loop
+
+ case "imageLayerAggregation":
+ var mv types.ImageLayerAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentImageLayerAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberImageLayerAggregation{Value: mv}
+ break loop
+
+ case "lambdaFunctionAggregation":
+ var mv types.LambdaFunctionAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberLambdaFunctionAggregation{Value: mv}
+ break loop
+
+ case "lambdaLayerAggregation":
+ var mv types.LambdaLayerAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentLambdaLayerAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberLambdaLayerAggregation{Value: mv}
+ break loop
+
+ case "packageAggregation":
+ var mv types.PackageAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentPackageAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberPackageAggregation{Value: mv}
+ break loop
+
+ case "repositoryAggregation":
+ var mv types.RepositoryAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentRepositoryAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberRepositoryAggregation{Value: mv}
+ break loop
+
+ case "titleAggregation":
+ var mv types.TitleAggregationResponse
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentTitleAggregationResponse(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.AggregationResponseMemberTitleAggregation{Value: mv}
+ break loop
+
+ default:
+ uv = &types.UnknownUnionMember{Tag: key}
+ break loop
+
+ }
+ }
+ *v = uv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAggregationResponseList(v *[]types.AggregationResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.AggregationResponse
+ if *v == nil {
+ cv = []types.AggregationResponse{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.AggregationResponse
+ if err := awsRestjson1_deserializeDocumentAggregationResponse(&col, value); err != nil {
+ return err
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAmiAggregationResponse(v **types.AmiAggregationResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AmiAggregationResponse
+ if *v == nil {
+ sv = &types.AmiAggregationResponse{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
+ }
+
+ case "affectedInstances":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.AffectedInstances = ptr.Int64(i64)
+ }
+
+ case "ami":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AmiId to be of type string, got %T instead", value)
+ }
+ sv.Ami = ptr.String(jtv)
+ }
+
+ case "severityCounts":
+ if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentArchitectureList(v *[]types.Architecture, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.Architecture
+ if *v == nil {
+ cv = []types.Architecture{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.Architecture
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Architecture to be of type string, got %T instead", value)
+ }
+ col = types.Architecture(jtv)
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAtigData(v **types.AtigData, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AtigData
+ if *v == nil {
+ sv = &types.AtigData{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "firstSeen":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.FirstSeen = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected FirstSeen to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "lastSeen":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastSeen = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected LastSeen to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "targets":
+ if err := awsRestjson1_deserializeDocumentTargets(&sv.Targets, value); err != nil {
+ return err
+ }
+
+ case "ttps":
+ if err := awsRestjson1_deserializeDocumentTtps(&sv.Ttps, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAutoEnable(v **types.AutoEnable, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AutoEnable
+ if *v == nil {
+ sv = &types.AutoEnable{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "codeRepository":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.CodeRepository = ptr.Bool(jtv)
+ }
+
+ case "ec2":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.Ec2 = ptr.Bool(jtv)
+ }
+
+ case "ecr":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.Ecr = ptr.Bool(jtv)
+ }
+
+ case "lambda":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.Lambda = ptr.Bool(jtv)
+ }
+
+ case "lambdaCode":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.LambdaCode = ptr.Bool(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2InstanceDetails, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AwsEc2InstanceDetails
+ if *v == nil {
+ sv = &types.AwsEc2InstanceDetails{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "iamInstanceProfileArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.IamInstanceProfileArn = ptr.String(jtv)
+ }
+
+ case "imageId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ImageId = ptr.String(jtv)
+ }
+
+ case "ipV4Addresses":
+ if err := awsRestjson1_deserializeDocumentIpV4AddressList(&sv.IpV4Addresses, value); err != nil {
+ return err
+ }
+
+ case "ipV6Addresses":
+ if err := awsRestjson1_deserializeDocumentIpV6AddressList(&sv.IpV6Addresses, value); err != nil {
+ return err
+ }
+
+ case "keyName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.KeyName = ptr.String(jtv)
+ }
+
+ case "launchedAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LaunchedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "platform":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Platform to be of type string, got %T instead", value)
+ }
+ sv.Platform = ptr.String(jtv)
+ }
+
+ case "subnetId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.SubnetId = ptr.String(jtv)
+ }
+
+ case "type":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Type = ptr.String(jtv)
+ }
+
+ case "vpcId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.VpcId = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAwsEcrContainerAggregationResponse(v **types.AwsEcrContainerAggregationResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AwsEcrContainerAggregationResponse
if *v == nil {
- sv = &types.Account{}
+ sv = &types.AwsEcrContainerAggregationResponse{}
} else {
sv = *v
}
@@ -9958,18 +13569,79 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{
sv.AccountId = ptr.String(jtv)
}
- case "resourceStatus":
- if err := awsRestjson1_deserializeDocumentResourceStatus(&sv.ResourceStatus, value); err != nil {
+ case "architecture":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Architecture = ptr.String(jtv)
+ }
+
+ case "imageSha":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ImageSha = ptr.String(jtv)
+ }
+
+ case "imageTags":
+ if err := awsRestjson1_deserializeDocumentStringList(&sv.ImageTags, value); err != nil {
return err
}
- case "status":
+ case "inUseCount":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.InUseCount = ptr.Int64(i64)
+ }
+
+ case "lastInUseAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastInUseAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "repository":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Status to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.Status = types.Status(jtv)
+ sv.Repository = ptr.String(jtv)
+ }
+
+ case "resourceId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ResourceId = ptr.String(jtv)
+ }
+
+ case "severityCounts":
+ if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
+ return err
}
default:
@@ -9981,7 +13653,7 @@ func awsRestjson1_deserializeDocumentAccount(v **types.Account, value interface{
return nil
}
-func awsRestjson1_deserializeDocumentAccountAggregationResponse(v **types.AccountAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentAwsEcrContainerImageDetails(v **types.AwsEcrContainerImageDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9994,38 +13666,48 @@ func awsRestjson1_deserializeDocumentAccountAggregationResponse(v **types.Accoun
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AccountAggregationResponse
+ var sv *types.AwsEcrContainerImageDetails
if *v == nil {
- sv = &types.AccountAggregationResponse{}
+ sv = &types.AwsEcrContainerImageDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
+ case "architecture":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.AccountId = ptr.String(jtv)
+ sv.Architecture = ptr.String(jtv)
}
- case "exploitAvailableCount":
+ case "author":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ sv.Author = ptr.String(jtv)
+ }
+
+ case "imageHash":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ImageHash to be of type string, got %T instead", value)
}
- sv.ExploitAvailableCount = ptr.Int64(i64)
+ sv.ImageHash = ptr.String(jtv)
}
- case "fixAvailableCount":
+ case "imageTags":
+ if err := awsRestjson1_deserializeDocumentImageTagList(&sv.ImageTags, value); err != nil {
+ return err
+ }
+
+ case "inUseCount":
if value != nil {
jtv, ok := value.(json.Number)
if !ok {
@@ -10035,12 +13717,66 @@ func awsRestjson1_deserializeDocumentAccountAggregationResponse(v **types.Accoun
if err != nil {
return err
}
- sv.FixAvailableCount = ptr.Int64(i64)
- }
-
- case "severityCounts":
- if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
- return err
+ sv.InUseCount = ptr.Int64(i64)
+ }
+
+ case "lastInUseAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastInUseAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "platform":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Platform to be of type string, got %T instead", value)
+ }
+ sv.Platform = ptr.String(jtv)
+ }
+
+ case "pushedAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.PushedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "registry":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Registry = ptr.String(jtv)
+ }
+
+ case "repositoryName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RepositoryName = ptr.String(jtv)
}
default:
@@ -10052,41 +13788,7 @@ func awsRestjson1_deserializeDocumentAccountAggregationResponse(v **types.Accoun
return nil
}
-func awsRestjson1_deserializeDocumentAccountList(v *[]types.Account, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.([]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var cv []types.Account
- if *v == nil {
- cv = []types.Account{}
- } else {
- cv = *v
- }
-
- for _, value := range shape {
- var col types.Account
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentAccount(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
-
- }
- *v = cv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentAccountState(v **types.AccountState, value interface{}) error {
+func awsRestjson1_deserializeDocumentAwsEcsMetadataDetails(v **types.AwsEcsMetadataDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10099,32 +13801,31 @@ func awsRestjson1_deserializeDocumentAccountState(v **types.AccountState, value
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AccountState
+ var sv *types.AwsEcsMetadataDetails
if *v == nil {
- sv = &types.AccountState{}
+ sv = &types.AwsEcsMetadataDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
+ case "detailsGroup":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.AccountId = ptr.String(jtv)
- }
-
- case "resourceState":
- if err := awsRestjson1_deserializeDocumentResourceState(&sv.ResourceState, value); err != nil {
- return err
+ sv.DetailsGroup = ptr.String(jtv)
}
- case "state":
- if err := awsRestjson1_deserializeDocumentState(&sv.State, value); err != nil {
- return err
+ case "taskDefinitionArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.TaskDefinitionArn = ptr.String(jtv)
}
default:
@@ -10136,7 +13837,7 @@ func awsRestjson1_deserializeDocumentAccountState(v **types.AccountState, value
return nil
}
-func awsRestjson1_deserializeDocumentAccountStateList(v *[]types.AccountState, value interface{}) error {
+func awsRestjson1_deserializeDocumentAwsEksMetadataDetails(v **types.AwsEksMetadataDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10144,205 +13845,44 @@ func awsRestjson1_deserializeDocumentAccountStateList(v *[]types.AccountState, v
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.AccountState
+ var sv *types.AwsEksMetadataDetails
if *v == nil {
- cv = []types.AccountState{}
+ sv = &types.AwsEksMetadataDetails{}
} else {
- cv = *v
- }
-
- for _, value := range shape {
- var col types.AccountState
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentAccountState(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
-
- }
- *v = cv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentAggregationResponse(v *types.AggregationResponse, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
+ sv = *v
}
- var uv types.AggregationResponse
-loop:
for key, value := range shape {
- if value == nil {
- continue
- }
switch key {
- case "accountAggregation":
- var mv types.AccountAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentAccountAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberAccountAggregation{Value: mv}
- break loop
-
- case "amiAggregation":
- var mv types.AmiAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentAmiAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberAmiAggregation{Value: mv}
- break loop
-
- case "awsEcrContainerAggregation":
- var mv types.AwsEcrContainerAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentAwsEcrContainerAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberAwsEcrContainerAggregation{Value: mv}
- break loop
-
- case "ec2InstanceAggregation":
- var mv types.Ec2InstanceAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentEc2InstanceAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberEc2InstanceAggregation{Value: mv}
- break loop
-
- case "findingTypeAggregation":
- var mv types.FindingTypeAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentFindingTypeAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberFindingTypeAggregation{Value: mv}
- break loop
-
- case "imageLayerAggregation":
- var mv types.ImageLayerAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentImageLayerAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberImageLayerAggregation{Value: mv}
- break loop
-
- case "lambdaFunctionAggregation":
- var mv types.LambdaFunctionAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberLambdaFunctionAggregation{Value: mv}
- break loop
-
- case "lambdaLayerAggregation":
- var mv types.LambdaLayerAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentLambdaLayerAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberLambdaLayerAggregation{Value: mv}
- break loop
-
- case "packageAggregation":
- var mv types.PackageAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentPackageAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberPackageAggregation{Value: mv}
- break loop
-
- case "repositoryAggregation":
- var mv types.RepositoryAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentRepositoryAggregationResponse(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.AggregationResponseMemberRepositoryAggregation{Value: mv}
- break loop
-
- case "titleAggregation":
- var mv types.TitleAggregationResponse
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentTitleAggregationResponse(&destAddr, value); err != nil {
- return err
+ case "namespace":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Namespace = ptr.String(jtv)
}
- mv = *destAddr
- uv = &types.AggregationResponseMemberTitleAggregation{Value: mv}
- break loop
-
- default:
- uv = &types.UnknownUnionMember{Tag: key}
- break loop
-
- }
- }
- *v = uv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentAggregationResponseList(v *[]types.AggregationResponse, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.([]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
- var cv []types.AggregationResponse
- if *v == nil {
- cv = []types.AggregationResponse{}
- } else {
- cv = *v
- }
+ case "workloadInfoList":
+ if err := awsRestjson1_deserializeDocumentAwsEksWorkloadInfoList(&sv.WorkloadInfoList, value); err != nil {
+ return err
+ }
- for _, value := range shape {
- var col types.AggregationResponse
- if err := awsRestjson1_deserializeDocumentAggregationResponse(&col, value); err != nil {
- return err
- }
- cv = append(cv, col)
+ default:
+ _, _ = key, value
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentAmiAggregationResponse(v **types.AmiAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentAwsEksWorkloadInfo(v **types.AwsEksWorkloadInfo, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10355,49 +13895,31 @@ func awsRestjson1_deserializeDocumentAmiAggregationResponse(v **types.AmiAggrega
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AmiAggregationResponse
+ var sv *types.AwsEksWorkloadInfo
if *v == nil {
- sv = &types.AmiAggregationResponse{}
+ sv = &types.AwsEksWorkloadInfo{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
+ case "name":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.AccountId = ptr.String(jtv)
- }
-
- case "affectedInstances":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.AffectedInstances = ptr.Int64(i64)
+ sv.Name = ptr.String(jtv)
}
- case "ami":
+ case "type":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AmiId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.Ami = ptr.String(jtv)
- }
-
- case "severityCounts":
- if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
- return err
+ sv.Type = ptr.String(jtv)
}
default:
@@ -10409,7 +13931,7 @@ func awsRestjson1_deserializeDocumentAmiAggregationResponse(v **types.AmiAggrega
return nil
}
-func awsRestjson1_deserializeDocumentArchitectureList(v *[]types.Architecture, value interface{}) error {
+func awsRestjson1_deserializeDocumentAwsEksWorkloadInfoList(v *[]types.AwsEksWorkloadInfo, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10422,22 +13944,20 @@ func awsRestjson1_deserializeDocumentArchitectureList(v *[]types.Architecture, v
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Architecture
+ var cv []types.AwsEksWorkloadInfo
if *v == nil {
- cv = []types.Architecture{}
+ cv = []types.AwsEksWorkloadInfo{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.Architecture
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Architecture to be of type string, got %T instead", value)
- }
- col = types.Architecture(jtv)
+ var col types.AwsEksWorkloadInfo
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentAwsEksWorkloadInfo(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
cv = append(cv, col)
}
@@ -10445,7 +13965,7 @@ func awsRestjson1_deserializeDocumentArchitectureList(v *[]types.Architecture, v
return nil
}
-func awsRestjson1_deserializeDocumentAtigData(v **types.AtigData, value interface{}) error {
+func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambdaFunctionDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10458,32 +13978,48 @@ func awsRestjson1_deserializeDocumentAtigData(v **types.AtigData, value interfac
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AtigData
+ var sv *types.AwsLambdaFunctionDetails
if *v == nil {
- sv = &types.AtigData{}
+ sv = &types.AwsLambdaFunctionDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "firstSeen":
+ case "architectures":
+ if err := awsRestjson1_deserializeDocumentArchitectureList(&sv.Architectures, value); err != nil {
+ return err
+ }
+
+ case "codeSha256":
if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.FirstSeen = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.CodeSha256 = ptr.String(jtv)
+ }
- default:
- return fmt.Errorf("expected FirstSeen to be a JSON Number, got %T instead", value)
+ case "executionRoleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ExecutionRoleArn to be of type string, got %T instead", value)
+ }
+ sv.ExecutionRoleArn = ptr.String(jtv)
+ }
+ case "functionName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FunctionName to be of type string, got %T instead", value)
}
+ sv.FunctionName = ptr.String(jtv)
}
- case "lastSeen":
+ case "lastModifiedAt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -10491,21 +14027,48 @@ func awsRestjson1_deserializeDocumentAtigData(v **types.AtigData, value interfac
if err != nil {
return err
}
- sv.LastSeen = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.LastModifiedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
- return fmt.Errorf("expected LastSeen to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
- case "targets":
- if err := awsRestjson1_deserializeDocumentTargets(&sv.Targets, value); err != nil {
+ case "layers":
+ if err := awsRestjson1_deserializeDocumentLayerList(&sv.Layers, value); err != nil {
return err
}
- case "ttps":
- if err := awsRestjson1_deserializeDocumentTtps(&sv.Ttps, value); err != nil {
+ case "packageType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PackageType to be of type string, got %T instead", value)
+ }
+ sv.PackageType = types.PackageType(jtv)
+ }
+
+ case "runtime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Runtime to be of type string, got %T instead", value)
+ }
+ sv.Runtime = types.Runtime(jtv)
+ }
+
+ case "version":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Version to be of type string, got %T instead", value)
+ }
+ sv.Version = ptr.String(jtv)
+ }
+
+ case "vpcConfig":
+ if err := awsRestjson1_deserializeDocumentLambdaVpcConfig(&sv.VpcConfig, value); err != nil {
return err
}
@@ -10518,7 +14081,7 @@ func awsRestjson1_deserializeDocumentAtigData(v **types.AtigData, value interfac
return nil
}
-func awsRestjson1_deserializeDocumentAutoEnable(v **types.AutoEnable, value interface{}) error {
+func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10531,49 +14094,22 @@ func awsRestjson1_deserializeDocumentAutoEnable(v **types.AutoEnable, value inte
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AutoEnable
+ var sv *types.BadRequestException
if *v == nil {
- sv = &types.AutoEnable{}
+ sv = &types.BadRequestException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ec2":
- if value != nil {
- jtv, ok := value.(bool)
- if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
- }
- sv.Ec2 = ptr.Bool(jtv)
- }
-
- case "ecr":
- if value != nil {
- jtv, ok := value.(bool)
- if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
- }
- sv.Ecr = ptr.Bool(jtv)
- }
-
- case "lambda":
- if value != nil {
- jtv, ok := value.(bool)
- if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
- }
- sv.Lambda = ptr.Bool(jtv)
- }
-
- case "lambdaCode":
+ case "message", "Message":
if value != nil {
- jtv, ok := value.(bool)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.LambdaCode = ptr.Bool(jtv)
+ sv.Message = ptr.String(jtv)
}
default:
@@ -10585,7 +14121,7 @@ func awsRestjson1_deserializeDocumentAutoEnable(v **types.AutoEnable, value inte
return nil
}
-func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2InstanceDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisAccountIdList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10593,58 +14129,66 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AwsEc2InstanceDetails
+ var cv []string
if *v == nil {
- sv = &types.AwsEc2InstanceDetails{}
+ cv = []string{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "iamInstanceProfileArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.IamInstanceProfileArn = ptr.String(jtv)
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
+ col = jtv
+ }
+ cv = append(cv, col)
- case "imageId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ImageId = ptr.String(jtv)
- }
+ }
+ *v = cv
+ return nil
+}
- case "ipV4Addresses":
- if err := awsRestjson1_deserializeDocumentIpV4AddressList(&sv.IpV4Addresses, value); err != nil {
- return err
- }
+func awsRestjson1_deserializeDocumentCisaData(v **types.CisaData, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
- case "ipV6Addresses":
- if err := awsRestjson1_deserializeDocumentIpV6AddressList(&sv.IpV6Addresses, value); err != nil {
- return err
- }
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.CisaData
+ if *v == nil {
+ sv = &types.CisaData{}
+ } else {
+ sv = *v
+ }
- case "keyName":
+ for key, value := range shape {
+ switch key {
+ case "action":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisaAction to be of type string, got %T instead", value)
}
- sv.KeyName = ptr.String(jtv)
+ sv.Action = ptr.String(jtv)
}
- case "launchedAt":
+ case "dateAdded":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -10652,48 +14196,28 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta
if err != nil {
return err
}
- sv.LaunchedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.DateAdded = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
-
- }
- }
+ return fmt.Errorf("expected CisaDateAdded to be a JSON Number, got %T instead", value)
- case "platform":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Platform to be of type string, got %T instead", value)
}
- sv.Platform = ptr.String(jtv)
}
- case "subnetId":
+ case "dateDue":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.SubnetId = ptr.String(jtv)
- }
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.DateDue = ptr.Time(smithytime.ParseEpochSeconds(f64))
- case "type":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Type = ptr.String(jtv)
- }
+ default:
+ return fmt.Errorf("expected CisaDateDue to be a JSON Number, got %T instead", value)
- case "vpcId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.VpcId = ptr.String(jtv)
}
default:
@@ -10705,7 +14229,7 @@ func awsRestjson1_deserializeDocumentAwsEc2InstanceDetails(v **types.AwsEc2Insta
return nil
}
-func awsRestjson1_deserializeDocumentAwsEcrContainerAggregationResponse(v **types.AwsEcrContainerAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisCheckAggregation(v **types.CisCheckAggregation, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10718,9 +14242,9 @@ func awsRestjson1_deserializeDocumentAwsEcrContainerAggregationResponse(v **type
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AwsEcrContainerAggregationResponse
+ var sv *types.CisCheckAggregation
if *v == nil {
- sv = &types.AwsEcrContainerAggregationResponse{}
+ sv = &types.CisCheckAggregation{}
} else {
sv = *v
}
@@ -10736,81 +14260,65 @@ func awsRestjson1_deserializeDocumentAwsEcrContainerAggregationResponse(v **type
sv.AccountId = ptr.String(jtv)
}
- case "architecture":
+ case "checkDescription":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.Architecture = ptr.String(jtv)
+ sv.CheckDescription = ptr.String(jtv)
}
- case "imageSha":
+ case "checkId":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.ImageSha = ptr.String(jtv)
- }
-
- case "imageTags":
- if err := awsRestjson1_deserializeDocumentStringList(&sv.ImageTags, value); err != nil {
- return err
+ sv.CheckId = ptr.String(jtv)
}
- case "inUseCount":
+ case "level":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.InUseCount = ptr.Int64(i64)
- }
-
- case "lastInUseAt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.LastInUseAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
-
+ return fmt.Errorf("expected CisSecurityLevel to be of type string, got %T instead", value)
}
+ sv.Level = types.CisSecurityLevel(jtv)
}
- case "repository":
+ case "platform":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.Repository = ptr.String(jtv)
+ sv.Platform = ptr.String(jtv)
}
- case "resourceId":
+ case "scanArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanArn to be of type string, got %T instead", value)
}
- sv.ResourceId = ptr.String(jtv)
+ sv.ScanArn = ptr.String(jtv)
}
- case "severityCounts":
- if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
+ case "statusCounts":
+ if err := awsRestjson1_deserializeDocumentStatusCounts(&sv.StatusCounts, value); err != nil {
return err
}
+ case "title":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Title = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
@@ -10820,7 +14328,41 @@ func awsRestjson1_deserializeDocumentAwsEcrContainerAggregationResponse(v **type
return nil
}
-func awsRestjson1_deserializeDocumentAwsEcrContainerImageDetails(v **types.AwsEcrContainerImageDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisCheckAggregationList(v *[]types.CisCheckAggregation, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.CisCheckAggregation
+ if *v == nil {
+ cv = []types.CisCheckAggregation{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.CisCheckAggregation
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCisCheckAggregation(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentCisScan(v **types.CisScan, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10833,61 +14375,47 @@ func awsRestjson1_deserializeDocumentAwsEcrContainerImageDetails(v **types.AwsEc
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AwsEcrContainerImageDetails
+ var sv *types.CisScan
if *v == nil {
- sv = &types.AwsEcrContainerImageDetails{}
+ sv = &types.CisScan{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "architecture":
+ case "failedChecks":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
}
- sv.Architecture = ptr.String(jtv)
- }
-
- case "author":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
}
- sv.Author = ptr.String(jtv)
+ sv.FailedChecks = ptr.Int32(int32(i64))
}
- case "imageHash":
+ case "scanArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ImageHash to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanArn to be of type string, got %T instead", value)
}
- sv.ImageHash = ptr.String(jtv)
- }
-
- case "imageTags":
- if err := awsRestjson1_deserializeDocumentImageTagList(&sv.ImageTags, value); err != nil {
- return err
+ sv.ScanArn = ptr.String(jtv)
}
- case "inUseCount":
+ case "scanConfigurationArn":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
}
- sv.InUseCount = ptr.Int64(i64)
+ sv.ScanConfigurationArn = ptr.String(jtv)
}
- case "lastInUseAt":
+ case "scanDate":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -10895,55 +14423,66 @@ func awsRestjson1_deserializeDocumentAwsEcrContainerImageDetails(v **types.AwsEc
if err != nil {
return err
}
- sv.LastInUseAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.ScanDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
- case "platform":
+ case "scanName":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Platform to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanName to be of type string, got %T instead", value)
}
- sv.Platform = ptr.String(jtv)
+ sv.ScanName = ptr.String(jtv)
}
- case "pushedAt":
+ case "scheduledBy":
if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.PushedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ScheduledBy = ptr.String(jtv)
+ }
+ case "securityLevel":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CisSecurityLevel to be of type string, got %T instead", value)
}
+ sv.SecurityLevel = types.CisSecurityLevel(jtv)
}
- case "registry":
+ case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanStatus to be of type string, got %T instead", value)
}
- sv.Registry = ptr.String(jtv)
+ sv.Status = types.CisScanStatus(jtv)
+ }
+
+ case "targets":
+ if err := awsRestjson1_deserializeDocumentCisTargets(&sv.Targets, value); err != nil {
+ return err
}
- case "repositoryName":
+ case "totalChecks":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
}
- sv.RepositoryName = ptr.String(jtv)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalChecks = ptr.Int32(int32(i64))
}
default:
@@ -10955,7 +14494,7 @@ func awsRestjson1_deserializeDocumentAwsEcrContainerImageDetails(v **types.AwsEc
return nil
}
-func awsRestjson1_deserializeDocumentAwsEcsMetadataDetails(v **types.AwsEcsMetadataDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisScanConfiguration(v **types.CisScanConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10968,75 +14507,63 @@ func awsRestjson1_deserializeDocumentAwsEcsMetadataDetails(v **types.AwsEcsMetad
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AwsEcsMetadataDetails
+ var sv *types.CisScanConfiguration
if *v == nil {
- sv = &types.AwsEcsMetadataDetails{}
+ sv = &types.CisScanConfiguration{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "detailsGroup":
+ case "ownerId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisOwnerId to be of type string, got %T instead", value)
}
- sv.DetailsGroup = ptr.String(jtv)
+ sv.OwnerId = ptr.String(jtv)
}
- case "taskDefinitionArn":
+ case "scanConfigurationArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
}
- sv.TaskDefinitionArn = ptr.String(jtv)
+ sv.ScanConfigurationArn = ptr.String(jtv)
}
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentAwsEksMetadataDetails(v **types.AwsEksMetadataDetails, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ case "scanName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CisScanName to be of type string, got %T instead", value)
+ }
+ sv.ScanName = ptr.String(jtv)
+ }
- var sv *types.AwsEksMetadataDetails
- if *v == nil {
- sv = &types.AwsEksMetadataDetails{}
- } else {
- sv = *v
- }
+ case "schedule":
+ if err := awsRestjson1_deserializeDocumentSchedule(&sv.Schedule, value); err != nil {
+ return err
+ }
- for key, value := range shape {
- switch key {
- case "namespace":
+ case "securityLevel":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisSecurityLevel to be of type string, got %T instead", value)
}
- sv.Namespace = ptr.String(jtv)
+ sv.SecurityLevel = types.CisSecurityLevel(jtv)
}
- case "workloadInfoList":
- if err := awsRestjson1_deserializeDocumentAwsEksWorkloadInfoList(&sv.WorkloadInfoList, value); err != nil {
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentCisTagMap(&sv.Tags, value); err != nil {
+ return err
+ }
+
+ case "targets":
+ if err := awsRestjson1_deserializeDocumentCisTargets(&sv.Targets, value); err != nil {
return err
}
@@ -11049,7 +14576,7 @@ func awsRestjson1_deserializeDocumentAwsEksMetadataDetails(v **types.AwsEksMetad
return nil
}
-func awsRestjson1_deserializeDocumentAwsEksWorkloadInfo(v **types.AwsEksWorkloadInfo, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisScanConfigurationList(v *[]types.CisScanConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11057,48 +14584,33 @@ func awsRestjson1_deserializeDocumentAwsEksWorkloadInfo(v **types.AwsEksWorkload
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AwsEksWorkloadInfo
+ var cv []types.CisScanConfiguration
if *v == nil {
- sv = &types.AwsEksWorkloadInfo{}
+ cv = []types.CisScanConfiguration{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "name":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.Name = ptr.String(jtv)
- }
-
- case "type":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.Type = ptr.String(jtv)
- }
-
- default:
- _, _ = key, value
-
+ for _, value := range shape {
+ var col types.CisScanConfiguration
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCisScanConfiguration(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentAwsEksWorkloadInfoList(v *[]types.AwsEksWorkloadInfo, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisScanList(v *[]types.CisScan, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11111,17 +14623,17 @@ func awsRestjson1_deserializeDocumentAwsEksWorkloadInfoList(v *[]types.AwsEksWor
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.AwsEksWorkloadInfo
+ var cv []types.CisScan
if *v == nil {
- cv = []types.AwsEksWorkloadInfo{}
+ cv = []types.CisScan{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.AwsEksWorkloadInfo
+ var col types.CisScan
destAddr := &col
- if err := awsRestjson1_deserializeDocumentAwsEksWorkloadInfo(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentCisScan(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -11132,7 +14644,7 @@ func awsRestjson1_deserializeDocumentAwsEksWorkloadInfoList(v *[]types.AwsEksWor
return nil
}
-func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambdaFunctionDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisScanResultDetails(v **types.CisScanResultDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11145,138 +14657,121 @@ func awsRestjson1_deserializeDocumentAwsLambdaFunctionDetails(v **types.AwsLambd
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.AwsLambdaFunctionDetails
+ var sv *types.CisScanResultDetails
if *v == nil {
- sv = &types.AwsLambdaFunctionDetails{}
+ sv = &types.CisScanResultDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "architectures":
- if err := awsRestjson1_deserializeDocumentArchitectureList(&sv.Architectures, value); err != nil {
- return err
- }
-
- case "codeSha256":
+ case "accountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.CodeSha256 = ptr.String(jtv)
+ sv.AccountId = ptr.String(jtv)
}
- case "executionRoleArn":
+ case "checkDescription":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ExecutionRoleArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.ExecutionRoleArn = ptr.String(jtv)
+ sv.CheckDescription = ptr.String(jtv)
}
- case "functionName":
+ case "checkId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FunctionName to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.FunctionName = ptr.String(jtv)
+ sv.CheckId = ptr.String(jtv)
}
- case "lastModifiedAt":
+ case "findingArn":
if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.LastModifiedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
-
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CisFindingArn to be of type string, got %T instead", value)
}
+ sv.FindingArn = ptr.String(jtv)
}
- case "layers":
- if err := awsRestjson1_deserializeDocumentLayerList(&sv.Layers, value); err != nil {
- return err
+ case "level":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CisSecurityLevel to be of type string, got %T instead", value)
+ }
+ sv.Level = types.CisSecurityLevel(jtv)
}
- case "packageType":
+ case "platform":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected PackageType to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.PackageType = types.PackageType(jtv)
+ sv.Platform = ptr.String(jtv)
}
- case "runtime":
+ case "remediation":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Runtime to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.Runtime = types.Runtime(jtv)
+ sv.Remediation = ptr.String(jtv)
}
- case "version":
+ case "scanArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Version to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanArn to be of type string, got %T instead", value)
}
- sv.Version = ptr.String(jtv)
+ sv.ScanArn = ptr.String(jtv)
}
- case "vpcConfig":
- if err := awsRestjson1_deserializeDocumentLambdaVpcConfig(&sv.VpcConfig, value); err != nil {
- return err
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CisFindingStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.CisFindingStatus(jtv)
}
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestException, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *types.BadRequestException
- if *v == nil {
- sv = &types.BadRequestException{}
- } else {
- sv = *v
- }
+ case "statusReason":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.StatusReason = ptr.String(jtv)
+ }
- for key, value := range shape {
- switch key {
- case "message", "Message":
+ case "targetResourceId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value)
+ }
+ sv.TargetResourceId = ptr.String(jtv)
+ }
+
+ case "title":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.Message = ptr.String(jtv)
+ sv.Title = ptr.String(jtv)
}
default:
@@ -11288,7 +14783,7 @@ func awsRestjson1_deserializeDocumentBadRequestException(v **types.BadRequestExc
return nil
}
-func awsRestjson1_deserializeDocumentCisAccountIdList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisScanResultDetailsList(v *[]types.CisScanResultDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11301,22 +14796,20 @@ func awsRestjson1_deserializeDocumentCisAccountIdList(v *[]string, value interfa
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var cv []types.CisScanResultDetails
if *v == nil {
- cv = []string{}
+ cv = []types.CisScanResultDetails{}
} else {
cv = *v
}
for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- col = jtv
+ var col types.CisScanResultDetails
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCisScanResultDetails(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
cv = append(cv, col)
}
@@ -11324,7 +14817,7 @@ func awsRestjson1_deserializeDocumentCisAccountIdList(v *[]string, value interfa
return nil
}
-func awsRestjson1_deserializeDocumentCisaData(v **types.CisaData, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisTagMap(v *map[string]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11337,66 +14830,30 @@ func awsRestjson1_deserializeDocumentCisaData(v **types.CisaData, value interfac
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CisaData
+ var mv map[string]string
if *v == nil {
- sv = &types.CisaData{}
+ mv = map[string]string{}
} else {
- sv = *v
+ mv = *v
}
for key, value := range shape {
- switch key {
- case "action":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisaAction to be of type string, got %T instead", value)
- }
- sv.Action = ptr.String(jtv)
- }
-
- case "dateAdded":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.DateAdded = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected CisaDateAdded to be a JSON Number, got %T instead", value)
-
- }
- }
-
- case "dateDue":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.DateDue = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected CisaDateDue to be a JSON Number, got %T instead", value)
-
- }
+ var parsedVal string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected MapValue to be of type string, got %T instead", value)
}
-
- default:
- _, _ = key, value
-
+ parsedVal = jtv
}
+ mv[key] = parsedVal
+
}
- *v = sv
+ *v = mv
return nil
}
-func awsRestjson1_deserializeDocumentCisCheckAggregation(v **types.CisCheckAggregation, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisTargetResourceAggregation(v **types.CisTargetResourceAggregation, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11409,9 +14866,9 @@ func awsRestjson1_deserializeDocumentCisCheckAggregation(v **types.CisCheckAggre
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CisCheckAggregation
+ var sv *types.CisTargetResourceAggregation
if *v == nil {
- sv = &types.CisCheckAggregation{}
+ sv = &types.CisTargetResourceAggregation{}
} else {
sv = *v
}
@@ -11427,63 +14884,59 @@ func awsRestjson1_deserializeDocumentCisCheckAggregation(v **types.CisCheckAggre
sv.AccountId = ptr.String(jtv)
}
- case "checkDescription":
+ case "platform":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.CheckDescription = ptr.String(jtv)
+ sv.Platform = ptr.String(jtv)
}
- case "checkId":
+ case "scanArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisScanArn to be of type string, got %T instead", value)
}
- sv.CheckId = ptr.String(jtv)
+ sv.ScanArn = ptr.String(jtv)
}
- case "level":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisSecurityLevel to be of type string, got %T instead", value)
- }
- sv.Level = types.CisSecurityLevel(jtv)
+ case "statusCounts":
+ if err := awsRestjson1_deserializeDocumentStatusCounts(&sv.StatusCounts, value); err != nil {
+ return err
}
- case "platform":
+ case "targetResourceId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value)
}
- sv.Platform = ptr.String(jtv)
+ sv.TargetResourceId = ptr.String(jtv)
}
- case "scanArn":
+ case "targetResourceTags":
+ if err := awsRestjson1_deserializeDocumentTargetResourceTags(&sv.TargetResourceTags, value); err != nil {
+ return err
+ }
+
+ case "targetStatus":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected CisScanArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisTargetStatus to be of type string, got %T instead", value)
}
- sv.ScanArn = ptr.String(jtv)
- }
-
- case "statusCounts":
- if err := awsRestjson1_deserializeDocumentStatusCounts(&sv.StatusCounts, value); err != nil {
- return err
+ sv.TargetStatus = types.CisTargetStatus(jtv)
}
- case "title":
+ case "targetStatusReason":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected CisTargetStatusReason to be of type string, got %T instead", value)
}
- sv.Title = ptr.String(jtv)
+ sv.TargetStatusReason = types.CisTargetStatusReason(jtv)
}
default:
@@ -11495,7 +14948,7 @@ func awsRestjson1_deserializeDocumentCisCheckAggregation(v **types.CisCheckAggre
return nil
}
-func awsRestjson1_deserializeDocumentCisCheckAggregationList(v *[]types.CisCheckAggregation, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisTargetResourceAggregationList(v *[]types.CisTargetResourceAggregation, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11508,17 +14961,17 @@ func awsRestjson1_deserializeDocumentCisCheckAggregationList(v *[]types.CisCheck
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CisCheckAggregation
+ var cv []types.CisTargetResourceAggregation
if *v == nil {
- cv = []types.CisCheckAggregation{}
+ cv = []types.CisTargetResourceAggregation{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.CisCheckAggregation
+ var col types.CisTargetResourceAggregation
destAddr := &col
- if err := awsRestjson1_deserializeDocumentCisCheckAggregation(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentCisTargetResourceAggregation(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -11529,7 +14982,7 @@ func awsRestjson1_deserializeDocumentCisCheckAggregationList(v *[]types.CisCheck
return nil
}
-func awsRestjson1_deserializeDocumentCisScan(v **types.CisScan, value interface{}) error {
+func awsRestjson1_deserializeDocumentCisTargets(v **types.CisTargets, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11542,116 +14995,25 @@ func awsRestjson1_deserializeDocumentCisScan(v **types.CisScan, value interface{
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CisScan
+ var sv *types.CisTargets
if *v == nil {
- sv = &types.CisScan{}
+ sv = &types.CisTargets{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "failedChecks":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.FailedChecks = ptr.Int32(int32(i64))
- }
-
- case "scanArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisScanArn to be of type string, got %T instead", value)
- }
- sv.ScanArn = ptr.String(jtv)
- }
-
- case "scanConfigurationArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
- }
- sv.ScanConfigurationArn = ptr.String(jtv)
- }
-
- case "scanDate":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.ScanDate = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
-
- }
- }
-
- case "scanName":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisScanName to be of type string, got %T instead", value)
- }
- sv.ScanName = ptr.String(jtv)
- }
-
- case "scheduledBy":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.ScheduledBy = ptr.String(jtv)
- }
-
- case "securityLevel":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisSecurityLevel to be of type string, got %T instead", value)
- }
- sv.SecurityLevel = types.CisSecurityLevel(jtv)
- }
-
- case "status":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisScanStatus to be of type string, got %T instead", value)
- }
- sv.Status = types.CisScanStatus(jtv)
+ case "accountIds":
+ if err := awsRestjson1_deserializeDocumentCisAccountIdList(&sv.AccountIds, value); err != nil {
+ return err
}
- case "targets":
- if err := awsRestjson1_deserializeDocumentCisTargets(&sv.Targets, value); err != nil {
+ case "targetResourceTags":
+ if err := awsRestjson1_deserializeDocumentTargetResourceTags(&sv.TargetResourceTags, value); err != nil {
return err
}
- case "totalChecks":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.TotalChecks = ptr.Int32(int32(i64))
- }
-
default:
_, _ = key, value
@@ -11661,7 +15023,7 @@ func awsRestjson1_deserializeDocumentCisScan(v **types.CisScan, value interface{
return nil
}
-func awsRestjson1_deserializeDocumentCisScanConfiguration(v **types.CisScanConfiguration, value interface{}) error {
+func awsRestjson1_deserializeDocumentClusterDetails(v **types.ClusterDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11674,64 +15036,60 @@ func awsRestjson1_deserializeDocumentCisScanConfiguration(v **types.CisScanConfi
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CisScanConfiguration
+ var sv *types.ClusterDetails
if *v == nil {
- sv = &types.CisScanConfiguration{}
+ sv = &types.ClusterDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ownerId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisOwnerId to be of type string, got %T instead", value)
- }
- sv.OwnerId = ptr.String(jtv)
+ case "clusterMetadata":
+ if err := awsRestjson1_deserializeDocumentClusterMetadata(&sv.ClusterMetadata, value); err != nil {
+ return err
}
- case "scanConfigurationArn":
+ case "lastInUse":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisScanConfigurationArn to be of type string, got %T instead", value)
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastInUse = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
}
- sv.ScanConfigurationArn = ptr.String(jtv)
}
- case "scanName":
+ case "runningUnitCount":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected CisScanName to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
}
- sv.ScanName = ptr.String(jtv)
- }
-
- case "schedule":
- if err := awsRestjson1_deserializeDocumentSchedule(&sv.Schedule, value); err != nil {
- return err
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.RunningUnitCount = ptr.Int64(i64)
}
- case "securityLevel":
+ case "stoppedUnitCount":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected CisSecurityLevel to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
}
- sv.SecurityLevel = types.CisSecurityLevel(jtv)
- }
-
- case "tags":
- if err := awsRestjson1_deserializeDocumentCisTagMap(&sv.Tags, value); err != nil {
- return err
- }
-
- case "targets":
- if err := awsRestjson1_deserializeDocumentCisTargets(&sv.Targets, value); err != nil {
- return err
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.StoppedUnitCount = ptr.Int64(i64)
}
default:
@@ -11743,7 +15101,7 @@ func awsRestjson1_deserializeDocumentCisScanConfiguration(v **types.CisScanConfi
return nil
}
-func awsRestjson1_deserializeDocumentCisScanConfigurationList(v *[]types.CisScanConfiguration, value interface{}) error {
+func awsRestjson1_deserializeDocumentClusterDetailsList(v *[]types.ClusterDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11756,17 +15114,17 @@ func awsRestjson1_deserializeDocumentCisScanConfigurationList(v *[]types.CisScan
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CisScanConfiguration
+ var cv []types.ClusterDetails
if *v == nil {
- cv = []types.CisScanConfiguration{}
+ cv = []types.ClusterDetails{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.CisScanConfiguration
+ var col types.ClusterDetails
destAddr := &col
- if err := awsRestjson1_deserializeDocumentCisScanConfiguration(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentClusterDetails(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -11777,7 +15135,52 @@ func awsRestjson1_deserializeDocumentCisScanConfigurationList(v *[]types.CisScan
return nil
}
-func awsRestjson1_deserializeDocumentCisScanList(v *[]types.CisScan, value interface{}) error {
+func awsRestjson1_deserializeDocumentClusterInformation(v **types.ClusterInformation, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ClusterInformation
+ if *v == nil {
+ sv = &types.ClusterInformation{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "clusterArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ClusterArn = ptr.String(jtv)
+ }
+
+ case "clusterDetails":
+ if err := awsRestjson1_deserializeDocumentClusterDetailsList(&sv.ClusterDetails, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentClusterInformationList(v *[]types.ClusterInformation, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11790,17 +15193,17 @@ func awsRestjson1_deserializeDocumentCisScanList(v *[]types.CisScan, value inter
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CisScan
+ var cv []types.ClusterInformation
if *v == nil {
- cv = []types.CisScan{}
+ cv = []types.ClusterInformation{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.CisScan
+ var col types.ClusterInformation
destAddr := &col
- if err := awsRestjson1_deserializeDocumentCisScan(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentClusterInformation(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -11811,7 +15214,7 @@ func awsRestjson1_deserializeDocumentCisScanList(v *[]types.CisScan, value inter
return nil
}
-func awsRestjson1_deserializeDocumentCisScanResultDetails(v **types.CisScanResultDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentClusterMetadata(v *types.ClusterMetadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11824,121 +15227,107 @@ func awsRestjson1_deserializeDocumentCisScanResultDetails(v **types.CisScanResul
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CisScanResultDetails
- if *v == nil {
- sv = &types.CisScanResultDetails{}
- } else {
- sv = *v
- }
-
+ var uv types.ClusterMetadata
+loop:
for key, value := range shape {
+ if value == nil {
+ continue
+ }
switch key {
- case "accountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.AccountId = ptr.String(jtv)
+ case "awsEcsMetadataDetails":
+ var mv types.AwsEcsMetadataDetails
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentAwsEcsMetadataDetails(&destAddr, value); err != nil {
+ return err
}
+ mv = *destAddr
+ uv = &types.ClusterMetadataMemberAwsEcsMetadataDetails{Value: mv}
+ break loop
- case "checkDescription":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.CheckDescription = ptr.String(jtv)
+ case "awsEksMetadataDetails":
+ var mv types.AwsEksMetadataDetails
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentAwsEksMetadataDetails(&destAddr, value); err != nil {
+ return err
}
+ mv = *destAddr
+ uv = &types.ClusterMetadataMemberAwsEksMetadataDetails{Value: mv}
+ break loop
- case "checkId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.CheckId = ptr.String(jtv)
- }
+ default:
+ uv = &types.UnknownUnionMember{Tag: key}
+ break loop
- case "findingArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisFindingArn to be of type string, got %T instead", value)
- }
- sv.FindingArn = ptr.String(jtv)
- }
+ }
+ }
+ *v = uv
+ return nil
+}
- case "level":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisSecurityLevel to be of type string, got %T instead", value)
- }
- sv.Level = types.CisSecurityLevel(jtv)
- }
+func awsRestjson1_deserializeDocumentCodeFilePath(v **types.CodeFilePath, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
- case "platform":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.Platform = ptr.String(jtv)
- }
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
- case "remediation":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.Remediation = ptr.String(jtv)
- }
+ var sv *types.CodeFilePath
+ if *v == nil {
+ sv = &types.CodeFilePath{}
+ } else {
+ sv = *v
+ }
- case "scanArn":
+ for key, value := range shape {
+ switch key {
+ case "endLine":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected CisScanArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
}
- sv.ScanArn = ptr.String(jtv)
- }
-
- case "status":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected CisFindingStatus to be of type string, got %T instead", value)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
}
- sv.Status = types.CisFindingStatus(jtv)
+ sv.EndLine = ptr.Int32(int32(i64))
}
- case "statusReason":
+ case "fileName":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.StatusReason = ptr.String(jtv)
+ sv.FileName = ptr.String(jtv)
}
- case "targetResourceId":
+ case "filePath":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.TargetResourceId = ptr.String(jtv)
+ sv.FilePath = ptr.String(jtv)
}
- case "title":
+ case "startLine":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
}
- sv.Title = ptr.String(jtv)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.StartLine = ptr.Int32(int32(i64))
}
default:
@@ -11950,7 +15339,7 @@ func awsRestjson1_deserializeDocumentCisScanResultDetails(v **types.CisScanResul
return nil
}
-func awsRestjson1_deserializeDocumentCisScanResultDetailsList(v *[]types.CisScanResultDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeLine(v **types.CodeLine, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11958,33 +15347,52 @@ func awsRestjson1_deserializeDocumentCisScanResultDetailsList(v *[]types.CisScan
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CisScanResultDetails
+ var sv *types.CodeLine
if *v == nil {
- cv = []types.CisScanResultDetails{}
+ sv = &types.CodeLine{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.CisScanResultDetails
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentCisScanResultDetails(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "content":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Content = ptr.String(jtv)
+ }
+
+ case "lineNumber":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.LineNumber = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentCisTagMap(v *map[string]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeLineList(v *[]types.CodeLine, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11992,35 +15400,33 @@ func awsRestjson1_deserializeDocumentCisTagMap(v *map[string]string, value inter
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var mv map[string]string
+ var cv []types.CodeLine
if *v == nil {
- mv = map[string]string{}
+ cv = []types.CodeLine{}
} else {
- mv = *v
+ cv = *v
}
- for key, value := range shape {
- var parsedVal string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected MapValue to be of type string, got %T instead", value)
- }
- parsedVal = jtv
+ for _, value := range shape {
+ var col types.CodeLine
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCodeLine(&destAddr, value); err != nil {
+ return err
}
- mv[key] = parsedVal
+ col = *destAddr
+ cv = append(cv, col)
}
- *v = mv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentCisTargetResourceAggregation(v **types.CisTargetResourceAggregation, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeRepositoryAggregationResponse(v **types.CodeRepositoryAggregationResponse, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12033,9 +15439,9 @@ func awsRestjson1_deserializeDocumentCisTargetResourceAggregation(v **types.CisT
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CisTargetResourceAggregation
+ var sv *types.CodeRepositoryAggregationResponse
if *v == nil {
- sv = &types.CisTargetResourceAggregation{}
+ sv = &types.CodeRepositoryAggregationResponse{}
} else {
sv = *v
}
@@ -12046,64 +15452,67 @@ func awsRestjson1_deserializeDocumentCisTargetResourceAggregation(v **types.CisT
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.AccountId = ptr.String(jtv)
}
- case "platform":
+ case "exploitAvailableActiveFindingsCount":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
}
- sv.Platform = ptr.String(jtv)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.ExploitAvailableActiveFindingsCount = ptr.Int64(i64)
}
- case "scanArn":
+ case "fixAvailableActiveFindingsCount":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected CisScanArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
}
- sv.ScanArn = ptr.String(jtv)
- }
-
- case "statusCounts":
- if err := awsRestjson1_deserializeDocumentStatusCounts(&sv.StatusCounts, value); err != nil {
- return err
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.FixAvailableActiveFindingsCount = ptr.Int64(i64)
}
- case "targetResourceId":
+ case "projectNames":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.TargetResourceId = ptr.String(jtv)
- }
-
- case "targetResourceTags":
- if err := awsRestjson1_deserializeDocumentTargetResourceTags(&sv.TargetResourceTags, value); err != nil {
- return err
+ sv.ProjectNames = ptr.String(jtv)
}
- case "targetStatus":
+ case "providerType":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected CisTargetStatus to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.TargetStatus = types.CisTargetStatus(jtv)
+ sv.ProviderType = ptr.String(jtv)
}
- case "targetStatusReason":
+ case "resourceId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected CisTargetStatusReason to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.TargetStatusReason = types.CisTargetStatusReason(jtv)
+ sv.ResourceId = ptr.String(jtv)
+ }
+
+ case "severityCounts":
+ if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
+ return err
}
default:
@@ -12115,7 +15524,7 @@ func awsRestjson1_deserializeDocumentCisTargetResourceAggregation(v **types.CisT
return nil
}
-func awsRestjson1_deserializeDocumentCisTargetResourceAggregationList(v *[]types.CisTargetResourceAggregation, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeRepositoryDetails(v **types.CodeRepositoryDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12123,33 +15532,57 @@ func awsRestjson1_deserializeDocumentCisTargetResourceAggregationList(v *[]types
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CisTargetResourceAggregation
+ var sv *types.CodeRepositoryDetails
if *v == nil {
- cv = []types.CisTargetResourceAggregation{}
+ sv = &types.CodeRepositoryDetails{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.CisTargetResourceAggregation
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentCisTargetResourceAggregation(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "integrationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeRepositoryIntegrationArn to be of type string, got %T instead", value)
+ }
+ sv.IntegrationArn = ptr.String(jtv)
+ }
+
+ case "projectName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeRepositoryProjectName to be of type string, got %T instead", value)
+ }
+ sv.ProjectName = ptr.String(jtv)
+ }
+
+ case "providerType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeRepositoryProviderType to be of type string, got %T instead", value)
+ }
+ sv.ProviderType = types.CodeRepositoryProviderType(jtv)
+ }
+
+ default:
+ _, _ = key, value
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentCisTargets(v **types.CisTargets, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeRepositoryMetadata(v **types.CodeRepositoryMetadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12162,22 +15595,67 @@ func awsRestjson1_deserializeDocumentCisTargets(v **types.CisTargets, value inte
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CisTargets
+ var sv *types.CodeRepositoryMetadata
if *v == nil {
- sv = &types.CisTargets{}
+ sv = &types.CodeRepositoryMetadata{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountIds":
- if err := awsRestjson1_deserializeDocumentCisAccountIdList(&sv.AccountIds, value); err != nil {
+ case "integrationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeRepositoryIntegrationArn to be of type string, got %T instead", value)
+ }
+ sv.IntegrationArn = ptr.String(jtv)
+ }
+
+ case "lastScannedCommitId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CommitId to be of type string, got %T instead", value)
+ }
+ sv.LastScannedCommitId = ptr.String(jtv)
+ }
+
+ case "onDemandScan":
+ if err := awsRestjson1_deserializeDocumentCodeRepositoryOnDemandScan(&sv.OnDemandScan, value); err != nil {
return err
}
- case "targetResourceTags":
- if err := awsRestjson1_deserializeDocumentTargetResourceTags(&sv.TargetResourceTags, value); err != nil {
+ case "projectName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ProjectName = ptr.String(jtv)
+ }
+
+ case "providerType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ProviderType = ptr.String(jtv)
+ }
+
+ case "providerTypeVisibility":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ProviderTypeVisibility = ptr.String(jtv)
+ }
+
+ case "scanConfiguration":
+ if err := awsRestjson1_deserializeDocumentProjectCodeSecurityScanConfiguration(&sv.ScanConfiguration, value); err != nil {
return err
}
@@ -12190,7 +15668,7 @@ func awsRestjson1_deserializeDocumentCisTargets(v **types.CisTargets, value inte
return nil
}
-func awsRestjson1_deserializeDocumentClusterDetails(v **types.ClusterDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeRepositoryOnDemandScan(v **types.CodeRepositoryOnDemandScan, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12203,21 +15681,16 @@ func awsRestjson1_deserializeDocumentClusterDetails(v **types.ClusterDetails, va
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.ClusterDetails
+ var sv *types.CodeRepositoryOnDemandScan
if *v == nil {
- sv = &types.ClusterDetails{}
+ sv = &types.CodeRepositoryOnDemandScan{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "clusterMetadata":
- if err := awsRestjson1_deserializeDocumentClusterMetadata(&sv.ClusterMetadata, value); err != nil {
- return err
- }
-
- case "lastInUse":
+ case "lastScanAt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -12225,38 +15698,26 @@ func awsRestjson1_deserializeDocumentClusterDetails(v **types.ClusterDetails, va
if err != nil {
return err
}
- sv.LastInUse = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.LastScanAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
- return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
}
}
- case "runningUnitCount":
+ case "lastScannedCommitId":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ return fmt.Errorf("expected CommitId to be of type string, got %T instead", value)
}
- sv.RunningUnitCount = ptr.Int64(i64)
+ sv.LastScannedCommitId = ptr.String(jtv)
}
- case "stoppedUnitCount":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.StoppedUnitCount = ptr.Int64(i64)
+ case "scanStatus":
+ if err := awsRestjson1_deserializeDocumentScanStatus(&sv.ScanStatus, value); err != nil {
+ return err
}
default:
@@ -12268,7 +15729,7 @@ func awsRestjson1_deserializeDocumentClusterDetails(v **types.ClusterDetails, va
return nil
}
-func awsRestjson1_deserializeDocumentClusterDetailsList(v *[]types.ClusterDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeSecurityIntegrationSummary(v **types.CodeSecurityIntegrationSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12276,68 +15737,102 @@ func awsRestjson1_deserializeDocumentClusterDetailsList(v *[]types.ClusterDetail
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.ClusterDetails
+ var sv *types.CodeSecurityIntegrationSummary
if *v == nil {
- cv = []types.ClusterDetails{}
+ sv = &types.CodeSecurityIntegrationSummary{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.ClusterDetails
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentClusterDetails(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "createdOn":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.CreatedOn = ptr.Time(smithytime.ParseEpochSeconds(f64))
- }
- *v = cv
- return nil
-}
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
-func awsRestjson1_deserializeDocumentClusterInformation(v **types.ClusterInformation, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+ }
+ }
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ case "integrationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CodeSecurityIntegrationArn to be of type string, got %T instead", value)
+ }
+ sv.IntegrationArn = ptr.String(jtv)
+ }
- var sv *types.ClusterInformation
- if *v == nil {
- sv = &types.ClusterInformation{}
- } else {
- sv = *v
- }
+ case "lastUpdateOn":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastUpdateOn = ptr.Time(smithytime.ParseEpochSeconds(f64))
- for key, value := range shape {
- switch key {
- case "clusterArn":
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IntegrationName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IntegrationStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.IntegrationStatus(jtv)
+ }
+
+ case "statusReason":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.ClusterArn = ptr.String(jtv)
+ sv.StatusReason = ptr.String(jtv)
}
- case "clusterDetails":
- if err := awsRestjson1_deserializeDocumentClusterDetailsList(&sv.ClusterDetails, value); err != nil {
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
return err
}
+ case "type":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IntegrationType to be of type string, got %T instead", value)
+ }
+ sv.Type = types.IntegrationType(jtv)
+ }
+
default:
_, _ = key, value
@@ -12347,41 +15842,7 @@ func awsRestjson1_deserializeDocumentClusterInformation(v **types.ClusterInforma
return nil
}
-func awsRestjson1_deserializeDocumentClusterInformationList(v *[]types.ClusterInformation, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.([]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var cv []types.ClusterInformation
- if *v == nil {
- cv = []types.ClusterInformation{}
- } else {
- cv = *v
- }
-
- for _, value := range shape {
- var col types.ClusterInformation
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentClusterInformation(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
-
- }
- *v = cv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentClusterMetadata(v *types.ClusterMetadata, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeSecurityResource(v *types.CodeSecurityResource, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12394,31 +15855,23 @@ func awsRestjson1_deserializeDocumentClusterMetadata(v *types.ClusterMetadata, v
return fmt.Errorf("unexpected JSON type %v", value)
}
- var uv types.ClusterMetadata
+ var uv types.CodeSecurityResource
loop:
for key, value := range shape {
if value == nil {
continue
}
switch key {
- case "awsEcsMetadataDetails":
- var mv types.AwsEcsMetadataDetails
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentAwsEcsMetadataDetails(&destAddr, value); err != nil {
- return err
- }
- mv = *destAddr
- uv = &types.ClusterMetadataMemberAwsEcsMetadataDetails{Value: mv}
- break loop
-
- case "awsEksMetadataDetails":
- var mv types.AwsEksMetadataDetails
- destAddr := &mv
- if err := awsRestjson1_deserializeDocumentAwsEksMetadataDetails(&destAddr, value); err != nil {
- return err
+ case "projectId":
+ var mv string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ProjectId to be of type string, got %T instead", value)
+ }
+ mv = jtv
}
- mv = *destAddr
- uv = &types.ClusterMetadataMemberAwsEksMetadataDetails{Value: mv}
+ uv = &types.CodeSecurityResourceMemberProjectId{Value: mv}
break loop
default:
@@ -12431,7 +15884,7 @@ loop:
return nil
}
-func awsRestjson1_deserializeDocumentCodeFilePath(v **types.CodeFilePath, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeSecurityScanConfiguration(v **types.CodeSecurityScanConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12444,57 +15897,28 @@ func awsRestjson1_deserializeDocumentCodeFilePath(v **types.CodeFilePath, value
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CodeFilePath
+ var sv *types.CodeSecurityScanConfiguration
if *v == nil {
- sv = &types.CodeFilePath{}
+ sv = &types.CodeSecurityScanConfiguration{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "endLine":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.EndLine = ptr.Int32(int32(i64))
- }
-
- case "fileName":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.FileName = ptr.String(jtv)
+ case "continuousIntegrationScanConfiguration":
+ if err := awsRestjson1_deserializeDocumentContinuousIntegrationScanConfiguration(&sv.ContinuousIntegrationScanConfiguration, value); err != nil {
+ return err
}
- case "filePath":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.FilePath = ptr.String(jtv)
+ case "periodicScanConfiguration":
+ if err := awsRestjson1_deserializeDocumentPeriodicScanConfiguration(&sv.PeriodicScanConfiguration, value); err != nil {
+ return err
}
- case "startLine":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.StartLine = ptr.Int32(int32(i64))
+ case "ruleSetCategories":
+ if err := awsRestjson1_deserializeDocumentRuleSetCategories(&sv.RuleSetCategories, value); err != nil {
+ return err
}
default:
@@ -12502,11 +15926,45 @@ func awsRestjson1_deserializeDocumentCodeFilePath(v **types.CodeFilePath, value
}
}
- *v = sv
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentCodeSecurityScanConfigurationAssociationSummaries(v *[]types.CodeSecurityScanConfigurationAssociationSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.CodeSecurityScanConfigurationAssociationSummary
+ if *v == nil {
+ cv = []types.CodeSecurityScanConfigurationAssociationSummary{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.CodeSecurityScanConfigurationAssociationSummary
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCodeSecurityScanConfigurationAssociationSummary(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentCodeLine(v **types.CodeLine, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeSecurityScanConfigurationAssociationSummary(v **types.CodeSecurityScanConfigurationAssociationSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12519,35 +15977,18 @@ func awsRestjson1_deserializeDocumentCodeLine(v **types.CodeLine, value interfac
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CodeLine
+ var sv *types.CodeSecurityScanConfigurationAssociationSummary
if *v == nil {
- sv = &types.CodeLine{}
+ sv = &types.CodeSecurityScanConfigurationAssociationSummary{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "content":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.Content = ptr.String(jtv)
- }
-
- case "lineNumber":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.LineNumber = ptr.Int32(int32(i64))
+ case "resource":
+ if err := awsRestjson1_deserializeDocumentCodeSecurityResource(&sv.Resource, value); err != nil {
+ return err
}
default:
@@ -12559,7 +16000,7 @@ func awsRestjson1_deserializeDocumentCodeLine(v **types.CodeLine, value interfac
return nil
}
-func awsRestjson1_deserializeDocumentCodeLineList(v *[]types.CodeLine, value interface{}) error {
+func awsRestjson1_deserializeDocumentCodeSecurityScanConfigurationSummaries(v *[]types.CodeSecurityScanConfigurationSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -12572,17 +16013,17 @@ func awsRestjson1_deserializeDocumentCodeLineList(v *[]types.CodeLine, value int
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CodeLine
+ var cv []types.CodeSecurityScanConfigurationSummary
if *v == nil {
- cv = []types.CodeLine{}
+ cv = []types.CodeSecurityScanConfigurationSummary{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.CodeLine
+ var col types.CodeSecurityScanConfigurationSummary
destAddr := &col
- if err := awsRestjson1_deserializeDocumentCodeLine(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentCodeSecurityScanConfigurationSummary(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -12593,6 +16034,102 @@ func awsRestjson1_deserializeDocumentCodeLineList(v *[]types.CodeLine, value int
return nil
}
+func awsRestjson1_deserializeDocumentCodeSecurityScanConfigurationSummary(v **types.CodeSecurityScanConfigurationSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.CodeSecurityScanConfigurationSummary
+ if *v == nil {
+ sv = &types.CodeSecurityScanConfigurationSummary{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "continuousIntegrationScanSupportedEvents":
+ if err := awsRestjson1_deserializeDocumentContinuousIntegrationScanSupportedEvents(&sv.ContinuousIntegrationScanSupportedEvents, value); err != nil {
+ return err
+ }
+
+ case "frequencyExpression":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FrequencyExpression to be of type string, got %T instead", value)
+ }
+ sv.FrequencyExpression = ptr.String(jtv)
+ }
+
+ case "name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ScanConfigurationName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "ownerAccountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value)
+ }
+ sv.OwnerAccountId = ptr.String(jtv)
+ }
+
+ case "periodicScanFrequency":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PeriodicScanFrequency to be of type string, got %T instead", value)
+ }
+ sv.PeriodicScanFrequency = types.PeriodicScanFrequency(jtv)
+ }
+
+ case "ruleSetCategories":
+ if err := awsRestjson1_deserializeDocumentRuleSetCategories(&sv.RuleSetCategories, value); err != nil {
+ return err
+ }
+
+ case "scanConfigurationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ScanConfigurationArn to be of type string, got %T instead", value)
+ }
+ sv.ScanConfigurationArn = ptr.String(jtv)
+ }
+
+ case "scopeSettings":
+ if err := awsRestjson1_deserializeDocumentScopeSettings(&sv.ScopeSettings, value); err != nil {
+ return err
+ }
+
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentCodeSnippetError(v **types.CodeSnippetError, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -12940,6 +16477,78 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti
return nil
}
+func awsRestjson1_deserializeDocumentContinuousIntegrationScanConfiguration(v **types.ContinuousIntegrationScanConfiguration, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ContinuousIntegrationScanConfiguration
+ if *v == nil {
+ sv = &types.ContinuousIntegrationScanConfiguration{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "supportedEvents":
+ if err := awsRestjson1_deserializeDocumentContinuousIntegrationScanSupportedEvents(&sv.SupportedEvents, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentContinuousIntegrationScanSupportedEvents(v *[]types.ContinuousIntegrationScanEvent, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ContinuousIntegrationScanEvent
+ if *v == nil {
+ cv = []types.ContinuousIntegrationScanEvent{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ContinuousIntegrationScanEvent
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ContinuousIntegrationScanEvent to be of type string, got %T instead", value)
+ }
+ col = types.ContinuousIntegrationScanEvent(jtv)
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentCounts(v **types.Counts, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -13142,28 +16751,102 @@ func awsRestjson1_deserializeDocumentCoveredResources(v *[]types.CoveredResource
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CoveredResource
- if *v == nil {
- cv = []types.CoveredResource{}
- } else {
- cv = *v
- }
+ var cv []types.CoveredResource
+ if *v == nil {
+ cv = []types.CoveredResource{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.CoveredResource
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCoveredResource(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentCvss2(v **types.Cvss2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.Cvss2
+ if *v == nil {
+ sv = &types.Cvss2{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "baseScore":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.BaseScore = f64
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.BaseScore = f64
+
+ default:
+ return fmt.Errorf("expected Cvss2BaseScore to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "scoringVector":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Cvss2ScoringVector to be of type string, got %T instead", value)
+ }
+ sv.ScoringVector = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
- for _, value := range shape {
- var col types.CoveredResource
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentCoveredResource(&destAddr, value); err != nil {
- return err
}
- col = *destAddr
- cv = append(cv, col)
-
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentCvss2(v **types.Cvss2, value interface{}) error {
+func awsRestjson1_deserializeDocumentCvss3(v **types.Cvss3, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13176,9 +16859,9 @@ func awsRestjson1_deserializeDocumentCvss2(v **types.Cvss2, value interface{}) e
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Cvss2
+ var sv *types.Cvss3
if *v == nil {
- sv = &types.Cvss2{}
+ sv = &types.Cvss3{}
} else {
sv = *v
}
@@ -13214,7 +16897,7 @@ func awsRestjson1_deserializeDocumentCvss2(v **types.Cvss2, value interface{}) e
sv.BaseScore = f64
default:
- return fmt.Errorf("expected Cvss2BaseScore to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected Cvss3BaseScore to be a JSON Number, got %T instead", value)
}
}
@@ -13223,7 +16906,7 @@ func awsRestjson1_deserializeDocumentCvss2(v **types.Cvss2, value interface{}) e
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Cvss2ScoringVector to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Cvss3ScoringVector to be of type string, got %T instead", value)
}
sv.ScoringVector = ptr.String(jtv)
}
@@ -13237,7 +16920,7 @@ func awsRestjson1_deserializeDocumentCvss2(v **types.Cvss2, value interface{}) e
return nil
}
-func awsRestjson1_deserializeDocumentCvss3(v **types.Cvss3, value interface{}) error {
+func awsRestjson1_deserializeDocumentCvssScore(v **types.CvssScore, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13250,9 +16933,9 @@ func awsRestjson1_deserializeDocumentCvss3(v **types.Cvss3, value interface{}) e
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Cvss3
+ var sv *types.CvssScore
if *v == nil {
- sv = &types.Cvss3{}
+ sv = &types.CvssScore{}
} else {
sv = *v
}
@@ -13267,7 +16950,7 @@ func awsRestjson1_deserializeDocumentCvss3(v **types.Cvss3, value interface{}) e
if err != nil {
return err
}
- sv.BaseScore = f64
+ sv.BaseScore = ptr.Float64(f64)
case string:
var f64 float64
@@ -13285,10 +16968,10 @@ func awsRestjson1_deserializeDocumentCvss3(v **types.Cvss3, value interface{}) e
return fmt.Errorf("unknown JSON number value: %s", jtv)
}
- sv.BaseScore = f64
+ sv.BaseScore = ptr.Float64(f64)
default:
- return fmt.Errorf("expected Cvss3BaseScore to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
}
}
@@ -13297,11 +16980,29 @@ func awsRestjson1_deserializeDocumentCvss3(v **types.Cvss3, value interface{}) e
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Cvss3ScoringVector to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
sv.ScoringVector = ptr.String(jtv)
}
+ case "source":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Source = ptr.String(jtv)
+ }
+
+ case "version":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Version = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
@@ -13311,7 +17012,7 @@ func awsRestjson1_deserializeDocumentCvss3(v **types.Cvss3, value interface{}) e
return nil
}
-func awsRestjson1_deserializeDocumentCvssScore(v **types.CvssScore, value interface{}) error {
+func awsRestjson1_deserializeDocumentCvssScoreAdjustment(v **types.CvssScoreAdjustment, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13324,16 +17025,113 @@ func awsRestjson1_deserializeDocumentCvssScore(v **types.CvssScore, value interf
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CvssScore
+ var sv *types.CvssScoreAdjustment
if *v == nil {
- sv = &types.CvssScore{}
+ sv = &types.CvssScoreAdjustment{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "baseScore":
+ case "metric":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Metric = ptr.String(jtv)
+ }
+
+ case "reason":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Reason = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentCvssScoreAdjustmentList(v *[]types.CvssScoreAdjustment, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.CvssScoreAdjustment
+ if *v == nil {
+ cv = []types.CvssScoreAdjustment{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.CvssScoreAdjustment
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCvssScoreAdjustment(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentCvssScoreDetails(v **types.CvssScoreDetails, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.CvssScoreDetails
+ if *v == nil {
+ sv = &types.CvssScoreDetails{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "adjustments":
+ if err := awsRestjson1_deserializeDocumentCvssScoreAdjustmentList(&sv.Adjustments, value); err != nil {
+ return err
+ }
+
+ case "cvssSource":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.CvssSource = ptr.String(jtv)
+ }
+
+ case "score":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -13341,7 +17139,7 @@ func awsRestjson1_deserializeDocumentCvssScore(v **types.CvssScore, value interf
if err != nil {
return err
}
- sv.BaseScore = ptr.Float64(f64)
+ sv.Score = ptr.Float64(f64)
case string:
var f64 float64
@@ -13359,7 +17157,7 @@ func awsRestjson1_deserializeDocumentCvssScore(v **types.CvssScore, value interf
return fmt.Errorf("unknown JSON number value: %s", jtv)
}
- sv.BaseScore = ptr.Float64(f64)
+ sv.Score = ptr.Float64(f64)
default:
return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
@@ -13367,22 +17165,22 @@ func awsRestjson1_deserializeDocumentCvssScore(v **types.CvssScore, value interf
}
}
- case "scoringVector":
+ case "scoreSource":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.ScoringVector = ptr.String(jtv)
+ sv.ScoreSource = ptr.String(jtv)
}
- case "source":
+ case "scoringVector":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Source = ptr.String(jtv)
+ sv.ScoringVector = ptr.String(jtv)
}
case "version":
@@ -13403,7 +17201,77 @@ func awsRestjson1_deserializeDocumentCvssScore(v **types.CvssScore, value interf
return nil
}
-func awsRestjson1_deserializeDocumentCvssScoreAdjustment(v **types.CvssScoreAdjustment, value interface{}) error {
+func awsRestjson1_deserializeDocumentCvssScoreList(v *[]types.CvssScore, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.CvssScore
+ if *v == nil {
+ cv = []types.CvssScore{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.CvssScore
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCvssScore(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentCweList(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentCwes(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13411,48 +17279,35 @@ func awsRestjson1_deserializeDocumentCvssScoreAdjustment(v **types.CvssScoreAdju
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CvssScoreAdjustment
+ var cv []string
if *v == nil {
- sv = &types.CvssScoreAdjustment{}
+ cv = []string{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "metric":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Metric = ptr.String(jtv)
- }
-
- case "reason":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Reason = ptr.String(jtv)
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Cwe to be of type string, got %T instead", value)
}
-
- default:
- _, _ = key, value
-
+ col = jtv
}
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentCvssScoreAdjustmentList(v *[]types.CvssScoreAdjustment, value interface{}) error {
+func awsRestjson1_deserializeDocumentDailySchedule(v **types.DailySchedule, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13460,33 +17315,35 @@ func awsRestjson1_deserializeDocumentCvssScoreAdjustmentList(v *[]types.CvssScor
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CvssScoreAdjustment
+ var sv *types.DailySchedule
if *v == nil {
- cv = []types.CvssScoreAdjustment{}
+ sv = &types.DailySchedule{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.CvssScoreAdjustment
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentCvssScoreAdjustment(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "startTime":
+ if err := awsRestjson1_deserializeDocumentTime(&sv.StartTime, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentCvssScoreDetails(v **types.CvssScoreDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentDateFilter(v **types.DateFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13499,30 +17356,16 @@ func awsRestjson1_deserializeDocumentCvssScoreDetails(v **types.CvssScoreDetails
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.CvssScoreDetails
+ var sv *types.DateFilter
if *v == nil {
- sv = &types.CvssScoreDetails{}
+ sv = &types.DateFilter{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "adjustments":
- if err := awsRestjson1_deserializeDocumentCvssScoreAdjustmentList(&sv.Adjustments, value); err != nil {
- return err
- }
-
- case "cvssSource":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.CvssSource = ptr.String(jtv)
- }
-
- case "score":
+ case "endInclusive":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -13530,57 +17373,28 @@ func awsRestjson1_deserializeDocumentCvssScoreDetails(v **types.CvssScoreDetails
if err != nil {
return err
}
- sv.Score = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.Score = ptr.Float64(f64)
+ sv.EndInclusive = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
- case "scoreSource":
+ case "startInclusive":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ScoreSource = ptr.String(jtv)
- }
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.StartInclusive = ptr.Time(smithytime.ParseEpochSeconds(f64))
- case "scoringVector":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ScoringVector = ptr.String(jtv)
- }
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
- case "version":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Version = ptr.String(jtv)
}
default:
@@ -13592,7 +17406,7 @@ func awsRestjson1_deserializeDocumentCvssScoreDetails(v **types.CvssScoreDetails
return nil
}
-func awsRestjson1_deserializeDocumentCvssScoreList(v *[]types.CvssScore, value interface{}) error {
+func awsRestjson1_deserializeDocumentDateFilterList(v *[]types.DateFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13605,17 +17419,17 @@ func awsRestjson1_deserializeDocumentCvssScoreList(v *[]types.CvssScore, value i
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.CvssScore
+ var cv []types.DateFilter
if *v == nil {
- cv = []types.CvssScore{}
+ cv = []types.DateFilter{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.CvssScore
+ var col types.DateFilter
destAddr := &col
- if err := awsRestjson1_deserializeDocumentCvssScore(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentDateFilter(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -13626,7 +17440,7 @@ func awsRestjson1_deserializeDocumentCvssScoreList(v *[]types.CvssScore, value i
return nil
}
-func awsRestjson1_deserializeDocumentCweList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentDaysList(v *[]types.Day, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13639,21 +17453,21 @@ func awsRestjson1_deserializeDocumentCweList(v *[]string, value interface{}) err
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var cv []types.Day
if *v == nil {
- cv = []string{}
+ cv = []types.Day{}
} else {
cv = *v
}
for _, value := range shape {
- var col string
+ var col types.Day
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Day to be of type string, got %T instead", value)
}
- col = jtv
+ col = types.Day(jtv)
}
cv = append(cv, col)
@@ -13662,7 +17476,7 @@ func awsRestjson1_deserializeDocumentCweList(v *[]string, value interface{}) err
return nil
}
-func awsRestjson1_deserializeDocumentCwes(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentDelegatedAdmin(v **types.DelegatedAdmin, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13670,35 +17484,97 @@ func awsRestjson1_deserializeDocumentCwes(v *[]string, value interface{}) error
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var sv *types.DelegatedAdmin
if *v == nil {
- cv = []string{}
+ sv = &types.DelegatedAdmin{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Cwe to be of type string, got %T instead", value)
+ for key, value := range shape {
+ switch key {
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
}
- col = jtv
+
+ case "relationshipStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected RelationshipStatus to be of type string, got %T instead", value)
+ }
+ sv.RelationshipStatus = types.RelationshipStatus(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
}
- cv = append(cv, col)
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentDelegatedAdminAccount(v **types.DelegatedAdminAccount, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.DelegatedAdminAccount
+ if *v == nil {
+ sv = &types.DelegatedAdminAccount{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
+ }
+
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected DelegatedAdminStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.DelegatedAdminStatus(jtv)
+ }
+
+ default:
+ _, _ = key, value
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentDailySchedule(v **types.DailySchedule, value interface{}) error {
+func awsRestjson1_deserializeDocumentDelegatedAdminAccountList(v *[]types.DelegatedAdminAccount, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13706,35 +17582,33 @@ func awsRestjson1_deserializeDocumentDailySchedule(v **types.DailySchedule, valu
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.DailySchedule
+ var cv []types.DelegatedAdminAccount
if *v == nil {
- sv = &types.DailySchedule{}
+ cv = []types.DelegatedAdminAccount{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "startTime":
- if err := awsRestjson1_deserializeDocumentTime(&sv.StartTime, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
+ for _, value := range shape {
+ var col types.DelegatedAdminAccount
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentDelegatedAdminAccount(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentDateFilter(v **types.DateFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13747,45 +17621,40 @@ func awsRestjson1_deserializeDocumentDateFilter(v **types.DateFilter, value inte
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.DateFilter
+ var sv *types.Destination
if *v == nil {
- sv = &types.DateFilter{}
+ sv = &types.Destination{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "endInclusive":
+ case "bucketName":
if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.EndInclusive = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
-
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
+ sv.BucketName = ptr.String(jtv)
}
- case "startInclusive":
+ case "keyPrefix":
if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.StartInclusive = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.KeyPrefix = ptr.String(jtv)
+ }
+ case "kmsKeyArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
+ sv.KmsKeyArn = ptr.String(jtv)
}
default:
@@ -13797,7 +17666,7 @@ func awsRestjson1_deserializeDocumentDateFilter(v **types.DateFilter, value inte
return nil
}
-func awsRestjson1_deserializeDocumentDateFilterList(v *[]types.DateFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentDetectionPlatforms(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13810,20 +17679,22 @@ func awsRestjson1_deserializeDocumentDateFilterList(v *[]types.DateFilter, value
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.DateFilter
+ var cv []string
if *v == nil {
- cv = []types.DateFilter{}
+ cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.DateFilter
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentDateFilter(&destAddr, value); err != nil {
- return err
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ col = jtv
}
- col = *destAddr
cv = append(cv, col)
}
@@ -13831,7 +17702,7 @@ func awsRestjson1_deserializeDocumentDateFilterList(v *[]types.DateFilter, value
return nil
}
-func awsRestjson1_deserializeDocumentDaysList(v *[]types.Day, value interface{}) error {
+func awsRestjson1_deserializeDocumentDetectorTagList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13844,21 +17715,21 @@ func awsRestjson1_deserializeDocumentDaysList(v *[]types.Day, value interface{})
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Day
+ var cv []string
if *v == nil {
- cv = []types.Day{}
+ cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.Day
+ var col string
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Day to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- col = types.Day(jtv)
+ col = jtv
}
cv = append(cv, col)
@@ -13867,7 +17738,7 @@ func awsRestjson1_deserializeDocumentDaysList(v *[]types.Day, value interface{})
return nil
}
-func awsRestjson1_deserializeDocumentDelegatedAdmin(v **types.DelegatedAdmin, value interface{}) error {
+func awsRestjson1_deserializeDocumentEc2ConfigurationState(v **types.Ec2ConfigurationState, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13880,31 +17751,18 @@ func awsRestjson1_deserializeDocumentDelegatedAdmin(v **types.DelegatedAdmin, va
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.DelegatedAdmin
+ var sv *types.Ec2ConfigurationState
if *v == nil {
- sv = &types.DelegatedAdmin{}
+ sv = &types.Ec2ConfigurationState{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.AccountId = ptr.String(jtv)
- }
-
- case "relationshipStatus":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected RelationshipStatus to be of type string, got %T instead", value)
- }
- sv.RelationshipStatus = types.RelationshipStatus(jtv)
+ case "scanModeState":
+ if err := awsRestjson1_deserializeDocumentEc2ScanModeState(&sv.ScanModeState, value); err != nil {
+ return err
}
default:
@@ -13916,7 +17774,7 @@ func awsRestjson1_deserializeDocumentDelegatedAdmin(v **types.DelegatedAdmin, va
return nil
}
-func awsRestjson1_deserializeDocumentDelegatedAdminAccount(v **types.DelegatedAdminAccount, value interface{}) error {
+func awsRestjson1_deserializeDocumentEc2InstanceAggregationResponse(v **types.Ec2InstanceAggregationResponse, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13929,9 +17787,9 @@ func awsRestjson1_deserializeDocumentDelegatedAdminAccount(v **types.DelegatedAd
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.DelegatedAdminAccount
+ var sv *types.Ec2InstanceAggregationResponse
if *v == nil {
- sv = &types.DelegatedAdminAccount{}
+ sv = &types.Ec2InstanceAggregationResponse{}
} else {
sv = *v
}
@@ -13942,18 +17800,59 @@ func awsRestjson1_deserializeDocumentDelegatedAdminAccount(v **types.DelegatedAd
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.AccountId = ptr.String(jtv)
}
- case "status":
+ case "ami":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected DelegatedAdminStatus to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AmiId to be of type string, got %T instead", value)
}
- sv.Status = types.DelegatedAdminStatus(jtv)
+ sv.Ami = ptr.String(jtv)
+ }
+
+ case "instanceId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.InstanceId = ptr.String(jtv)
+ }
+
+ case "instanceTags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.InstanceTags, value); err != nil {
+ return err
+ }
+
+ case "networkFindings":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.NetworkFindings = ptr.Int64(i64)
+ }
+
+ case "operatingSystem":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.OperatingSystem = ptr.String(jtv)
+ }
+
+ case "severityCounts":
+ if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
+ return err
}
default:
@@ -13965,7 +17864,7 @@ func awsRestjson1_deserializeDocumentDelegatedAdminAccount(v **types.DelegatedAd
return nil
}
-func awsRestjson1_deserializeDocumentDelegatedAdminAccountList(v *[]types.DelegatedAdminAccount, value interface{}) error {
+func awsRestjson1_deserializeDocumentEc2Metadata(v **types.Ec2Metadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -13973,33 +17872,53 @@ func awsRestjson1_deserializeDocumentDelegatedAdminAccountList(v *[]types.Delega
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.DelegatedAdminAccount
+ var sv *types.Ec2Metadata
if *v == nil {
- cv = []types.DelegatedAdminAccount{}
+ sv = &types.Ec2Metadata{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.DelegatedAdminAccount
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentDelegatedAdminAccount(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "amiId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AmiId to be of type string, got %T instead", value)
+ }
+ sv.AmiId = ptr.String(jtv)
+ }
+
+ case "platform":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Ec2Platform to be of type string, got %T instead", value)
+ }
+ sv.Platform = types.Ec2Platform(jtv)
+ }
+
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
+ return err
+ }
+ default:
+ _, _ = key, value
+
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value interface{}) error {
+func awsRestjson1_deserializeDocumentEc2ScanModeState(v **types.Ec2ScanModeState, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14012,40 +17931,31 @@ func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value in
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Destination
+ var sv *types.Ec2ScanModeState
if *v == nil {
- sv = &types.Destination{}
+ sv = &types.Ec2ScanModeState{}
} else {
sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "bucketName":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.BucketName = ptr.String(jtv)
- }
+ }
- case "keyPrefix":
+ for key, value := range shape {
+ switch key {
+ case "scanMode":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Ec2ScanMode to be of type string, got %T instead", value)
}
- sv.KeyPrefix = ptr.String(jtv)
+ sv.ScanMode = types.Ec2ScanMode(jtv)
}
- case "kmsKeyArn":
+ case "scanModeStatus":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Ec2ScanModeStatus to be of type string, got %T instead", value)
}
- sv.KmsKeyArn = ptr.String(jtv)
+ sv.ScanModeStatus = types.Ec2ScanModeStatus(jtv)
}
default:
@@ -14057,7 +17967,7 @@ func awsRestjson1_deserializeDocumentDestination(v **types.Destination, value in
return nil
}
-func awsRestjson1_deserializeDocumentDetectionPlatforms(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentEcrConfigurationState(v **types.EcrConfigurationState, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14065,35 +17975,35 @@ func awsRestjson1_deserializeDocumentDetectionPlatforms(v *[]string, value inter
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var sv *types.EcrConfigurationState
if *v == nil {
- cv = []string{}
+ sv = &types.EcrConfigurationState{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ for key, value := range shape {
+ switch key {
+ case "rescanDurationState":
+ if err := awsRestjson1_deserializeDocumentEcrRescanDurationState(&sv.RescanDurationState, value); err != nil {
+ return err
}
- col = jtv
- }
- cv = append(cv, col)
+ default:
+ _, _ = key, value
+
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentDetectorTagList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentEcrContainerImageMetadata(v **types.EcrContainerImageMetadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14101,35 +18011,80 @@ func awsRestjson1_deserializeDocumentDetectorTagList(v *[]string, value interfac
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var sv *types.EcrContainerImageMetadata
if *v == nil {
- cv = []string{}
+ sv = &types.EcrContainerImageMetadata{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ for key, value := range shape {
+ switch key {
+ case "imagePulledAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.ImagePulledAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
}
- col = jtv
- }
- cv = append(cv, col)
+ case "inUseCount":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.InUseCount = ptr.Int64(i64)
+ }
+
+ case "lastInUseAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastInUseAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentTagList(&sv.Tags, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentEc2ConfigurationState(v **types.Ec2ConfigurationState, value interface{}) error {
+func awsRestjson1_deserializeDocumentEcrRepositoryMetadata(v **types.EcrRepositoryMetadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14142,18 +18097,31 @@ func awsRestjson1_deserializeDocumentEc2ConfigurationState(v **types.Ec2Configur
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Ec2ConfigurationState
+ var sv *types.EcrRepositoryMetadata
if *v == nil {
- sv = &types.Ec2ConfigurationState{}
+ sv = &types.EcrRepositoryMetadata{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "scanModeState":
- if err := awsRestjson1_deserializeDocumentEc2ScanModeState(&sv.ScanModeState, value); err != nil {
- return err
+ case "name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "scanFrequency":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected EcrScanFrequency to be of type string, got %T instead", value)
+ }
+ sv.ScanFrequency = types.EcrScanFrequency(jtv)
}
default:
@@ -14165,7 +18133,7 @@ func awsRestjson1_deserializeDocumentEc2ConfigurationState(v **types.Ec2Configur
return nil
}
-func awsRestjson1_deserializeDocumentEc2InstanceAggregationResponse(v **types.Ec2InstanceAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentEcrRescanDurationState(v **types.EcrRescanDurationState, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14178,72 +18146,130 @@ func awsRestjson1_deserializeDocumentEc2InstanceAggregationResponse(v **types.Ec
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Ec2InstanceAggregationResponse
+ var sv *types.EcrRescanDurationState
if *v == nil {
- sv = &types.Ec2InstanceAggregationResponse{}
+ sv = &types.EcrRescanDurationState{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
+ case "pullDateRescanDuration":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected EcrPullDateRescanDuration to be of type string, got %T instead", value)
}
- sv.AccountId = ptr.String(jtv)
+ sv.PullDateRescanDuration = types.EcrPullDateRescanDuration(jtv)
}
- case "ami":
+ case "pullDateRescanMode":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AmiId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected EcrPullDateRescanMode to be of type string, got %T instead", value)
}
- sv.Ami = ptr.String(jtv)
+ sv.PullDateRescanMode = types.EcrPullDateRescanMode(jtv)
}
- case "instanceId":
+ case "rescanDuration":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected EcrRescanDuration to be of type string, got %T instead", value)
}
- sv.InstanceId = ptr.String(jtv)
- }
-
- case "instanceTags":
- if err := awsRestjson1_deserializeDocumentTagMap(&sv.InstanceTags, value); err != nil {
- return err
+ sv.RescanDuration = types.EcrRescanDuration(jtv)
}
- case "networkFindings":
+ case "status":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ return fmt.Errorf("expected EcrRescanDurationStatus to be of type string, got %T instead", value)
}
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ sv.Status = types.EcrRescanDurationStatus(jtv)
+ }
+
+ case "updatedAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
}
- sv.NetworkFindings = ptr.Int64(i64)
}
- case "operatingSystem":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.OperatingSystem = ptr.String(jtv)
- }
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentEpss(v **types.Epss, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.Epss
+ if *v == nil {
+ sv = &types.Epss{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "score":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.Score = f64
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.Score = f64
- case "severityCounts":
- if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
- return err
+ default:
+ return fmt.Errorf("expected EpssScore to be a JSON Number, got %T instead", value)
+
+ }
}
default:
@@ -14255,7 +18281,7 @@ func awsRestjson1_deserializeDocumentEc2InstanceAggregationResponse(v **types.Ec
return nil
}
-func awsRestjson1_deserializeDocumentEc2Metadata(v **types.Ec2Metadata, value interface{}) error {
+func awsRestjson1_deserializeDocumentEpssDetails(v **types.EpssDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14268,36 +18294,47 @@ func awsRestjson1_deserializeDocumentEc2Metadata(v **types.Ec2Metadata, value in
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Ec2Metadata
+ var sv *types.EpssDetails
if *v == nil {
- sv = &types.Ec2Metadata{}
+ sv = &types.EpssDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "amiId":
+ case "score":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AmiId to be of type string, got %T instead", value)
- }
- sv.AmiId = ptr.String(jtv)
- }
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.Score = f64
- case "platform":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Ec2Platform to be of type string, got %T instead", value)
- }
- sv.Platform = types.Ec2Platform(jtv)
- }
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
- case "tags":
- if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
- return err
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.Score = f64
+
+ default:
+ return fmt.Errorf("expected EpssScoreValue to be a JSON Number, got %T instead", value)
+
+ }
}
default:
@@ -14309,7 +18346,7 @@ func awsRestjson1_deserializeDocumentEc2Metadata(v **types.Ec2Metadata, value in
return nil
}
-func awsRestjson1_deserializeDocumentEc2ScanModeState(v **types.Ec2ScanModeState, value interface{}) error {
+func awsRestjson1_deserializeDocumentEvidence(v **types.Evidence, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14322,31 +18359,40 @@ func awsRestjson1_deserializeDocumentEc2ScanModeState(v **types.Ec2ScanModeState
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Ec2ScanModeState
+ var sv *types.Evidence
if *v == nil {
- sv = &types.Ec2ScanModeState{}
+ sv = &types.Evidence{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "scanMode":
+ case "evidenceDetail":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Ec2ScanMode to be of type string, got %T instead", value)
+ return fmt.Errorf("expected EvidenceDetail to be of type string, got %T instead", value)
}
- sv.ScanMode = types.Ec2ScanMode(jtv)
+ sv.EvidenceDetail = ptr.String(jtv)
}
- case "scanModeStatus":
+ case "evidenceRule":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Ec2ScanModeStatus to be of type string, got %T instead", value)
+ return fmt.Errorf("expected EvidenceRule to be of type string, got %T instead", value)
}
- sv.ScanModeStatus = types.Ec2ScanModeStatus(jtv)
+ sv.EvidenceRule = ptr.String(jtv)
+ }
+
+ case "severity":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected EvidenceSeverity to be of type string, got %T instead", value)
+ }
+ sv.Severity = ptr.String(jtv)
}
default:
@@ -14358,7 +18404,7 @@ func awsRestjson1_deserializeDocumentEc2ScanModeState(v **types.Ec2ScanModeState
return nil
}
-func awsRestjson1_deserializeDocumentEcrConfigurationState(v **types.EcrConfigurationState, value interface{}) error {
+func awsRestjson1_deserializeDocumentEvidenceList(v *[]types.Evidence, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14366,35 +18412,33 @@ func awsRestjson1_deserializeDocumentEcrConfigurationState(v **types.EcrConfigur
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.EcrConfigurationState
+ var cv []types.Evidence
if *v == nil {
- sv = &types.EcrConfigurationState{}
+ cv = []types.Evidence{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "rescanDurationState":
- if err := awsRestjson1_deserializeDocumentEcrRescanDurationState(&sv.RescanDurationState, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
+ for _, value := range shape {
+ var col types.Evidence
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentEvidence(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentEcrContainerImageMetadata(v **types.EcrContainerImageMetadata, value interface{}) error {
+func awsRestjson1_deserializeDocumentExploitabilityDetails(v **types.ExploitabilityDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14407,45 +18451,16 @@ func awsRestjson1_deserializeDocumentEcrContainerImageMetadata(v **types.EcrCont
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.EcrContainerImageMetadata
+ var sv *types.ExploitabilityDetails
if *v == nil {
- sv = &types.EcrContainerImageMetadata{}
+ sv = &types.ExploitabilityDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "imagePulledAt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.ImagePulledAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
-
- }
- }
-
- case "inUseCount":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.InUseCount = ptr.Int64(i64)
- }
-
- case "lastInUseAt":
+ case "lastKnownExploitAt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -14453,7 +18468,7 @@ func awsRestjson1_deserializeDocumentEcrContainerImageMetadata(v **types.EcrCont
if err != nil {
return err
}
- sv.LastInUseAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.LastKnownExploitAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
@@ -14461,11 +18476,6 @@ func awsRestjson1_deserializeDocumentEcrContainerImageMetadata(v **types.EcrCont
}
}
- case "tags":
- if err := awsRestjson1_deserializeDocumentTagList(&sv.Tags, value); err != nil {
- return err
- }
-
default:
_, _ = key, value
@@ -14475,7 +18485,7 @@ func awsRestjson1_deserializeDocumentEcrContainerImageMetadata(v **types.EcrCont
return nil
}
-func awsRestjson1_deserializeDocumentEcrRepositoryMetadata(v **types.EcrRepositoryMetadata, value interface{}) error {
+func awsRestjson1_deserializeDocumentExploitObserved(v **types.ExploitObserved, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14488,31 +18498,45 @@ func awsRestjson1_deserializeDocumentEcrRepositoryMetadata(v **types.EcrReposito
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.EcrRepositoryMetadata
+ var sv *types.ExploitObserved
if *v == nil {
- sv = &types.EcrRepositoryMetadata{}
+ sv = &types.ExploitObserved{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "name":
+ case "firstSeen":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.FirstSeen = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected FirstSeen to be a JSON Number, got %T instead", value)
+
}
- sv.Name = ptr.String(jtv)
}
- case "scanFrequency":
+ case "lastSeen":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected EcrScanFrequency to be of type string, got %T instead", value)
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastSeen = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected LastSeen to be a JSON Number, got %T instead", value)
+
}
- sv.ScanFrequency = types.EcrScanFrequency(jtv)
}
default:
@@ -14524,7 +18548,7 @@ func awsRestjson1_deserializeDocumentEcrRepositoryMetadata(v **types.EcrReposito
return nil
}
-func awsRestjson1_deserializeDocumentEcrRescanDurationState(v **types.EcrRescanDurationState, value interface{}) error {
+func awsRestjson1_deserializeDocumentFailedAccount(v **types.FailedAccount, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14537,65 +18561,54 @@ func awsRestjson1_deserializeDocumentEcrRescanDurationState(v **types.EcrRescanD
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.EcrRescanDurationState
+ var sv *types.FailedAccount
if *v == nil {
- sv = &types.EcrRescanDurationState{}
+ sv = &types.FailedAccount{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "pullDateRescanDuration":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected EcrPullDateRescanDuration to be of type string, got %T instead", value)
- }
- sv.PullDateRescanDuration = types.EcrPullDateRescanDuration(jtv)
- }
-
- case "pullDateRescanMode":
+ case "accountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected EcrPullDateRescanMode to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.PullDateRescanMode = types.EcrPullDateRescanMode(jtv)
+ sv.AccountId = ptr.String(jtv)
}
- case "rescanDuration":
+ case "errorCode":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected EcrRescanDuration to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value)
}
- sv.RescanDuration = types.EcrRescanDuration(jtv)
+ sv.ErrorCode = types.ErrorCode(jtv)
}
- case "status":
+ case "errorMessage":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected EcrRescanDurationStatus to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Status = types.EcrRescanDurationStatus(jtv)
+ sv.ErrorMessage = ptr.String(jtv)
}
- case "updatedAt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+ case "resourceStatus":
+ if err := awsRestjson1_deserializeDocumentResourceStatus(&sv.ResourceStatus, value); err != nil {
+ return err
+ }
+ case "status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Status to be of type string, got %T instead", value)
}
+ sv.Status = types.Status(jtv)
}
default:
@@ -14607,7 +18620,7 @@ func awsRestjson1_deserializeDocumentEcrRescanDurationState(v **types.EcrRescanD
return nil
}
-func awsRestjson1_deserializeDocumentEpss(v **types.Epss, value interface{}) error {
+func awsRestjson1_deserializeDocumentFailedAccountList(v *[]types.FailedAccount, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14615,64 +18628,33 @@ func awsRestjson1_deserializeDocumentEpss(v **types.Epss, value interface{}) err
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Epss
+ var cv []types.FailedAccount
if *v == nil {
- sv = &types.Epss{}
+ cv = []types.FailedAccount{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "score":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.Score = f64
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.Score = f64
-
- default:
- return fmt.Errorf("expected EpssScore to be a JSON Number, got %T instead", value)
-
- }
- }
-
- default:
- _, _ = key, value
-
+ for _, value := range shape {
+ var col types.FailedAccount
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentFailedAccount(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentEpssDetails(v **types.EpssDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentFailedAssociationResult(v **types.FailedAssociationResult, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14685,47 +18667,45 @@ func awsRestjson1_deserializeDocumentEpssDetails(v **types.EpssDetails, value in
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.EpssDetails
+ var sv *types.FailedAssociationResult
if *v == nil {
- sv = &types.EpssDetails{}
+ sv = &types.FailedAssociationResult{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "score":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.Score = f64
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
+ case "resource":
+ if err := awsRestjson1_deserializeDocumentCodeSecurityResource(&sv.Resource, value); err != nil {
+ return err
+ }
- }
- sv.Score = f64
+ case "scanConfigurationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ScanConfigurationArn to be of type string, got %T instead", value)
+ }
+ sv.ScanConfigurationArn = ptr.String(jtv)
+ }
- default:
- return fmt.Errorf("expected EpssScoreValue to be a JSON Number, got %T instead", value)
+ case "statusCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AssociationResultStatusCode to be of type string, got %T instead", value)
+ }
+ sv.StatusCode = types.AssociationResultStatusCode(jtv)
+ }
+ case "statusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AssociationResultStatusMessage to be of type string, got %T instead", value)
}
+ sv.StatusMessage = ptr.String(jtv)
}
default:
@@ -14737,7 +18717,41 @@ func awsRestjson1_deserializeDocumentEpssDetails(v **types.EpssDetails, value in
return nil
}
-func awsRestjson1_deserializeDocumentEvidence(v **types.Evidence, value interface{}) error {
+func awsRestjson1_deserializeDocumentFailedAssociationResultList(v *[]types.FailedAssociationResult, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.FailedAssociationResult
+ if *v == nil {
+ cv = []types.FailedAssociationResult{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.FailedAssociationResult
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentFailedAssociationResult(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusState(v **types.FailedMemberAccountEc2DeepInspectionStatusState, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14750,40 +18764,40 @@ func awsRestjson1_deserializeDocumentEvidence(v **types.Evidence, value interfac
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Evidence
+ var sv *types.FailedMemberAccountEc2DeepInspectionStatusState
if *v == nil {
- sv = &types.Evidence{}
+ sv = &types.FailedMemberAccountEc2DeepInspectionStatusState{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "evidenceDetail":
+ case "accountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected EvidenceDetail to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.EvidenceDetail = ptr.String(jtv)
+ sv.AccountId = ptr.String(jtv)
}
- case "evidenceRule":
+ case "ec2ScanStatus":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected EvidenceRule to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Status to be of type string, got %T instead", value)
}
- sv.EvidenceRule = ptr.String(jtv)
+ sv.Ec2ScanStatus = types.Status(jtv)
}
- case "severity":
+ case "errorMessage":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected EvidenceSeverity to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Severity = ptr.String(jtv)
+ sv.ErrorMessage = ptr.String(jtv)
}
default:
@@ -14795,7 +18809,7 @@ func awsRestjson1_deserializeDocumentEvidence(v **types.Evidence, value interfac
return nil
}
-func awsRestjson1_deserializeDocumentEvidenceList(v *[]types.Evidence, value interface{}) error {
+func awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusStateList(v *[]types.FailedMemberAccountEc2DeepInspectionStatusState, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14808,17 +18822,17 @@ func awsRestjson1_deserializeDocumentEvidenceList(v *[]types.Evidence, value int
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Evidence
+ var cv []types.FailedMemberAccountEc2DeepInspectionStatusState
if *v == nil {
- cv = []types.Evidence{}
+ cv = []types.FailedMemberAccountEc2DeepInspectionStatusState{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.Evidence
+ var col types.FailedMemberAccountEc2DeepInspectionStatusState
destAddr := &col
- if err := awsRestjson1_deserializeDocumentEvidence(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusState(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -14829,29 +18843,109 @@ func awsRestjson1_deserializeDocumentEvidenceList(v *[]types.Evidence, value int
return nil
}
-func awsRestjson1_deserializeDocumentExploitabilityDetails(v **types.ExploitabilityDetails, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.Filter
+ if *v == nil {
+ sv = &types.Filter{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "action":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FilterAction to be of type string, got %T instead", value)
+ }
+ sv.Action = types.FilterAction(jtv)
+ }
+
+ case "arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FilterArn to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "createdAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "criteria":
+ if err := awsRestjson1_deserializeDocumentFilterCriteria(&sv.Criteria, value); err != nil {
+ return err
+ }
+
+ case "description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FilterDescription to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FilterName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "ownerId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value)
+ }
+ sv.OwnerId = ptr.String(jtv)
+ }
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ case "reason":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FilterReason to be of type string, got %T instead", value)
+ }
+ sv.Reason = ptr.String(jtv)
+ }
- var sv *types.ExploitabilityDetails
- if *v == nil {
- sv = &types.ExploitabilityDetails{}
- } else {
- sv = *v
- }
+ case "tags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
+ return err
+ }
- for key, value := range shape {
- switch key {
- case "lastKnownExploitAt":
+ case "updatedAt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -14859,7 +18953,7 @@ func awsRestjson1_deserializeDocumentExploitabilityDetails(v **types.Exploitabil
if err != nil {
return err
}
- sv.LastKnownExploitAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
@@ -14876,7 +18970,7 @@ func awsRestjson1_deserializeDocumentExploitabilityDetails(v **types.Exploitabil
return nil
}
-func awsRestjson1_deserializeDocumentExploitObserved(v **types.ExploitObserved, value interface{}) error {
+func awsRestjson1_deserializeDocumentFilterCriteria(v **types.FilterCriteria, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -14889,117 +18983,243 @@ func awsRestjson1_deserializeDocumentExploitObserved(v **types.ExploitObserved,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.ExploitObserved
+ var sv *types.FilterCriteria
if *v == nil {
- sv = &types.ExploitObserved{}
+ sv = &types.FilterCriteria{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "firstSeen":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.FirstSeen = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ case "awsAccountId":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.AwsAccountId, value); err != nil {
+ return err
+ }
- default:
- return fmt.Errorf("expected FirstSeen to be a JSON Number, got %T instead", value)
+ case "codeRepositoryProjectName":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.CodeRepositoryProjectName, value); err != nil {
+ return err
+ }
- }
+ case "codeRepositoryProviderType":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.CodeRepositoryProviderType, value); err != nil {
+ return err
}
- case "lastSeen":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.LastSeen = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ case "codeVulnerabilityDetectorName":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.CodeVulnerabilityDetectorName, value); err != nil {
+ return err
+ }
- default:
- return fmt.Errorf("expected LastSeen to be a JSON Number, got %T instead", value)
+ case "codeVulnerabilityDetectorTags":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.CodeVulnerabilityDetectorTags, value); err != nil {
+ return err
+ }
- }
+ case "codeVulnerabilityFilePath":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.CodeVulnerabilityFilePath, value); err != nil {
+ return err
}
- default:
- _, _ = key, value
+ case "componentId":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ComponentId, value); err != nil {
+ return err
+ }
- }
- }
- *v = sv
- return nil
-}
+ case "componentType":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ComponentType, value); err != nil {
+ return err
+ }
+
+ case "ec2InstanceImageId":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Ec2InstanceImageId, value); err != nil {
+ return err
+ }
+
+ case "ec2InstanceSubnetId":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Ec2InstanceSubnetId, value); err != nil {
+ return err
+ }
+
+ case "ec2InstanceVpcId":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Ec2InstanceVpcId, value); err != nil {
+ return err
+ }
+
+ case "ecrImageArchitecture":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageArchitecture, value); err != nil {
+ return err
+ }
+
+ case "ecrImageHash":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageHash, value); err != nil {
+ return err
+ }
+
+ case "ecrImageInUseCount":
+ if err := awsRestjson1_deserializeDocumentNumberFilterList(&sv.EcrImageInUseCount, value); err != nil {
+ return err
+ }
+
+ case "ecrImageLastInUseAt":
+ if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.EcrImageLastInUseAt, value); err != nil {
+ return err
+ }
+
+ case "ecrImagePushedAt":
+ if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.EcrImagePushedAt, value); err != nil {
+ return err
+ }
+
+ case "ecrImageRegistry":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageRegistry, value); err != nil {
+ return err
+ }
+
+ case "ecrImageRepositoryName":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageRepositoryName, value); err != nil {
+ return err
+ }
+
+ case "ecrImageTags":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageTags, value); err != nil {
+ return err
+ }
+
+ case "epssScore":
+ if err := awsRestjson1_deserializeDocumentNumberFilterList(&sv.EpssScore, value); err != nil {
+ return err
+ }
+
+ case "exploitAvailable":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ExploitAvailable, value); err != nil {
+ return err
+ }
+
+ case "findingArn":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.FindingArn, value); err != nil {
+ return err
+ }
+
+ case "findingStatus":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.FindingStatus, value); err != nil {
+ return err
+ }
+
+ case "findingType":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.FindingType, value); err != nil {
+ return err
+ }
+
+ case "firstObservedAt":
+ if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.FirstObservedAt, value); err != nil {
+ return err
+ }
+
+ case "fixAvailable":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.FixAvailable, value); err != nil {
+ return err
+ }
+
+ case "inspectorScore":
+ if err := awsRestjson1_deserializeDocumentNumberFilterList(&sv.InspectorScore, value); err != nil {
+ return err
+ }
+
+ case "lambdaFunctionExecutionRoleArn":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.LambdaFunctionExecutionRoleArn, value); err != nil {
+ return err
+ }
+
+ case "lambdaFunctionLastModifiedAt":
+ if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.LambdaFunctionLastModifiedAt, value); err != nil {
+ return err
+ }
+
+ case "lambdaFunctionLayers":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.LambdaFunctionLayers, value); err != nil {
+ return err
+ }
+
+ case "lambdaFunctionName":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.LambdaFunctionName, value); err != nil {
+ return err
+ }
+
+ case "lambdaFunctionRuntime":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.LambdaFunctionRuntime, value); err != nil {
+ return err
+ }
+
+ case "lastObservedAt":
+ if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.LastObservedAt, value); err != nil {
+ return err
+ }
+
+ case "networkProtocol":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.NetworkProtocol, value); err != nil {
+ return err
+ }
+
+ case "portRange":
+ if err := awsRestjson1_deserializeDocumentPortRangeFilterList(&sv.PortRange, value); err != nil {
+ return err
+ }
+
+ case "relatedVulnerabilities":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.RelatedVulnerabilities, value); err != nil {
+ return err
+ }
+
+ case "resourceId":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceId, value); err != nil {
+ return err
+ }
+
+ case "resourceTags":
+ if err := awsRestjson1_deserializeDocumentMapFilterList(&sv.ResourceTags, value); err != nil {
+ return err
+ }
-func awsRestjson1_deserializeDocumentFailedAccount(v **types.FailedAccount, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+ case "resourceType":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceType, value); err != nil {
+ return err
+ }
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ case "severity":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Severity, value); err != nil {
+ return err
+ }
- var sv *types.FailedAccount
- if *v == nil {
- sv = &types.FailedAccount{}
- } else {
- sv = *v
- }
+ case "title":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Title, value); err != nil {
+ return err
+ }
- for key, value := range shape {
- switch key {
- case "accountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.AccountId = ptr.String(jtv)
+ case "updatedAt":
+ if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.UpdatedAt, value); err != nil {
+ return err
}
- case "errorCode":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ErrorCode to be of type string, got %T instead", value)
- }
- sv.ErrorCode = types.ErrorCode(jtv)
+ case "vendorSeverity":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.VendorSeverity, value); err != nil {
+ return err
}
- case "errorMessage":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ErrorMessage = ptr.String(jtv)
+ case "vulnerabilityId":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.VulnerabilityId, value); err != nil {
+ return err
}
- case "resourceStatus":
- if err := awsRestjson1_deserializeDocumentResourceStatus(&sv.ResourceStatus, value); err != nil {
+ case "vulnerabilitySource":
+ if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.VulnerabilitySource, value); err != nil {
return err
}
- case "status":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Status to be of type string, got %T instead", value)
- }
- sv.Status = types.Status(jtv)
+ case "vulnerablePackages":
+ if err := awsRestjson1_deserializeDocumentPackageFilterList(&sv.VulnerablePackages, value); err != nil {
+ return err
}
default:
@@ -15011,7 +19231,7 @@ func awsRestjson1_deserializeDocumentFailedAccount(v **types.FailedAccount, valu
return nil
}
-func awsRestjson1_deserializeDocumentFailedAccountList(v *[]types.FailedAccount, value interface{}) error {
+func awsRestjson1_deserializeDocumentFilterList(v *[]types.Filter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -15024,17 +19244,17 @@ func awsRestjson1_deserializeDocumentFailedAccountList(v *[]types.FailedAccount,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.FailedAccount
+ var cv []types.Filter
if *v == nil {
- cv = []types.FailedAccount{}
+ cv = []types.Filter{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.FailedAccount
+ var col types.Filter
destAddr := &col
- if err := awsRestjson1_deserializeDocumentFailedAccount(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentFilter(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -15045,7 +19265,7 @@ func awsRestjson1_deserializeDocumentFailedAccountList(v *[]types.FailedAccount,
return nil
}
-func awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusState(v **types.FailedMemberAccountEc2DeepInspectionStatusState, value interface{}) error {
+func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -15058,126 +19278,131 @@ func awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusS
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.FailedMemberAccountEc2DeepInspectionStatusState
+ var sv *types.Finding
if *v == nil {
- sv = &types.FailedMemberAccountEc2DeepInspectionStatusState{}
+ sv = &types.Finding{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
+ case "awsAccountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.AccountId = ptr.String(jtv)
+ sv.AwsAccountId = ptr.String(jtv)
}
- case "ec2ScanStatus":
+ case "codeVulnerabilityDetails":
+ if err := awsRestjson1_deserializeDocumentCodeVulnerabilityDetails(&sv.CodeVulnerabilityDetails, value); err != nil {
+ return err
+ }
+
+ case "description":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Status to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FindingDescription to be of type string, got %T instead", value)
}
- sv.Ec2ScanStatus = types.Status(jtv)
+ sv.Description = ptr.String(jtv)
}
- case "errorMessage":
+ case "epss":
+ if err := awsRestjson1_deserializeDocumentEpssDetails(&sv.Epss, value); err != nil {
+ return err
+ }
+
+ case "exploitabilityDetails":
+ if err := awsRestjson1_deserializeDocumentExploitabilityDetails(&sv.ExploitabilityDetails, value); err != nil {
+ return err
+ }
+
+ case "exploitAvailable":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ExploitAvailable to be of type string, got %T instead", value)
}
- sv.ErrorMessage = ptr.String(jtv)
+ sv.ExploitAvailable = types.ExploitAvailable(jtv)
}
- default:
- _, _ = key, value
+ case "findingArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FindingArn to be of type string, got %T instead", value)
+ }
+ sv.FindingArn = ptr.String(jtv)
+ }
- }
- }
- *v = sv
- return nil
-}
+ case "firstObservedAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.FirstObservedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-func awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusStateList(v *[]types.FailedMemberAccountEc2DeepInspectionStatusState, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
- shape, ok := value.([]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ }
+ }
- var cv []types.FailedMemberAccountEc2DeepInspectionStatusState
- if *v == nil {
- cv = []types.FailedMemberAccountEc2DeepInspectionStatusState{}
- } else {
- cv = *v
- }
+ case "fixAvailable":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FixAvailable to be of type string, got %T instead", value)
+ }
+ sv.FixAvailable = types.FixAvailable(jtv)
+ }
- for _, value := range shape {
- var col types.FailedMemberAccountEc2DeepInspectionStatusState
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentFailedMemberAccountEc2DeepInspectionStatusState(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ case "inspectorScore":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.InspectorScore = ptr.Float64(f64)
- }
- *v = cv
- return nil
-}
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
-func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
- var sv *types.Filter
- if *v == nil {
- sv = &types.Filter{}
- } else {
- sv = *v
- }
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.InspectorScore = ptr.Float64(f64)
+
+ default:
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
- for key, value := range shape {
- switch key {
- case "action":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected FilterAction to be of type string, got %T instead", value)
}
- sv.Action = types.FilterAction(jtv)
}
- case "arn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected FilterArn to be of type string, got %T instead", value)
- }
- sv.Arn = ptr.String(jtv)
+ case "inspectorScoreDetails":
+ if err := awsRestjson1_deserializeDocumentInspectorScoreDetails(&sv.InspectorScoreDetails, value); err != nil {
+ return err
}
- case "createdAt":
+ case "lastObservedAt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -15185,7 +19410,7 @@ func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{})
if err != nil {
return err
}
- sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.LastObservedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
@@ -15193,50 +19418,60 @@ func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{})
}
}
- case "criteria":
- if err := awsRestjson1_deserializeDocumentFilterCriteria(&sv.Criteria, value); err != nil {
+ case "networkReachabilityDetails":
+ if err := awsRestjson1_deserializeDocumentNetworkReachabilityDetails(&sv.NetworkReachabilityDetails, value); err != nil {
return err
}
- case "description":
+ case "packageVulnerabilityDetails":
+ if err := awsRestjson1_deserializeDocumentPackageVulnerabilityDetails(&sv.PackageVulnerabilityDetails, value); err != nil {
+ return err
+ }
+
+ case "remediation":
+ if err := awsRestjson1_deserializeDocumentRemediation(&sv.Remediation, value); err != nil {
+ return err
+ }
+
+ case "resources":
+ if err := awsRestjson1_deserializeDocumentResourceList(&sv.Resources, value); err != nil {
+ return err
+ }
+
+ case "severity":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FilterDescription to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Severity to be of type string, got %T instead", value)
}
- sv.Description = ptr.String(jtv)
+ sv.Severity = types.Severity(jtv)
}
- case "name":
+ case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FilterName to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FindingStatus to be of type string, got %T instead", value)
}
- sv.Name = ptr.String(jtv)
+ sv.Status = types.FindingStatus(jtv)
}
- case "ownerId":
+ case "title":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FindingTitle to be of type string, got %T instead", value)
}
- sv.OwnerId = ptr.String(jtv)
+ sv.Title = ptr.String(jtv)
}
- case "reason":
+ case "type":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FilterReason to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FindingType to be of type string, got %T instead", value)
}
- sv.Reason = ptr.String(jtv)
- }
-
- case "tags":
- if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
- return err
+ sv.Type = types.FindingType(jtv)
}
case "updatedAt":
@@ -15264,7 +19499,7 @@ func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{})
return nil
}
-func awsRestjson1_deserializeDocumentFilterCriteria(v **types.FilterCriteria, value interface{}) error {
+func awsRestjson1_deserializeDocumentFindingDetail(v **types.FindingDetail, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -15277,232 +19512,103 @@ func awsRestjson1_deserializeDocumentFilterCriteria(v **types.FilterCriteria, va
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.FilterCriteria
+ var sv *types.FindingDetail
if *v == nil {
- sv = &types.FilterCriteria{}
+ sv = &types.FindingDetail{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "awsAccountId":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.AwsAccountId, value); err != nil {
- return err
- }
-
- case "codeVulnerabilityDetectorName":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.CodeVulnerabilityDetectorName, value); err != nil {
- return err
- }
-
- case "codeVulnerabilityDetectorTags":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.CodeVulnerabilityDetectorTags, value); err != nil {
- return err
- }
-
- case "codeVulnerabilityFilePath":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.CodeVulnerabilityFilePath, value); err != nil {
- return err
- }
-
- case "componentId":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ComponentId, value); err != nil {
- return err
- }
-
- case "componentType":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ComponentType, value); err != nil {
- return err
- }
-
- case "ec2InstanceImageId":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Ec2InstanceImageId, value); err != nil {
- return err
- }
-
- case "ec2InstanceSubnetId":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Ec2InstanceSubnetId, value); err != nil {
- return err
- }
-
- case "ec2InstanceVpcId":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Ec2InstanceVpcId, value); err != nil {
- return err
- }
-
- case "ecrImageArchitecture":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageArchitecture, value); err != nil {
- return err
- }
-
- case "ecrImageHash":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageHash, value); err != nil {
- return err
- }
-
- case "ecrImageInUseCount":
- if err := awsRestjson1_deserializeDocumentNumberFilterList(&sv.EcrImageInUseCount, value); err != nil {
- return err
- }
-
- case "ecrImageLastInUseAt":
- if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.EcrImageLastInUseAt, value); err != nil {
- return err
- }
-
- case "ecrImagePushedAt":
- if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.EcrImagePushedAt, value); err != nil {
- return err
- }
-
- case "ecrImageRegistry":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageRegistry, value); err != nil {
- return err
- }
-
- case "ecrImageRepositoryName":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageRepositoryName, value); err != nil {
+ case "cisaData":
+ if err := awsRestjson1_deserializeDocumentCisaData(&sv.CisaData, value); err != nil {
return err
}
- case "ecrImageTags":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.EcrImageTags, value); err != nil {
+ case "cwes":
+ if err := awsRestjson1_deserializeDocumentCwes(&sv.Cwes, value); err != nil {
return err
}
case "epssScore":
- if err := awsRestjson1_deserializeDocumentNumberFilterList(&sv.EpssScore, value); err != nil {
- return err
- }
-
- case "exploitAvailable":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ExploitAvailable, value); err != nil {
- return err
- }
-
- case "findingArn":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.FindingArn, value); err != nil {
- return err
- }
-
- case "findingStatus":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.FindingStatus, value); err != nil {
- return err
- }
-
- case "findingType":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.FindingType, value); err != nil {
- return err
- }
-
- case "firstObservedAt":
- if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.FirstObservedAt, value); err != nil {
- return err
- }
-
- case "fixAvailable":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.FixAvailable, value); err != nil {
- return err
- }
-
- case "inspectorScore":
- if err := awsRestjson1_deserializeDocumentNumberFilterList(&sv.InspectorScore, value); err != nil {
- return err
- }
-
- case "lambdaFunctionExecutionRoleArn":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.LambdaFunctionExecutionRoleArn, value); err != nil {
- return err
- }
-
- case "lambdaFunctionLastModifiedAt":
- if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.LambdaFunctionLastModifiedAt, value); err != nil {
- return err
- }
-
- case "lambdaFunctionLayers":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.LambdaFunctionLayers, value); err != nil {
- return err
- }
-
- case "lambdaFunctionName":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.LambdaFunctionName, value); err != nil {
- return err
- }
-
- case "lambdaFunctionRuntime":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.LambdaFunctionRuntime, value); err != nil {
- return err
- }
-
- case "lastObservedAt":
- if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.LastObservedAt, value); err != nil {
- return err
- }
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.EpssScore = ptr.Float64(f64)
- case "networkProtocol":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.NetworkProtocol, value); err != nil {
- return err
- }
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
- case "portRange":
- if err := awsRestjson1_deserializeDocumentPortRangeFilterList(&sv.PortRange, value); err != nil {
- return err
- }
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
- case "relatedVulnerabilities":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.RelatedVulnerabilities, value); err != nil {
- return err
- }
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
- case "resourceId":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceId, value); err != nil {
- return err
- }
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
- case "resourceTags":
- if err := awsRestjson1_deserializeDocumentMapFilterList(&sv.ResourceTags, value); err != nil {
- return err
- }
+ }
+ sv.EpssScore = ptr.Float64(f64)
- case "resourceType":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.ResourceType, value); err != nil {
- return err
- }
+ default:
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
- case "severity":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Severity, value); err != nil {
- return err
+ }
}
- case "title":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.Title, value); err != nil {
+ case "evidences":
+ if err := awsRestjson1_deserializeDocumentEvidenceList(&sv.Evidences, value); err != nil {
return err
}
- case "updatedAt":
- if err := awsRestjson1_deserializeDocumentDateFilterList(&sv.UpdatedAt, value); err != nil {
+ case "exploitObserved":
+ if err := awsRestjson1_deserializeDocumentExploitObserved(&sv.ExploitObserved, value); err != nil {
return err
}
- case "vendorSeverity":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.VendorSeverity, value); err != nil {
- return err
+ case "findingArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FindingArn to be of type string, got %T instead", value)
+ }
+ sv.FindingArn = ptr.String(jtv)
}
- case "vulnerabilityId":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.VulnerabilityId, value); err != nil {
+ case "referenceUrls":
+ if err := awsRestjson1_deserializeDocumentVulnerabilityReferenceUrls(&sv.ReferenceUrls, value); err != nil {
return err
}
- case "vulnerabilitySource":
- if err := awsRestjson1_deserializeDocumentStringFilterList(&sv.VulnerabilitySource, value); err != nil {
+ case "riskScore":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected RiskScore to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.RiskScore = ptr.Int32(int32(i64))
+ }
+
+ case "tools":
+ if err := awsRestjson1_deserializeDocumentTools(&sv.Tools, value); err != nil {
return err
}
- case "vulnerablePackages":
- if err := awsRestjson1_deserializeDocumentPackageFilterList(&sv.VulnerablePackages, value); err != nil {
+ case "ttps":
+ if err := awsRestjson1_deserializeDocumentTtps(&sv.Ttps, value); err != nil {
return err
}
@@ -15515,7 +19621,7 @@ func awsRestjson1_deserializeDocumentFilterCriteria(v **types.FilterCriteria, va
return nil
}
-func awsRestjson1_deserializeDocumentFilterList(v *[]types.Filter, value interface{}) error {
+func awsRestjson1_deserializeDocumentFindingDetails(v *[]types.FindingDetail, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -15528,17 +19634,17 @@ func awsRestjson1_deserializeDocumentFilterList(v *[]types.Filter, value interfa
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Filter
+ var cv []types.FindingDetail
if *v == nil {
- cv = []types.Filter{}
+ cv = []types.FindingDetail{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.Filter
+ var col types.FindingDetail
destAddr := &col
- if err := awsRestjson1_deserializeDocumentFilter(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentFindingDetail(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -15549,7 +19655,7 @@ func awsRestjson1_deserializeDocumentFilterList(v *[]types.Filter, value interfa
return nil
}
-func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{}) error {
+func awsRestjson1_deserializeDocumentFindingDetailsError(v **types.FindingDetailsError, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -15562,55 +19668,31 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Finding
+ var sv *types.FindingDetailsError
if *v == nil {
- sv = &types.Finding{}
+ sv = &types.FindingDetailsError{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "awsAccountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.AwsAccountId = ptr.String(jtv)
- }
-
- case "codeVulnerabilityDetails":
- if err := awsRestjson1_deserializeDocumentCodeVulnerabilityDetails(&sv.CodeVulnerabilityDetails, value); err != nil {
- return err
- }
-
- case "description":
+ case "errorCode":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FindingDescription to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FindingDetailsErrorCode to be of type string, got %T instead", value)
}
- sv.Description = ptr.String(jtv)
- }
-
- case "epss":
- if err := awsRestjson1_deserializeDocumentEpssDetails(&sv.Epss, value); err != nil {
- return err
- }
-
- case "exploitabilityDetails":
- if err := awsRestjson1_deserializeDocumentExploitabilityDetails(&sv.ExploitabilityDetails, value); err != nil {
- return err
+ sv.ErrorCode = types.FindingDetailsErrorCode(jtv)
}
- case "exploitAvailable":
+ case "errorMessage":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected ExploitAvailable to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.ExploitAvailable = types.ExploitAvailable(jtv)
+ sv.ErrorMessage = ptr.String(jtv)
}
case "findingArn":
@@ -15622,156 +19704,143 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{
sv.FindingArn = ptr.String(jtv)
}
- case "firstObservedAt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.FirstObservedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
-
- }
- }
-
- case "fixAvailable":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected FixAvailable to be of type string, got %T instead", value)
- }
- sv.FixAvailable = types.FixAvailable(jtv)
- }
-
- case "inspectorScore":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.InspectorScore = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
+ default:
+ _, _ = key, value
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
+ }
+ }
+ *v = sv
+ return nil
+}
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
+func awsRestjson1_deserializeDocumentFindingDetailsErrorList(v *[]types.FindingDetailsError, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
- }
- sv.InspectorScore = ptr.Float64(f64)
+ var cv []types.FindingDetailsError
+ if *v == nil {
+ cv = []types.FindingDetailsError{}
+ } else {
+ cv = *v
+ }
- default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+ for _, value := range shape {
+ var col types.FindingDetailsError
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentFindingDetailsError(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
- }
- }
+ }
+ *v = cv
+ return nil
+}
- case "inspectorScoreDetails":
- if err := awsRestjson1_deserializeDocumentInspectorScoreDetails(&sv.InspectorScoreDetails, value); err != nil {
- return err
- }
+func awsRestjson1_deserializeDocumentFindingList(v *[]types.Finding, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
- case "lastObservedAt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.LastObservedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+ var cv []types.Finding
+ if *v == nil {
+ cv = []types.Finding{}
+ } else {
+ cv = *v
+ }
- }
- }
+ for _, value := range shape {
+ var col types.Finding
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentFinding(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
- case "networkReachabilityDetails":
- if err := awsRestjson1_deserializeDocumentNetworkReachabilityDetails(&sv.NetworkReachabilityDetails, value); err != nil {
- return err
- }
+ }
+ *v = cv
+ return nil
+}
- case "packageVulnerabilityDetails":
- if err := awsRestjson1_deserializeDocumentPackageVulnerabilityDetails(&sv.PackageVulnerabilityDetails, value); err != nil {
- return err
- }
+func awsRestjson1_deserializeDocumentFindingTypeAggregationResponse(v **types.FindingTypeAggregationResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
- case "remediation":
- if err := awsRestjson1_deserializeDocumentRemediation(&sv.Remediation, value); err != nil {
- return err
- }
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
- case "resources":
- if err := awsRestjson1_deserializeDocumentResourceList(&sv.Resources, value); err != nil {
- return err
- }
+ var sv *types.FindingTypeAggregationResponse
+ if *v == nil {
+ sv = &types.FindingTypeAggregationResponse{}
+ } else {
+ sv = *v
+ }
- case "severity":
+ for key, value := range shape {
+ switch key {
+ case "accountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Severity to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.Severity = types.Severity(jtv)
+ sv.AccountId = ptr.String(jtv)
}
- case "status":
+ case "exploitAvailableCount":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected FindingStatus to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
}
- sv.Status = types.FindingStatus(jtv)
- }
-
- case "title":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected FindingTitle to be of type string, got %T instead", value)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
}
- sv.Title = ptr.String(jtv)
+ sv.ExploitAvailableCount = ptr.Int64(i64)
}
- case "type":
+ case "fixAvailableCount":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected FindingType to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
}
- sv.Type = types.FindingType(jtv)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.FixAvailableCount = ptr.Int64(i64)
}
- case "updatedAt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
-
- }
+ case "severityCounts":
+ if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
+ return err
}
default:
@@ -15783,7 +19852,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{
return nil
}
-func awsRestjson1_deserializeDocumentFindingDetail(v **types.FindingDetail, value interface{}) error {
+func awsRestjson1_deserializeDocumentFreeTrialAccountInfo(v **types.FreeTrialAccountInfo, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -15796,103 +19865,26 @@ func awsRestjson1_deserializeDocumentFindingDetail(v **types.FindingDetail, valu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.FindingDetail
+ var sv *types.FreeTrialAccountInfo
if *v == nil {
- sv = &types.FindingDetail{}
+ sv = &types.FreeTrialAccountInfo{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "cisaData":
- if err := awsRestjson1_deserializeDocumentCisaData(&sv.CisaData, value); err != nil {
- return err
- }
-
- case "cwes":
- if err := awsRestjson1_deserializeDocumentCwes(&sv.Cwes, value); err != nil {
- return err
- }
-
- case "epssScore":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.EpssScore = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.EpssScore = ptr.Float64(f64)
-
- default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
-
- }
- }
-
- case "evidences":
- if err := awsRestjson1_deserializeDocumentEvidenceList(&sv.Evidences, value); err != nil {
- return err
- }
-
- case "exploitObserved":
- if err := awsRestjson1_deserializeDocumentExploitObserved(&sv.ExploitObserved, value); err != nil {
- return err
- }
-
- case "findingArn":
+ case "accountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FindingArn to be of type string, got %T instead", value)
- }
- sv.FindingArn = ptr.String(jtv)
- }
-
- case "referenceUrls":
- if err := awsRestjson1_deserializeDocumentVulnerabilityReferenceUrls(&sv.ReferenceUrls, value); err != nil {
- return err
- }
-
- case "riskScore":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected RiskScore to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ return fmt.Errorf("expected MeteringAccountId to be of type string, got %T instead", value)
}
- sv.RiskScore = ptr.Int32(int32(i64))
- }
-
- case "tools":
- if err := awsRestjson1_deserializeDocumentTools(&sv.Tools, value); err != nil {
- return err
+ sv.AccountId = ptr.String(jtv)
}
- case "ttps":
- if err := awsRestjson1_deserializeDocumentTtps(&sv.Ttps, value); err != nil {
+ case "freeTrialInfo":
+ if err := awsRestjson1_deserializeDocumentFreeTrialInfoList(&sv.FreeTrialInfo, value); err != nil {
return err
}
@@ -15905,7 +19897,7 @@ func awsRestjson1_deserializeDocumentFindingDetail(v **types.FindingDetail, valu
return nil
}
-func awsRestjson1_deserializeDocumentFindingDetails(v *[]types.FindingDetail, value interface{}) error {
+func awsRestjson1_deserializeDocumentFreeTrialAccountInfoList(v *[]types.FreeTrialAccountInfo, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -15918,17 +19910,17 @@ func awsRestjson1_deserializeDocumentFindingDetails(v *[]types.FindingDetail, va
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.FindingDetail
+ var cv []types.FreeTrialAccountInfo
if *v == nil {
- cv = []types.FindingDetail{}
+ cv = []types.FreeTrialAccountInfo{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.FindingDetail
+ var col types.FreeTrialAccountInfo
destAddr := &col
- if err := awsRestjson1_deserializeDocumentFindingDetail(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentFreeTrialAccountInfo(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -15939,7 +19931,7 @@ func awsRestjson1_deserializeDocumentFindingDetails(v *[]types.FindingDetail, va
return nil
}
-func awsRestjson1_deserializeDocumentFindingDetailsError(v **types.FindingDetailsError, value interface{}) error {
+func awsRestjson1_deserializeDocumentFreeTrialInfo(v **types.FreeTrialInfo, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -15952,40 +19944,121 @@ func awsRestjson1_deserializeDocumentFindingDetailsError(v **types.FindingDetail
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.FindingDetailsError
+ var sv *types.FreeTrialInfo
if *v == nil {
- sv = &types.FindingDetailsError{}
+ sv = &types.FreeTrialInfo{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "errorCode":
+ case "end":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.End = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "start":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.Start = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FindingDetailsErrorCode to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FreeTrialStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.FreeTrialStatus(jtv)
+ }
+
+ case "type":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected FreeTrialType to be of type string, got %T instead", value)
+ }
+ sv.Type = types.FreeTrialType(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentFreeTrialInfoError(v **types.FreeTrialInfoError, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.FreeTrialInfoError
+ if *v == nil {
+ sv = &types.FreeTrialInfoError{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected MeteringAccountId to be of type string, got %T instead", value)
}
- sv.ErrorCode = types.FindingDetailsErrorCode(jtv)
+ sv.AccountId = ptr.String(jtv)
}
- case "errorMessage":
+ case "code":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FreeTrialInfoErrorCode to be of type string, got %T instead", value)
}
- sv.ErrorMessage = ptr.String(jtv)
+ sv.Code = types.FreeTrialInfoErrorCode(jtv)
}
- case "findingArn":
+ case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FindingArn to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.FindingArn = ptr.String(jtv)
+ sv.Message = ptr.String(jtv)
}
default:
@@ -15997,7 +20070,7 @@ func awsRestjson1_deserializeDocumentFindingDetailsError(v **types.FindingDetail
return nil
}
-func awsRestjson1_deserializeDocumentFindingDetailsErrorList(v *[]types.FindingDetailsError, value interface{}) error {
+func awsRestjson1_deserializeDocumentFreeTrialInfoErrorList(v *[]types.FreeTrialInfoError, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16010,17 +20083,17 @@ func awsRestjson1_deserializeDocumentFindingDetailsErrorList(v *[]types.FindingD
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.FindingDetailsError
+ var cv []types.FreeTrialInfoError
if *v == nil {
- cv = []types.FindingDetailsError{}
+ cv = []types.FreeTrialInfoError{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.FindingDetailsError
+ var col types.FreeTrialInfoError
destAddr := &col
- if err := awsRestjson1_deserializeDocumentFindingDetailsError(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentFreeTrialInfoError(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -16031,7 +20104,7 @@ func awsRestjson1_deserializeDocumentFindingDetailsErrorList(v *[]types.FindingD
return nil
}
-func awsRestjson1_deserializeDocumentFindingList(v *[]types.Finding, value interface{}) error {
+func awsRestjson1_deserializeDocumentFreeTrialInfoList(v *[]types.FreeTrialInfo, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16044,17 +20117,17 @@ func awsRestjson1_deserializeDocumentFindingList(v *[]types.Finding, value inter
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Finding
+ var cv []types.FreeTrialInfo
if *v == nil {
- cv = []types.Finding{}
+ cv = []types.FreeTrialInfo{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.Finding
+ var col types.FreeTrialInfo
destAddr := &col
- if err := awsRestjson1_deserializeDocumentFinding(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentFreeTrialInfo(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -16065,7 +20138,7 @@ func awsRestjson1_deserializeDocumentFindingList(v *[]types.Finding, value inter
return nil
}
-func awsRestjson1_deserializeDocumentFindingTypeAggregationResponse(v **types.FindingTypeAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentImageLayerAggregationResponse(v **types.ImageLayerAggregationResponse, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16078,9 +20151,9 @@ func awsRestjson1_deserializeDocumentFindingTypeAggregationResponse(v **types.Fi
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.FindingTypeAggregationResponse
+ var sv *types.ImageLayerAggregationResponse
if *v == nil {
- sv = &types.FindingTypeAggregationResponse{}
+ sv = &types.ImageLayerAggregationResponse{}
} else {
sv = *v
}
@@ -16096,30 +20169,31 @@ func awsRestjson1_deserializeDocumentFindingTypeAggregationResponse(v **types.Fi
sv.AccountId = ptr.String(jtv)
}
- case "exploitAvailableCount":
+ case "layerHash":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.ExploitAvailableCount = ptr.Int64(i64)
+ sv.LayerHash = ptr.String(jtv)
}
- case "fixAvailableCount":
+ case "repository":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Long to be json.Number, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ sv.Repository = ptr.String(jtv)
+ }
+
+ case "resourceId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.FixAvailableCount = ptr.Int64(i64)
+ sv.ResourceId = ptr.String(jtv)
}
case "severityCounts":
@@ -16136,7 +20210,43 @@ func awsRestjson1_deserializeDocumentFindingTypeAggregationResponse(v **types.Fi
return nil
}
-func awsRestjson1_deserializeDocumentFreeTrialAccountInfo(v **types.FreeTrialAccountInfo, value interface{}) error {
+func awsRestjson1_deserializeDocumentImageTagList(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInspectorScoreDetails(v **types.InspectorScoreDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16149,26 +20259,17 @@ func awsRestjson1_deserializeDocumentFreeTrialAccountInfo(v **types.FreeTrialAcc
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.FreeTrialAccountInfo
+ var sv *types.InspectorScoreDetails
if *v == nil {
- sv = &types.FreeTrialAccountInfo{}
+ sv = &types.InspectorScoreDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected MeteringAccountId to be of type string, got %T instead", value)
- }
- sv.AccountId = ptr.String(jtv)
- }
-
- case "freeTrialInfo":
- if err := awsRestjson1_deserializeDocumentFreeTrialInfoList(&sv.FreeTrialInfo, value); err != nil {
+ case "adjustedCvss":
+ if err := awsRestjson1_deserializeDocumentCvssScoreDetails(&sv.AdjustedCvss, value); err != nil {
return err
}
@@ -16181,7 +20282,7 @@ func awsRestjson1_deserializeDocumentFreeTrialAccountInfo(v **types.FreeTrialAcc
return nil
}
-func awsRestjson1_deserializeDocumentFreeTrialAccountInfoList(v *[]types.FreeTrialAccountInfo, value interface{}) error {
+func awsRestjson1_deserializeDocumentIntegrationSummaries(v *[]types.CodeSecurityIntegrationSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16194,17 +20295,17 @@ func awsRestjson1_deserializeDocumentFreeTrialAccountInfoList(v *[]types.FreeTri
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.FreeTrialAccountInfo
+ var cv []types.CodeSecurityIntegrationSummary
if *v == nil {
- cv = []types.FreeTrialAccountInfo{}
+ cv = []types.CodeSecurityIntegrationSummary{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.FreeTrialAccountInfo
+ var col types.CodeSecurityIntegrationSummary
destAddr := &col
- if err := awsRestjson1_deserializeDocumentFreeTrialAccountInfo(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentCodeSecurityIntegrationSummary(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -16215,7 +20316,7 @@ func awsRestjson1_deserializeDocumentFreeTrialAccountInfoList(v *[]types.FreeTri
return nil
}
-func awsRestjson1_deserializeDocumentFreeTrialInfo(v **types.FreeTrialInfo, value interface{}) error {
+func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16228,75 +20329,119 @@ func awsRestjson1_deserializeDocumentFreeTrialInfo(v **types.FreeTrialInfo, valu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.FreeTrialInfo
+ var sv *types.InternalServerException
if *v == nil {
- sv = &types.FreeTrialInfo{}
+ sv = &types.InternalServerException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "end":
+ case "message", "Message":
if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.End = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
-
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
+ sv.Message = ptr.String(jtv)
}
- case "start":
+ case "retryAfterSeconds":
if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.Start = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
-
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
}
+ sv.RetryAfterSeconds = ptr.Int32(int32(i64))
}
- case "status":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected FreeTrialStatus to be of type string, got %T instead", value)
- }
- sv.Status = types.FreeTrialStatus(jtv)
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentIpV4AddressList(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IpV4Address to be of type string, got %T instead", value)
}
+ col = jtv
+ }
+ cv = append(cv, col)
- case "type":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected FreeTrialType to be of type string, got %T instead", value)
- }
- sv.Type = types.FreeTrialType(jtv)
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentIpV6AddressList(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IpV6Address to be of type string, got %T instead", value)
}
-
- default:
- _, _ = key, value
-
+ col = jtv
}
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentFreeTrialInfoError(v **types.FreeTrialInfoError, value interface{}) error {
+func awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(v **types.LambdaFunctionAggregationResponse, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16309,9 +20454,9 @@ func awsRestjson1_deserializeDocumentFreeTrialInfoError(v **types.FreeTrialInfoE
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.FreeTrialInfoError
+ var sv *types.LambdaFunctionAggregationResponse
if *v == nil {
- sv = &types.FreeTrialInfoError{}
+ sv = &types.LambdaFunctionAggregationResponse{}
} else {
sv = *v
}
@@ -16322,27 +20467,62 @@ func awsRestjson1_deserializeDocumentFreeTrialInfoError(v **types.FreeTrialInfoE
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected MeteringAccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
sv.AccountId = ptr.String(jtv)
}
- case "code":
+ case "functionName":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected FreeTrialInfoErrorCode to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.Code = types.FreeTrialInfoErrorCode(jtv)
+ sv.FunctionName = ptr.String(jtv)
}
- case "message":
+ case "lambdaTags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.LambdaTags, value); err != nil {
+ return err
+ }
+
+ case "lastModifiedAt":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.LastModifiedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+
+ default:
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "resourceId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ResourceId = ptr.String(jtv)
+ }
+
+ case "runtime":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
- sv.Message = ptr.String(jtv)
+ sv.Runtime = ptr.String(jtv)
+ }
+
+ case "severityCounts":
+ if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
+ return err
}
default:
@@ -16354,7 +20534,7 @@ func awsRestjson1_deserializeDocumentFreeTrialInfoError(v **types.FreeTrialInfoE
return nil
}
-func awsRestjson1_deserializeDocumentFreeTrialInfoErrorList(v *[]types.FreeTrialInfoError, value interface{}) error {
+func awsRestjson1_deserializeDocumentLambdaFunctionMetadata(v **types.LambdaFunctionMetadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16362,67 +20542,58 @@ func awsRestjson1_deserializeDocumentFreeTrialInfoErrorList(v *[]types.FreeTrial
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.FreeTrialInfoError
+ var sv *types.LambdaFunctionMetadata
if *v == nil {
- cv = []types.FreeTrialInfoError{}
+ sv = &types.LambdaFunctionMetadata{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.FreeTrialInfoError
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentFreeTrialInfoError(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "functionName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.FunctionName = ptr.String(jtv)
+ }
- }
- *v = cv
- return nil
-}
+ case "functionTags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.FunctionTags, value); err != nil {
+ return err
+ }
-func awsRestjson1_deserializeDocumentFreeTrialInfoList(v *[]types.FreeTrialInfo, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+ case "layers":
+ if err := awsRestjson1_deserializeDocumentLambdaLayerList(&sv.Layers, value); err != nil {
+ return err
+ }
- shape, ok := value.([]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ case "runtime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Runtime to be of type string, got %T instead", value)
+ }
+ sv.Runtime = types.Runtime(jtv)
+ }
- var cv []types.FreeTrialInfo
- if *v == nil {
- cv = []types.FreeTrialInfo{}
- } else {
- cv = *v
- }
+ default:
+ _, _ = key, value
- for _, value := range shape {
- var col types.FreeTrialInfo
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentFreeTrialInfo(&destAddr, value); err != nil {
- return err
}
- col = *destAddr
- cv = append(cv, col)
-
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentImageLayerAggregationResponse(v **types.ImageLayerAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentLambdaLayerAggregationResponse(v **types.LambdaLayerAggregationResponse, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16435,9 +20606,9 @@ func awsRestjson1_deserializeDocumentImageLayerAggregationResponse(v **types.Ima
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.ImageLayerAggregationResponse
+ var sv *types.LambdaLayerAggregationResponse
if *v == nil {
- sv = &types.ImageLayerAggregationResponse{}
+ sv = &types.LambdaLayerAggregationResponse{}
} else {
sv = *v
}
@@ -16453,22 +20624,22 @@ func awsRestjson1_deserializeDocumentImageLayerAggregationResponse(v **types.Ima
sv.AccountId = ptr.String(jtv)
}
- case "layerHash":
+ case "functionName":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.LayerHash = ptr.String(jtv)
+ sv.FunctionName = ptr.String(jtv)
}
- case "repository":
+ case "layerArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Repository = ptr.String(jtv)
+ sv.LayerArn = ptr.String(jtv)
}
case "resourceId":
@@ -16494,7 +20665,7 @@ func awsRestjson1_deserializeDocumentImageLayerAggregationResponse(v **types.Ima
return nil
}
-func awsRestjson1_deserializeDocumentImageTagList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentLambdaLayerList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16519,7 +20690,7 @@ func awsRestjson1_deserializeDocumentImageTagList(v *[]string, value interface{}
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
col = jtv
}
@@ -16530,7 +20701,7 @@ func awsRestjson1_deserializeDocumentImageTagList(v *[]string, value interface{}
return nil
}
-func awsRestjson1_deserializeDocumentInspectorScoreDetails(v **types.InspectorScoreDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentLambdaVpcConfig(v **types.LambdaVpcConfig, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16543,20 +20714,34 @@ func awsRestjson1_deserializeDocumentInspectorScoreDetails(v **types.InspectorSc
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.InspectorScoreDetails
+ var sv *types.LambdaVpcConfig
if *v == nil {
- sv = &types.InspectorScoreDetails{}
+ sv = &types.LambdaVpcConfig{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "adjustedCvss":
- if err := awsRestjson1_deserializeDocumentCvssScoreDetails(&sv.AdjustedCvss, value); err != nil {
+ case "securityGroupIds":
+ if err := awsRestjson1_deserializeDocumentSecurityGroupIdList(&sv.SecurityGroupIds, value); err != nil {
+ return err
+ }
+
+ case "subnetIds":
+ if err := awsRestjson1_deserializeDocumentSubnetIdList(&sv.SubnetIds, value); err != nil {
return err
}
+ case "vpcId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected VpcId to be of type string, got %T instead", value)
+ }
+ sv.VpcId = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
@@ -16566,7 +20751,7 @@ func awsRestjson1_deserializeDocumentInspectorScoreDetails(v **types.InspectorSc
return nil
}
-func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error {
+func awsRestjson1_deserializeDocumentLayerList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16574,52 +20759,35 @@ func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalS
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.InternalServerException
+ var cv []string
if *v == nil {
- sv = &types.InternalServerException{}
+ cv = []string{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "message", "Message":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.Message = ptr.String(jtv)
- }
-
- case "retryAfterSeconds":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.RetryAfterSeconds = ptr.Int32(int32(i64))
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected LambdaLayerArn to be of type string, got %T instead", value)
}
-
- default:
- _, _ = key, value
-
+ col = jtv
}
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentIpV4AddressList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentMapFilter(v **types.MapFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16627,35 +20795,57 @@ func awsRestjson1_deserializeDocumentIpV4AddressList(v *[]string, value interfac
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var sv *types.MapFilter
if *v == nil {
- cv = []string{}
+ sv = &types.MapFilter{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected IpV4Address to be of type string, got %T instead", value)
+ for key, value := range shape {
+ switch key {
+ case "comparison":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected MapComparison to be of type string, got %T instead", value)
+ }
+ sv.Comparison = types.MapComparison(jtv)
+ }
+
+ case "key":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected MapKey to be of type string, got %T instead", value)
+ }
+ sv.Key = ptr.String(jtv)
+ }
+
+ case "value":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected MapValue to be of type string, got %T instead", value)
+ }
+ sv.Value = ptr.String(jtv)
}
- col = jtv
- }
- cv = append(cv, col)
+ default:
+ _, _ = key, value
+
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentIpV6AddressList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentMapFilterList(v *[]types.MapFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16668,22 +20858,20 @@ func awsRestjson1_deserializeDocumentIpV6AddressList(v *[]string, value interfac
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var cv []types.MapFilter
if *v == nil {
- cv = []string{}
+ cv = []types.MapFilter{}
} else {
cv = *v
}
for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected IpV6Address to be of type string, got %T instead", value)
- }
- col = jtv
+ var col types.MapFilter
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentMapFilter(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
cv = append(cv, col)
}
@@ -16691,7 +20879,7 @@ func awsRestjson1_deserializeDocumentIpV6AddressList(v *[]string, value interfac
return nil
}
-func awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(v **types.LambdaFunctionAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16704,9 +20892,9 @@ func awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(v **types
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.LambdaFunctionAggregationResponse
+ var sv *types.Member
if *v == nil {
- sv = &types.LambdaFunctionAggregationResponse{}
+ sv = &types.Member{}
} else {
sv = *v
}
@@ -16722,21 +20910,25 @@ func awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(v **types
sv.AccountId = ptr.String(jtv)
}
- case "functionName":
+ case "delegatedAdminAccountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.FunctionName = ptr.String(jtv)
+ sv.DelegatedAdminAccountId = ptr.String(jtv)
}
- case "lambdaTags":
- if err := awsRestjson1_deserializeDocumentTagMap(&sv.LambdaTags, value); err != nil {
- return err
+ case "relationshipStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected RelationshipStatus to be of type string, got %T instead", value)
+ }
+ sv.RelationshipStatus = types.RelationshipStatus(jtv)
}
- case "lastModifiedAt":
+ case "updatedAt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -16744,7 +20936,7 @@ func awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(v **types
if err != nil {
return err
}
- sv.LastModifiedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
@@ -16752,29 +20944,6 @@ func awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(v **types
}
}
- case "resourceId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ResourceId = ptr.String(jtv)
- }
-
- case "runtime":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- sv.Runtime = ptr.String(jtv)
- }
-
- case "severityCounts":
- if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
- return err
- }
-
default:
_, _ = key, value
@@ -16784,7 +20953,7 @@ func awsRestjson1_deserializeDocumentLambdaFunctionAggregationResponse(v **types
return nil
}
-func awsRestjson1_deserializeDocumentLambdaFunctionMetadata(v **types.LambdaFunctionMetadata, value interface{}) error {
+func awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusState(v **types.MemberAccountEc2DeepInspectionStatusState, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16797,41 +20966,40 @@ func awsRestjson1_deserializeDocumentLambdaFunctionMetadata(v **types.LambdaFunc
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.LambdaFunctionMetadata
+ var sv *types.MemberAccountEc2DeepInspectionStatusState
if *v == nil {
- sv = &types.LambdaFunctionMetadata{}
+ sv = &types.MemberAccountEc2DeepInspectionStatusState{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "functionName":
+ case "accountId":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
}
- sv.FunctionName = ptr.String(jtv)
- }
-
- case "functionTags":
- if err := awsRestjson1_deserializeDocumentTagMap(&sv.FunctionTags, value); err != nil {
- return err
+ sv.AccountId = ptr.String(jtv)
}
- case "layers":
- if err := awsRestjson1_deserializeDocumentLambdaLayerList(&sv.Layers, value); err != nil {
- return err
+ case "errorMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ErrorMessage = ptr.String(jtv)
}
- case "runtime":
+ case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Runtime to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Ec2DeepInspectionStatus to be of type string, got %T instead", value)
}
- sv.Runtime = types.Runtime(jtv)
+ sv.Status = types.Ec2DeepInspectionStatus(jtv)
}
default:
@@ -16843,7 +21011,7 @@ func awsRestjson1_deserializeDocumentLambdaFunctionMetadata(v **types.LambdaFunc
return nil
}
-func awsRestjson1_deserializeDocumentLambdaLayerAggregationResponse(v **types.LambdaLayerAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusStateList(v *[]types.MemberAccountEc2DeepInspectionStatusState, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16851,71 +21019,33 @@ func awsRestjson1_deserializeDocumentLambdaLayerAggregationResponse(v **types.La
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.LambdaLayerAggregationResponse
+ var cv []types.MemberAccountEc2DeepInspectionStatusState
if *v == nil {
- sv = &types.LambdaLayerAggregationResponse{}
+ cv = []types.MemberAccountEc2DeepInspectionStatusState{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "accountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.AccountId = ptr.String(jtv)
- }
-
- case "functionName":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.FunctionName = ptr.String(jtv)
- }
-
- case "layerArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.LayerArn = ptr.String(jtv)
- }
-
- case "resourceId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ResourceId = ptr.String(jtv)
- }
-
- case "severityCounts":
- if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
+ for _, value := range shape {
+ var col types.MemberAccountEc2DeepInspectionStatusState
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusState(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentLambdaLayerList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentMemberList(v *[]types.Member, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16928,22 +21058,20 @@ func awsRestjson1_deserializeDocumentLambdaLayerList(v *[]string, value interfac
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var cv []types.Member
if *v == nil {
- cv = []string{}
+ cv = []types.Member{}
} else {
cv = *v
}
for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected String to be of type string, got %T instead", value)
- }
- col = jtv
+ var col types.Member
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentMember(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
cv = append(cv, col)
}
@@ -16951,7 +21079,7 @@ func awsRestjson1_deserializeDocumentLambdaLayerList(v *[]string, value interfac
return nil
}
-func awsRestjson1_deserializeDocumentLambdaVpcConfig(v **types.LambdaVpcConfig, value interface{}) error {
+func awsRestjson1_deserializeDocumentMonthlySchedule(v **types.MonthlySchedule, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -16964,32 +21092,27 @@ func awsRestjson1_deserializeDocumentLambdaVpcConfig(v **types.LambdaVpcConfig,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.LambdaVpcConfig
+ var sv *types.MonthlySchedule
if *v == nil {
- sv = &types.LambdaVpcConfig{}
+ sv = &types.MonthlySchedule{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "securityGroupIds":
- if err := awsRestjson1_deserializeDocumentSecurityGroupIdList(&sv.SecurityGroupIds, value); err != nil {
- return err
- }
-
- case "subnetIds":
- if err := awsRestjson1_deserializeDocumentSubnetIdList(&sv.SubnetIds, value); err != nil {
- return err
- }
-
- case "vpcId":
+ case "day":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected VpcId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Day to be of type string, got %T instead", value)
}
- sv.VpcId = ptr.String(jtv)
+ sv.Day = types.Day(jtv)
+ }
+
+ case "startTime":
+ if err := awsRestjson1_deserializeDocumentTime(&sv.StartTime, value); err != nil {
+ return err
}
default:
@@ -17001,7 +21124,7 @@ func awsRestjson1_deserializeDocumentLambdaVpcConfig(v **types.LambdaVpcConfig,
return nil
}
-func awsRestjson1_deserializeDocumentLayerList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentNetworkPath(v **types.NetworkPath, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17009,35 +21132,35 @@ func awsRestjson1_deserializeDocumentLayerList(v *[]string, value interface{}) e
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var sv *types.NetworkPath
if *v == nil {
- cv = []string{}
+ sv = &types.NetworkPath{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected LambdaLayerArn to be of type string, got %T instead", value)
+ for key, value := range shape {
+ switch key {
+ case "steps":
+ if err := awsRestjson1_deserializeDocumentStepList(&sv.Steps, value); err != nil {
+ return err
}
- col = jtv
- }
- cv = append(cv, col)
+ default:
+ _, _ = key, value
+
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentMapFilter(v **types.MapFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentNetworkReachabilityDetails(v **types.NetworkReachabilityDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17050,40 +21173,32 @@ func awsRestjson1_deserializeDocumentMapFilter(v **types.MapFilter, value interf
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.MapFilter
+ var sv *types.NetworkReachabilityDetails
if *v == nil {
- sv = &types.MapFilter{}
+ sv = &types.NetworkReachabilityDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "comparison":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected MapComparison to be of type string, got %T instead", value)
- }
- sv.Comparison = types.MapComparison(jtv)
+ case "networkPath":
+ if err := awsRestjson1_deserializeDocumentNetworkPath(&sv.NetworkPath, value); err != nil {
+ return err
}
- case "key":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected MapKey to be of type string, got %T instead", value)
- }
- sv.Key = ptr.String(jtv)
+ case "openPortRange":
+ if err := awsRestjson1_deserializeDocumentPortRange(&sv.OpenPortRange, value); err != nil {
+ return err
}
- case "value":
+ case "protocol":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected MapValue to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NetworkProtocol to be of type string, got %T instead", value)
}
- sv.Value = ptr.String(jtv)
+ sv.Protocol = types.NetworkProtocol(jtv)
}
default:
@@ -17095,7 +21210,7 @@ func awsRestjson1_deserializeDocumentMapFilter(v **types.MapFilter, value interf
return nil
}
-func awsRestjson1_deserializeDocumentMapFilterList(v *[]types.MapFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17108,20 +21223,22 @@ func awsRestjson1_deserializeDocumentMapFilterList(v *[]types.MapFilter, value i
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.MapFilter
+ var cv []string
if *v == nil {
- cv = []types.MapFilter{}
+ cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.MapFilter
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentMapFilter(&destAddr, value); err != nil {
- return err
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ col = jtv
}
- col = *destAddr
cv = append(cv, col)
}
@@ -17129,7 +21246,7 @@ func awsRestjson1_deserializeDocumentMapFilterList(v *[]types.MapFilter, value i
return nil
}
-func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{}) error {
+func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17142,43 +21259,16 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{})
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Member
+ var sv *types.NumberFilter
if *v == nil {
- sv = &types.Member{}
+ sv = &types.NumberFilter{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.AccountId = ptr.String(jtv)
- }
-
- case "delegatedAdminAccountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.DelegatedAdminAccountId = ptr.String(jtv)
- }
-
- case "relationshipStatus":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected RelationshipStatus to be of type string, got %T instead", value)
- }
- sv.RelationshipStatus = types.RelationshipStatus(jtv)
- }
-
- case "updatedAt":
+ case "lowerInclusive":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -17186,70 +21276,64 @@ func awsRestjson1_deserializeDocumentMember(v **types.Member, value interface{})
if err != nil {
return err
}
- sv.UpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ sv.LowerInclusive = ptr.Float64(f64)
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.LowerInclusive = ptr.Float64(f64)
default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
}
}
- default:
- _, _ = key, value
+ case "upperInclusive":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.UpperInclusive = ptr.Float64(f64)
- }
- }
- *v = sv
- return nil
-}
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
-func awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusState(v **types.MemberAccountEc2DeepInspectionStatusState, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
- var sv *types.MemberAccountEc2DeepInspectionStatusState
- if *v == nil {
- sv = &types.MemberAccountEc2DeepInspectionStatusState{}
- } else {
- sv = *v
- }
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
- for key, value := range shape {
- switch key {
- case "accountId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
- }
- sv.AccountId = ptr.String(jtv)
- }
+ }
+ sv.UpperInclusive = ptr.Float64(f64)
- case "errorMessage":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ErrorMessage = ptr.String(jtv)
- }
+ default:
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
- case "status":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Ec2DeepInspectionStatus to be of type string, got %T instead", value)
}
- sv.Status = types.Ec2DeepInspectionStatus(jtv)
}
default:
@@ -17261,41 +21345,7 @@ func awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusState(v
return nil
}
-func awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusStateList(v *[]types.MemberAccountEc2DeepInspectionStatusState, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.([]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var cv []types.MemberAccountEc2DeepInspectionStatusState
- if *v == nil {
- cv = []types.MemberAccountEc2DeepInspectionStatusState{}
- } else {
- cv = *v
- }
-
- for _, value := range shape {
- var col types.MemberAccountEc2DeepInspectionStatusState
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentMemberAccountEc2DeepInspectionStatusState(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
-
- }
- *v = cv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentMemberList(v *[]types.Member, value interface{}) error {
+func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17308,17 +21358,17 @@ func awsRestjson1_deserializeDocumentMemberList(v *[]types.Member, value interfa
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Member
+ var cv []types.NumberFilter
if *v == nil {
- cv = []types.Member{}
+ cv = []types.NumberFilter{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.Member
+ var col types.NumberFilter
destAddr := &col
- if err := awsRestjson1_deserializeDocumentMember(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentNumberFilter(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -17329,7 +21379,7 @@ func awsRestjson1_deserializeDocumentMemberList(v *[]types.Member, value interfa
return nil
}
-func awsRestjson1_deserializeDocumentMonthlySchedule(v **types.MonthlySchedule, value interface{}) error {
+func awsRestjson1_deserializeDocumentOneTimeSchedule(v **types.OneTimeSchedule, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17342,29 +21392,15 @@ func awsRestjson1_deserializeDocumentMonthlySchedule(v **types.MonthlySchedule,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.MonthlySchedule
+ var sv *types.OneTimeSchedule
if *v == nil {
- sv = &types.MonthlySchedule{}
+ sv = &types.OneTimeSchedule{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "day":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Day to be of type string, got %T instead", value)
- }
- sv.Day = types.Day(jtv)
- }
-
- case "startTime":
- if err := awsRestjson1_deserializeDocumentTime(&sv.StartTime, value); err != nil {
- return err
- }
-
default:
_, _ = key, value
@@ -17374,7 +21410,7 @@ func awsRestjson1_deserializeDocumentMonthlySchedule(v **types.MonthlySchedule,
return nil
}
-func awsRestjson1_deserializeDocumentNetworkPath(v **types.NetworkPath, value interface{}) error {
+func awsRestjson1_deserializeDocumentPackageAggregationResponse(v **types.PackageAggregationResponse, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17387,17 +21423,35 @@ func awsRestjson1_deserializeDocumentNetworkPath(v **types.NetworkPath, value in
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkPath
+ var sv *types.PackageAggregationResponse
if *v == nil {
- sv = &types.NetworkPath{}
+ sv = &types.PackageAggregationResponse{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "steps":
- if err := awsRestjson1_deserializeDocumentStepList(&sv.Steps, value); err != nil {
+ case "accountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
+ }
+
+ case "packageName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.PackageName = ptr.String(jtv)
+ }
+
+ case "severityCounts":
+ if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
return err
}
@@ -17410,7 +21464,7 @@ func awsRestjson1_deserializeDocumentNetworkPath(v **types.NetworkPath, value in
return nil
}
-func awsRestjson1_deserializeDocumentNetworkReachabilityDetails(v **types.NetworkReachabilityDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentPackageFilter(v **types.PackageFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17423,32 +21477,53 @@ func awsRestjson1_deserializeDocumentNetworkReachabilityDetails(v **types.Networ
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkReachabilityDetails
+ var sv *types.PackageFilter
if *v == nil {
- sv = &types.NetworkReachabilityDetails{}
+ sv = &types.PackageFilter{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "networkPath":
- if err := awsRestjson1_deserializeDocumentNetworkPath(&sv.NetworkPath, value); err != nil {
+ case "architecture":
+ if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Architecture, value); err != nil {
return err
}
- case "openPortRange":
- if err := awsRestjson1_deserializeDocumentPortRange(&sv.OpenPortRange, value); err != nil {
+ case "epoch":
+ if err := awsRestjson1_deserializeDocumentNumberFilter(&sv.Epoch, value); err != nil {
return err
}
- case "protocol":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NetworkProtocol to be of type string, got %T instead", value)
- }
- sv.Protocol = types.NetworkProtocol(jtv)
+ case "filePath":
+ if err := awsRestjson1_deserializeDocumentStringFilter(&sv.FilePath, value); err != nil {
+ return err
+ }
+
+ case "name":
+ if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Name, value); err != nil {
+ return err
+ }
+
+ case "release":
+ if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Release, value); err != nil {
+ return err
+ }
+
+ case "sourceLambdaLayerArn":
+ if err := awsRestjson1_deserializeDocumentStringFilter(&sv.SourceLambdaLayerArn, value); err != nil {
+ return err
+ }
+
+ case "sourceLayerHash":
+ if err := awsRestjson1_deserializeDocumentStringFilter(&sv.SourceLayerHash, value); err != nil {
+ return err
+ }
+
+ case "version":
+ if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Version, value); err != nil {
+ return err
}
default:
@@ -17460,7 +21535,7 @@ func awsRestjson1_deserializeDocumentNetworkReachabilityDetails(v **types.Networ
return nil
}
-func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentPackageFilterList(v *[]types.PackageFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17473,22 +21548,20 @@ func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]string, value inter
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var cv []types.PackageFilter
if *v == nil {
- cv = []string{}
+ cv = []types.PackageFilter{}
} else {
cv = *v
}
for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- col = jtv
+ var col types.PackageFilter
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentPackageFilter(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
cv = append(cv, col)
}
@@ -17496,7 +21569,7 @@ func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]string, value inter
return nil
}
-func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentPackageVulnerabilityDetails(v **types.PackageVulnerabilityDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17509,16 +21582,49 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NumberFilter
+ var sv *types.PackageVulnerabilityDetails
if *v == nil {
- sv = &types.NumberFilter{}
+ sv = &types.PackageVulnerabilityDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "lowerInclusive":
+ case "cvss":
+ if err := awsRestjson1_deserializeDocumentCvssScoreList(&sv.Cvss, value); err != nil {
+ return err
+ }
+
+ case "referenceUrls":
+ if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.ReferenceUrls, value); err != nil {
+ return err
+ }
+
+ case "relatedVulnerabilities":
+ if err := awsRestjson1_deserializeDocumentVulnerabilityIdList(&sv.RelatedVulnerabilities, value); err != nil {
+ return err
+ }
+
+ case "source":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Source = ptr.String(jtv)
+ }
+
+ case "sourceUrl":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.SourceUrl = ptr.String(jtv)
+ }
+
+ case "vendorCreatedAt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -17526,33 +21632,24 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value
if err != nil {
return err
}
- sv.LowerInclusive = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.LowerInclusive = ptr.Float64(f64)
+ sv.VendorCreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
}
}
- case "upperInclusive":
+ case "vendorSeverity":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.VendorSeverity = ptr.String(jtv)
+ }
+
+ case "vendorUpdatedAt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -17560,30 +21657,26 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value
if err != nil {
return err
}
- sv.UpperInclusive = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.UpperInclusive = ptr.Float64(f64)
+ sv.VendorUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+ return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+
+ }
+ }
+ case "vulnerabilityId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected VulnerabilityId to be of type string, got %T instead", value)
}
+ sv.VulnerabilityId = ptr.String(jtv)
+ }
+
+ case "vulnerablePackages":
+ if err := awsRestjson1_deserializeDocumentVulnerablePackageList(&sv.VulnerablePackages, value); err != nil {
+ return err
}
default:
@@ -17595,7 +21688,7 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value
return nil
}
-func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentPathList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17608,20 +21701,22 @@ func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, v
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.NumberFilter
+ var cv []string
if *v == nil {
- cv = []types.NumberFilter{}
+ cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.NumberFilter
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentNumberFilter(&destAddr, value); err != nil {
- return err
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Path to be of type string, got %T instead", value)
+ }
+ col = jtv
}
- col = *destAddr
cv = append(cv, col)
}
@@ -17629,38 +21724,7 @@ func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, v
return nil
}
-func awsRestjson1_deserializeDocumentOneTimeSchedule(v **types.OneTimeSchedule, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *types.OneTimeSchedule
- if *v == nil {
- sv = &types.OneTimeSchedule{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentPackageAggregationResponse(v **types.PackageAggregationResponse, value interface{}) error {
+func awsRestjson1_deserializeDocumentPeriodicScanConfiguration(v **types.PeriodicScanConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17673,36 +21737,31 @@ func awsRestjson1_deserializeDocumentPackageAggregationResponse(v **types.Packag
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.PackageAggregationResponse
+ var sv *types.PeriodicScanConfiguration
if *v == nil {
- sv = &types.PackageAggregationResponse{}
+ sv = &types.PeriodicScanConfiguration{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "accountId":
+ case "frequency":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected PeriodicScanFrequency to be of type string, got %T instead", value)
}
- sv.AccountId = ptr.String(jtv)
+ sv.Frequency = types.PeriodicScanFrequency(jtv)
}
- case "packageName":
+ case "frequencyExpression":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected FrequencyExpression to be of type string, got %T instead", value)
}
- sv.PackageName = ptr.String(jtv)
- }
-
- case "severityCounts":
- if err := awsRestjson1_deserializeDocumentSeverityCounts(&sv.SeverityCounts, value); err != nil {
- return err
+ sv.FrequencyExpression = ptr.String(jtv)
}
default:
@@ -17714,7 +21773,7 @@ func awsRestjson1_deserializeDocumentPackageAggregationResponse(v **types.Packag
return nil
}
-func awsRestjson1_deserializeDocumentPackageFilter(v **types.PackageFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentPermission(v **types.Permission, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17727,53 +21786,31 @@ func awsRestjson1_deserializeDocumentPackageFilter(v **types.PackageFilter, valu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.PackageFilter
+ var sv *types.Permission
if *v == nil {
- sv = &types.PackageFilter{}
+ sv = &types.Permission{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "architecture":
- if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Architecture, value); err != nil {
- return err
- }
-
- case "epoch":
- if err := awsRestjson1_deserializeDocumentNumberFilter(&sv.Epoch, value); err != nil {
- return err
- }
-
- case "filePath":
- if err := awsRestjson1_deserializeDocumentStringFilter(&sv.FilePath, value); err != nil {
- return err
- }
-
- case "name":
- if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Name, value); err != nil {
- return err
- }
-
- case "release":
- if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Release, value); err != nil {
- return err
- }
-
- case "sourceLambdaLayerArn":
- if err := awsRestjson1_deserializeDocumentStringFilter(&sv.SourceLambdaLayerArn, value); err != nil {
- return err
- }
-
- case "sourceLayerHash":
- if err := awsRestjson1_deserializeDocumentStringFilter(&sv.SourceLayerHash, value); err != nil {
- return err
+ case "operation":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Operation to be of type string, got %T instead", value)
+ }
+ sv.Operation = types.Operation(jtv)
}
- case "version":
- if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Version, value); err != nil {
- return err
+ case "service":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Service to be of type string, got %T instead", value)
+ }
+ sv.Service = types.Service(jtv)
}
default:
@@ -17785,7 +21822,7 @@ func awsRestjson1_deserializeDocumentPackageFilter(v **types.PackageFilter, valu
return nil
}
-func awsRestjson1_deserializeDocumentPackageFilterList(v *[]types.PackageFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentPermissions(v *[]types.Permission, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17798,17 +21835,17 @@ func awsRestjson1_deserializeDocumentPackageFilterList(v *[]types.PackageFilter,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.PackageFilter
+ var cv []types.Permission
if *v == nil {
- cv = []types.PackageFilter{}
+ cv = []types.Permission{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.PackageFilter
+ var col types.Permission
destAddr := &col
- if err := awsRestjson1_deserializeDocumentPackageFilter(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentPermission(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -17819,7 +21856,7 @@ func awsRestjson1_deserializeDocumentPackageFilterList(v *[]types.PackageFilter,
return nil
}
-func awsRestjson1_deserializeDocumentPackageVulnerabilityDetails(v **types.PackageVulnerabilityDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentPortRange(v **types.PortRange, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17832,101 +21869,96 @@ func awsRestjson1_deserializeDocumentPackageVulnerabilityDetails(v **types.Packa
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.PackageVulnerabilityDetails
+ var sv *types.PortRange
if *v == nil {
- sv = &types.PackageVulnerabilityDetails{}
+ sv = &types.PortRange{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "cvss":
- if err := awsRestjson1_deserializeDocumentCvssScoreList(&sv.Cvss, value); err != nil {
- return err
- }
-
- case "referenceUrls":
- if err := awsRestjson1_deserializeDocumentNonEmptyStringList(&sv.ReferenceUrls, value); err != nil {
- return err
- }
-
- case "relatedVulnerabilities":
- if err := awsRestjson1_deserializeDocumentVulnerabilityIdList(&sv.RelatedVulnerabilities, value); err != nil {
- return err
- }
-
- case "source":
+ case "begin":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Port to be json.Number, got %T instead", value)
}
- sv.Source = ptr.String(jtv)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Begin = ptr.Int32(int32(i64))
}
- case "sourceUrl":
+ case "end":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Port to be json.Number, got %T instead", value)
}
- sv.SourceUrl = ptr.String(jtv)
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.End = ptr.Int32(int32(i64))
}
- case "vendorCreatedAt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.VendorCreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
+ default:
+ _, _ = key, value
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
+ }
+ }
+ *v = sv
+ return nil
+}
- }
- }
+func awsRestjson1_deserializeDocumentPortRangeFilter(v **types.PortRangeFilter, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
- case "vendorSeverity":
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.PortRangeFilter
+ if *v == nil {
+ sv = &types.PortRangeFilter{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "beginInclusive":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Port to be json.Number, got %T instead", value)
}
- sv.VendorSeverity = ptr.String(jtv)
- }
-
- case "vendorUpdatedAt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.VendorUpdatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64))
-
- default:
- return fmt.Errorf("expected DateTimeTimestamp to be a JSON Number, got %T instead", value)
-
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
}
+ sv.BeginInclusive = ptr.Int32(int32(i64))
}
- case "vulnerabilityId":
+ case "endInclusive":
if value != nil {
- jtv, ok := value.(string)
+ jtv, ok := value.(json.Number)
if !ok {
- return fmt.Errorf("expected VulnerabilityId to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Port to be json.Number, got %T instead", value)
}
- sv.VulnerabilityId = ptr.String(jtv)
- }
-
- case "vulnerablePackages":
- if err := awsRestjson1_deserializeDocumentVulnerablePackageList(&sv.VulnerablePackages, value); err != nil {
- return err
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.EndInclusive = ptr.Int32(int32(i64))
}
default:
@@ -17938,7 +21970,7 @@ func awsRestjson1_deserializeDocumentPackageVulnerabilityDetails(v **types.Packa
return nil
}
-func awsRestjson1_deserializeDocumentPathList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentPortRangeFilterList(v *[]types.PortRangeFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17951,30 +21983,69 @@ func awsRestjson1_deserializeDocumentPathList(v *[]string, value interface{}) er
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var cv []types.PortRangeFilter
if *v == nil {
- cv = []string{}
+ cv = []types.PortRangeFilter{}
} else {
cv = *v
}
for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Path to be of type string, got %T instead", value)
- }
- col = jtv
+ var col types.PortRangeFilter
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentPortRangeFilter(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
cv = append(cv, col)
}
- *v = cv
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentProjectCodeSecurityScanConfiguration(v **types.ProjectCodeSecurityScanConfiguration, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ProjectCodeSecurityScanConfiguration
+ if *v == nil {
+ sv = &types.ProjectCodeSecurityScanConfiguration{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "continuousIntegrationScanConfigurations":
+ if err := awsRestjson1_deserializeDocumentProjectContinuousIntegrationScanConfigurationList(&sv.ContinuousIntegrationScanConfigurations, value); err != nil {
+ return err
+ }
+
+ case "periodicScanConfigurations":
+ if err := awsRestjson1_deserializeDocumentProjectPeriodicScanConfigurationList(&sv.PeriodicScanConfigurations, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentPermission(v **types.Permission, value interface{}) error {
+func awsRestjson1_deserializeDocumentProjectContinuousIntegrationScanConfiguration(v **types.ProjectContinuousIntegrationScanConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -17987,31 +22058,27 @@ func awsRestjson1_deserializeDocumentPermission(v **types.Permission, value inte
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Permission
+ var sv *types.ProjectContinuousIntegrationScanConfiguration
if *v == nil {
- sv = &types.Permission{}
+ sv = &types.ProjectContinuousIntegrationScanConfiguration{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "operation":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Operation to be of type string, got %T instead", value)
- }
- sv.Operation = types.Operation(jtv)
+ case "ruleSetCategories":
+ if err := awsRestjson1_deserializeDocumentRuleSetCategories(&sv.RuleSetCategories, value); err != nil {
+ return err
}
- case "service":
+ case "supportedEvent":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Service to be of type string, got %T instead", value)
+ return fmt.Errorf("expected ContinuousIntegrationScanEvent to be of type string, got %T instead", value)
}
- sv.Service = types.Service(jtv)
+ sv.SupportedEvent = types.ContinuousIntegrationScanEvent(jtv)
}
default:
@@ -18023,7 +22090,7 @@ func awsRestjson1_deserializeDocumentPermission(v **types.Permission, value inte
return nil
}
-func awsRestjson1_deserializeDocumentPermissions(v *[]types.Permission, value interface{}) error {
+func awsRestjson1_deserializeDocumentProjectContinuousIntegrationScanConfigurationList(v *[]types.ProjectContinuousIntegrationScanConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -18036,17 +22103,17 @@ func awsRestjson1_deserializeDocumentPermissions(v *[]types.Permission, value in
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Permission
+ var cv []types.ProjectContinuousIntegrationScanConfiguration
if *v == nil {
- cv = []types.Permission{}
+ cv = []types.ProjectContinuousIntegrationScanConfiguration{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.Permission
+ var col types.ProjectContinuousIntegrationScanConfiguration
destAddr := &col
- if err := awsRestjson1_deserializeDocumentPermission(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentProjectContinuousIntegrationScanConfiguration(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -18057,64 +22124,7 @@ func awsRestjson1_deserializeDocumentPermissions(v *[]types.Permission, value in
return nil
}
-func awsRestjson1_deserializeDocumentPortRange(v **types.PortRange, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *types.PortRange
- if *v == nil {
- sv = &types.PortRange{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "begin":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Port to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.Begin = ptr.Int32(int32(i64))
- }
-
- case "end":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Port to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.End = ptr.Int32(int32(i64))
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-func awsRestjson1_deserializeDocumentPortRangeFilter(v **types.PortRangeFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentProjectPeriodicScanConfiguration(v **types.ProjectPeriodicScanConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -18127,39 +22137,27 @@ func awsRestjson1_deserializeDocumentPortRangeFilter(v **types.PortRangeFilter,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.PortRangeFilter
+ var sv *types.ProjectPeriodicScanConfiguration
if *v == nil {
- sv = &types.PortRangeFilter{}
+ sv = &types.ProjectPeriodicScanConfiguration{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "beginInclusive":
+ case "frequencyExpression":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Port to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ return fmt.Errorf("expected FrequencyExpression to be of type string, got %T instead", value)
}
- sv.BeginInclusive = ptr.Int32(int32(i64))
+ sv.FrequencyExpression = ptr.String(jtv)
}
- case "endInclusive":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Port to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.EndInclusive = ptr.Int32(int32(i64))
+ case "ruleSetCategories":
+ if err := awsRestjson1_deserializeDocumentRuleSetCategories(&sv.RuleSetCategories, value); err != nil {
+ return err
}
default:
@@ -18171,7 +22169,7 @@ func awsRestjson1_deserializeDocumentPortRangeFilter(v **types.PortRangeFilter,
return nil
}
-func awsRestjson1_deserializeDocumentPortRangeFilterList(v *[]types.PortRangeFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentProjectPeriodicScanConfigurationList(v *[]types.ProjectPeriodicScanConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -18184,17 +22182,17 @@ func awsRestjson1_deserializeDocumentPortRangeFilterList(v *[]types.PortRangeFil
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.PortRangeFilter
+ var cv []types.ProjectPeriodicScanConfiguration
if *v == nil {
- cv = []types.PortRangeFilter{}
+ cv = []types.ProjectPeriodicScanConfiguration{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.PortRangeFilter
+ var col types.ProjectPeriodicScanConfiguration
destAddr := &col
- if err := awsRestjson1_deserializeDocumentPortRangeFilter(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentProjectPeriodicScanConfiguration(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -18543,6 +22541,11 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails,
return err
}
+ case "codeRepository":
+ if err := awsRestjson1_deserializeDocumentCodeRepositoryDetails(&sv.CodeRepository, value); err != nil {
+ return err
+ }
+
default:
_, _ = key, value
@@ -18811,6 +22814,11 @@ func awsRestjson1_deserializeDocumentResourceScanMetadata(v **types.ResourceScan
for key, value := range shape {
switch key {
+ case "codeRepository":
+ if err := awsRestjson1_deserializeDocumentCodeRepositoryMetadata(&sv.CodeRepository, value); err != nil {
+ return err
+ }
+
case "ec2":
if err := awsRestjson1_deserializeDocumentEc2Metadata(&sv.Ec2, value); err != nil {
return err
@@ -18862,6 +22870,11 @@ func awsRestjson1_deserializeDocumentResourceState(v **types.ResourceState, valu
for key, value := range shape {
switch key {
+ case "codeRepository":
+ if err := awsRestjson1_deserializeDocumentState(&sv.CodeRepository, value); err != nil {
+ return err
+ }
+
case "ec2":
if err := awsRestjson1_deserializeDocumentState(&sv.Ec2, value); err != nil {
return err
@@ -18913,6 +22926,15 @@ func awsRestjson1_deserializeDocumentResourceStatus(v **types.ResourceStatus, va
for key, value := range shape {
switch key {
+ case "codeRepository":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Status to be of type string, got %T instead", value)
+ }
+ sv.CodeRepository = types.Status(jtv)
+ }
+
case "ec2":
if value != nil {
jtv, ok := value.(string)
@@ -19041,6 +23063,42 @@ func awsRestjson1_deserializeDocumentResourceStringFilterList(v *[]types.Resourc
return nil
}
+func awsRestjson1_deserializeDocumentRuleSetCategories(v *[]types.RuleSetCategory, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.RuleSetCategory
+ if *v == nil {
+ cv = []types.RuleSetCategory{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.RuleSetCategory
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected RuleSetCategory to be of type string, got %T instead", value)
+ }
+ col = types.RuleSetCategory(jtv)
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentScanStatus(v **types.ScanStatus, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -19160,6 +23218,46 @@ loop:
return nil
}
+func awsRestjson1_deserializeDocumentScopeSettings(v **types.ScopeSettings, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ScopeSettings
+ if *v == nil {
+ sv = &types.ScopeSettings{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "projectSelectionScope":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ProjectSelectionScope to be of type string, got %T instead", value)
+ }
+ sv.ProjectSelectionScope = types.ProjectSelectionScope(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentSecurityGroupIdList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -19703,6 +23801,85 @@ func awsRestjson1_deserializeDocumentSubnetIdList(v *[]string, value interface{}
return nil
}
+func awsRestjson1_deserializeDocumentSuccessfulAssociationResult(v **types.SuccessfulAssociationResult, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.SuccessfulAssociationResult
+ if *v == nil {
+ sv = &types.SuccessfulAssociationResult{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "resource":
+ if err := awsRestjson1_deserializeDocumentCodeSecurityResource(&sv.Resource, value); err != nil {
+ return err
+ }
+
+ case "scanConfigurationArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ScanConfigurationArn to be of type string, got %T instead", value)
+ }
+ sv.ScanConfigurationArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentSuccessfulAssociationResultList(v *[]types.SuccessfulAssociationResult, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.SuccessfulAssociationResult
+ if *v == nil {
+ cv = []types.SuccessfulAssociationResult{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.SuccessfulAssociationResult
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentSuccessfulAssociationResult(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentSuggestedFix(v **types.SuggestedFix, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
diff --git a/service/inspector2/generated.json b/service/inspector2/generated.json
index d401b35d581..152c3b1f285 100644
--- a/service/inspector2/generated.json
+++ b/service/inspector2/generated.json
@@ -9,6 +9,8 @@
"api_client.go",
"api_client_test.go",
"api_op_AssociateMember.go",
+ "api_op_BatchAssociateCodeSecurityScanConfiguration.go",
+ "api_op_BatchDisassociateCodeSecurityScanConfiguration.go",
"api_op_BatchGetAccountStatus.go",
"api_op_BatchGetCodeSnippet.go",
"api_op_BatchGetFindingDetails.go",
@@ -18,10 +20,14 @@
"api_op_CancelFindingsReport.go",
"api_op_CancelSbomExport.go",
"api_op_CreateCisScanConfiguration.go",
+ "api_op_CreateCodeSecurityIntegration.go",
+ "api_op_CreateCodeSecurityScanConfiguration.go",
"api_op_CreateFilter.go",
"api_op_CreateFindingsReport.go",
"api_op_CreateSbomExport.go",
"api_op_DeleteCisScanConfiguration.go",
+ "api_op_DeleteCodeSecurityIntegration.go",
+ "api_op_DeleteCodeSecurityScanConfiguration.go",
"api_op_DeleteFilter.go",
"api_op_DescribeOrganizationConfiguration.go",
"api_op_Disable.go",
@@ -32,6 +38,9 @@
"api_op_GetCisScanReport.go",
"api_op_GetCisScanResultDetails.go",
"api_op_GetClustersForImage.go",
+ "api_op_GetCodeSecurityIntegration.go",
+ "api_op_GetCodeSecurityScan.go",
+ "api_op_GetCodeSecurityScanConfiguration.go",
"api_op_GetConfiguration.go",
"api_op_GetDelegatedAdminAccount.go",
"api_op_GetEc2DeepInspectionConfiguration.go",
@@ -44,6 +53,9 @@
"api_op_ListCisScanResultsAggregatedByChecks.go",
"api_op_ListCisScanResultsAggregatedByTargetResource.go",
"api_op_ListCisScans.go",
+ "api_op_ListCodeSecurityIntegrations.go",
+ "api_op_ListCodeSecurityScanConfigurationAssociations.go",
+ "api_op_ListCodeSecurityScanConfigurations.go",
"api_op_ListCoverage.go",
"api_op_ListCoverageStatistics.go",
"api_op_ListDelegatedAdminAccounts.go",
@@ -58,10 +70,13 @@
"api_op_SendCisSessionHealth.go",
"api_op_SendCisSessionTelemetry.go",
"api_op_StartCisSession.go",
+ "api_op_StartCodeSecurityScan.go",
"api_op_StopCisSession.go",
"api_op_TagResource.go",
"api_op_UntagResource.go",
"api_op_UpdateCisScanConfiguration.go",
+ "api_op_UpdateCodeSecurityIntegration.go",
+ "api_op_UpdateCodeSecurityScanConfiguration.go",
"api_op_UpdateConfiguration.go",
"api_op_UpdateEc2DeepInspectionConfiguration.go",
"api_op_UpdateEncryptionKey.go",
diff --git a/service/inspector2/go.mod b/service/inspector2/go.mod
index 0e7ba662d70..51a159caf95 100644
--- a/service/inspector2/go.mod
+++ b/service/inspector2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspector2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/inspector2/go.sum b/service/inspector2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/inspector2/go.sum
+++ b/service/inspector2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/inspector2/go_module_metadata.go b/service/inspector2/go_module_metadata.go
index 1a0bf9a1da2..76ff1cb667e 100644
--- a/service/inspector2/go_module_metadata.go
+++ b/service/inspector2/go_module_metadata.go
@@ -3,4 +3,4 @@
package inspector2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.37.1"
+const goModuleVersion = "1.38.0"
diff --git a/service/inspector2/serializers.go b/service/inspector2/serializers.go
index 01dcaa572a9..20cb7753c46 100644
--- a/service/inspector2/serializers.go
+++ b/service/inspector2/serializers.go
@@ -98,6 +98,172 @@ func awsRestjson1_serializeOpDocumentAssociateMemberInput(v *AssociateMemberInpu
return nil
}
+type awsRestjson1_serializeOpBatchAssociateCodeSecurityScanConfiguration struct {
+}
+
+func (*awsRestjson1_serializeOpBatchAssociateCodeSecurityScanConfiguration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpBatchAssociateCodeSecurityScanConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*BatchAssociateCodeSecurityScanConfigurationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan-configuration/batch/associate")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentBatchAssociateCodeSecurityScanConfigurationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsBatchAssociateCodeSecurityScanConfigurationInput(v *BatchAssociateCodeSecurityScanConfigurationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentBatchAssociateCodeSecurityScanConfigurationInput(v *BatchAssociateCodeSecurityScanConfigurationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AssociateConfigurationRequests != nil {
+ ok := object.Key("associateConfigurationRequests")
+ if err := awsRestjson1_serializeDocumentAssociateConfigurationRequestList(v.AssociateConfigurationRequests, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpBatchDisassociateCodeSecurityScanConfiguration struct {
+}
+
+func (*awsRestjson1_serializeOpBatchDisassociateCodeSecurityScanConfiguration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpBatchDisassociateCodeSecurityScanConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*BatchDisassociateCodeSecurityScanConfigurationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan-configuration/batch/disassociate")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentBatchDisassociateCodeSecurityScanConfigurationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsBatchDisassociateCodeSecurityScanConfigurationInput(v *BatchDisassociateCodeSecurityScanConfigurationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentBatchDisassociateCodeSecurityScanConfigurationInput(v *BatchDisassociateCodeSecurityScanConfigurationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.DisassociateConfigurationRequests != nil {
+ ok := object.Key("disassociateConfigurationRequests")
+ if err := awsRestjson1_serializeDocumentDisassociateConfigurationRequestList(v.DisassociateConfigurationRequests, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpBatchGetAccountStatus struct {
}
@@ -865,14 +1031,14 @@ func awsRestjson1_serializeOpDocumentCreateCisScanConfigurationInput(v *CreateCi
return nil
}
-type awsRestjson1_serializeOpCreateFilter struct {
+type awsRestjson1_serializeOpCreateCodeSecurityIntegration struct {
}
-func (*awsRestjson1_serializeOpCreateFilter) ID() string {
+func (*awsRestjson1_serializeOpCreateCodeSecurityIntegration) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateFilter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpCreateCodeSecurityIntegration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -884,13 +1050,13 @@ func (m *awsRestjson1_serializeOpCreateFilter) HandleSerialize(ctx context.Conte
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateFilterInput)
+ input, ok := in.Parameters.(*CreateCodeSecurityIntegrationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/filters/create")
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/integration/create")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -909,7 +1075,7 @@ func (m *awsRestjson1_serializeOpCreateFilter) HandleSerialize(ctx context.Conte
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateFilterInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentCreateCodeSecurityIntegrationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -926,7 +1092,7 @@ func (m *awsRestjson1_serializeOpCreateFilter) HandleSerialize(ctx context.Conte
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateFilterInput(v *CreateFilterInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsCreateCodeSecurityIntegrationInput(v *CreateCodeSecurityIntegrationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -934,23 +1100,13 @@ func awsRestjson1_serializeOpHttpBindingsCreateFilterInput(v *CreateFilterInput,
return nil
}
-func awsRestjson1_serializeOpDocumentCreateFilterInput(v *CreateFilterInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentCreateCodeSecurityIntegrationInput(v *CreateCodeSecurityIntegrationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if len(v.Action) > 0 {
- ok := object.Key("action")
- ok.String(string(v.Action))
- }
-
- if v.Description != nil {
- ok := object.Key("description")
- ok.String(*v.Description)
- }
-
- if v.FilterCriteria != nil {
- ok := object.Key("filterCriteria")
- if err := awsRestjson1_serializeDocumentFilterCriteria(v.FilterCriteria, ok); err != nil {
+ if v.Details != nil {
+ ok := object.Key("details")
+ if err := awsRestjson1_serializeDocumentCreateIntegrationDetail(v.Details, ok); err != nil {
return err
}
}
@@ -960,11 +1116,6 @@ func awsRestjson1_serializeOpDocumentCreateFilterInput(v *CreateFilterInput, val
ok.String(*v.Name)
}
- if v.Reason != nil {
- ok := object.Key("reason")
- ok.String(*v.Reason)
- }
-
if v.Tags != nil {
ok := object.Key("tags")
if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
@@ -972,17 +1123,22 @@ func awsRestjson1_serializeOpDocumentCreateFilterInput(v *CreateFilterInput, val
}
}
+ if len(v.Type) > 0 {
+ ok := object.Key("type")
+ ok.String(string(v.Type))
+ }
+
return nil
}
-type awsRestjson1_serializeOpCreateFindingsReport struct {
+type awsRestjson1_serializeOpCreateCodeSecurityScanConfiguration struct {
}
-func (*awsRestjson1_serializeOpCreateFindingsReport) ID() string {
+func (*awsRestjson1_serializeOpCreateCodeSecurityScanConfiguration) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateFindingsReport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpCreateCodeSecurityScanConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -994,13 +1150,13 @@ func (m *awsRestjson1_serializeOpCreateFindingsReport) HandleSerialize(ctx conte
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateFindingsReportInput)
+ input, ok := in.Parameters.(*CreateCodeSecurityScanConfigurationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/reporting/create")
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan-configuration/create")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1019,7 +1175,7 @@ func (m *awsRestjson1_serializeOpCreateFindingsReport) HandleSerialize(ctx conte
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateFindingsReportInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentCreateCodeSecurityScanConfigurationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1036,7 +1192,7 @@ func (m *awsRestjson1_serializeOpCreateFindingsReport) HandleSerialize(ctx conte
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateFindingsReportInput(v *CreateFindingsReportInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsCreateCodeSecurityScanConfigurationInput(v *CreateCodeSecurityScanConfigurationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1044,25 +1200,37 @@ func awsRestjson1_serializeOpHttpBindingsCreateFindingsReportInput(v *CreateFind
return nil
}
-func awsRestjson1_serializeOpDocumentCreateFindingsReportInput(v *CreateFindingsReportInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentCreateCodeSecurityScanConfigurationInput(v *CreateCodeSecurityScanConfigurationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.FilterCriteria != nil {
- ok := object.Key("filterCriteria")
- if err := awsRestjson1_serializeDocumentFilterCriteria(v.FilterCriteria, ok); err != nil {
+ if v.Configuration != nil {
+ ok := object.Key("configuration")
+ if err := awsRestjson1_serializeDocumentCodeSecurityScanConfiguration(v.Configuration, ok); err != nil {
return err
}
}
- if len(v.ReportFormat) > 0 {
- ok := object.Key("reportFormat")
- ok.String(string(v.ReportFormat))
+ if len(v.Level) > 0 {
+ ok := object.Key("level")
+ ok.String(string(v.Level))
}
- if v.S3Destination != nil {
- ok := object.Key("s3Destination")
- if err := awsRestjson1_serializeDocumentDestination(v.S3Destination, ok); err != nil {
+ if v.Name != nil {
+ ok := object.Key("name")
+ ok.String(*v.Name)
+ }
+
+ if v.ScopeSettings != nil {
+ ok := object.Key("scopeSettings")
+ if err := awsRestjson1_serializeDocumentScopeSettings(v.ScopeSettings, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
return err
}
}
@@ -1070,14 +1238,14 @@ func awsRestjson1_serializeOpDocumentCreateFindingsReportInput(v *CreateFindings
return nil
}
-type awsRestjson1_serializeOpCreateSbomExport struct {
+type awsRestjson1_serializeOpCreateFilter struct {
}
-func (*awsRestjson1_serializeOpCreateSbomExport) ID() string {
+func (*awsRestjson1_serializeOpCreateFilter) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateSbomExport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpCreateFilter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1089,13 +1257,13 @@ func (m *awsRestjson1_serializeOpCreateSbomExport) HandleSerialize(ctx context.C
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateSbomExportInput)
+ input, ok := in.Parameters.(*CreateFilterInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/sbomexport/create")
+ opPath, opQuery := httpbinding.SplitURI("/filters/create")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1114,7 +1282,7 @@ func (m *awsRestjson1_serializeOpCreateSbomExport) HandleSerialize(ctx context.C
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateSbomExportInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentCreateFilterInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1131,7 +1299,7 @@ func (m *awsRestjson1_serializeOpCreateSbomExport) HandleSerialize(ctx context.C
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateSbomExportInput(v *CreateSbomExportInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsCreateFilterInput(v *CreateFilterInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1139,25 +1307,40 @@ func awsRestjson1_serializeOpHttpBindingsCreateSbomExportInput(v *CreateSbomExpo
return nil
}
-func awsRestjson1_serializeOpDocumentCreateSbomExportInput(v *CreateSbomExportInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentCreateFilterInput(v *CreateFilterInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if len(v.ReportFormat) > 0 {
- ok := object.Key("reportFormat")
- ok.String(string(v.ReportFormat))
+ if len(v.Action) > 0 {
+ ok := object.Key("action")
+ ok.String(string(v.Action))
}
- if v.ResourceFilterCriteria != nil {
- ok := object.Key("resourceFilterCriteria")
- if err := awsRestjson1_serializeDocumentResourceFilterCriteria(v.ResourceFilterCriteria, ok); err != nil {
+ if v.Description != nil {
+ ok := object.Key("description")
+ ok.String(*v.Description)
+ }
+
+ if v.FilterCriteria != nil {
+ ok := object.Key("filterCriteria")
+ if err := awsRestjson1_serializeDocumentFilterCriteria(v.FilterCriteria, ok); err != nil {
return err
}
}
- if v.S3Destination != nil {
- ok := object.Key("s3Destination")
- if err := awsRestjson1_serializeDocumentDestination(v.S3Destination, ok); err != nil {
+ if v.Name != nil {
+ ok := object.Key("name")
+ ok.String(*v.Name)
+ }
+
+ if v.Reason != nil {
+ ok := object.Key("reason")
+ ok.String(*v.Reason)
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
return err
}
}
@@ -1165,14 +1348,204 @@ func awsRestjson1_serializeOpDocumentCreateSbomExportInput(v *CreateSbomExportIn
return nil
}
-type awsRestjson1_serializeOpDeleteCisScanConfiguration struct {
+type awsRestjson1_serializeOpCreateFindingsReport struct {
}
-func (*awsRestjson1_serializeOpDeleteCisScanConfiguration) ID() string {
+func (*awsRestjson1_serializeOpCreateFindingsReport) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDeleteCisScanConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpCreateFindingsReport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateFindingsReportInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/reporting/create")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateFindingsReportInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateFindingsReportInput(v *CreateFindingsReportInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateFindingsReportInput(v *CreateFindingsReportInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.FilterCriteria != nil {
+ ok := object.Key("filterCriteria")
+ if err := awsRestjson1_serializeDocumentFilterCriteria(v.FilterCriteria, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.ReportFormat) > 0 {
+ ok := object.Key("reportFormat")
+ ok.String(string(v.ReportFormat))
+ }
+
+ if v.S3Destination != nil {
+ ok := object.Key("s3Destination")
+ if err := awsRestjson1_serializeDocumentDestination(v.S3Destination, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateSbomExport struct {
+}
+
+func (*awsRestjson1_serializeOpCreateSbomExport) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateSbomExport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateSbomExportInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/sbomexport/create")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateSbomExportInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateSbomExportInput(v *CreateSbomExportInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateSbomExportInput(v *CreateSbomExportInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.ReportFormat) > 0 {
+ ok := object.Key("reportFormat")
+ ok.String(string(v.ReportFormat))
+ }
+
+ if v.ResourceFilterCriteria != nil {
+ ok := object.Key("resourceFilterCriteria")
+ if err := awsRestjson1_serializeDocumentResourceFilterCriteria(v.ResourceFilterCriteria, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.S3Destination != nil {
+ ok := object.Key("s3Destination")
+ if err := awsRestjson1_serializeDocumentDestination(v.S3Destination, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteCisScanConfiguration struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteCisScanConfiguration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteCisScanConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1190,7 +1563,169 @@ func (m *awsRestjson1_serializeOpDeleteCisScanConfiguration) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/cis/scan-configuration/delete")
+ opPath, opQuery := httpbinding.SplitURI("/cis/scan-configuration/delete")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentDeleteCisScanConfigurationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteCisScanConfigurationInput(v *DeleteCisScanConfigurationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentDeleteCisScanConfigurationInput(v *DeleteCisScanConfigurationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ScanConfigurationArn != nil {
+ ok := object.Key("scanConfigurationArn")
+ ok.String(*v.ScanConfigurationArn)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteCodeSecurityIntegration struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteCodeSecurityIntegration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteCodeSecurityIntegration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteCodeSecurityIntegrationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/integration/delete")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentDeleteCodeSecurityIntegrationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteCodeSecurityIntegrationInput(v *DeleteCodeSecurityIntegrationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentDeleteCodeSecurityIntegrationInput(v *DeleteCodeSecurityIntegrationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.IntegrationArn != nil {
+ ok := object.Key("integrationArn")
+ ok.String(*v.IntegrationArn)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteCodeSecurityScanConfiguration struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteCodeSecurityScanConfiguration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteCodeSecurityScanConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteCodeSecurityScanConfigurationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan-configuration/delete")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1209,7 +1744,7 @@ func (m *awsRestjson1_serializeOpDeleteCisScanConfiguration) HandleSerialize(ctx
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentDeleteCisScanConfigurationInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentDeleteCodeSecurityScanConfigurationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1226,7 +1761,7 @@ func (m *awsRestjson1_serializeOpDeleteCisScanConfiguration) HandleSerialize(ctx
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDeleteCisScanConfigurationInput(v *DeleteCisScanConfigurationInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsDeleteCodeSecurityScanConfigurationInput(v *DeleteCodeSecurityScanConfigurationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1234,7 +1769,7 @@ func awsRestjson1_serializeOpHttpBindingsDeleteCisScanConfigurationInput(v *Dele
return nil
}
-func awsRestjson1_serializeOpDocumentDeleteCisScanConfigurationInput(v *DeleteCisScanConfigurationInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentDeleteCodeSecurityScanConfigurationInput(v *DeleteCodeSecurityScanConfigurationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -2109,14 +2644,271 @@ func awsRestjson1_serializeOpDocumentGetClustersForImageInput(v *GetClustersForI
}
}
- if v.MaxResults != nil {
- ok := object.Key("maxResults")
- ok.Integer(*v.MaxResults)
- }
+ if v.MaxResults != nil {
+ ok := object.Key("maxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("nextToken")
+ ok.String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpGetCodeSecurityIntegration struct {
+}
+
+func (*awsRestjson1_serializeOpGetCodeSecurityIntegration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetCodeSecurityIntegration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetCodeSecurityIntegrationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/integration/get")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentGetCodeSecurityIntegrationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetCodeSecurityIntegrationInput(v *GetCodeSecurityIntegrationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentGetCodeSecurityIntegrationInput(v *GetCodeSecurityIntegrationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.IntegrationArn != nil {
+ ok := object.Key("integrationArn")
+ ok.String(*v.IntegrationArn)
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpGetCodeSecurityScan struct {
+}
+
+func (*awsRestjson1_serializeOpGetCodeSecurityScan) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetCodeSecurityScan) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetCodeSecurityScanInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan/get")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentGetCodeSecurityScanInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetCodeSecurityScanInput(v *GetCodeSecurityScanInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentGetCodeSecurityScanInput(v *GetCodeSecurityScanInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Resource != nil {
+ ok := object.Key("resource")
+ if err := awsRestjson1_serializeDocumentCodeSecurityResource(v.Resource, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ScanId != nil {
+ ok := object.Key("scanId")
+ ok.String(*v.ScanId)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpGetCodeSecurityScanConfiguration struct {
+}
+
+func (*awsRestjson1_serializeOpGetCodeSecurityScanConfiguration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetCodeSecurityScanConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetCodeSecurityScanConfigurationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan-configuration/get")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentGetCodeSecurityScanConfigurationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetCodeSecurityScanConfigurationInput(v *GetCodeSecurityScanConfigurationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
- if v.NextToken != nil {
- ok := object.Key("nextToken")
- ok.String(*v.NextToken)
+func awsRestjson1_serializeOpDocumentGetCodeSecurityScanConfigurationInput(v *GetCodeSecurityScanConfigurationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ScanConfigurationArn != nil {
+ ok := object.Key("scanConfigurationArn")
+ ok.String(*v.ScanConfigurationArn)
}
return nil
@@ -3067,7 +3859,271 @@ func (m *awsRestjson1_serializeOpListCisScans) HandleSerialize(ctx context.Conte
return out, metadata, &smithy.SerializationError{Err: err}
}
- if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListCisScansInput(v *ListCisScansInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentListCisScansInput(v *ListCisScansInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.DetailLevel) > 0 {
+ ok := object.Key("detailLevel")
+ ok.String(string(v.DetailLevel))
+ }
+
+ if v.FilterCriteria != nil {
+ ok := object.Key("filterCriteria")
+ if err := awsRestjson1_serializeDocumentListCisScansFilterCriteria(v.FilterCriteria, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MaxResults != nil {
+ ok := object.Key("maxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("nextToken")
+ ok.String(*v.NextToken)
+ }
+
+ if len(v.SortBy) > 0 {
+ ok := object.Key("sortBy")
+ ok.String(string(v.SortBy))
+ }
+
+ if len(v.SortOrder) > 0 {
+ ok := object.Key("sortOrder")
+ ok.String(string(v.SortOrder))
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListCodeSecurityIntegrations struct {
+}
+
+func (*awsRestjson1_serializeOpListCodeSecurityIntegrations) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListCodeSecurityIntegrations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListCodeSecurityIntegrationsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/integration/list")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListCodeSecurityIntegrationsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListCodeSecurityIntegrationsInput(v *ListCodeSecurityIntegrationsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("maxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("nextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListCodeSecurityScanConfigurationAssociations struct {
+}
+
+func (*awsRestjson1_serializeOpListCodeSecurityScanConfigurationAssociations) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListCodeSecurityScanConfigurationAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListCodeSecurityScanConfigurationAssociationsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan-configuration/associations/list")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListCodeSecurityScanConfigurationAssociationsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentListCodeSecurityScanConfigurationAssociationsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListCodeSecurityScanConfigurationAssociationsInput(v *ListCodeSecurityScanConfigurationAssociationsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("maxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("nextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentListCodeSecurityScanConfigurationAssociationsInput(v *ListCodeSecurityScanConfigurationAssociationsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ScanConfigurationArn != nil {
+ ok := object.Key("scanConfigurationArn")
+ ok.String(*v.ScanConfigurationArn)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListCodeSecurityScanConfigurations struct {
+}
+
+func (*awsRestjson1_serializeOpListCodeSecurityScanConfigurations) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListCodeSecurityScanConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListCodeSecurityScanConfigurationsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan-configuration/list")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListCodeSecurityScanConfigurationsInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3080,48 +4136,17 @@ func (m *awsRestjson1_serializeOpListCisScans) HandleSerialize(ctx context.Conte
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListCisScansInput(v *ListCisScansInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListCodeSecurityScanConfigurationsInput(v *ListCodeSecurityScanConfigurationsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- return nil
-}
-
-func awsRestjson1_serializeOpDocumentListCisScansInput(v *ListCisScansInput, value smithyjson.Value) error {
- object := value.Object()
- defer object.Close()
-
- if len(v.DetailLevel) > 0 {
- ok := object.Key("detailLevel")
- ok.String(string(v.DetailLevel))
- }
-
- if v.FilterCriteria != nil {
- ok := object.Key("filterCriteria")
- if err := awsRestjson1_serializeDocumentListCisScansFilterCriteria(v.FilterCriteria, ok); err != nil {
- return err
- }
- }
-
if v.MaxResults != nil {
- ok := object.Key("maxResults")
- ok.Integer(*v.MaxResults)
+ encoder.SetQuery("maxResults").Integer(*v.MaxResults)
}
if v.NextToken != nil {
- ok := object.Key("nextToken")
- ok.String(*v.NextToken)
- }
-
- if len(v.SortBy) > 0 {
- ok := object.Key("sortBy")
- ok.String(string(v.SortBy))
- }
-
- if len(v.SortOrder) > 0 {
- ok := object.Key("sortOrder")
- ok.String(string(v.SortOrder))
+ encoder.SetQuery("nextToken").String(*v.NextToken)
}
return nil
@@ -4398,6 +5423,94 @@ func awsRestjson1_serializeOpDocumentStartCisSessionInput(v *StartCisSessionInpu
return nil
}
+type awsRestjson1_serializeOpStartCodeSecurityScan struct {
+}
+
+func (*awsRestjson1_serializeOpStartCodeSecurityScan) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpStartCodeSecurityScan) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*StartCodeSecurityScanInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan/start")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentStartCodeSecurityScanInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsStartCodeSecurityScanInput(v *StartCodeSecurityScanInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentStartCodeSecurityScanInput(v *StartCodeSecurityScanInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ClientToken != nil {
+ ok := object.Key("clientToken")
+ ok.String(*v.ClientToken)
+ }
+
+ if v.Resource != nil {
+ ok := object.Key("resource")
+ if err := awsRestjson1_serializeDocumentCodeSecurityResource(v.Resource, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpStopCisSession struct {
}
@@ -4769,6 +5882,182 @@ func awsRestjson1_serializeOpDocumentUpdateCisScanConfigurationInput(v *UpdateCi
return nil
}
+type awsRestjson1_serializeOpUpdateCodeSecurityIntegration struct {
+}
+
+func (*awsRestjson1_serializeOpUpdateCodeSecurityIntegration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpUpdateCodeSecurityIntegration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*UpdateCodeSecurityIntegrationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/integration/update")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentUpdateCodeSecurityIntegrationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsUpdateCodeSecurityIntegrationInput(v *UpdateCodeSecurityIntegrationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentUpdateCodeSecurityIntegrationInput(v *UpdateCodeSecurityIntegrationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Details != nil {
+ ok := object.Key("details")
+ if err := awsRestjson1_serializeDocumentUpdateIntegrationDetails(v.Details, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.IntegrationArn != nil {
+ ok := object.Key("integrationArn")
+ ok.String(*v.IntegrationArn)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpUpdateCodeSecurityScanConfiguration struct {
+}
+
+func (*awsRestjson1_serializeOpUpdateCodeSecurityScanConfiguration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpUpdateCodeSecurityScanConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*UpdateCodeSecurityScanConfigurationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/codesecurity/scan-configuration/update")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentUpdateCodeSecurityScanConfigurationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsUpdateCodeSecurityScanConfigurationInput(v *UpdateCodeSecurityScanConfigurationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentUpdateCodeSecurityScanConfigurationInput(v *UpdateCodeSecurityScanConfigurationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Configuration != nil {
+ ok := object.Key("configuration")
+ if err := awsRestjson1_serializeDocumentCodeSecurityScanConfiguration(v.Configuration, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ScanConfigurationArn != nil {
+ ok := object.Key("scanConfigurationArn")
+ ok.String(*v.ScanConfigurationArn)
+ }
+
+ return nil
+}
+
type awsRestjson1_serializeOpUpdateConfiguration struct {
}
@@ -5386,6 +6675,12 @@ func awsRestjson1_serializeDocumentAggregationRequest(v types.AggregationRequest
return err
}
+ case *types.AggregationRequestMemberCodeRepositoryAggregation:
+ av := object.Key("codeRepositoryAggregation")
+ if err := awsRestjson1_serializeDocumentCodeRepositoryAggregation(&uv.Value, av); err != nil {
+ return err
+ }
+
case *types.AggregationRequestMemberEc2InstanceAggregation:
av := object.Key("ec2InstanceAggregation")
if err := awsRestjson1_serializeDocumentEc2InstanceAggregation(&uv.Value, av); err != nil {
@@ -5465,10 +6760,47 @@ func awsRestjson1_serializeDocumentAmiAggregation(v *types.AmiAggregation, value
return nil
}
+func awsRestjson1_serializeDocumentAssociateConfigurationRequest(v *types.AssociateConfigurationRequest, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Resource != nil {
+ ok := object.Key("resource")
+ if err := awsRestjson1_serializeDocumentCodeSecurityResource(v.Resource, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ScanConfigurationArn != nil {
+ ok := object.Key("scanConfigurationArn")
+ ok.String(*v.ScanConfigurationArn)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentAssociateConfigurationRequestList(v []types.AssociateConfigurationRequest, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentAssociateConfigurationRequest(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentAutoEnable(v *types.AutoEnable, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
+ if v.CodeRepository != nil {
+ ok := object.Key("codeRepository")
+ ok.Boolean(*v.CodeRepository)
+ }
+
if v.Ec2 != nil {
ok := object.Key("ec2")
ok.Boolean(*v.Ec2)
@@ -6086,6 +7418,88 @@ func awsRestjson1_serializeDocumentClusterForImageFilterCriteria(v *types.Cluste
return nil
}
+func awsRestjson1_serializeDocumentCodeRepositoryAggregation(v *types.CodeRepositoryAggregation, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ProjectNames != nil {
+ ok := object.Key("projectNames")
+ if err := awsRestjson1_serializeDocumentStringFilterList(v.ProjectNames, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ProviderTypes != nil {
+ ok := object.Key("providerTypes")
+ if err := awsRestjson1_serializeDocumentStringFilterList(v.ProviderTypes, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ResourceIds != nil {
+ ok := object.Key("resourceIds")
+ if err := awsRestjson1_serializeDocumentStringFilterList(v.ResourceIds, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.SortBy) > 0 {
+ ok := object.Key("sortBy")
+ ok.String(string(v.SortBy))
+ }
+
+ if len(v.SortOrder) > 0 {
+ ok := object.Key("sortOrder")
+ ok.String(string(v.SortOrder))
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentCodeSecurityResource(v types.CodeSecurityResource, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ switch uv := v.(type) {
+ case *types.CodeSecurityResourceMemberProjectId:
+ av := object.Key("projectId")
+ av.String(uv.Value)
+
+ default:
+ return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
+
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentCodeSecurityScanConfiguration(v *types.CodeSecurityScanConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ContinuousIntegrationScanConfiguration != nil {
+ ok := object.Key("continuousIntegrationScanConfiguration")
+ if err := awsRestjson1_serializeDocumentContinuousIntegrationScanConfiguration(v.ContinuousIntegrationScanConfiguration, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.PeriodicScanConfiguration != nil {
+ ok := object.Key("periodicScanConfiguration")
+ if err := awsRestjson1_serializeDocumentPeriodicScanConfiguration(v.PeriodicScanConfiguration, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.RuleSetCategories != nil {
+ ok := object.Key("ruleSetCategories")
+ if err := awsRestjson1_serializeDocumentRuleSetCategories(v.RuleSetCategories, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentComputePlatform(v *types.ComputePlatform, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -6108,6 +7522,31 @@ func awsRestjson1_serializeDocumentComputePlatform(v *types.ComputePlatform, val
return nil
}
+func awsRestjson1_serializeDocumentContinuousIntegrationScanConfiguration(v *types.ContinuousIntegrationScanConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.SupportedEvents != nil {
+ ok := object.Key("supportedEvents")
+ if err := awsRestjson1_serializeDocumentContinuousIntegrationScanSupportedEvents(v.SupportedEvents, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentContinuousIntegrationScanSupportedEvents(v []types.ContinuousIntegrationScanEvent, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(string(v[i]))
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentCoverageDateFilter(v *types.CoverageDateFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -6149,6 +7588,27 @@ func awsRestjson1_serializeDocumentCoverageFilterCriteria(v *types.CoverageFilte
}
}
+ if v.CodeRepositoryProjectName != nil {
+ ok := object.Key("codeRepositoryProjectName")
+ if err := awsRestjson1_serializeDocumentCoverageStringFilterList(v.CodeRepositoryProjectName, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.CodeRepositoryProviderType != nil {
+ ok := object.Key("codeRepositoryProviderType")
+ if err := awsRestjson1_serializeDocumentCoverageStringFilterList(v.CodeRepositoryProviderType, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.CodeRepositoryProviderTypeVisibility != nil {
+ ok := object.Key("codeRepositoryProviderTypeVisibility")
+ if err := awsRestjson1_serializeDocumentCoverageStringFilterList(v.CodeRepositoryProviderTypeVisibility, ok); err != nil {
+ return err
+ }
+ }
+
if v.Ec2InstanceTags != nil {
ok := object.Key("ec2InstanceTags")
if err := awsRestjson1_serializeDocumentCoverageMapFilterList(v.Ec2InstanceTags, ok); err != nil {
@@ -6219,6 +7679,13 @@ func awsRestjson1_serializeDocumentCoverageFilterCriteria(v *types.CoverageFilte
}
}
+ if v.LastScannedCommitId != nil {
+ ok := object.Key("lastScannedCommitId")
+ if err := awsRestjson1_serializeDocumentCoverageStringFilterList(v.LastScannedCommitId, ok); err != nil {
+ return err
+ }
+ }
+
if v.ResourceId != nil {
ok := object.Key("resourceId")
if err := awsRestjson1_serializeDocumentCoverageStringFilterList(v.ResourceId, ok); err != nil {
@@ -6380,6 +7847,41 @@ func awsRestjson1_serializeDocumentCreateCisTargets(v *types.CreateCisTargets, v
return nil
}
+func awsRestjson1_serializeDocumentCreateGitLabSelfManagedIntegrationDetail(v *types.CreateGitLabSelfManagedIntegrationDetail, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AccessToken != nil {
+ ok := object.Key("accessToken")
+ ok.String(*v.AccessToken)
+ }
+
+ if v.InstanceUrl != nil {
+ ok := object.Key("instanceUrl")
+ ok.String(*v.InstanceUrl)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentCreateIntegrationDetail(v types.CreateIntegrationDetail, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ switch uv := v.(type) {
+ case *types.CreateIntegrationDetailMemberGitlabSelfManaged:
+ av := object.Key("gitlabSelfManaged")
+ if err := awsRestjson1_serializeDocumentCreateGitLabSelfManagedIntegrationDetail(&uv.Value, av); err != nil {
+ return err
+ }
+
+ default:
+ return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
+
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentDailySchedule(v *types.DailySchedule, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -6468,6 +7970,38 @@ func awsRestjson1_serializeDocumentDisableResourceTypeList(v []types.ResourceSca
return nil
}
+func awsRestjson1_serializeDocumentDisassociateConfigurationRequest(v *types.DisassociateConfigurationRequest, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Resource != nil {
+ ok := object.Key("resource")
+ if err := awsRestjson1_serializeDocumentCodeSecurityResource(v.Resource, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ScanConfigurationArn != nil {
+ ok := object.Key("scanConfigurationArn")
+ ok.String(*v.ScanConfigurationArn)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentDisassociateConfigurationRequestList(v []types.DisassociateConfigurationRequest, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentDisassociateConfigurationRequest(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentEc2Configuration(v *types.Ec2Configuration, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -6580,6 +8114,20 @@ func awsRestjson1_serializeDocumentFilterCriteria(v *types.FilterCriteria, value
}
}
+ if v.CodeRepositoryProjectName != nil {
+ ok := object.Key("codeRepositoryProjectName")
+ if err := awsRestjson1_serializeDocumentStringFilterList(v.CodeRepositoryProjectName, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.CodeRepositoryProviderType != nil {
+ ok := object.Key("codeRepositoryProviderType")
+ if err := awsRestjson1_serializeDocumentStringFilterList(v.CodeRepositoryProviderType, ok); err != nil {
+ return err
+ }
+ }
+
if v.CodeVulnerabilityDetectorName != nil {
ok := object.Key("codeVulnerabilityDetectorName")
if err := awsRestjson1_serializeDocumentStringFilterList(v.CodeVulnerabilityDetectorName, ok); err != nil {
@@ -7441,6 +8989,23 @@ func awsRestjson1_serializeDocumentPathList(v []string, value smithyjson.Value)
return nil
}
+func awsRestjson1_serializeDocumentPeriodicScanConfiguration(v *types.PeriodicScanConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.Frequency) > 0 {
+ ok := object.Key("frequency")
+ ok.String(string(v.Frequency))
+ }
+
+ if v.FrequencyExpression != nil {
+ ok := object.Key("frequencyExpression")
+ ok.String(*v.FrequencyExpression)
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentPlatformFilterList(v []types.CisStringFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
@@ -7673,6 +9238,17 @@ func awsRestjson1_serializeDocumentResourceTagFilterList(v []types.TagFilter, va
return nil
}
+func awsRestjson1_serializeDocumentRuleSetCategories(v []types.RuleSetCategory, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(string(v[i]))
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentSchedule(v types.Schedule, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -7709,6 +9285,18 @@ func awsRestjson1_serializeDocumentSchedule(v types.Schedule, value smithyjson.V
return nil
}
+func awsRestjson1_serializeDocumentScopeSettings(v *types.ScopeSettings, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.ProjectSelectionScope) > 0 {
+ ok := object.Key("projectSelectionScope")
+ ok.String(string(v.ProjectSelectionScope))
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentSearchVulnerabilitiesFilterCriteria(v *types.SearchVulnerabilitiesFilterCriteria, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -8059,6 +9647,59 @@ func awsRestjson1_serializeDocumentUpdateCisTargets(v *types.UpdateCisTargets, v
return nil
}
+func awsRestjson1_serializeDocumentUpdateGitHubIntegrationDetail(v *types.UpdateGitHubIntegrationDetail, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Code != nil {
+ ok := object.Key("code")
+ ok.String(*v.Code)
+ }
+
+ if v.InstallationId != nil {
+ ok := object.Key("installationId")
+ ok.String(*v.InstallationId)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentUpdateGitLabSelfManagedIntegrationDetail(v *types.UpdateGitLabSelfManagedIntegrationDetail, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AuthCode != nil {
+ ok := object.Key("authCode")
+ ok.String(*v.AuthCode)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentUpdateIntegrationDetails(v types.UpdateIntegrationDetails, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ switch uv := v.(type) {
+ case *types.UpdateIntegrationDetailsMemberGithub:
+ av := object.Key("github")
+ if err := awsRestjson1_serializeDocumentUpdateGitHubIntegrationDetail(&uv.Value, av); err != nil {
+ return err
+ }
+
+ case *types.UpdateIntegrationDetailsMemberGitlabSelfManaged:
+ av := object.Key("gitlabSelfManaged")
+ if err := awsRestjson1_serializeDocumentUpdateGitLabSelfManagedIntegrationDetail(&uv.Value, av); err != nil {
+ return err
+ }
+
+ default:
+ return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
+
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentUsageAccountIdList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
diff --git a/service/inspector2/snapshot/api_op_BatchAssociateCodeSecurityScanConfiguration.go.snap b/service/inspector2/snapshot/api_op_BatchAssociateCodeSecurityScanConfiguration.go.snap
new file mode 100644
index 00000000000..ff216b71f91
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_BatchAssociateCodeSecurityScanConfiguration.go.snap
@@ -0,0 +1,42 @@
+BatchAssociateCodeSecurityScanConfiguration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_BatchDisassociateCodeSecurityScanConfiguration.go.snap b/service/inspector2/snapshot/api_op_BatchDisassociateCodeSecurityScanConfiguration.go.snap
new file mode 100644
index 00000000000..0d6e316c3e3
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_BatchDisassociateCodeSecurityScanConfiguration.go.snap
@@ -0,0 +1,42 @@
+BatchDisassociateCodeSecurityScanConfiguration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_CreateCodeSecurityIntegration.go.snap b/service/inspector2/snapshot/api_op_CreateCodeSecurityIntegration.go.snap
new file mode 100644
index 00000000000..f3eaad79454
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_CreateCodeSecurityIntegration.go.snap
@@ -0,0 +1,42 @@
+CreateCodeSecurityIntegration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_CreateCodeSecurityScanConfiguration.go.snap b/service/inspector2/snapshot/api_op_CreateCodeSecurityScanConfiguration.go.snap
new file mode 100644
index 00000000000..8215e99a632
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_CreateCodeSecurityScanConfiguration.go.snap
@@ -0,0 +1,42 @@
+CreateCodeSecurityScanConfiguration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_DeleteCodeSecurityIntegration.go.snap b/service/inspector2/snapshot/api_op_DeleteCodeSecurityIntegration.go.snap
new file mode 100644
index 00000000000..5b3cff1fb4f
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_DeleteCodeSecurityIntegration.go.snap
@@ -0,0 +1,42 @@
+DeleteCodeSecurityIntegration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_DeleteCodeSecurityScanConfiguration.go.snap b/service/inspector2/snapshot/api_op_DeleteCodeSecurityScanConfiguration.go.snap
new file mode 100644
index 00000000000..b9ad0a559ae
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_DeleteCodeSecurityScanConfiguration.go.snap
@@ -0,0 +1,42 @@
+DeleteCodeSecurityScanConfiguration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_GetCodeSecurityIntegration.go.snap b/service/inspector2/snapshot/api_op_GetCodeSecurityIntegration.go.snap
new file mode 100644
index 00000000000..af55d706b78
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_GetCodeSecurityIntegration.go.snap
@@ -0,0 +1,42 @@
+GetCodeSecurityIntegration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_GetCodeSecurityScan.go.snap b/service/inspector2/snapshot/api_op_GetCodeSecurityScan.go.snap
new file mode 100644
index 00000000000..2b1c6fcc23a
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_GetCodeSecurityScan.go.snap
@@ -0,0 +1,42 @@
+GetCodeSecurityScan
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_GetCodeSecurityScanConfiguration.go.snap b/service/inspector2/snapshot/api_op_GetCodeSecurityScanConfiguration.go.snap
new file mode 100644
index 00000000000..bef211e8cae
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_GetCodeSecurityScanConfiguration.go.snap
@@ -0,0 +1,42 @@
+GetCodeSecurityScanConfiguration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_ListCodeSecurityIntegrations.go.snap b/service/inspector2/snapshot/api_op_ListCodeSecurityIntegrations.go.snap
new file mode 100644
index 00000000000..6917dfcb157
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_ListCodeSecurityIntegrations.go.snap
@@ -0,0 +1,41 @@
+ListCodeSecurityIntegrations
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_ListCodeSecurityScanConfigurationAssociations.go.snap b/service/inspector2/snapshot/api_op_ListCodeSecurityScanConfigurationAssociations.go.snap
new file mode 100644
index 00000000000..4ff8bd50701
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_ListCodeSecurityScanConfigurationAssociations.go.snap
@@ -0,0 +1,42 @@
+ListCodeSecurityScanConfigurationAssociations
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_ListCodeSecurityScanConfigurations.go.snap b/service/inspector2/snapshot/api_op_ListCodeSecurityScanConfigurations.go.snap
new file mode 100644
index 00000000000..24d9840e196
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_ListCodeSecurityScanConfigurations.go.snap
@@ -0,0 +1,41 @@
+ListCodeSecurityScanConfigurations
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_StartCodeSecurityScan.go.snap b/service/inspector2/snapshot/api_op_StartCodeSecurityScan.go.snap
new file mode 100644
index 00000000000..38089c84f5c
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_StartCodeSecurityScan.go.snap
@@ -0,0 +1,43 @@
+StartCodeSecurityScan
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_UpdateCodeSecurityIntegration.go.snap b/service/inspector2/snapshot/api_op_UpdateCodeSecurityIntegration.go.snap
new file mode 100644
index 00000000000..2e077529f5b
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_UpdateCodeSecurityIntegration.go.snap
@@ -0,0 +1,42 @@
+UpdateCodeSecurityIntegration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot/api_op_UpdateCodeSecurityScanConfiguration.go.snap b/service/inspector2/snapshot/api_op_UpdateCodeSecurityScanConfiguration.go.snap
new file mode 100644
index 00000000000..646c3d9cab8
--- /dev/null
+++ b/service/inspector2/snapshot/api_op_UpdateCodeSecurityScanConfiguration.go.snap
@@ -0,0 +1,42 @@
+UpdateCodeSecurityScanConfiguration
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/inspector2/snapshot_test.go b/service/inspector2/snapshot_test.go
index 047fd733c94..0385fae7380 100644
--- a/service/inspector2/snapshot_test.go
+++ b/service/inspector2/snapshot_test.go
@@ -74,6 +74,30 @@ func TestCheckSnapshot_AssociateMember(t *testing.T) {
}
}
+func TestCheckSnapshot_BatchAssociateCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.BatchAssociateCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "BatchAssociateCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_BatchDisassociateCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.BatchDisassociateCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "BatchDisassociateCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_BatchGetAccountStatus(t *testing.T) {
svc := New(Options{})
_, err := svc.BatchGetAccountStatus(context.Background(), nil, func(o *Options) {
@@ -182,6 +206,30 @@ func TestCheckSnapshot_CreateCisScanConfiguration(t *testing.T) {
}
}
+func TestCheckSnapshot_CreateCodeSecurityIntegration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateCodeSecurityIntegration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateCodeSecurityIntegration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_CreateCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_CreateFilter(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateFilter(context.Background(), nil, func(o *Options) {
@@ -230,6 +278,30 @@ func TestCheckSnapshot_DeleteCisScanConfiguration(t *testing.T) {
}
}
+func TestCheckSnapshot_DeleteCodeSecurityIntegration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteCodeSecurityIntegration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DeleteCodeSecurityIntegration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_DeleteCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DeleteCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DeleteFilter(t *testing.T) {
svc := New(Options{})
_, err := svc.DeleteFilter(context.Background(), nil, func(o *Options) {
@@ -350,6 +422,42 @@ func TestCheckSnapshot_GetClustersForImage(t *testing.T) {
}
}
+func TestCheckSnapshot_GetCodeSecurityIntegration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetCodeSecurityIntegration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetCodeSecurityIntegration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetCodeSecurityScan(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetCodeSecurityScan(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetCodeSecurityScan")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_GetConfiguration(t *testing.T) {
svc := New(Options{})
_, err := svc.GetConfiguration(context.Background(), nil, func(o *Options) {
@@ -494,6 +602,42 @@ func TestCheckSnapshot_ListCisScans(t *testing.T) {
}
}
+func TestCheckSnapshot_ListCodeSecurityIntegrations(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListCodeSecurityIntegrations(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListCodeSecurityIntegrations")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListCodeSecurityScanConfigurationAssociations(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListCodeSecurityScanConfigurationAssociations(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListCodeSecurityScanConfigurationAssociations")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListCodeSecurityScanConfigurations(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListCodeSecurityScanConfigurations(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListCodeSecurityScanConfigurations")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_ListCoverage(t *testing.T) {
svc := New(Options{})
_, err := svc.ListCoverage(context.Background(), nil, func(o *Options) {
@@ -662,6 +806,18 @@ func TestCheckSnapshot_StartCisSession(t *testing.T) {
}
}
+func TestCheckSnapshot_StartCodeSecurityScan(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.StartCodeSecurityScan(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "StartCodeSecurityScan")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_StopCisSession(t *testing.T) {
svc := New(Options{})
_, err := svc.StopCisSession(context.Background(), nil, func(o *Options) {
@@ -710,6 +866,30 @@ func TestCheckSnapshot_UpdateCisScanConfiguration(t *testing.T) {
}
}
+func TestCheckSnapshot_UpdateCodeSecurityIntegration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateCodeSecurityIntegration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "UpdateCodeSecurityIntegration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_UpdateCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "UpdateCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_UpdateConfiguration(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateConfiguration(context.Background(), nil, func(o *Options) {
@@ -793,6 +973,30 @@ func TestUpdateSnapshot_AssociateMember(t *testing.T) {
}
}
+func TestUpdateSnapshot_BatchAssociateCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.BatchAssociateCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "BatchAssociateCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_BatchDisassociateCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.BatchDisassociateCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "BatchDisassociateCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_BatchGetAccountStatus(t *testing.T) {
svc := New(Options{})
_, err := svc.BatchGetAccountStatus(context.Background(), nil, func(o *Options) {
@@ -901,6 +1105,30 @@ func TestUpdateSnapshot_CreateCisScanConfiguration(t *testing.T) {
}
}
+func TestUpdateSnapshot_CreateCodeSecurityIntegration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateCodeSecurityIntegration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateCodeSecurityIntegration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_CreateCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_CreateFilter(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateFilter(context.Background(), nil, func(o *Options) {
@@ -949,6 +1177,30 @@ func TestUpdateSnapshot_DeleteCisScanConfiguration(t *testing.T) {
}
}
+func TestUpdateSnapshot_DeleteCodeSecurityIntegration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteCodeSecurityIntegration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DeleteCodeSecurityIntegration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_DeleteCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DeleteCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DeleteFilter(t *testing.T) {
svc := New(Options{})
_, err := svc.DeleteFilter(context.Background(), nil, func(o *Options) {
@@ -1069,6 +1321,42 @@ func TestUpdateSnapshot_GetClustersForImage(t *testing.T) {
}
}
+func TestUpdateSnapshot_GetCodeSecurityIntegration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetCodeSecurityIntegration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetCodeSecurityIntegration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetCodeSecurityScan(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetCodeSecurityScan(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetCodeSecurityScan")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_GetConfiguration(t *testing.T) {
svc := New(Options{})
_, err := svc.GetConfiguration(context.Background(), nil, func(o *Options) {
@@ -1213,6 +1501,42 @@ func TestUpdateSnapshot_ListCisScans(t *testing.T) {
}
}
+func TestUpdateSnapshot_ListCodeSecurityIntegrations(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListCodeSecurityIntegrations(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListCodeSecurityIntegrations")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListCodeSecurityScanConfigurationAssociations(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListCodeSecurityScanConfigurationAssociations(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListCodeSecurityScanConfigurationAssociations")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListCodeSecurityScanConfigurations(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListCodeSecurityScanConfigurations(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListCodeSecurityScanConfigurations")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_ListCoverage(t *testing.T) {
svc := New(Options{})
_, err := svc.ListCoverage(context.Background(), nil, func(o *Options) {
@@ -1381,6 +1705,18 @@ func TestUpdateSnapshot_StartCisSession(t *testing.T) {
}
}
+func TestUpdateSnapshot_StartCodeSecurityScan(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.StartCodeSecurityScan(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "StartCodeSecurityScan")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_StopCisSession(t *testing.T) {
svc := New(Options{})
_, err := svc.StopCisSession(context.Background(), nil, func(o *Options) {
@@ -1429,6 +1765,30 @@ func TestUpdateSnapshot_UpdateCisScanConfiguration(t *testing.T) {
}
}
+func TestUpdateSnapshot_UpdateCodeSecurityIntegration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateCodeSecurityIntegration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "UpdateCodeSecurityIntegration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_UpdateCodeSecurityScanConfiguration(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateCodeSecurityScanConfiguration(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "UpdateCodeSecurityScanConfiguration")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_UpdateConfiguration(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateConfiguration(context.Background(), nil, func(o *Options) {
diff --git a/service/inspector2/sra_operation_order_test.go b/service/inspector2/sra_operation_order_test.go
index 91a2b507673..454ea761a73 100644
--- a/service/inspector2/sra_operation_order_test.go
+++ b/service/inspector2/sra_operation_order_test.go
@@ -54,6 +54,76 @@ func TestOpAssociateMemberSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpBatchAssociateCodeSecurityScanConfigurationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.BatchAssociateCodeSecurityScanConfiguration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpBatchDisassociateCodeSecurityScanConfigurationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.BatchDisassociateCodeSecurityScanConfiguration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpBatchGetAccountStatusSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -369,6 +439,76 @@ func TestOpCreateCisScanConfigurationSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpCreateCodeSecurityIntegrationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateCodeSecurityIntegration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateCodeSecurityScanConfigurationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateCodeSecurityScanConfiguration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpCreateFilterSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -509,6 +649,76 @@ func TestOpDeleteCisScanConfigurationSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpDeleteCodeSecurityIntegrationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteCodeSecurityIntegration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteCodeSecurityScanConfigurationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteCodeSecurityScanConfiguration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpDeleteFilterSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -859,6 +1069,111 @@ func TestOpGetClustersForImageSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpGetCodeSecurityIntegrationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetCodeSecurityIntegration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpGetCodeSecurityScanSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetCodeSecurityScan(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpGetCodeSecurityScanConfigurationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetCodeSecurityScanConfiguration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpGetConfigurationSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -1279,6 +1594,111 @@ func TestOpListCisScansSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpListCodeSecurityIntegrationsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListCodeSecurityIntegrations(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListCodeSecurityScanConfigurationAssociationsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListCodeSecurityScanConfigurationAssociations(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListCodeSecurityScanConfigurationsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListCodeSecurityScanConfigurations(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpListCoverageSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -1769,6 +2189,41 @@ func TestOpStartCisSessionSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpStartCodeSecurityScanSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.StartCodeSecurityScan(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpStopCisSessionSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -1909,6 +2364,76 @@ func TestOpUpdateCisScanConfigurationSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpUpdateCodeSecurityIntegrationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.UpdateCodeSecurityIntegration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpUpdateCodeSecurityScanConfigurationSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.UpdateCodeSecurityScanConfiguration(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpUpdateConfigurationSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
diff --git a/service/inspector2/types/enums.go b/service/inspector2/types/enums.go
index 8637405d367..8bf2e9d5229 100644
--- a/service/inspector2/types/enums.go
+++ b/service/inspector2/types/enums.go
@@ -80,6 +80,7 @@ const (
AggregationTypeAccount AggregationType = "ACCOUNT"
AggregationTypeAwsLambdaFunction AggregationType = "AWS_LAMBDA_FUNCTION"
AggregationTypeLambdaLayer AggregationType = "LAMBDA_LAYER"
+ AggregationTypeCodeRepository AggregationType = "CODE_REPOSITORY"
)
// Values returns all known values for AggregationType. Note that this can be
@@ -99,6 +100,7 @@ func (AggregationType) Values() []AggregationType {
"ACCOUNT",
"AWS_LAMBDA_FUNCTION",
"LAMBDA_LAYER",
+ "CODE_REPOSITORY",
}
}
@@ -144,6 +146,33 @@ func (Architecture) Values() []Architecture {
}
}
+type AssociationResultStatusCode string
+
+// Enum values for AssociationResultStatusCode
+const (
+ AssociationResultStatusCodeInternalError AssociationResultStatusCode = "INTERNAL_ERROR"
+ AssociationResultStatusCodeAccessDenied AssociationResultStatusCode = "ACCESS_DENIED"
+ AssociationResultStatusCodeScanConfigurationNotFound AssociationResultStatusCode = "SCAN_CONFIGURATION_NOT_FOUND"
+ AssociationResultStatusCodeInvalidInput AssociationResultStatusCode = "INVALID_INPUT"
+ AssociationResultStatusCodeResourceNotFound AssociationResultStatusCode = "RESOURCE_NOT_FOUND"
+ AssociationResultStatusCodeQuotaExceeded AssociationResultStatusCode = "QUOTA_EXCEEDED"
+)
+
+// Values returns all known values for AssociationResultStatusCode. Note that this
+// can be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (AssociationResultStatusCode) Values() []AssociationResultStatusCode {
+ return []AssociationResultStatusCode{
+ "INTERNAL_ERROR",
+ "ACCESS_DENIED",
+ "SCAN_CONFIGURATION_NOT_FOUND",
+ "INVALID_INPUT",
+ "RESOURCE_NOT_FOUND",
+ "QUOTA_EXCEEDED",
+ }
+}
+
type AwsEcrContainerSortBy string
// Enum values for AwsEcrContainerSortBy
@@ -577,6 +606,69 @@ func (CisTargetStatusReason) Values() []CisTargetStatusReason {
}
}
+type CodeRepositoryProviderType string
+
+// Enum values for CodeRepositoryProviderType
+const (
+ CodeRepositoryProviderTypeGithub CodeRepositoryProviderType = "GITHUB"
+ CodeRepositoryProviderTypeGitlabSelfManaged CodeRepositoryProviderType = "GITLAB_SELF_MANAGED"
+)
+
+// Values returns all known values for CodeRepositoryProviderType. Note that this
+// can be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (CodeRepositoryProviderType) Values() []CodeRepositoryProviderType {
+ return []CodeRepositoryProviderType{
+ "GITHUB",
+ "GITLAB_SELF_MANAGED",
+ }
+}
+
+type CodeRepositorySortBy string
+
+// Enum values for CodeRepositorySortBy
+const (
+ CodeRepositorySortByCritical CodeRepositorySortBy = "CRITICAL"
+ CodeRepositorySortByHigh CodeRepositorySortBy = "HIGH"
+ CodeRepositorySortByAll CodeRepositorySortBy = "ALL"
+)
+
+// Values returns all known values for CodeRepositorySortBy. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (CodeRepositorySortBy) Values() []CodeRepositorySortBy {
+ return []CodeRepositorySortBy{
+ "CRITICAL",
+ "HIGH",
+ "ALL",
+ }
+}
+
+type CodeScanStatus string
+
+// Enum values for CodeScanStatus
+const (
+ CodeScanStatusInProgress CodeScanStatus = "IN_PROGRESS"
+ CodeScanStatusSuccessful CodeScanStatus = "SUCCESSFUL"
+ CodeScanStatusFailed CodeScanStatus = "FAILED"
+ CodeScanStatusSkipped CodeScanStatus = "SKIPPED"
+)
+
+// Values returns all known values for CodeScanStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (CodeScanStatus) Values() []CodeScanStatus {
+ return []CodeScanStatus{
+ "IN_PROGRESS",
+ "SUCCESSFUL",
+ "FAILED",
+ "SKIPPED",
+ }
+}
+
type CodeSnippetErrorCode string
// Enum values for CodeSnippetErrorCode
@@ -600,6 +692,45 @@ func (CodeSnippetErrorCode) Values() []CodeSnippetErrorCode {
}
}
+type ConfigurationLevel string
+
+// Enum values for ConfigurationLevel
+const (
+ ConfigurationLevelOrganization ConfigurationLevel = "ORGANIZATION"
+ ConfigurationLevelAccount ConfigurationLevel = "ACCOUNT"
+)
+
+// Values returns all known values for ConfigurationLevel. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ConfigurationLevel) Values() []ConfigurationLevel {
+ return []ConfigurationLevel{
+ "ORGANIZATION",
+ "ACCOUNT",
+ }
+}
+
+type ContinuousIntegrationScanEvent string
+
+// Enum values for ContinuousIntegrationScanEvent
+const (
+ ContinuousIntegrationScanEventPullRequest ContinuousIntegrationScanEvent = "PULL_REQUEST"
+ ContinuousIntegrationScanEventPush ContinuousIntegrationScanEvent = "PUSH"
+)
+
+// Values returns all known values for ContinuousIntegrationScanEvent. Note that
+// this can be expanded in the future, and so it is only as up to date as the
+// client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ContinuousIntegrationScanEvent) Values() []ContinuousIntegrationScanEvent {
+ return []ContinuousIntegrationScanEvent{
+ "PULL_REQUEST",
+ "PUSH",
+ }
+}
+
type CoverageMapComparison string
// Enum values for CoverageMapComparison
@@ -625,6 +756,7 @@ const (
CoverageResourceTypeAwsEcrContainerImage CoverageResourceType = "AWS_ECR_CONTAINER_IMAGE"
CoverageResourceTypeAwsEcrRepository CoverageResourceType = "AWS_ECR_REPOSITORY"
CoverageResourceTypeAwsLambdaFunction CoverageResourceType = "AWS_LAMBDA_FUNCTION"
+ CoverageResourceTypeCodeRepository CoverageResourceType = "CODE_REPOSITORY"
)
// Values returns all known values for CoverageResourceType. Note that this can be
@@ -637,6 +769,7 @@ func (CoverageResourceType) Values() []CoverageResourceType {
"AWS_ECR_CONTAINER_IMAGE",
"AWS_ECR_REPOSITORY",
"AWS_LAMBDA_FUNCTION",
+ "CODE_REPOSITORY",
}
}
@@ -1201,10 +1334,11 @@ type FreeTrialType string
// Enum values for FreeTrialType
const (
- FreeTrialTypeEc2 FreeTrialType = "EC2"
- FreeTrialTypeEcr FreeTrialType = "ECR"
- FreeTrialTypeLambda FreeTrialType = "LAMBDA"
- FreeTrialTypeLambdaCode FreeTrialType = "LAMBDA_CODE"
+ FreeTrialTypeEc2 FreeTrialType = "EC2"
+ FreeTrialTypeEcr FreeTrialType = "ECR"
+ FreeTrialTypeLambda FreeTrialType = "LAMBDA"
+ FreeTrialTypeLambdaCode FreeTrialType = "LAMBDA_CODE"
+ FreeTrialTypeCodeRepository FreeTrialType = "CODE_REPOSITORY"
)
// Values returns all known values for FreeTrialType. Note that this can be
@@ -1217,6 +1351,7 @@ func (FreeTrialType) Values() []FreeTrialType {
"ECR",
"LAMBDA",
"LAMBDA_CODE",
+ "CODE_REPOSITORY",
}
}
@@ -1266,6 +1401,50 @@ func (ImageLayerSortBy) Values() []ImageLayerSortBy {
}
}
+type IntegrationStatus string
+
+// Enum values for IntegrationStatus
+const (
+ IntegrationStatusPending IntegrationStatus = "PENDING"
+ IntegrationStatusInProgress IntegrationStatus = "IN_PROGRESS"
+ IntegrationStatusActive IntegrationStatus = "ACTIVE"
+ IntegrationStatusInactive IntegrationStatus = "INACTIVE"
+ IntegrationStatusDisabling IntegrationStatus = "DISABLING"
+)
+
+// Values returns all known values for IntegrationStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (IntegrationStatus) Values() []IntegrationStatus {
+ return []IntegrationStatus{
+ "PENDING",
+ "IN_PROGRESS",
+ "ACTIVE",
+ "INACTIVE",
+ "DISABLING",
+ }
+}
+
+type IntegrationType string
+
+// Enum values for IntegrationType
+const (
+ IntegrationTypeGitlabSelfManaged IntegrationType = "GITLAB_SELF_MANAGED"
+ IntegrationTypeGithub IntegrationType = "GITHUB"
+)
+
+// Values returns all known values for IntegrationType. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (IntegrationType) Values() []IntegrationType {
+ return []IntegrationType{
+ "GITLAB_SELF_MANAGED",
+ "GITHUB",
+ }
+}
+
type LambdaFunctionSortBy string
// Enum values for LambdaFunctionSortBy
@@ -1500,6 +1679,44 @@ func (PackageType) Values() []PackageType {
}
}
+type PeriodicScanFrequency string
+
+// Enum values for PeriodicScanFrequency
+const (
+ PeriodicScanFrequencyWeekly PeriodicScanFrequency = "WEEKLY"
+ PeriodicScanFrequencyMonthly PeriodicScanFrequency = "MONTHLY"
+ PeriodicScanFrequencyNever PeriodicScanFrequency = "NEVER"
+)
+
+// Values returns all known values for PeriodicScanFrequency. Note that this can
+// be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (PeriodicScanFrequency) Values() []PeriodicScanFrequency {
+ return []PeriodicScanFrequency{
+ "WEEKLY",
+ "MONTHLY",
+ "NEVER",
+ }
+}
+
+type ProjectSelectionScope string
+
+// Enum values for ProjectSelectionScope
+const (
+ ProjectSelectionScopeAll ProjectSelectionScope = "ALL"
+)
+
+// Values returns all known values for ProjectSelectionScope. Note that this can
+// be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ProjectSelectionScope) Values() []ProjectSelectionScope {
+ return []ProjectSelectionScope{
+ "ALL",
+ }
+}
+
type RelationshipStatus string
// Enum values for RelationshipStatus
@@ -1629,10 +1846,11 @@ type ResourceScanType string
// Enum values for ResourceScanType
const (
- ResourceScanTypeEc2 ResourceScanType = "EC2"
- ResourceScanTypeEcr ResourceScanType = "ECR"
- ResourceScanTypeLambda ResourceScanType = "LAMBDA"
- ResourceScanTypeLambdaCode ResourceScanType = "LAMBDA_CODE"
+ ResourceScanTypeEc2 ResourceScanType = "EC2"
+ ResourceScanTypeEcr ResourceScanType = "ECR"
+ ResourceScanTypeLambda ResourceScanType = "LAMBDA"
+ ResourceScanTypeLambdaCode ResourceScanType = "LAMBDA_CODE"
+ ResourceScanTypeCodeRepository ResourceScanType = "CODE_REPOSITORY"
)
// Values returns all known values for ResourceScanType. Note that this can be
@@ -1645,6 +1863,7 @@ func (ResourceScanType) Values() []ResourceScanType {
"ECR",
"LAMBDA",
"LAMBDA_CODE",
+ "CODE_REPOSITORY",
}
}
@@ -1675,6 +1894,7 @@ const (
ResourceTypeAwsEcrContainerImage ResourceType = "AWS_ECR_CONTAINER_IMAGE"
ResourceTypeAwsEcrRepository ResourceType = "AWS_ECR_REPOSITORY"
ResourceTypeAwsLambdaFunction ResourceType = "AWS_LAMBDA_FUNCTION"
+ ResourceTypeCodeRepository ResourceType = "CODE_REPOSITORY"
)
// Values returns all known values for ResourceType. Note that this can be
@@ -1687,6 +1907,28 @@ func (ResourceType) Values() []ResourceType {
"AWS_ECR_CONTAINER_IMAGE",
"AWS_ECR_REPOSITORY",
"AWS_LAMBDA_FUNCTION",
+ "CODE_REPOSITORY",
+ }
+}
+
+type RuleSetCategory string
+
+// Enum values for RuleSetCategory
+const (
+ RuleSetCategorySast RuleSetCategory = "SAST"
+ RuleSetCategoryIac RuleSetCategory = "IAC"
+ RuleSetCategorySca RuleSetCategory = "SCA"
+)
+
+// Values returns all known values for RuleSetCategory. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (RuleSetCategory) Values() []RuleSetCategory {
+ return []RuleSetCategory{
+ "SAST",
+ "IAC",
+ "SCA",
}
}
@@ -1835,6 +2077,11 @@ const (
ScanStatusReasonAgentlessInstanceStorageLimitExceeded ScanStatusReason = "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED"
ScanStatusReasonAgentlessInstanceCollectionTimeLimitExceeded ScanStatusReason = "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED"
ScanStatusReasonPendingRevivalScan ScanStatusReason = "PENDING_REVIVAL_SCAN"
+ ScanStatusReasonIntegrationConnectionLost ScanStatusReason = "INTEGRATION_CONNECTION_LOST"
+ ScanStatusReasonAccessDeniedToEncryptionKey ScanStatusReason = "ACCESS_DENIED_TO_ENCRYPTION_KEY"
+ ScanStatusReasonUnsupportedLanguage ScanStatusReason = "UNSUPPORTED_LANGUAGE"
+ ScanStatusReasonNoScanConfigurationAssociated ScanStatusReason = "NO_SCAN_CONFIGURATION_ASSOCIATED"
+ ScanStatusReasonScanInProgress ScanStatusReason = "SCAN_IN_PROGRESS"
)
// Values returns all known values for ScanStatusReason. Note that this can be
@@ -1870,6 +2117,11 @@ func (ScanStatusReason) Values() []ScanStatusReason {
"AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED",
"AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED",
"PENDING_REVIVAL_SCAN",
+ "INTEGRATION_CONNECTION_LOST",
+ "ACCESS_DENIED_TO_ENCRYPTION_KEY",
+ "UNSUPPORTED_LANGUAGE",
+ "NO_SCAN_CONFIGURATION_ASSOCIATED",
+ "SCAN_IN_PROGRESS",
}
}
@@ -2128,6 +2380,9 @@ const (
UsageTypeEcrRescan UsageType = "ECR_RESCAN"
UsageTypeLambdaFunctionHours UsageType = "LAMBDA_FUNCTION_HOURS"
UsageTypeLambdaFunctionCodeHours UsageType = "LAMBDA_FUNCTION_CODE_HOURS"
+ UsageTypeCodeRepositorySast UsageType = "CODE_REPOSITORY_SAST"
+ UsageTypeCodeRepositoryIac UsageType = "CODE_REPOSITORY_IAC"
+ UsageTypeCodeRepositorySca UsageType = "CODE_REPOSITORY_SCA"
)
// Values returns all known values for UsageType. Note that this can be expanded
@@ -2141,6 +2396,9 @@ func (UsageType) Values() []UsageType {
"ECR_RESCAN",
"LAMBDA_FUNCTION_HOURS",
"LAMBDA_FUNCTION_CODE_HOURS",
+ "CODE_REPOSITORY_SAST",
+ "CODE_REPOSITORY_IAC",
+ "CODE_REPOSITORY_SCA",
}
}
diff --git a/service/inspector2/types/errors.go b/service/inspector2/types/errors.go
index 9efd636e01c..049ca81cd18 100644
--- a/service/inspector2/types/errors.go
+++ b/service/inspector2/types/errors.go
@@ -8,6 +8,9 @@ import (
)
// You do not have sufficient access to perform this action.
+//
+// For Enable , you receive this error if you attempt to use a feature in an
+// unsupported Amazon Web Services Region.
type AccessDeniedException struct {
Message *string
@@ -59,7 +62,8 @@ func (e *BadRequestException) ErrorCode() string {
}
func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
-// A conflict occurred.
+// A conflict occurred. This exception occurs when the same resource is being
+// modified by concurrent requests.
type ConflictException struct {
Message *string
diff --git a/service/inspector2/types/types.go b/service/inspector2/types/types.go
index 9c488191de7..fbc379f0018 100644
--- a/service/inspector2/types/types.go
+++ b/service/inspector2/types/types.go
@@ -96,6 +96,7 @@ type AccountState struct {
// AggregationRequestMemberAccountAggregation
// AggregationRequestMemberAmiAggregation
// AggregationRequestMemberAwsEcrContainerAggregation
+// AggregationRequestMemberCodeRepositoryAggregation
// AggregationRequestMemberEc2InstanceAggregation
// AggregationRequestMemberFindingTypeAggregation
// AggregationRequestMemberImageLayerAggregation
@@ -138,6 +139,16 @@ type AggregationRequestMemberAwsEcrContainerAggregation struct {
func (*AggregationRequestMemberAwsEcrContainerAggregation) isAggregationRequest() {}
+// An object that contains details about an aggregation request based on code
+// repositories.
+type AggregationRequestMemberCodeRepositoryAggregation struct {
+ Value CodeRepositoryAggregation
+
+ noSmithyDocumentSerde
+}
+
+func (*AggregationRequestMemberCodeRepositoryAggregation) isAggregationRequest() {}
+
// An object that contains details about an aggregation request based on Amazon
// EC2 instances.
type AggregationRequestMemberEc2InstanceAggregation struct {
@@ -224,6 +235,7 @@ func (*AggregationRequestMemberTitleAggregation) isAggregationRequest() {}
// AggregationResponseMemberAccountAggregation
// AggregationResponseMemberAmiAggregation
// AggregationResponseMemberAwsEcrContainerAggregation
+// AggregationResponseMemberCodeRepositoryAggregation
// AggregationResponseMemberEc2InstanceAggregation
// AggregationResponseMemberFindingTypeAggregation
// AggregationResponseMemberImageLayerAggregation
@@ -266,6 +278,16 @@ type AggregationResponseMemberAwsEcrContainerAggregation struct {
func (*AggregationResponseMemberAwsEcrContainerAggregation) isAggregationResponse() {}
+// An object that contains details about an aggregation response based on code
+// repositories.
+type AggregationResponseMemberCodeRepositoryAggregation struct {
+ Value CodeRepositoryAggregationResponse
+
+ noSmithyDocumentSerde
+}
+
+func (*AggregationResponseMemberCodeRepositoryAggregation) isAggregationResponse() {}
+
// An object that contains details about an aggregation response based on Amazon
// EC2 instances.
type AggregationResponseMemberEc2InstanceAggregation struct {
@@ -379,6 +401,23 @@ type AmiAggregationResponse struct {
noSmithyDocumentSerde
}
+// Contains details about a request to associate a code repository with a scan
+// configuration.
+type AssociateConfigurationRequest struct {
+
+ // Identifies a specific resource in a code repository that will be scanned.
+ //
+ // This member is required.
+ Resource CodeSecurityResource
+
+ // The Amazon Resource Name (ARN) of the scan configuration.
+ //
+ // This member is required.
+ ScanConfigurationArn *string
+
+ noSmithyDocumentSerde
+}
+
// The Amazon Web Services Threat Intel Group (ATIG) details for a specific
// vulnerability.
type AtigData struct {
@@ -416,6 +455,10 @@ type AutoEnable struct {
// This member is required.
Ecr *bool
+ // Represents whether code repository scans are automatically enabled for new
+ // members of your Amazon Inspector organization.
+ CodeRepository *bool
+
// Represents whether Amazon Web Services Lambda standard scans are automatically
// enabled for new members of your Amazon Inspector organization.
Lambda *bool
@@ -1241,6 +1284,257 @@ type CodeLine struct {
noSmithyDocumentSerde
}
+// The details that define an aggregation based on code repositories.
+type CodeRepositoryAggregation struct {
+
+ // The project names to include in the aggregation results.
+ ProjectNames []StringFilter
+
+ // The repository provider types to include in the aggregation results.
+ ProviderTypes []StringFilter
+
+ // The resource IDs to include in the aggregation results.
+ ResourceIds []StringFilter
+
+ // The value to sort results by in the code repository aggregation.
+ SortBy CodeRepositorySortBy
+
+ // The order to sort results by (ascending or descending) in the code repository
+ // aggregation.
+ SortOrder SortOrder
+
+ noSmithyDocumentSerde
+}
+
+// A response that contains the results of a finding aggregation by code
+// repository.
+type CodeRepositoryAggregationResponse struct {
+
+ // The names of the projects associated with the code repository.
+ //
+ // This member is required.
+ ProjectNames *string
+
+ // The Amazon Web Services account ID associated with the code repository.
+ AccountId *string
+
+ // The number of active findings that have an exploit available for the code
+ // repository.
+ ExploitAvailableActiveFindingsCount *int64
+
+ // The number of active findings that have a fix available for the code repository.
+ FixAvailableActiveFindingsCount *int64
+
+ // The type of repository provider for the code repository.
+ ProviderType *string
+
+ // The resource ID of the code repository.
+ ResourceId *string
+
+ // An object that contains the counts of aggregated finding per severity.
+ SeverityCounts *SeverityCounts
+
+ noSmithyDocumentSerde
+}
+
+// Contains details about a code repository associated with a finding.
+type CodeRepositoryDetails struct {
+
+ // The Amazon Resource Name (ARN) of the code security integration associated with
+ // the repository.
+ IntegrationArn *string
+
+ // The name of the project in the code repository.
+ ProjectName *string
+
+ // The type of repository provider (such as GitHub, GitLab, etc.).
+ ProviderType CodeRepositoryProviderType
+
+ noSmithyDocumentSerde
+}
+
+// Contains metadata information about a code repository that is being scanned by
+// Amazon Inspector.
+type CodeRepositoryMetadata struct {
+
+ // The name of the project in the code repository.
+ //
+ // This member is required.
+ ProjectName *string
+
+ // The type of repository provider (such as GitHub, GitLab, etc.).
+ //
+ // This member is required.
+ ProviderType *string
+
+ // The visibility setting of the repository (public or private).
+ //
+ // This member is required.
+ ProviderTypeVisibility *string
+
+ // The Amazon Resource Name (ARN) of the code security integration associated with
+ // the repository.
+ IntegrationArn *string
+
+ // The ID of the last commit that was scanned in the repository.
+ LastScannedCommitId *string
+
+ // Information about on-demand scans performed on the repository.
+ OnDemandScan *CodeRepositoryOnDemandScan
+
+ // The scan configuration settings applied to the code repository.
+ ScanConfiguration *ProjectCodeSecurityScanConfiguration
+
+ noSmithyDocumentSerde
+}
+
+// Contains information about on-demand scans performed on a code repository.
+type CodeRepositoryOnDemandScan struct {
+
+ // The timestamp when the last on-demand scan was performed.
+ LastScanAt *time.Time
+
+ // The ID of the last commit that was scanned during an on-demand scan.
+ LastScannedCommitId *string
+
+ // The status of the scan.
+ ScanStatus *ScanStatus
+
+ noSmithyDocumentSerde
+}
+
+// A summary of information about a code security integration.
+type CodeSecurityIntegrationSummary struct {
+
+ // The timestamp when the code security integration was created.
+ //
+ // This member is required.
+ CreatedOn *time.Time
+
+ // The Amazon Resource Name (ARN) of the code security integration.
+ //
+ // This member is required.
+ IntegrationArn *string
+
+ // The timestamp when the code security integration was last updated.
+ //
+ // This member is required.
+ LastUpdateOn *time.Time
+
+ // The name of the code security integration.
+ //
+ // This member is required.
+ Name *string
+
+ // The current status of the code security integration.
+ //
+ // This member is required.
+ Status IntegrationStatus
+
+ // The reason for the current status of the code security integration.
+ //
+ // This member is required.
+ StatusReason *string
+
+ // The type of repository provider for the integration.
+ //
+ // This member is required.
+ Type IntegrationType
+
+ // The tags associated with the code security integration.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+// Identifies a specific resource in a code repository that will be scanned.
+//
+// The following types satisfy this interface:
+//
+// CodeSecurityResourceMemberProjectId
+type CodeSecurityResource interface {
+ isCodeSecurityResource()
+}
+
+// The unique identifier of the project in the code repository.
+type CodeSecurityResourceMemberProjectId struct {
+ Value string
+
+ noSmithyDocumentSerde
+}
+
+func (*CodeSecurityResourceMemberProjectId) isCodeSecurityResource() {}
+
+// Contains the configuration settings for code security scans.
+type CodeSecurityScanConfiguration struct {
+
+ // The categories of security rules to be applied during the scan.
+ //
+ // This member is required.
+ RuleSetCategories []RuleSetCategory
+
+ // Configuration settings for continuous integration scans that run automatically
+ // when code changes are made.
+ ContinuousIntegrationScanConfiguration *ContinuousIntegrationScanConfiguration
+
+ // Configuration settings for periodic scans that run on a scheduled basis.
+ PeriodicScanConfiguration *PeriodicScanConfiguration
+
+ noSmithyDocumentSerde
+}
+
+// A summary of an association between a code repository and a scan configuration.
+type CodeSecurityScanConfigurationAssociationSummary struct {
+
+ // Identifies a specific resource in a code repository that will be scanned.
+ Resource CodeSecurityResource
+
+ noSmithyDocumentSerde
+}
+
+// A summary of information about a code security scan configuration.
+type CodeSecurityScanConfigurationSummary struct {
+
+ // The name of the scan configuration.
+ //
+ // This member is required.
+ Name *string
+
+ // The Amazon Web Services account ID that owns the scan configuration.
+ //
+ // This member is required.
+ OwnerAccountId *string
+
+ // The categories of security rules applied during the scan.
+ //
+ // This member is required.
+ RuleSetCategories []RuleSetCategory
+
+ // The Amazon Resource Name (ARN) of the scan configuration.
+ //
+ // This member is required.
+ ScanConfigurationArn *string
+
+ // The repository events that trigger continuous integration scans.
+ ContinuousIntegrationScanSupportedEvents []ContinuousIntegrationScanEvent
+
+ // The schedule expression for periodic scans, in cron format.
+ FrequencyExpression *string
+
+ // The frequency at which periodic scans are performed.
+ PeriodicScanFrequency PeriodicScanFrequency
+
+ // The scope settings that define which repositories will be scanned. If the
+ // ScopeSetting parameter is ALL the scan configuration applies to all existing
+ // and future projects imported into Amazon Inspector.
+ ScopeSettings *ScopeSettings
+
+ // The tags associated with the scan configuration.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
// Contains information about any errors encountered while trying to retrieve a
// code snippet.
type CodeSnippetError struct {
@@ -1353,6 +1647,19 @@ type ComputePlatform struct {
noSmithyDocumentSerde
}
+// Configuration settings for continuous integration scans that run automatically
+// when code changes are made.
+type ContinuousIntegrationScanConfiguration struct {
+
+ // The repository events that trigger continuous integration scans, such as pull
+ // requests or commits.
+ //
+ // This member is required.
+ SupportedEvents []ContinuousIntegrationScanEvent
+
+ noSmithyDocumentSerde
+}
+
// a structure that contains information on the count of resources within a group.
type Counts struct {
@@ -1383,6 +1690,17 @@ type CoverageFilterCriteria struct {
// An array of Amazon Web Services account IDs to return coverage statistics for.
AccountId []CoverageStringFilter
+ // Filter criteria for code repositories based on project name.
+ CodeRepositoryProjectName []CoverageStringFilter
+
+ // Filter criteria for code repositories based on provider type (such as GitHub,
+ // GitLab, etc.).
+ CodeRepositoryProviderType []CoverageStringFilter
+
+ // Filter criteria for code repositories based on visibility setting (public or
+ // private).
+ CodeRepositoryProviderTypeVisibility []CoverageStringFilter
+
// The Amazon EC2 instance tags to filter on.
Ec2InstanceTags []CoverageMapFilter
@@ -1417,6 +1735,10 @@ type CoverageFilterCriteria struct {
// checked them for vulnerabilities within the specified time range.
LastScannedAt []CoverageDateFilter
+ // Filter criteria for code repositories based on the ID of the last scanned
+ // commit.
+ LastScannedCommitId []CoverageStringFilter
+
// An array of Amazon Web Services resource IDs to return coverage statistics for.
ResourceId []CoverageStringFilter
@@ -1544,6 +1866,43 @@ type CreateCisTargets struct {
noSmithyDocumentSerde
}
+// Contains details required to create an integration with a self-managed GitLab
+// instance.
+type CreateGitLabSelfManagedIntegrationDetail struct {
+
+ // The personal access token used to authenticate with the self-managed GitLab
+ // instance.
+ //
+ // This member is required.
+ AccessToken *string
+
+ // The URL of the self-managed GitLab instance.
+ //
+ // This member is required.
+ InstanceUrl *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details required to create a code security integration with a specific
+// repository provider.
+//
+// The following types satisfy this interface:
+//
+// CreateIntegrationDetailMemberGitlabSelfManaged
+type CreateIntegrationDetail interface {
+ isCreateIntegrationDetail()
+}
+
+// Details specific to creating an integration with a self-managed GitLab instance.
+type CreateIntegrationDetailMemberGitlabSelfManaged struct {
+ Value CreateGitLabSelfManagedIntegrationDetail
+
+ noSmithyDocumentSerde
+}
+
+func (*CreateIntegrationDetailMemberGitlabSelfManaged) isCreateIntegrationDetail() {}
+
// The Common Vulnerability Scoring System (CVSS) version 2 details for the
// vulnerability.
type Cvss2 struct {
@@ -1713,6 +2072,24 @@ type Destination struct {
noSmithyDocumentSerde
}
+// Contains details about a request to disassociate a code repository from a scan
+// configuration.
+type DisassociateConfigurationRequest struct {
+
+ // Identifies a specific resource in a code repository that will be scanned.
+ //
+ // This member is required.
+ Resource CodeSecurityResource
+
+ // The Amazon Resource Name (ARN) of the scan configuration to disassociate from a
+ // code repository.
+ //
+ // This member is required.
+ ScanConfigurationArn *string
+
+ noSmithyDocumentSerde
+}
+
// Enables agent-based scanning, which scans instances that are not managed by SSM.
type Ec2Configuration struct {
@@ -1985,6 +2362,26 @@ type FailedAccount struct {
noSmithyDocumentSerde
}
+// Details about a failed attempt to associate or disassociate a code repository
+// with a scan configuration.
+type FailedAssociationResult struct {
+
+ // Identifies a specific resource in a code repository that will be scanned.
+ Resource CodeSecurityResource
+
+ // The Amazon Resource Name (ARN) of the scan configuration that failed to be
+ // associated or disassociated.
+ ScanConfigurationArn *string
+
+ // The status code indicating why the association or disassociation failed.
+ StatusCode AssociationResultStatusCode
+
+ // A message explaining why the association or disassociation failed.
+ StatusMessage *string
+
+ noSmithyDocumentSerde
+}
+
// An object that contains details about a member account in your organization
// that failed to activate Amazon Inspector deep inspection.
type FailedMemberAccountEc2DeepInspectionStatusState struct {
@@ -2062,6 +2459,13 @@ type FilterCriteria struct {
// Details of the Amazon Web Services account IDs used to filter findings.
AwsAccountId []StringFilter
+ // Filter criteria for findings based on the project name in a code repository.
+ CodeRepositoryProjectName []StringFilter
+
+ // Filter criteria for findings based on the repository provider type (such as
+ // GitHub, GitLab, etc.).
+ CodeRepositoryProviderType []StringFilter
+
// The name of the detector used to identify a code vulnerability in a Lambda
// function used to filter findings.
CodeVulnerabilityDetectorName []StringFilter
@@ -2994,6 +3398,22 @@ type PackageVulnerabilityDetails struct {
noSmithyDocumentSerde
}
+// Configuration settings for periodic scans that run on a scheduled basis.
+type PeriodicScanConfiguration struct {
+
+ // The frequency at which periodic scans are performed (such as weekly or monthly).
+ //
+ // If you don't provide the frequencyExpression Amazon Inspector chooses day for
+ // the scan to run. If you provide the frequencyExpression , the schedule must
+ // match the specified frequency .
+ Frequency PeriodicScanFrequency
+
+ // The schedule expression for periodic scans, in cron format.
+ FrequencyExpression *string
+
+ noSmithyDocumentSerde
+}
+
// Contains information on the permissions an account has within Amazon Inspector.
type Permission struct {
@@ -3039,6 +3459,46 @@ type PortRangeFilter struct {
noSmithyDocumentSerde
}
+// Contains the scan configuration settings applied to a specific project in a
+// code repository.
+type ProjectCodeSecurityScanConfiguration struct {
+
+ // The continuous integration scan configurations applied to the project.
+ ContinuousIntegrationScanConfigurations []ProjectContinuousIntegrationScanConfiguration
+
+ // The periodic scan configurations applied to the project.
+ PeriodicScanConfigurations []ProjectPeriodicScanConfiguration
+
+ noSmithyDocumentSerde
+}
+
+// Contains the continuous integration scan configuration settings applied to a
+// specific project.
+type ProjectContinuousIntegrationScanConfiguration struct {
+
+ // The categories of security rules applied during continuous integration scans
+ // for the project.
+ RuleSetCategories []RuleSetCategory
+
+ // The repository event that triggers continuous integration scans for the project.
+ SupportedEvent ContinuousIntegrationScanEvent
+
+ noSmithyDocumentSerde
+}
+
+// Contains the periodic scan configuration settings applied to a specific project.
+type ProjectPeriodicScanConfiguration struct {
+
+ // The schedule expression for periodic scans, in cron format, applied to the
+ // project.
+ FrequencyExpression *string
+
+ // The categories of security rules applied during periodic scans for the project.
+ RuleSetCategories []RuleSetCategory
+
+ noSmithyDocumentSerde
+}
+
// Details about the recommended course of action to remediate the finding.
type Recommendation struct {
@@ -3140,6 +3600,9 @@ type ResourceDetails struct {
// affected by a finding.
AwsLambdaFunction *AwsLambdaFunctionDetails
+ // Contains details about a code repository resource associated with a finding.
+ CodeRepository *CodeRepositoryDetails
+
noSmithyDocumentSerde
}
@@ -3195,6 +3658,9 @@ type ResourceMapFilter struct {
// An object that contains details about the metadata for an Amazon ECR resource.
type ResourceScanMetadata struct {
+ // Contains metadata about scan coverage for a code repository resource.
+ CodeRepository *CodeRepositoryMetadata
+
// An object that contains metadata details for an Amazon EC2 instance.
Ec2 *Ec2Metadata
@@ -3229,6 +3695,9 @@ type ResourceState struct {
// This member is required.
Ecr *State
+ // An object that described the state of Amazon Inspector scans for an account.
+ CodeRepository *State
+
// An object that described the state of Amazon Inspector scans for an account.
Lambda *State
@@ -3252,6 +3721,9 @@ type ResourceStatus struct {
// This member is required.
Ecr Status
+ // The status of Amazon Inspector scanning for code repositories.
+ CodeRepository Status
+
// The status of Amazon Inspector scanning for Amazon Web Services Lambda function.
Lambda Status
@@ -3283,35 +3755,72 @@ type ScanStatus struct {
// The scan status. Possible return values and descriptions are:
//
- // PENDING_INITIAL_SCAN - This resource has been identified for scanning, results
- // will be available soon.
- //
// ACCESS_DENIED - Resource access policy restricting Amazon Inspector access.
// Please update the IAM policy.
//
+ // ACCESS_DENIED_TO_ENCRYPTION_KEY - The KMS key policy doesn't allow Amazon
+ // Inspector access. Update the key policy.
+ //
+ // DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED - Amazon Inspector failed to
+ // extract the package inventory because the package collection time exceeding the
+ // maximum threshold of 15 minutes.
+ //
+ // DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED - The SSM agent couldn't
+ // send inventory to Amazon Inspector because the SSM quota for Inventory data
+ // collected per instance per day has already been reached for this instance.
+ //
+ // DEEP_INSPECTION_NO_INVENTORY - The Amazon Inspector plugin hasn't yet been able
+ // to collect an inventory of packages for this instance. This is usually the
+ // result of a pending scan, however, if this status persists after 6 hours, use
+ // SSM to ensure that the required Amazon Inspector associations exist and are
+ // running for the instance.
+ //
+ // DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED - The instance has exceeded
+ // the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep
+ // inspection for this instance you can try to adjust the custom paths associated
+ // with the account.
+ //
+ // EC2_INSTANCE_STOPPED - This EC2 instance is in a stopped state, therefore,
+ // Amazon Inspector will pause scanning. The existing findings will continue to
+ // exist until the instance is terminated. Once the instance is re-started,
+ // Inspector will automatically start scanning the instance again. Please note that
+ // you will not be charged for this instance while it's in a stopped state.
+ //
+ // EXCLUDED_BY_TAG - This resource was not scanned because it has been excluded by
+ // a tag.
+ //
+ // IMAGE_SIZE_EXCEEDED - Reserved for future use.
+ //
+ // INTEGRATION_CONNNECTION_LOST - Amazon Inspector couldn't communicate with the
+ // source code management platform.
+ //
// INTERNAL_ERROR - Amazon Inspector has encountered an internal error for this
// resource. Amazon Inspector service will automatically resolve the issue and
// resume the scanning. No action required from the user.
//
- // UNMANAGED_EC2_INSTANCE - The EC2 instance is not managed by SSM, please use the
- // following SSM automation to remediate the issue: [https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html]. Once the instance becomes
- // managed by SSM, Inspector will automatically begin scanning this instance.
+ // NO INVENTORY - Amazon Inspector couldn't find software application inventory to
+ // scan for vulnerabilities. This might be caused due to required Amazon Inspector
+ // associations being deleted or failing to run on your resource. Please verify the
+ // status of InspectorInventoryCollection-do-not-delete association in the SSM
+ // console for the resource. Additionally, you can verify the instance's inventory
+ // in the SSM Fleet Manager console.
//
- // UNSUPPORTED_OS - Amazon Inspector does not support this OS, architecture, or
- // image manifest type at this time. To see a complete list of supported operating
- // systems see: [https://docs.aws.amazon.com/inspector/latest/user/supported.html].
+ // NO_RESOURCES_FOUND - Reserved for future use.
//
- // SCAN_ELIGIBILITY_EXPIRED - The configured scan duration has lapsed for this
- // image.
+ // NO_SCAN_CONFIGURATION_ASSOCIATED - The code repository resource doesn't have an
+ // associated scan configuration.
//
- // RESOURCE_TERMINATED - This resource has been terminated. The findings and
- // coverage associated with this resource are in the process of being cleaned up.
+ // PENDING_DISABLE - This resource is pending cleanup during disablement. The
+ // customer will not be billed while a resource is in the pending disable status.
//
- // SUCCESSFUL - The scan was successful.
+ // PENDING_INITIAL_SCAN - This resource has been identified for scanning, results
+ // will be available soon.
//
- // NO_RESOURCES_FOUND - Reserved for future use.
+ // RESOURCE_TERMINATED - This resource has been terminated. The findings and
+ // coverage associated with this resource are in the process of being cleaned up.
//
- // IMAGE_SIZE_EXCEEDED - Reserved for future use.
+ // SCAN_ELIGIBILITY_EXPIRED - The configured scan duration has lapsed for this
+ // image.
//
// SCAN_FREQUENCY_MANUAL - This image will not be covered by Amazon Inspector due
// to the repository scan frequency configuration.
@@ -3319,55 +3828,32 @@ type ScanStatus struct {
// SCAN_FREQUENCY_SCAN_ON_PUSH - This image will be scanned one time and will not
// new findings because of the scan frequency configuration.
//
- // EC2_INSTANCE_STOPPED - This EC2 instance is in a stopped state, therefore,
- // Amazon Inspector will pause scanning. The existing findings will continue to
- // exist until the instance is terminated. Once the instance is re-started,
- // Inspector will automatically start scanning the instance again. Please note that
- // you will not be charged for this instance while it’s in a stopped state.
- //
- // PENDING_DISABLE - This resource is pending cleanup during disablement. The
- // customer will not be billed while a resource is in the pending disable status.
- //
- // NO INVENTORY - Amazon Inspector couldn’t find software application inventory to
- // scan for vulnerabilities. This might be caused due to required Amazon Inspector
- // associations being deleted or failing to run on your resource. Please verify the
- // status of InspectorInventoryCollection-do-not-delete association in the SSM
- // console for the resource. Additionally, you can verify the instance’s inventory
- // in the SSM Fleet Manager console.
+ // SCAN_IN_PROGRESS - The resource is currently being scanned.
//
- // STALE_INVENTORY - Amazon Inspector wasn’t able to collect an updated software
+ // STALE_INVENTORY - Amazon Inspector wasn't able to collect an updated software
// application inventory in the last 7 days. Please confirm the required Amazon
// Inspector associations still exist and you can still see an updated inventory in
// the SSM console.
//
- // EXCLUDED_BY_TAG - This resource was not scanned because it has been excluded by
- // a tag.
- //
- // UNSUPPORTED_RUNTIME - The function was not scanned because it has an
- // unsupported runtime. To see a complete list of supported runtimes see: [https://docs.aws.amazon.com/inspector/latest/user/supported.html].
+ // SUCCESSFUL - The scan was successful.
//
- // UNSUPPORTED_MEDIA_TYPE - The ECR image has an unsupported media type.
+ // UNMANAGED_EC2_INSTANCE - The EC2 instance is not managed by SSM, please use the
+ // following SSM automation to remediate the issue: [https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html]. Once the instance becomes
+ // managed by SSM, Inspector will automatically begin scanning this instance.
//
// UNSUPPORTED_CONFIG_FILE - Reserved for future use.
//
- // DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED - The instance has exceeded
- // the 5000 package limit for Amazon Inspector Deep inspection. To resume Deep
- // inspection for this instance you can try to adjust the custom paths associated
- // with the account.
+ // UNSUPPORTED_LANGUAGE - The scan was unsuccessful because the repository
+ // contains files in an unsupported programming language.
//
- // DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED - The SSM agent couldn't
- // send inventory to Amazon Inspector because the SSM quota for Inventory data
- // collected per instance per day has already been reached for this instance.
+ // UNSUPPORTED_MEDIA_TYPE - The ECR image has an unsupported media type.
//
- // DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED - Amazon Inspector failed to
- // extract the package inventory because the package collection time exceeding the
- // maximum threshold of 15 minutes.
+ // UNSUPPORTED_OS - Amazon Inspector does not support this OS, architecture, or
+ // image manifest type at this time. To see a complete list of supported operating
+ // systems see: [https://docs.aws.amazon.com/inspector/latest/user/supported.html].
//
- // DEEP_INSPECTION_NO_INVENTORY The Amazon Inspector plugin hasn't yet been able
- // to collect an inventory of packages for this instance. This is usually the
- // result of a pending scan, however, if this status persists after 6 hours, use
- // SSM to ensure that the required Amazon Inspector associations exist and are
- // running for the instance.
+ // UNSUPPORTED_RUNTIME - The function was not scanned because it has an
+ // unsupported runtime. To see a complete list of supported runtimes see: [https://docs.aws.amazon.com/inspector/latest/user/supported.html].
//
// [https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html]: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-troubleshoot-managed-instance.html
// [https://docs.aws.amazon.com/inspector/latest/user/supported.html]: https://docs.aws.amazon.com/inspector/latest/user/supported.html
@@ -3431,6 +3917,17 @@ type ScheduleMemberWeekly struct {
func (*ScheduleMemberWeekly) isSchedule() {}
+// Defines the scope of repositories to be included in code security scans.
+type ScopeSettings struct {
+
+ // The scope of projects to be selected for scanning within the integrated
+ // repositories. Setting the value to ALL applies the scope settings to all
+ // existing and future projects imported into Amazon Inspector.
+ ProjectSelectionScope ProjectSelectionScope
+
+ noSmithyDocumentSerde
+}
+
// Details on the criteria used to define the filter for a vulnerability search.
type SearchVulnerabilitiesFilterCriteria struct {
@@ -3617,6 +4114,20 @@ type StringFilter struct {
noSmithyDocumentSerde
}
+// Details about a successful association or disassociation between a code
+// repository and a scan configuration.
+type SuccessfulAssociationResult struct {
+
+ // Identifies a specific resource in a code repository that will be scanned.
+ Resource CodeSecurityResource
+
+ // The Amazon Resource Name (ARN) of the scan configuration that was successfully
+ // associated or disassociated.
+ ScanConfigurationArn *string
+
+ noSmithyDocumentSerde
+}
+
// A suggested fix for a vulnerability in your Lambda function code.
type SuggestedFix struct {
@@ -3723,6 +4234,64 @@ type UpdateCisTargets struct {
noSmithyDocumentSerde
}
+// Contains details required to update an integration with GitHub.
+type UpdateGitHubIntegrationDetail struct {
+
+ // The authorization code received from GitHub to update the integration.
+ //
+ // This member is required.
+ Code *string
+
+ // The installation ID of the GitHub App associated with the integration.
+ //
+ // This member is required.
+ InstallationId *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details required to update an integration with a self-managed GitLab
+// instance.
+type UpdateGitLabSelfManagedIntegrationDetail struct {
+
+ // The authorization code received from the self-managed GitLab instance to update
+ // the integration.
+ //
+ // This member is required.
+ AuthCode *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details required to update a code security integration with a specific
+// repository provider.
+//
+// The following types satisfy this interface:
+//
+// UpdateIntegrationDetailsMemberGithub
+// UpdateIntegrationDetailsMemberGitlabSelfManaged
+type UpdateIntegrationDetails interface {
+ isUpdateIntegrationDetails()
+}
+
+// Details specific to updating an integration with GitHub.
+type UpdateIntegrationDetailsMemberGithub struct {
+ Value UpdateGitHubIntegrationDetail
+
+ noSmithyDocumentSerde
+}
+
+func (*UpdateIntegrationDetailsMemberGithub) isUpdateIntegrationDetails() {}
+
+// Details specific to updating an integration with a self-managed GitLab instance.
+type UpdateIntegrationDetailsMemberGitlabSelfManaged struct {
+ Value UpdateGitLabSelfManagedIntegrationDetail
+
+ noSmithyDocumentSerde
+}
+
+func (*UpdateIntegrationDetailsMemberGitlabSelfManaged) isUpdateIntegrationDetails() {}
+
// Contains usage information about the cost of Amazon Inspector operation.
type Usage struct {
@@ -3905,7 +4474,10 @@ type UnknownUnionMember struct {
noSmithyDocumentSerde
}
-func (*UnknownUnionMember) isAggregationRequest() {}
-func (*UnknownUnionMember) isAggregationResponse() {}
-func (*UnknownUnionMember) isClusterMetadata() {}
-func (*UnknownUnionMember) isSchedule() {}
+func (*UnknownUnionMember) isAggregationRequest() {}
+func (*UnknownUnionMember) isAggregationResponse() {}
+func (*UnknownUnionMember) isClusterMetadata() {}
+func (*UnknownUnionMember) isCodeSecurityResource() {}
+func (*UnknownUnionMember) isCreateIntegrationDetail() {}
+func (*UnknownUnionMember) isSchedule() {}
+func (*UnknownUnionMember) isUpdateIntegrationDetails() {}
diff --git a/service/inspector2/types/types_exported_test.go b/service/inspector2/types/types_exported_test.go
index c139832ccf6..cf700c488f9 100644
--- a/service/inspector2/types/types_exported_test.go
+++ b/service/inspector2/types/types_exported_test.go
@@ -20,6 +20,9 @@ func ExampleAggregationRequest_outputUsage() {
case *types.AggregationRequestMemberAwsEcrContainerAggregation:
_ = v.Value // Value is types.AwsEcrContainerAggregation
+ case *types.AggregationRequestMemberCodeRepositoryAggregation:
+ _ = v.Value // Value is types.CodeRepositoryAggregation
+
case *types.AggregationRequestMemberEc2InstanceAggregation:
_ = v.Value // Value is types.Ec2InstanceAggregation
@@ -59,6 +62,7 @@ var _ *types.AwsEcrContainerAggregation
var _ *types.TitleAggregation
var _ *types.ImageLayerAggregation
var _ *types.AmiAggregation
+var _ *types.CodeRepositoryAggregation
var _ *types.FindingTypeAggregation
var _ *types.AccountAggregation
var _ *types.Ec2InstanceAggregation
@@ -78,6 +82,9 @@ func ExampleAggregationResponse_outputUsage() {
case *types.AggregationResponseMemberAwsEcrContainerAggregation:
_ = v.Value // Value is types.AwsEcrContainerAggregationResponse
+ case *types.AggregationResponseMemberCodeRepositoryAggregation:
+ _ = v.Value // Value is types.CodeRepositoryAggregationResponse
+
case *types.AggregationResponseMemberEc2InstanceAggregation:
_ = v.Value // Value is types.Ec2InstanceAggregationResponse
@@ -120,6 +127,7 @@ var _ *types.LambdaLayerAggregationResponse
var _ *types.TitleAggregationResponse
var _ *types.FindingTypeAggregationResponse
var _ *types.LambdaFunctionAggregationResponse
+var _ *types.CodeRepositoryAggregationResponse
var _ *types.AwsEcrContainerAggregationResponse
var _ *types.Ec2InstanceAggregationResponse
@@ -145,6 +153,42 @@ func ExampleClusterMetadata_outputUsage() {
var _ *types.AwsEksMetadataDetails
var _ *types.AwsEcsMetadataDetails
+func ExampleCodeSecurityResource_outputUsage() {
+ var union types.CodeSecurityResource
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.CodeSecurityResourceMemberProjectId:
+ _ = v.Value // Value is string
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *string
+
+func ExampleCreateIntegrationDetail_outputUsage() {
+ var union types.CreateIntegrationDetail
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.CreateIntegrationDetailMemberGitlabSelfManaged:
+ _ = v.Value // Value is types.CreateGitLabSelfManagedIntegrationDetail
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.CreateGitLabSelfManagedIntegrationDetail
+
func ExampleSchedule_outputUsage() {
var union types.Schedule
// type switches can be used to check the union value
@@ -174,3 +218,25 @@ var _ *types.DailySchedule
var _ *types.WeeklySchedule
var _ *types.OneTimeSchedule
var _ *types.MonthlySchedule
+
+func ExampleUpdateIntegrationDetails_outputUsage() {
+ var union types.UpdateIntegrationDetails
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.UpdateIntegrationDetailsMemberGithub:
+ _ = v.Value // Value is types.UpdateGitHubIntegrationDetail
+
+ case *types.UpdateIntegrationDetailsMemberGitlabSelfManaged:
+ _ = v.Value // Value is types.UpdateGitLabSelfManagedIntegrationDetail
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.UpdateGitLabSelfManagedIntegrationDetail
+var _ *types.UpdateGitHubIntegrationDetail
diff --git a/service/inspector2/validators.go b/service/inspector2/validators.go
index e0941e3853e..430a8dba6c8 100644
--- a/service/inspector2/validators.go
+++ b/service/inspector2/validators.go
@@ -30,6 +30,46 @@ func (m *validateOpAssociateMember) HandleInitialize(ctx context.Context, in mid
return next.HandleInitialize(ctx, in)
}
+type validateOpBatchAssociateCodeSecurityScanConfiguration struct {
+}
+
+func (*validateOpBatchAssociateCodeSecurityScanConfiguration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpBatchAssociateCodeSecurityScanConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*BatchAssociateCodeSecurityScanConfigurationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpBatchAssociateCodeSecurityScanConfigurationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpBatchDisassociateCodeSecurityScanConfiguration struct {
+}
+
+func (*validateOpBatchDisassociateCodeSecurityScanConfiguration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpBatchDisassociateCodeSecurityScanConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*BatchDisassociateCodeSecurityScanConfigurationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpBatchDisassociateCodeSecurityScanConfigurationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpBatchGetCodeSnippet struct {
}
@@ -170,6 +210,46 @@ func (m *validateOpCreateCisScanConfiguration) HandleInitialize(ctx context.Cont
return next.HandleInitialize(ctx, in)
}
+type validateOpCreateCodeSecurityIntegration struct {
+}
+
+func (*validateOpCreateCodeSecurityIntegration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateCodeSecurityIntegration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateCodeSecurityIntegrationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateCodeSecurityIntegrationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpCreateCodeSecurityScanConfiguration struct {
+}
+
+func (*validateOpCreateCodeSecurityScanConfiguration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateCodeSecurityScanConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateCodeSecurityScanConfigurationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateCodeSecurityScanConfigurationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpCreateFilter struct {
}
@@ -250,6 +330,46 @@ func (m *validateOpDeleteCisScanConfiguration) HandleInitialize(ctx context.Cont
return next.HandleInitialize(ctx, in)
}
+type validateOpDeleteCodeSecurityIntegration struct {
+}
+
+func (*validateOpDeleteCodeSecurityIntegration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDeleteCodeSecurityIntegration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DeleteCodeSecurityIntegrationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDeleteCodeSecurityIntegrationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpDeleteCodeSecurityScanConfiguration struct {
+}
+
+func (*validateOpDeleteCodeSecurityScanConfiguration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDeleteCodeSecurityScanConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DeleteCodeSecurityScanConfigurationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDeleteCodeSecurityScanConfigurationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpDeleteFilter struct {
}
@@ -410,6 +530,66 @@ func (m *validateOpGetClustersForImage) HandleInitialize(ctx context.Context, in
return next.HandleInitialize(ctx, in)
}
+type validateOpGetCodeSecurityIntegration struct {
+}
+
+func (*validateOpGetCodeSecurityIntegration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetCodeSecurityIntegration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetCodeSecurityIntegrationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetCodeSecurityIntegrationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpGetCodeSecurityScanConfiguration struct {
+}
+
+func (*validateOpGetCodeSecurityScanConfiguration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetCodeSecurityScanConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetCodeSecurityScanConfigurationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetCodeSecurityScanConfigurationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpGetCodeSecurityScan struct {
+}
+
+func (*validateOpGetCodeSecurityScan) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetCodeSecurityScan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetCodeSecurityScanInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetCodeSecurityScanInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpGetEncryptionKey struct {
}
@@ -550,6 +730,26 @@ func (m *validateOpListCisScans) HandleInitialize(ctx context.Context, in middle
return next.HandleInitialize(ctx, in)
}
+type validateOpListCodeSecurityScanConfigurationAssociations struct {
+}
+
+func (*validateOpListCodeSecurityScanConfigurationAssociations) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpListCodeSecurityScanConfigurationAssociations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*ListCodeSecurityScanConfigurationAssociationsInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpListCodeSecurityScanConfigurationAssociationsInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpListCoverage struct {
}
@@ -750,6 +950,26 @@ func (m *validateOpStartCisSession) HandleInitialize(ctx context.Context, in mid
return next.HandleInitialize(ctx, in)
}
+type validateOpStartCodeSecurityScan struct {
+}
+
+func (*validateOpStartCodeSecurityScan) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpStartCodeSecurityScan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*StartCodeSecurityScanInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpStartCodeSecurityScanInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpStopCisSession struct {
}
@@ -830,6 +1050,46 @@ func (m *validateOpUpdateCisScanConfiguration) HandleInitialize(ctx context.Cont
return next.HandleInitialize(ctx, in)
}
+type validateOpUpdateCodeSecurityIntegration struct {
+}
+
+func (*validateOpUpdateCodeSecurityIntegration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpUpdateCodeSecurityIntegration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*UpdateCodeSecurityIntegrationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpUpdateCodeSecurityIntegrationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpUpdateCodeSecurityScanConfiguration struct {
+}
+
+func (*validateOpUpdateCodeSecurityScanConfiguration) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpUpdateCodeSecurityScanConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*UpdateCodeSecurityScanConfigurationInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpUpdateCodeSecurityScanConfigurationInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpUpdateConfiguration struct {
}
@@ -934,6 +1194,14 @@ func addOpAssociateMemberValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpAssociateMember{}, middleware.After)
}
+func addOpBatchAssociateCodeSecurityScanConfigurationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpBatchAssociateCodeSecurityScanConfiguration{}, middleware.After)
+}
+
+func addOpBatchDisassociateCodeSecurityScanConfigurationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpBatchDisassociateCodeSecurityScanConfiguration{}, middleware.After)
+}
+
func addOpBatchGetCodeSnippetValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetCodeSnippet{}, middleware.After)
}
@@ -962,6 +1230,14 @@ func addOpCreateCisScanConfigurationValidationMiddleware(stack *middleware.Stack
return stack.Initialize.Add(&validateOpCreateCisScanConfiguration{}, middleware.After)
}
+func addOpCreateCodeSecurityIntegrationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateCodeSecurityIntegration{}, middleware.After)
+}
+
+func addOpCreateCodeSecurityScanConfigurationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateCodeSecurityScanConfiguration{}, middleware.After)
+}
+
func addOpCreateFilterValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateFilter{}, middleware.After)
}
@@ -978,6 +1254,14 @@ func addOpDeleteCisScanConfigurationValidationMiddleware(stack *middleware.Stack
return stack.Initialize.Add(&validateOpDeleteCisScanConfiguration{}, middleware.After)
}
+func addOpDeleteCodeSecurityIntegrationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDeleteCodeSecurityIntegration{}, middleware.After)
+}
+
+func addOpDeleteCodeSecurityScanConfigurationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDeleteCodeSecurityScanConfiguration{}, middleware.After)
+}
+
func addOpDeleteFilterValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteFilter{}, middleware.After)
}
@@ -1010,6 +1294,18 @@ func addOpGetClustersForImageValidationMiddleware(stack *middleware.Stack) error
return stack.Initialize.Add(&validateOpGetClustersForImage{}, middleware.After)
}
+func addOpGetCodeSecurityIntegrationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetCodeSecurityIntegration{}, middleware.After)
+}
+
+func addOpGetCodeSecurityScanConfigurationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetCodeSecurityScanConfiguration{}, middleware.After)
+}
+
+func addOpGetCodeSecurityScanValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetCodeSecurityScan{}, middleware.After)
+}
+
func addOpGetEncryptionKeyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetEncryptionKey{}, middleware.After)
}
@@ -1038,6 +1334,10 @@ func addOpListCisScansValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListCisScans{}, middleware.After)
}
+func addOpListCodeSecurityScanConfigurationAssociationsValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpListCodeSecurityScanConfigurationAssociations{}, middleware.After)
+}
+
func addOpListCoverageValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListCoverage{}, middleware.After)
}
@@ -1078,6 +1378,10 @@ func addOpStartCisSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartCisSession{}, middleware.After)
}
+func addOpStartCodeSecurityScanValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpStartCodeSecurityScan{}, middleware.After)
+}
+
func addOpStopCisSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStopCisSession{}, middleware.After)
}
@@ -1094,6 +1398,14 @@ func addOpUpdateCisScanConfigurationValidationMiddleware(stack *middleware.Stack
return stack.Initialize.Add(&validateOpUpdateCisScanConfiguration{}, middleware.After)
}
+func addOpUpdateCodeSecurityIntegrationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpUpdateCodeSecurityIntegration{}, middleware.After)
+}
+
+func addOpUpdateCodeSecurityScanConfigurationValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpUpdateCodeSecurityScanConfiguration{}, middleware.After)
+}
+
func addOpUpdateConfigurationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateConfiguration{}, middleware.After)
}
@@ -1147,6 +1459,11 @@ func validateAggregationRequest(v types.AggregationRequest) error {
invalidParams.AddNested("[awsEcrContainerAggregation]", err.(smithy.InvalidParamsError))
}
+ case *types.AggregationRequestMemberCodeRepositoryAggregation:
+ if err := validateCodeRepositoryAggregation(&uv.Value); err != nil {
+ invalidParams.AddNested("[codeRepositoryAggregation]", err.(smithy.InvalidParamsError))
+ }
+
case *types.AggregationRequestMemberEc2InstanceAggregation:
if err := validateEc2InstanceAggregation(&uv.Value); err != nil {
invalidParams.AddNested("[ec2InstanceAggregation]", err.(smithy.InvalidParamsError))
@@ -1207,6 +1524,41 @@ func validateAmiAggregation(v *types.AmiAggregation) error {
}
}
+func validateAssociateConfigurationRequest(v *types.AssociateConfigurationRequest) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AssociateConfigurationRequest"}
+ if v.ScanConfigurationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ScanConfigurationArn"))
+ }
+ if v.Resource == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Resource"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateAssociateConfigurationRequestList(v []types.AssociateConfigurationRequest) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AssociateConfigurationRequestList"}
+ for i := range v {
+ if err := validateAssociateConfigurationRequest(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateAutoEnable(v *types.AutoEnable) error {
if v == nil {
return nil
@@ -1737,6 +2089,68 @@ func validateClusterForImageFilterCriteria(v *types.ClusterForImageFilterCriteri
}
}
+func validateCodeRepositoryAggregation(v *types.CodeRepositoryAggregation) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CodeRepositoryAggregation"}
+ if v.ProjectNames != nil {
+ if err := validateStringFilterList(v.ProjectNames); err != nil {
+ invalidParams.AddNested("ProjectNames", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.ProviderTypes != nil {
+ if err := validateStringFilterList(v.ProviderTypes); err != nil {
+ invalidParams.AddNested("ProviderTypes", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.ResourceIds != nil {
+ if err := validateStringFilterList(v.ResourceIds); err != nil {
+ invalidParams.AddNested("ResourceIds", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateCodeSecurityScanConfiguration(v *types.CodeSecurityScanConfiguration) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CodeSecurityScanConfiguration"}
+ if v.ContinuousIntegrationScanConfiguration != nil {
+ if err := validateContinuousIntegrationScanConfiguration(v.ContinuousIntegrationScanConfiguration); err != nil {
+ invalidParams.AddNested("ContinuousIntegrationScanConfiguration", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.RuleSetCategories == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("RuleSetCategories"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateContinuousIntegrationScanConfiguration(v *types.ContinuousIntegrationScanConfiguration) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ContinuousIntegrationScanConfiguration"}
+ if v.SupportedEvents == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("SupportedEvents"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateCoverageFilterCriteria(v *types.CoverageFilterCriteria) error {
if v == nil {
return nil
@@ -1807,6 +2221,26 @@ func validateCoverageFilterCriteria(v *types.CoverageFilterCriteria) error {
invalidParams.AddNested("ScanMode", err.(smithy.InvalidParamsError))
}
}
+ if v.CodeRepositoryProjectName != nil {
+ if err := validateCoverageStringFilterList(v.CodeRepositoryProjectName); err != nil {
+ invalidParams.AddNested("CodeRepositoryProjectName", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.CodeRepositoryProviderType != nil {
+ if err := validateCoverageStringFilterList(v.CodeRepositoryProviderType); err != nil {
+ invalidParams.AddNested("CodeRepositoryProviderType", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.CodeRepositoryProviderTypeVisibility != nil {
+ if err := validateCoverageStringFilterList(v.CodeRepositoryProviderTypeVisibility); err != nil {
+ invalidParams.AddNested("CodeRepositoryProviderTypeVisibility", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.LastScannedCommitId != nil {
+ if err := validateCoverageStringFilterList(v.LastScannedCommitId); err != nil {
+ invalidParams.AddNested("LastScannedCommitId", err.(smithy.InvalidParamsError))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
} else {
@@ -1867,15 +2301,51 @@ func validateCoverageStringFilter(v *types.CoverageStringFilter) error {
}
}
-func validateCoverageStringFilterList(v []types.CoverageStringFilter) error {
+func validateCoverageStringFilterList(v []types.CoverageStringFilter) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CoverageStringFilterList"}
+ for i := range v {
+ if err := validateCoverageStringFilter(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateCreateCisTargets(v *types.CreateCisTargets) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateCisTargets"}
+ if v.AccountIds == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AccountIds"))
+ }
+ if v.TargetResourceTags == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("TargetResourceTags"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateCreateGitLabSelfManagedIntegrationDetail(v *types.CreateGitLabSelfManagedIntegrationDetail) error {
if v == nil {
return nil
}
- invalidParams := smithy.InvalidParamsError{Context: "CoverageStringFilterList"}
- for i := range v {
- if err := validateCoverageStringFilter(&v[i]); err != nil {
- invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
- }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateGitLabSelfManagedIntegrationDetail"}
+ if v.InstanceUrl == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("InstanceUrl"))
+ }
+ if v.AccessToken == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AccessToken"))
}
if invalidParams.Len() > 0 {
return invalidParams
@@ -1884,16 +2354,17 @@ func validateCoverageStringFilterList(v []types.CoverageStringFilter) error {
}
}
-func validateCreateCisTargets(v *types.CreateCisTargets) error {
+func validateCreateIntegrationDetail(v types.CreateIntegrationDetail) error {
if v == nil {
return nil
}
- invalidParams := smithy.InvalidParamsError{Context: "CreateCisTargets"}
- if v.AccountIds == nil {
- invalidParams.Add(smithy.NewErrParamRequired("AccountIds"))
- }
- if v.TargetResourceTags == nil {
- invalidParams.Add(smithy.NewErrParamRequired("TargetResourceTags"))
+ invalidParams := smithy.InvalidParamsError{Context: "CreateIntegrationDetail"}
+ switch uv := v.(type) {
+ case *types.CreateIntegrationDetailMemberGitlabSelfManaged:
+ if err := validateCreateGitLabSelfManagedIntegrationDetail(&uv.Value); err != nil {
+ invalidParams.AddNested("[gitlabSelfManaged]", err.(smithy.InvalidParamsError))
+ }
+
}
if invalidParams.Len() > 0 {
return invalidParams
@@ -1939,6 +2410,41 @@ func validateDestination(v *types.Destination) error {
}
}
+func validateDisassociateConfigurationRequest(v *types.DisassociateConfigurationRequest) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DisassociateConfigurationRequest"}
+ if v.ScanConfigurationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ScanConfigurationArn"))
+ }
+ if v.Resource == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Resource"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateDisassociateConfigurationRequestList(v []types.DisassociateConfigurationRequest) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DisassociateConfigurationRequestList"}
+ for i := range v {
+ if err := validateDisassociateConfigurationRequest(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateEc2Configuration(v *types.Ec2Configuration) error {
if v == nil {
return nil
@@ -2176,6 +2682,16 @@ func validateFilterCriteria(v *types.FilterCriteria) error {
invalidParams.AddNested("CodeVulnerabilityFilePath", err.(smithy.InvalidParamsError))
}
}
+ if v.CodeRepositoryProjectName != nil {
+ if err := validateStringFilterList(v.CodeRepositoryProjectName); err != nil {
+ invalidParams.AddNested("CodeRepositoryProjectName", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.CodeRepositoryProviderType != nil {
+ if err := validateStringFilterList(v.CodeRepositoryProviderType); err != nil {
+ invalidParams.AddNested("CodeRepositoryProviderType", err.(smithy.InvalidParamsError))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
} else {
@@ -2970,6 +3486,63 @@ func validateTitleFilterList(v []types.CisStringFilter) error {
}
}
+func validateUpdateGitHubIntegrationDetail(v *types.UpdateGitHubIntegrationDetail) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateGitHubIntegrationDetail"}
+ if v.Code == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Code"))
+ }
+ if v.InstallationId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("InstallationId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateUpdateGitLabSelfManagedIntegrationDetail(v *types.UpdateGitLabSelfManagedIntegrationDetail) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateGitLabSelfManagedIntegrationDetail"}
+ if v.AuthCode == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AuthCode"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateUpdateIntegrationDetails(v types.UpdateIntegrationDetails) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateIntegrationDetails"}
+ switch uv := v.(type) {
+ case *types.UpdateIntegrationDetailsMemberGithub:
+ if err := validateUpdateGitHubIntegrationDetail(&uv.Value); err != nil {
+ invalidParams.AddNested("[github]", err.(smithy.InvalidParamsError))
+ }
+
+ case *types.UpdateIntegrationDetailsMemberGitlabSelfManaged:
+ if err := validateUpdateGitLabSelfManagedIntegrationDetail(&uv.Value); err != nil {
+ invalidParams.AddNested("[gitlabSelfManaged]", err.(smithy.InvalidParamsError))
+ }
+
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateWeeklySchedule(v *types.WeeklySchedule) error {
if v == nil {
return nil
@@ -3007,6 +3580,44 @@ func validateOpAssociateMemberInput(v *AssociateMemberInput) error {
}
}
+func validateOpBatchAssociateCodeSecurityScanConfigurationInput(v *BatchAssociateCodeSecurityScanConfigurationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "BatchAssociateCodeSecurityScanConfigurationInput"}
+ if v.AssociateConfigurationRequests == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AssociateConfigurationRequests"))
+ } else if v.AssociateConfigurationRequests != nil {
+ if err := validateAssociateConfigurationRequestList(v.AssociateConfigurationRequests); err != nil {
+ invalidParams.AddNested("AssociateConfigurationRequests", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpBatchDisassociateCodeSecurityScanConfigurationInput(v *BatchDisassociateCodeSecurityScanConfigurationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "BatchDisassociateCodeSecurityScanConfigurationInput"}
+ if v.DisassociateConfigurationRequests == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("DisassociateConfigurationRequests"))
+ } else if v.DisassociateConfigurationRequests != nil {
+ if err := validateDisassociateConfigurationRequestList(v.DisassociateConfigurationRequests); err != nil {
+ invalidParams.AddNested("DisassociateConfigurationRequests", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpBatchGetCodeSnippetInput(v *BatchGetCodeSnippetInput) error {
if v == nil {
return nil
@@ -3133,6 +3744,54 @@ func validateOpCreateCisScanConfigurationInput(v *CreateCisScanConfigurationInpu
}
}
+func validateOpCreateCodeSecurityIntegrationInput(v *CreateCodeSecurityIntegrationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateCodeSecurityIntegrationInput"}
+ if v.Name == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Name"))
+ }
+ if len(v.Type) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("Type"))
+ }
+ if v.Details != nil {
+ if err := validateCreateIntegrationDetail(v.Details); err != nil {
+ invalidParams.AddNested("Details", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpCreateCodeSecurityScanConfigurationInput(v *CreateCodeSecurityScanConfigurationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateCodeSecurityScanConfigurationInput"}
+ if v.Name == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Name"))
+ }
+ if len(v.Level) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("Level"))
+ }
+ if v.Configuration == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Configuration"))
+ } else if v.Configuration != nil {
+ if err := validateCodeSecurityScanConfiguration(v.Configuration); err != nil {
+ invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpCreateFilterInput(v *CreateFilterInput) error {
if v == nil {
return nil
@@ -3227,6 +3886,36 @@ func validateOpDeleteCisScanConfigurationInput(v *DeleteCisScanConfigurationInpu
}
}
+func validateOpDeleteCodeSecurityIntegrationInput(v *DeleteCodeSecurityIntegrationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DeleteCodeSecurityIntegrationInput"}
+ if v.IntegrationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("IntegrationArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpDeleteCodeSecurityScanConfigurationInput(v *DeleteCodeSecurityScanConfigurationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DeleteCodeSecurityScanConfigurationInput"}
+ if v.ScanConfigurationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ScanConfigurationArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpDeleteFilterInput(v *DeleteFilterInput) error {
if v == nil {
return nil
@@ -3362,6 +4051,54 @@ func validateOpGetClustersForImageInput(v *GetClustersForImageInput) error {
}
}
+func validateOpGetCodeSecurityIntegrationInput(v *GetCodeSecurityIntegrationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetCodeSecurityIntegrationInput"}
+ if v.IntegrationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("IntegrationArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpGetCodeSecurityScanConfigurationInput(v *GetCodeSecurityScanConfigurationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetCodeSecurityScanConfigurationInput"}
+ if v.ScanConfigurationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ScanConfigurationArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpGetCodeSecurityScanInput(v *GetCodeSecurityScanInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetCodeSecurityScanInput"}
+ if v.Resource == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Resource"))
+ }
+ if v.ScanId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ScanId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpGetEncryptionKeyInput(v *GetEncryptionKeyInput) error {
if v == nil {
return nil
@@ -3484,6 +4221,21 @@ func validateOpListCisScansInput(v *ListCisScansInput) error {
}
}
+func validateOpListCodeSecurityScanConfigurationAssociationsInput(v *ListCodeSecurityScanConfigurationAssociationsInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ListCodeSecurityScanConfigurationAssociationsInput"}
+ if v.ScanConfigurationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ScanConfigurationArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpListCoverageInput(v *ListCoverageInput) error {
if v == nil {
return nil
@@ -3682,6 +4434,21 @@ func validateOpStartCisSessionInput(v *StartCisSessionInput) error {
}
}
+func validateOpStartCodeSecurityScanInput(v *StartCodeSecurityScanInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "StartCodeSecurityScanInput"}
+ if v.Resource == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Resource"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpStopCisSessionInput(v *StopCisSessionInput) error {
if v == nil {
return nil
@@ -3763,6 +4530,50 @@ func validateOpUpdateCisScanConfigurationInput(v *UpdateCisScanConfigurationInpu
}
}
+func validateOpUpdateCodeSecurityIntegrationInput(v *UpdateCodeSecurityIntegrationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateCodeSecurityIntegrationInput"}
+ if v.IntegrationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("IntegrationArn"))
+ }
+ if v.Details == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Details"))
+ } else if v.Details != nil {
+ if err := validateUpdateIntegrationDetails(v.Details); err != nil {
+ invalidParams.AddNested("Details", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpUpdateCodeSecurityScanConfigurationInput(v *UpdateCodeSecurityScanConfigurationInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateCodeSecurityScanConfigurationInput"}
+ if v.ScanConfigurationArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ScanConfigurationArn"))
+ }
+ if v.Configuration == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Configuration"))
+ } else if v.Configuration != nil {
+ if err := validateCodeSecurityScanConfiguration(v.Configuration); err != nil {
+ invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpUpdateConfigurationInput(v *UpdateConfigurationInput) error {
if v == nil {
return nil
diff --git a/service/inspectorscan/CHANGELOG.md b/service/inspectorscan/CHANGELOG.md
index 257abeb8b47..3d0f130f18f 100644
--- a/service/inspectorscan/CHANGELOG.md
+++ b/service/inspectorscan/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.8.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.8.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/inspectorscan/go.mod b/service/inspectorscan/go.mod
index 440e9a9f357..3c7c9afb89b 100644
--- a/service/inspectorscan/go.mod
+++ b/service/inspectorscan/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspectorscan
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/inspectorscan/go.sum b/service/inspectorscan/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/inspectorscan/go.sum
+++ b/service/inspectorscan/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/inspectorscan/go_module_metadata.go b/service/inspectorscan/go_module_metadata.go
index 868024d8ead..cdc4648ef21 100644
--- a/service/inspectorscan/go_module_metadata.go
+++ b/service/inspectorscan/go_module_metadata.go
@@ -3,4 +3,4 @@
package inspectorscan
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.8.3"
+const goModuleVersion = "1.8.4"
diff --git a/service/internal/accept-encoding/CHANGELOG.md b/service/internal/accept-encoding/CHANGELOG.md
index c81265a25df..899b3db39f1 100644
--- a/service/internal/accept-encoding/CHANGELOG.md
+++ b/service/internal/accept-encoding/CHANGELOG.md
@@ -1,3 +1,7 @@
+# v1.12.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+
# v1.12.3 (2025-02-18)
* **Bug Fix**: Bump go version to 1.22
diff --git a/service/internal/accept-encoding/go.mod b/service/internal/accept-encoding/go.mod
index fe4d9ff55d7..c1a47438714 100644
--- a/service/internal/accept-encoding/go.mod
+++ b/service/internal/accept-encoding/go.mod
@@ -2,4 +2,4 @@ module github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding
go 1.22
-require github.com/aws/smithy-go v1.22.2
+require github.com/aws/smithy-go v1.22.4
diff --git a/service/internal/accept-encoding/go.sum b/service/internal/accept-encoding/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/internal/accept-encoding/go.sum
+++ b/service/internal/accept-encoding/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/internal/accept-encoding/go_module_metadata.go b/service/internal/accept-encoding/go_module_metadata.go
index d83e533effd..c20427da9e9 100644
--- a/service/internal/accept-encoding/go_module_metadata.go
+++ b/service/internal/accept-encoding/go_module_metadata.go
@@ -3,4 +3,4 @@
package acceptencoding
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.12.3"
+const goModuleVersion = "1.12.4"
diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod
index b6e5b5f3dd7..434dfb39e12 100644
--- a/service/internal/benchmark/go.mod
+++ b/service/internal/benchmark/go.mod
@@ -4,24 +4,24 @@ go 1.22
require (
github.com/aws/aws-sdk-go v1.44.28
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.3
- github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.25.3
- github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2
- github.com/aws/aws-sdk-go-v2/service/schemas v1.29.3
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.4
+ github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.25.4
+ github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3
+ github.com/aws/aws-sdk-go-v2/service/schemas v1.29.4
+ github.com/aws/smithy-go v1.22.4
)
require (
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16 // indirect
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
)
diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum
index 79d0d311b8d..f14bf0b8458 100644
--- a/service/internal/benchmark/go.sum
+++ b/service/internal/benchmark/go.sum
@@ -1,7 +1,7 @@
github.com/aws/aws-sdk-go v1.44.28 h1:h/OAqEqY18wq//v6h4GNPMmCkxuzSDrWuGyrvSiRqf4=
github.com/aws/aws-sdk-go v1.44.28/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
diff --git a/service/internal/checksum/CHANGELOG.md b/service/internal/checksum/CHANGELOG.md
index c8109a2e6a2..92e4b1d96f2 100644
--- a/service/internal/checksum/CHANGELOG.md
+++ b/service/internal/checksum/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.7.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.7.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/internal/checksum/go.mod b/service/internal/checksum/go.mod
index 9d2705cb6f8..fd828ab0605 100644
--- a/service/internal/checksum/go.mod
+++ b/service/internal/checksum/go.mod
@@ -3,9 +3,9 @@ module github.com/aws/aws-sdk-go-v2/service/internal/checksum
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/service/internal/checksum/go.sum b/service/internal/checksum/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/internal/checksum/go.sum
+++ b/service/internal/checksum/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/internal/checksum/go_module_metadata.go b/service/internal/checksum/go_module_metadata.go
index 7218272d6ca..0992068469c 100644
--- a/service/internal/checksum/go_module_metadata.go
+++ b/service/internal/checksum/go_module_metadata.go
@@ -3,4 +3,4 @@
package checksum
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.7.3"
+const goModuleVersion = "1.7.4"
diff --git a/service/internal/endpoint-discovery/CHANGELOG.md b/service/internal/endpoint-discovery/CHANGELOG.md
index 8699a469b8d..a78368e7679 100644
--- a/service/internal/endpoint-discovery/CHANGELOG.md
+++ b/service/internal/endpoint-discovery/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.10.17 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.10.16 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/internal/endpoint-discovery/go.mod b/service/internal/endpoint-discovery/go.mod
index e0400b8e9bf..3da2358c2dc 100644
--- a/service/internal/endpoint-discovery/go.mod
+++ b/service/internal/endpoint-discovery/go.mod
@@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/service/internal/endpoint-discovery/go.sum b/service/internal/endpoint-discovery/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/internal/endpoint-discovery/go.sum
+++ b/service/internal/endpoint-discovery/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/internal/endpoint-discovery/go_module_metadata.go b/service/internal/endpoint-discovery/go_module_metadata.go
index 770b04e6975..9f8e2b64abc 100644
--- a/service/internal/endpoint-discovery/go_module_metadata.go
+++ b/service/internal/endpoint-discovery/go_module_metadata.go
@@ -3,4 +3,4 @@
package endpointdiscovery
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.10.16"
+const goModuleVersion = "1.10.17"
diff --git a/service/internal/eventstreamtesting/CHANGELOG.md b/service/internal/eventstreamtesting/CHANGELOG.md
index 3fbfae1aee0..d543d26369b 100644
--- a/service/internal/eventstreamtesting/CHANGELOG.md
+++ b/service/internal/eventstreamtesting/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.32 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.31 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/internal/eventstreamtesting/go.mod b/service/internal/eventstreamtesting/go.mod
index de199829d7b..979f51408cb 100644
--- a/service/internal/eventstreamtesting/go.mod
+++ b/service/internal/eventstreamtesting/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70
)
-require github.com/aws/smithy-go v1.22.2 // indirect
+require github.com/aws/smithy-go v1.22.4 // indirect
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/service/internal/eventstreamtesting/go.sum b/service/internal/eventstreamtesting/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/internal/eventstreamtesting/go.sum
+++ b/service/internal/eventstreamtesting/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/internal/eventstreamtesting/go_module_metadata.go b/service/internal/eventstreamtesting/go_module_metadata.go
index a724801dabc..2ed859b31eb 100644
--- a/service/internal/eventstreamtesting/go_module_metadata.go
+++ b/service/internal/eventstreamtesting/go_module_metadata.go
@@ -3,4 +3,4 @@
package eventstreamtesting
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.31"
+const goModuleVersion = "1.5.32"
diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod
index e4aebe0d779..e69a871c53d 100644
--- a/service/internal/integrationtest/go.mod
+++ b/service/internal/integrationtest/go.mod
@@ -1,102 +1,102 @@
module github.com/aws/aws-sdk-go-v2/service/internal/integrationtest
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.79
- github.com/aws/aws-sdk-go-v2/service/acm v1.32.2
- github.com/aws/aws-sdk-go-v2/service/apigateway v1.31.2
- github.com/aws/aws-sdk-go-v2/service/applicationautoscaling v1.36.3
- github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice v1.30.3
- github.com/aws/aws-sdk-go-v2/service/appstream v1.45.4
- github.com/aws/aws-sdk-go-v2/service/athena v1.51.1
- github.com/aws/aws-sdk-go-v2/service/batch v1.52.5
- github.com/aws/aws-sdk-go-v2/service/cloudformation v1.60.2
- github.com/aws/aws-sdk-go-v2/service/cloudfront v1.46.2
- github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 v1.30.3
- github.com/aws/aws-sdk-go-v2/service/cloudtrail v1.49.2
- github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.45.2
- github.com/aws/aws-sdk-go-v2/service/codebuild v1.61.1
- github.com/aws/aws-sdk-go-v2/service/codecommit v1.28.3
- github.com/aws/aws-sdk-go-v2/service/codedeploy v1.30.5
- github.com/aws/aws-sdk-go-v2/service/codepipeline v1.42.1
- github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.53.1
- github.com/aws/aws-sdk-go-v2/service/configservice v1.52.5
- github.com/aws/aws-sdk-go-v2/service/costandusagereportservice v1.29.3
- github.com/aws/aws-sdk-go-v2/service/databasemigrationservice v1.52.2
- github.com/aws/aws-sdk-go-v2/service/devicefarm v1.31.1
- github.com/aws/aws-sdk-go-v2/service/directconnect v1.32.4
- github.com/aws/aws-sdk-go-v2/service/directoryservice v1.31.6
- github.com/aws/aws-sdk-go-v2/service/docdb v1.41.5
- github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.3
- github.com/aws/aws-sdk-go-v2/service/ec2 v1.225.1
- github.com/aws/aws-sdk-go-v2/service/ecr v1.44.2
- github.com/aws/aws-sdk-go-v2/service/ecs v1.57.4
- github.com/aws/aws-sdk-go-v2/service/efs v1.36.1
- github.com/aws/aws-sdk-go-v2/service/elasticache v1.46.2
- github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk v1.29.3
- github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.29.5
- github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.45.4
- github.com/aws/aws-sdk-go-v2/service/elasticsearchservice v1.33.5
- github.com/aws/aws-sdk-go-v2/service/emr v1.49.2
- github.com/aws/aws-sdk-go-v2/service/eventbridge v1.39.2
- github.com/aws/aws-sdk-go-v2/service/firehose v1.37.6
- github.com/aws/aws-sdk-go-v2/service/gamelift v1.41.2
- github.com/aws/aws-sdk-go-v2/service/glacier v1.27.4
- github.com/aws/aws-sdk-go-v2/service/glue v1.113.1
- github.com/aws/aws-sdk-go-v2/service/health v1.30.3
- github.com/aws/aws-sdk-go-v2/service/iam v1.42.1
- github.com/aws/aws-sdk-go-v2/service/iot v1.64.3
- github.com/aws/aws-sdk-go-v2/service/kinesis v1.35.2
- github.com/aws/aws-sdk-go-v2/service/kms v1.40.1
- github.com/aws/aws-sdk-go-v2/service/lambda v1.71.4
- github.com/aws/aws-sdk-go-v2/service/lightsail v1.43.3
- github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics v1.25.3
- github.com/aws/aws-sdk-go-v2/service/neptune v1.37.2
- github.com/aws/aws-sdk-go-v2/service/pinpointemail v1.24.3
- github.com/aws/aws-sdk-go-v2/service/polly v1.48.3
- github.com/aws/aws-sdk-go-v2/service/rds v1.97.1
- github.com/aws/aws-sdk-go-v2/service/redshift v1.54.5
- github.com/aws/aws-sdk-go-v2/service/rekognition v1.47.1
- github.com/aws/aws-sdk-go-v2/service/route53 v1.52.1
- github.com/aws/aws-sdk-go-v2/service/route53domains v1.29.3
- github.com/aws/aws-sdk-go-v2/service/route53resolver v1.35.5
- github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2
- github.com/aws/aws-sdk-go-v2/service/s3control v1.58.2
- github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.35.6
- github.com/aws/aws-sdk-go-v2/service/servicecatalog v1.34.1
- github.com/aws/aws-sdk-go-v2/service/ses v1.30.3
- github.com/aws/aws-sdk-go-v2/service/sfn v1.35.6
- github.com/aws/aws-sdk-go-v2/service/shield v1.30.3
- github.com/aws/aws-sdk-go-v2/service/snowball v1.31.4
- github.com/aws/aws-sdk-go-v2/service/sns v1.34.6
- github.com/aws/aws-sdk-go-v2/service/sqs v1.38.7
- github.com/aws/aws-sdk-go-v2/service/ssm v1.59.2
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21
- github.com/aws/aws-sdk-go-v2/service/support v1.27.3
- github.com/aws/aws-sdk-go-v2/service/timestreamwrite v1.31.1
- github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.26.1
- github.com/aws/aws-sdk-go-v2/service/waf v1.26.3
- github.com/aws/aws-sdk-go-v2/service/wafregional v1.26.3
- github.com/aws/aws-sdk-go-v2/service/workspaces v1.57.1
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.80
+ github.com/aws/aws-sdk-go-v2/service/acm v1.33.0
+ github.com/aws/aws-sdk-go-v2/service/apigateway v1.31.4
+ github.com/aws/aws-sdk-go-v2/service/applicationautoscaling v1.36.4
+ github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice v1.30.4
+ github.com/aws/aws-sdk-go-v2/service/appstream v1.45.5
+ github.com/aws/aws-sdk-go-v2/service/athena v1.51.2
+ github.com/aws/aws-sdk-go-v2/service/batch v1.52.6
+ github.com/aws/aws-sdk-go-v2/service/cloudformation v1.60.3
+ github.com/aws/aws-sdk-go-v2/service/cloudfront v1.46.3
+ github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 v1.30.4
+ github.com/aws/aws-sdk-go-v2/service/cloudtrail v1.49.3
+ github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.45.3
+ github.com/aws/aws-sdk-go-v2/service/codebuild v1.61.2
+ github.com/aws/aws-sdk-go-v2/service/codecommit v1.28.4
+ github.com/aws/aws-sdk-go-v2/service/codedeploy v1.30.6
+ github.com/aws/aws-sdk-go-v2/service/codepipeline v1.42.2
+ github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.53.2
+ github.com/aws/aws-sdk-go-v2/service/configservice v1.52.6
+ github.com/aws/aws-sdk-go-v2/service/costandusagereportservice v1.29.4
+ github.com/aws/aws-sdk-go-v2/service/databasemigrationservice v1.53.0
+ github.com/aws/aws-sdk-go-v2/service/devicefarm v1.31.2
+ github.com/aws/aws-sdk-go-v2/service/directconnect v1.32.5
+ github.com/aws/aws-sdk-go-v2/service/directoryservice v1.31.7
+ github.com/aws/aws-sdk-go-v2/service/docdb v1.41.6
+ github.com/aws/aws-sdk-go-v2/service/dynamodb v1.43.4
+ github.com/aws/aws-sdk-go-v2/service/ec2 v1.225.2
+ github.com/aws/aws-sdk-go-v2/service/ecr v1.45.1
+ github.com/aws/aws-sdk-go-v2/service/ecs v1.57.6
+ github.com/aws/aws-sdk-go-v2/service/efs v1.36.2
+ github.com/aws/aws-sdk-go-v2/service/elasticache v1.46.3
+ github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk v1.29.4
+ github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.29.6
+ github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.45.5
+ github.com/aws/aws-sdk-go-v2/service/elasticsearchservice v1.33.6
+ github.com/aws/aws-sdk-go-v2/service/emr v1.49.3
+ github.com/aws/aws-sdk-go-v2/service/eventbridge v1.39.3
+ github.com/aws/aws-sdk-go-v2/service/firehose v1.37.7
+ github.com/aws/aws-sdk-go-v2/service/gamelift v1.41.3
+ github.com/aws/aws-sdk-go-v2/service/glacier v1.27.5
+ github.com/aws/aws-sdk-go-v2/service/glue v1.113.3
+ github.com/aws/aws-sdk-go-v2/service/health v1.30.4
+ github.com/aws/aws-sdk-go-v2/service/iam v1.42.2
+ github.com/aws/aws-sdk-go-v2/service/iot v1.64.4
+ github.com/aws/aws-sdk-go-v2/service/kinesis v1.35.3
+ github.com/aws/aws-sdk-go-v2/service/kms v1.41.1
+ github.com/aws/aws-sdk-go-v2/service/lambda v1.71.5
+ github.com/aws/aws-sdk-go-v2/service/lightsail v1.43.4
+ github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics v1.25.4
+ github.com/aws/aws-sdk-go-v2/service/neptune v1.37.3
+ github.com/aws/aws-sdk-go-v2/service/pinpointemail v1.24.4
+ github.com/aws/aws-sdk-go-v2/service/polly v1.48.4
+ github.com/aws/aws-sdk-go-v2/service/rds v1.97.3
+ github.com/aws/aws-sdk-go-v2/service/redshift v1.54.6
+ github.com/aws/aws-sdk-go-v2/service/rekognition v1.47.2
+ github.com/aws/aws-sdk-go-v2/service/route53 v1.52.2
+ github.com/aws/aws-sdk-go-v2/service/route53domains v1.29.4
+ github.com/aws/aws-sdk-go-v2/service/route53resolver v1.35.6
+ github.com/aws/aws-sdk-go-v2/service/s3 v1.80.3
+ github.com/aws/aws-sdk-go-v2/service/s3control v1.58.3
+ github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.35.7
+ github.com/aws/aws-sdk-go-v2/service/servicecatalog v1.34.2
+ github.com/aws/aws-sdk-go-v2/service/ses v1.30.4
+ github.com/aws/aws-sdk-go-v2/service/sfn v1.35.7
+ github.com/aws/aws-sdk-go-v2/service/shield v1.30.4
+ github.com/aws/aws-sdk-go-v2/service/snowball v1.31.5
+ github.com/aws/aws-sdk-go-v2/service/sns v1.34.7
+ github.com/aws/aws-sdk-go-v2/service/sqs v1.38.8
+ github.com/aws/aws-sdk-go-v2/service/ssm v1.59.3
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0
+ github.com/aws/aws-sdk-go-v2/service/support v1.27.4
+ github.com/aws/aws-sdk-go-v2/service/timestreamwrite v1.31.2
+ github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.26.2
+ github.com/aws/aws-sdk-go-v2/service/waf v1.26.4
+ github.com/aws/aws-sdk-go-v2/service/wafregional v1.26.4
+ github.com/aws/aws-sdk-go-v2/service/workspaces v1.57.2
+ github.com/aws/smithy-go v1.22.4
)
require (
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
)
go 1.22
diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/internal/integrationtest/go.sum
+++ b/service/internal/integrationtest/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/internal/presigned-url/CHANGELOG.md b/service/internal/presigned-url/CHANGELOG.md
index ec8f6ce5b0f..9bbbf0eb43f 100644
--- a/service/internal/presigned-url/CHANGELOG.md
+++ b/service/internal/presigned-url/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.12.17 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.12.16 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/internal/presigned-url/go.mod b/service/internal/presigned-url/go.mod
index 6717554db45..1ecfd296649 100644
--- a/service/internal/presigned-url/go.mod
+++ b/service/internal/presigned-url/go.mod
@@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/presigned-url
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/service/internal/presigned-url/go.sum b/service/internal/presigned-url/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/internal/presigned-url/go.sum
+++ b/service/internal/presigned-url/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/internal/presigned-url/go_module_metadata.go b/service/internal/presigned-url/go_module_metadata.go
index 03377a3d9b8..72de22c6895 100644
--- a/service/internal/presigned-url/go_module_metadata.go
+++ b/service/internal/presigned-url/go_module_metadata.go
@@ -3,4 +3,4 @@
package presignedurl
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.12.16"
+const goModuleVersion = "1.12.17"
diff --git a/service/internal/s3shared/CHANGELOG.md b/service/internal/s3shared/CHANGELOG.md
index 0dc16de7585..3258f4135b5 100644
--- a/service/internal/s3shared/CHANGELOG.md
+++ b/service/internal/s3shared/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.18.17 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.18.16 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/internal/s3shared/go.mod b/service/internal/s3shared/go.mod
index 2da48bcddae..1ce2b42f08c 100644
--- a/service/internal/s3shared/go.mod
+++ b/service/internal/s3shared/go.mod
@@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/s3shared
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../../
diff --git a/service/internal/s3shared/go.sum b/service/internal/s3shared/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/internal/s3shared/go.sum
+++ b/service/internal/s3shared/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/internal/s3shared/go_module_metadata.go b/service/internal/s3shared/go_module_metadata.go
index 5ea7530674f..4bd7619b20c 100644
--- a/service/internal/s3shared/go_module_metadata.go
+++ b/service/internal/s3shared/go_module_metadata.go
@@ -3,4 +3,4 @@
package s3shared
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.18.16"
+const goModuleVersion = "1.18.17"
diff --git a/service/internetmonitor/CHANGELOG.md b/service/internetmonitor/CHANGELOG.md
index 3e08034603f..f410608b5f5 100644
--- a/service/internetmonitor/CHANGELOG.md
+++ b/service/internetmonitor/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.21.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.21.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/internetmonitor/go.mod b/service/internetmonitor/go.mod
index 5eee578a9dd..0be85e1f905 100644
--- a/service/internetmonitor/go.mod
+++ b/service/internetmonitor/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/internetmonitor
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/internetmonitor/go.sum b/service/internetmonitor/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/internetmonitor/go.sum
+++ b/service/internetmonitor/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/internetmonitor/go_module_metadata.go b/service/internetmonitor/go_module_metadata.go
index d56856c6943..18b08c4390d 100644
--- a/service/internetmonitor/go_module_metadata.go
+++ b/service/internetmonitor/go_module_metadata.go
@@ -3,4 +3,4 @@
package internetmonitor
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.21.4"
+const goModuleVersion = "1.21.5"
diff --git a/service/invoicing/CHANGELOG.md b/service/invoicing/CHANGELOG.md
index 20d75822d41..3a6d6db61b6 100644
--- a/service/invoicing/CHANGELOG.md
+++ b/service/invoicing/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.2.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.2.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/invoicing/go.mod b/service/invoicing/go.mod
index fd4904f007b..e67f01d76c2 100644
--- a/service/invoicing/go.mod
+++ b/service/invoicing/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/invoicing
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/invoicing/go.sum b/service/invoicing/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/invoicing/go.sum
+++ b/service/invoicing/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/invoicing/go_module_metadata.go b/service/invoicing/go_module_metadata.go
index dbdfa262ca6..29a14cb9d7c 100644
--- a/service/invoicing/go_module_metadata.go
+++ b/service/invoicing/go_module_metadata.go
@@ -3,4 +3,4 @@
package invoicing
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.1"
+const goModuleVersion = "1.2.2"
diff --git a/service/iot/CHANGELOG.md b/service/iot/CHANGELOG.md
index 243b1bb5998..64434ca1970 100644
--- a/service/iot/CHANGELOG.md
+++ b/service/iot/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.64.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.64.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iot/go.mod b/service/iot/go.mod
index 8caff601336..112ab067697 100644
--- a/service/iot/go.mod
+++ b/service/iot/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iot
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iot/go.sum b/service/iot/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iot/go.sum
+++ b/service/iot/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iot/go_module_metadata.go b/service/iot/go_module_metadata.go
index a5df18173da..68c5570bf3f 100644
--- a/service/iot/go_module_metadata.go
+++ b/service/iot/go_module_metadata.go
@@ -3,4 +3,4 @@
package iot
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.64.3"
+const goModuleVersion = "1.64.4"
diff --git a/service/iotanalytics/CHANGELOG.md b/service/iotanalytics/CHANGELOG.md
index f3bbe3926bb..47924676f51 100644
--- a/service/iotanalytics/CHANGELOG.md
+++ b/service/iotanalytics/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod
index 188f1d23cee..0be6b7bbef2 100644
--- a/service/iotanalytics/go.mod
+++ b/service/iotanalytics/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotanalytics
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotanalytics/go.sum
+++ b/service/iotanalytics/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotanalytics/go_module_metadata.go b/service/iotanalytics/go_module_metadata.go
index 693dd393438..d88a3e284b4 100644
--- a/service/iotanalytics/go_module_metadata.go
+++ b/service/iotanalytics/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotanalytics
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/iotdataplane/CHANGELOG.md b/service/iotdataplane/CHANGELOG.md
index 53d0188a21c..51c34688690 100644
--- a/service/iotdataplane/CHANGELOG.md
+++ b/service/iotdataplane/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod
index ff71eecee34..6b45d2d75d4 100644
--- a/service/iotdataplane/go.mod
+++ b/service/iotdataplane/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotdataplane
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotdataplane/go.sum
+++ b/service/iotdataplane/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotdataplane/go_module_metadata.go b/service/iotdataplane/go_module_metadata.go
index 7b47283cdcb..1e438bddf29 100644
--- a/service/iotdataplane/go_module_metadata.go
+++ b/service/iotdataplane/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotdataplane
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/iotdeviceadvisor/CHANGELOG.md b/service/iotdeviceadvisor/CHANGELOG.md
index da474737d76..2f9182239e6 100644
--- a/service/iotdeviceadvisor/CHANGELOG.md
+++ b/service/iotdeviceadvisor/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.32.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.32.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotdeviceadvisor/go.mod b/service/iotdeviceadvisor/go.mod
index cb8d7035360..715f0105053 100644
--- a/service/iotdeviceadvisor/go.mod
+++ b/service/iotdeviceadvisor/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotdeviceadvisor
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotdeviceadvisor/go.sum b/service/iotdeviceadvisor/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotdeviceadvisor/go.sum
+++ b/service/iotdeviceadvisor/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotdeviceadvisor/go_module_metadata.go b/service/iotdeviceadvisor/go_module_metadata.go
index aacc529eee6..0488cd9c819 100644
--- a/service/iotdeviceadvisor/go_module_metadata.go
+++ b/service/iotdeviceadvisor/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotdeviceadvisor
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.32.3"
+const goModuleVersion = "1.32.4"
diff --git a/service/iotevents/CHANGELOG.md b/service/iotevents/CHANGELOG.md
index 8f4b126cee3..d331db6ca5f 100644
--- a/service/iotevents/CHANGELOG.md
+++ b/service/iotevents/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod
index 0dc500dc49f..cdaad10db55 100644
--- a/service/iotevents/go.mod
+++ b/service/iotevents/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotevents
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotevents/go.sum
+++ b/service/iotevents/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotevents/go_module_metadata.go b/service/iotevents/go_module_metadata.go
index fa74ce93145..0bed8262a44 100644
--- a/service/iotevents/go_module_metadata.go
+++ b/service/iotevents/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotevents
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/ioteventsdata/CHANGELOG.md b/service/ioteventsdata/CHANGELOG.md
index f8715248a0d..14dcd25be58 100644
--- a/service/ioteventsdata/CHANGELOG.md
+++ b/service/ioteventsdata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod
index cb3c897eb45..0bd80468d57 100644
--- a/service/ioteventsdata/go.mod
+++ b/service/ioteventsdata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ioteventsdata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ioteventsdata/go.sum
+++ b/service/ioteventsdata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ioteventsdata/go_module_metadata.go b/service/ioteventsdata/go_module_metadata.go
index e8a8b7fd822..ff38345e914 100644
--- a/service/ioteventsdata/go_module_metadata.go
+++ b/service/ioteventsdata/go_module_metadata.go
@@ -3,4 +3,4 @@
package ioteventsdata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/iotfleethub/CHANGELOG.md b/service/iotfleethub/CHANGELOG.md
index 14a86433cf6..d796d1e6963 100644
--- a/service/iotfleethub/CHANGELOG.md
+++ b/service/iotfleethub/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotfleethub/go.mod b/service/iotfleethub/go.mod
index ade9b71ad46..509ea60e8f6 100644
--- a/service/iotfleethub/go.mod
+++ b/service/iotfleethub/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotfleethub
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotfleethub/go.sum b/service/iotfleethub/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotfleethub/go.sum
+++ b/service/iotfleethub/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotfleethub/go_module_metadata.go b/service/iotfleethub/go_module_metadata.go
index 78f4de622ad..42d03fa4321 100644
--- a/service/iotfleethub/go_module_metadata.go
+++ b/service/iotfleethub/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotfleethub
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/iotfleetwise/CHANGELOG.md b/service/iotfleetwise/CHANGELOG.md
index ec5c159e31e..cfcd12315a3 100644
--- a/service/iotfleetwise/CHANGELOG.md
+++ b/service/iotfleetwise/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.27.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.27.0 (2025-06-12)
+
+* **Feature**: Add new status READY_FOR_CHECKIN used for vehicle synchronisation
+
# v1.26.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotfleetwise/api_op_UpdateCampaign.go b/service/iotfleetwise/api_op_UpdateCampaign.go
index 74f8de3fcef..c6c0fc6b75d 100644
--- a/service/iotfleetwise/api_op_UpdateCampaign.go
+++ b/service/iotfleetwise/api_op_UpdateCampaign.go
@@ -73,10 +73,9 @@ type UpdateCampaignOutput struct {
// - CREATING - Amazon Web Services IoT FleetWise is processing your request to
// create the campaign.
//
- // - WAITING_FOR_APPROVAL - After a campaign is created, it enters the
- // WAITING_FOR_APPROVAL state. To allow Amazon Web Services IoT FleetWise to
- // deploy the campaign to the target vehicle or fleet, use the API operation to
- // approve the campaign.
+ // - WAITING_FOR_APPROVAL - After you create a campaign, it enters this state.
+ // Use the API operation to approve the campaign for deployment to the target
+ // vehicle or fleet.
//
// - RUNNING - The campaign is active.
//
diff --git a/service/iotfleetwise/go.mod b/service/iotfleetwise/go.mod
index 504841442e7..ddbd65ac2ed 100644
--- a/service/iotfleetwise/go.mod
+++ b/service/iotfleetwise/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotfleetwise
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotfleetwise/go.sum b/service/iotfleetwise/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotfleetwise/go.sum
+++ b/service/iotfleetwise/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotfleetwise/go_module_metadata.go b/service/iotfleetwise/go_module_metadata.go
index 7fc9d1fc3bc..d0dcd4f9a87 100644
--- a/service/iotfleetwise/go_module_metadata.go
+++ b/service/iotfleetwise/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotfleetwise
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.1"
+const goModuleVersion = "1.27.1"
diff --git a/service/iotfleetwise/types/enums.go b/service/iotfleetwise/types/enums.go
index 019d076d23b..325b3b56c2d 100644
--- a/service/iotfleetwise/types/enums.go
+++ b/service/iotfleetwise/types/enums.go
@@ -777,11 +777,12 @@ type VehicleState string
// Enum values for VehicleState
const (
- VehicleStateCreated VehicleState = "CREATED"
- VehicleStateReady VehicleState = "READY"
- VehicleStateHealthy VehicleState = "HEALTHY"
- VehicleStateSuspended VehicleState = "SUSPENDED"
- VehicleStateDeleting VehicleState = "DELETING"
+ VehicleStateCreated VehicleState = "CREATED"
+ VehicleStateReady VehicleState = "READY"
+ VehicleStateHealthy VehicleState = "HEALTHY"
+ VehicleStateSuspended VehicleState = "SUSPENDED"
+ VehicleStateDeleting VehicleState = "DELETING"
+ VehicleStateReadyForCheckin VehicleState = "READY_FOR_CHECKIN"
)
// Values returns all known values for VehicleState. Note that this can be
@@ -795,5 +796,6 @@ func (VehicleState) Values() []VehicleState {
"HEALTHY",
"SUSPENDED",
"DELETING",
+ "READY_FOR_CHECKIN",
}
}
diff --git a/service/iotfleetwise/types/types.go b/service/iotfleetwise/types/types.go
index 1d902ee13db..3b84b80189e 100644
--- a/service/iotfleetwise/types/types.go
+++ b/service/iotfleetwise/types/types.go
@@ -1962,17 +1962,19 @@ type VehicleStatus struct {
// The status of a campaign, which can be one of the following:
//
- // - CREATED - The campaign has been created successfully but has not been
- // approved.
+ // - CREATED - The campaign exists but is not yet approved.
//
- // - READY - The campaign has been approved but has not been deployed to the
- // vehicle.
+ // - READY - The campaign is approved but has not been deployed to the vehicle.
+ // Data has not arrived at the vehicle yet.
//
- // - HEALTHY - The campaign has been deployed to the vehicle.
+ // - HEALTHY - The campaign is deployed to the vehicle.
//
- // - SUSPENDED - The campaign has been suspended and data collection is paused.
+ // - SUSPENDED - The campaign is suspended and data collection is paused.
//
// - DELETING - The campaign is being removed from the vehicle.
+ //
+ // - READY_FOR_CHECKIN - The campaign is approved and waiting for vehicle
+ // check-in before deployment.
Status VehicleState
// The unique ID of the vehicle.
diff --git a/service/iotjobsdataplane/CHANGELOG.md b/service/iotjobsdataplane/CHANGELOG.md
index bf26f59869c..f1c3b790f05 100644
--- a/service/iotjobsdataplane/CHANGELOG.md
+++ b/service/iotjobsdataplane/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod
index 74b20220235..cabd2f5ab0e 100644
--- a/service/iotjobsdataplane/go.mod
+++ b/service/iotjobsdataplane/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotjobsdataplane
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotjobsdataplane/go.sum
+++ b/service/iotjobsdataplane/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotjobsdataplane/go_module_metadata.go b/service/iotjobsdataplane/go_module_metadata.go
index a15a5356dda..0ff30cf6a79 100644
--- a/service/iotjobsdataplane/go_module_metadata.go
+++ b/service/iotjobsdataplane/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotjobsdataplane
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/iotmanagedintegrations/CHANGELOG.md b/service/iotmanagedintegrations/CHANGELOG.md
index b73881caab0..9e70a039fc1 100644
--- a/service/iotmanagedintegrations/CHANGELOG.md
+++ b/service/iotmanagedintegrations/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.0.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.0.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotmanagedintegrations/go.mod b/service/iotmanagedintegrations/go.mod
index ece6617561c..5bf15621ab8 100644
--- a/service/iotmanagedintegrations/go.mod
+++ b/service/iotmanagedintegrations/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotmanagedintegrations
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotmanagedintegrations/go.sum b/service/iotmanagedintegrations/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotmanagedintegrations/go.sum
+++ b/service/iotmanagedintegrations/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotmanagedintegrations/go_module_metadata.go b/service/iotmanagedintegrations/go_module_metadata.go
index d6903ed851e..bfb5b44e90f 100644
--- a/service/iotmanagedintegrations/go_module_metadata.go
+++ b/service/iotmanagedintegrations/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotmanagedintegrations
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.0.2"
+const goModuleVersion = "1.0.3"
diff --git a/service/iotsecuretunneling/CHANGELOG.md b/service/iotsecuretunneling/CHANGELOG.md
index f01d73ec966..92e20b9a0ab 100644
--- a/service/iotsecuretunneling/CHANGELOG.md
+++ b/service/iotsecuretunneling/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod
index fbdb41d1455..5fe8762922f 100644
--- a/service/iotsecuretunneling/go.mod
+++ b/service/iotsecuretunneling/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotsecuretunneling
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotsecuretunneling/go.sum
+++ b/service/iotsecuretunneling/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotsecuretunneling/go_module_metadata.go b/service/iotsecuretunneling/go_module_metadata.go
index bf56dbb294d..1e06f0a5f23 100644
--- a/service/iotsecuretunneling/go_module_metadata.go
+++ b/service/iotsecuretunneling/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotsecuretunneling
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/iotsitewise/CHANGELOG.md b/service/iotsitewise/CHANGELOG.md
index a07f0acd50e..2227bcfcfd0 100644
--- a/service/iotsitewise/CHANGELOG.md
+++ b/service/iotsitewise/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.47.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.47.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod
index 623f2b89dfa..56394429510 100644
--- a/service/iotsitewise/go.mod
+++ b/service/iotsitewise/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/iotsitewise
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotsitewise/go.sum
+++ b/service/iotsitewise/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotsitewise/go_module_metadata.go b/service/iotsitewise/go_module_metadata.go
index bd703fee871..6b80121bdd5 100644
--- a/service/iotsitewise/go_module_metadata.go
+++ b/service/iotsitewise/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotsitewise
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.47.2"
+const goModuleVersion = "1.47.3"
diff --git a/service/iotthingsgraph/CHANGELOG.md b/service/iotthingsgraph/CHANGELOG.md
index ee42cb5b075..029c0432c82 100644
--- a/service/iotthingsgraph/CHANGELOG.md
+++ b/service/iotthingsgraph/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod
index fd507e66a6d..ad8b214676d 100644
--- a/service/iotthingsgraph/go.mod
+++ b/service/iotthingsgraph/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotthingsgraph
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotthingsgraph/go.sum
+++ b/service/iotthingsgraph/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotthingsgraph/go_module_metadata.go b/service/iotthingsgraph/go_module_metadata.go
index aef1a62e433..6ebe7c703ce 100644
--- a/service/iotthingsgraph/go_module_metadata.go
+++ b/service/iotthingsgraph/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotthingsgraph
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/iottwinmaker/CHANGELOG.md b/service/iottwinmaker/CHANGELOG.md
index 8fcb86e6340..3ce4f258a80 100644
--- a/service/iottwinmaker/CHANGELOG.md
+++ b/service/iottwinmaker/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iottwinmaker/go.mod b/service/iottwinmaker/go.mod
index 1d81fd032e2..61ef1eb78b9 100644
--- a/service/iottwinmaker/go.mod
+++ b/service/iottwinmaker/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iottwinmaker
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iottwinmaker/go.sum b/service/iottwinmaker/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iottwinmaker/go.sum
+++ b/service/iottwinmaker/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iottwinmaker/go_module_metadata.go b/service/iottwinmaker/go_module_metadata.go
index 02dc5f8e617..207f03acbe5 100644
--- a/service/iottwinmaker/go_module_metadata.go
+++ b/service/iottwinmaker/go_module_metadata.go
@@ -3,4 +3,4 @@
package iottwinmaker
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/iotwireless/CHANGELOG.md b/service/iotwireless/CHANGELOG.md
index 9580549ead3..77a07d7fb9f 100644
--- a/service/iotwireless/CHANGELOG.md
+++ b/service/iotwireless/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.47.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.47.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/iotwireless/go.mod b/service/iotwireless/go.mod
index 88cefa29c9e..b1a07ba888f 100644
--- a/service/iotwireless/go.mod
+++ b/service/iotwireless/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotwireless
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/iotwireless/go.sum b/service/iotwireless/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/iotwireless/go.sum
+++ b/service/iotwireless/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/iotwireless/go_module_metadata.go b/service/iotwireless/go_module_metadata.go
index dc18e3befdc..fdcc4644dbe 100644
--- a/service/iotwireless/go_module_metadata.go
+++ b/service/iotwireless/go_module_metadata.go
@@ -3,4 +3,4 @@
package iotwireless
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.47.2"
+const goModuleVersion = "1.47.3"
diff --git a/service/ivs/CHANGELOG.md b/service/ivs/CHANGELOG.md
index f537ee2f7a0..cd671862f87 100644
--- a/service/ivs/CHANGELOG.md
+++ b/service/ivs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.43.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.43.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ivs/go.mod b/service/ivs/go.mod
index f9f3d41d701..56ebdadfa72 100644
--- a/service/ivs/go.mod
+++ b/service/ivs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ivs/go.sum b/service/ivs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ivs/go.sum
+++ b/service/ivs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ivs/go_module_metadata.go b/service/ivs/go_module_metadata.go
index 4bb88585f95..bf794d340e5 100644
--- a/service/ivs/go_module_metadata.go
+++ b/service/ivs/go_module_metadata.go
@@ -3,4 +3,4 @@
package ivs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.43.3"
+const goModuleVersion = "1.43.4"
diff --git a/service/ivschat/CHANGELOG.md b/service/ivschat/CHANGELOG.md
index a02044f632e..aa1313ae1fa 100644
--- a/service/ivschat/CHANGELOG.md
+++ b/service/ivschat/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ivschat/go.mod b/service/ivschat/go.mod
index 2e510ad4afa..3e8226f76aa 100644
--- a/service/ivschat/go.mod
+++ b/service/ivschat/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivschat
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ivschat/go.sum b/service/ivschat/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ivschat/go.sum
+++ b/service/ivschat/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ivschat/go_module_metadata.go b/service/ivschat/go_module_metadata.go
index 8887d856e89..8c793cc9cfb 100644
--- a/service/ivschat/go_module_metadata.go
+++ b/service/ivschat/go_module_metadata.go
@@ -3,4 +3,4 @@
package ivschat
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.3"
+const goModuleVersion = "1.17.4"
diff --git a/service/ivsrealtime/CHANGELOG.md b/service/ivsrealtime/CHANGELOG.md
index 4bdd24e7bcb..d298adcc4d2 100644
--- a/service/ivsrealtime/CHANGELOG.md
+++ b/service/ivsrealtime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ivsrealtime/go.mod b/service/ivsrealtime/go.mod
index 75ec14cd198..bbaa51be352 100644
--- a/service/ivsrealtime/go.mod
+++ b/service/ivsrealtime/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivsrealtime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ivsrealtime/go.sum b/service/ivsrealtime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ivsrealtime/go.sum
+++ b/service/ivsrealtime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ivsrealtime/go_module_metadata.go b/service/ivsrealtime/go_module_metadata.go
index 01256acaa33..bafb5ee1ac7 100644
--- a/service/ivsrealtime/go_module_metadata.go
+++ b/service/ivsrealtime/go_module_metadata.go
@@ -3,4 +3,4 @@
package ivsrealtime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.1"
+const goModuleVersion = "1.25.2"
diff --git a/service/kafka/CHANGELOG.md b/service/kafka/CHANGELOG.md
index 5453b2ff6c4..656fa48a7df 100644
--- a/service/kafka/CHANGELOG.md
+++ b/service/kafka/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.39.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.39.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kafka/go.mod b/service/kafka/go.mod
index 27e54669832..1cdc8862471 100644
--- a/service/kafka/go.mod
+++ b/service/kafka/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kafka
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kafka/go.sum b/service/kafka/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kafka/go.sum
+++ b/service/kafka/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kafka/go_module_metadata.go b/service/kafka/go_module_metadata.go
index 13e616502ac..c2029b734d6 100644
--- a/service/kafka/go_module_metadata.go
+++ b/service/kafka/go_module_metadata.go
@@ -3,4 +3,4 @@
package kafka
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.39.4"
+const goModuleVersion = "1.39.5"
diff --git a/service/kafkaconnect/CHANGELOG.md b/service/kafkaconnect/CHANGELOG.md
index f9eb90c4482..1a60db4eb01 100644
--- a/service/kafkaconnect/CHANGELOG.md
+++ b/service/kafkaconnect/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.23.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.23.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kafkaconnect/go.mod b/service/kafkaconnect/go.mod
index 42d51d80902..44439d750d6 100644
--- a/service/kafkaconnect/go.mod
+++ b/service/kafkaconnect/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kafkaconnect
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kafkaconnect/go.sum b/service/kafkaconnect/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kafkaconnect/go.sum
+++ b/service/kafkaconnect/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kafkaconnect/go_module_metadata.go b/service/kafkaconnect/go_module_metadata.go
index 710fabf8aa2..bfd772f16fe 100644
--- a/service/kafkaconnect/go_module_metadata.go
+++ b/service/kafkaconnect/go_module_metadata.go
@@ -3,4 +3,4 @@
package kafkaconnect
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.23.4"
+const goModuleVersion = "1.23.5"
diff --git a/service/kendra/CHANGELOG.md b/service/kendra/CHANGELOG.md
index af7c3de5e10..3320681e1fa 100644
--- a/service/kendra/CHANGELOG.md
+++ b/service/kendra/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.56.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.56.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kendra/go.mod b/service/kendra/go.mod
index 80d949472e4..8da082788ca 100644
--- a/service/kendra/go.mod
+++ b/service/kendra/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kendra
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kendra/go.sum b/service/kendra/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kendra/go.sum
+++ b/service/kendra/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kendra/go_module_metadata.go b/service/kendra/go_module_metadata.go
index e11989eb9b4..8eef123b3e4 100644
--- a/service/kendra/go_module_metadata.go
+++ b/service/kendra/go_module_metadata.go
@@ -3,4 +3,4 @@
package kendra
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.56.3"
+const goModuleVersion = "1.56.4"
diff --git a/service/kendraranking/CHANGELOG.md b/service/kendraranking/CHANGELOG.md
index d933058bcdb..e5dd32b000d 100644
--- a/service/kendraranking/CHANGELOG.md
+++ b/service/kendraranking/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.12.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.12.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kendraranking/go.mod b/service/kendraranking/go.mod
index d0fc8b6b8e6..bc8e8fc9b0c 100644
--- a/service/kendraranking/go.mod
+++ b/service/kendraranking/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kendraranking
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kendraranking/go.sum b/service/kendraranking/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kendraranking/go.sum
+++ b/service/kendraranking/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kendraranking/go_module_metadata.go b/service/kendraranking/go_module_metadata.go
index f3d34fd4d0a..495713ff311 100644
--- a/service/kendraranking/go_module_metadata.go
+++ b/service/kendraranking/go_module_metadata.go
@@ -3,4 +3,4 @@
package kendraranking
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.12.4"
+const goModuleVersion = "1.12.5"
diff --git a/service/keyspaces/CHANGELOG.md b/service/keyspaces/CHANGELOG.md
index 12848d92ec6..4bc22c6407e 100644
--- a/service/keyspaces/CHANGELOG.md
+++ b/service/keyspaces/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.18.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.18.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/keyspaces/go.mod b/service/keyspaces/go.mod
index efcf93435aa..bb2e757b098 100644
--- a/service/keyspaces/go.mod
+++ b/service/keyspaces/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/keyspaces
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/keyspaces/go.sum b/service/keyspaces/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/keyspaces/go.sum
+++ b/service/keyspaces/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/keyspaces/go_module_metadata.go b/service/keyspaces/go_module_metadata.go
index ef1bd9ff418..45902974c54 100644
--- a/service/keyspaces/go_module_metadata.go
+++ b/service/keyspaces/go_module_metadata.go
@@ -3,4 +3,4 @@
package keyspaces
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.18.2"
+const goModuleVersion = "1.18.3"
diff --git a/service/kinesis/CHANGELOG.md b/service/kinesis/CHANGELOG.md
index 54a84731033..56dfdb762a2 100644
--- a/service/kinesis/CHANGELOG.md
+++ b/service/kinesis/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod
index ab3d972c486..3797da922ff 100644
--- a/service/kinesis/go.mod
+++ b/service/kinesis/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/kinesis
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesis/go.sum
+++ b/service/kinesis/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesis/go_module_metadata.go b/service/kinesis/go_module_metadata.go
index c64fd6734e4..670d4262119 100644
--- a/service/kinesis/go_module_metadata.go
+++ b/service/kinesis/go_module_metadata.go
@@ -3,4 +3,4 @@
package kinesis
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.2"
+const goModuleVersion = "1.35.3"
diff --git a/service/kinesis/internal/testing/go.mod b/service/kinesis/internal/testing/go.mod
index 6e6c899b3fe..693ecd144f5 100644
--- a/service/kinesis/internal/testing/go.mod
+++ b/service/kinesis/internal/testing/go.mod
@@ -3,17 +3,17 @@ module github.com/aws/aws-sdk-go-v2/service/kinesis/internal/testing
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.5.31
- github.com/aws/aws-sdk-go-v2/service/kinesis v1.35.2
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.5.32
+ github.com/aws/aws-sdk-go-v2/service/kinesis v1.35.3
+ github.com/aws/smithy-go v1.22.4
)
require (
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../../
diff --git a/service/kinesis/internal/testing/go.sum b/service/kinesis/internal/testing/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesis/internal/testing/go.sum
+++ b/service/kinesis/internal/testing/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesisanalytics/CHANGELOG.md b/service/kinesisanalytics/CHANGELOG.md
index 5f9f2eb265c..188774d25d8 100644
--- a/service/kinesisanalytics/CHANGELOG.md
+++ b/service/kinesisanalytics/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod
index 70db8f88eba..d2d19bc5c8d 100644
--- a/service/kinesisanalytics/go.mod
+++ b/service/kinesisanalytics/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisanalytics
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesisanalytics/go.sum
+++ b/service/kinesisanalytics/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesisanalytics/go_module_metadata.go b/service/kinesisanalytics/go_module_metadata.go
index 0ae4b296da7..703e122edab 100644
--- a/service/kinesisanalytics/go_module_metadata.go
+++ b/service/kinesisanalytics/go_module_metadata.go
@@ -3,4 +3,4 @@
package kinesisanalytics
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.5"
+const goModuleVersion = "1.26.6"
diff --git a/service/kinesisanalyticsv2/CHANGELOG.md b/service/kinesisanalyticsv2/CHANGELOG.md
index 213aceeeb53..78dc22fcbf4 100644
--- a/service/kinesisanalyticsv2/CHANGELOG.md
+++ b/service/kinesisanalyticsv2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.32.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.32.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod
index 149c3e0703e..ff4eb115f9d 100644
--- a/service/kinesisanalyticsv2/go.mod
+++ b/service/kinesisanalyticsv2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisanalyticsv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesisanalyticsv2/go.sum
+++ b/service/kinesisanalyticsv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesisanalyticsv2/go_module_metadata.go b/service/kinesisanalyticsv2/go_module_metadata.go
index f285a01ea71..d9a64d07115 100644
--- a/service/kinesisanalyticsv2/go_module_metadata.go
+++ b/service/kinesisanalyticsv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package kinesisanalyticsv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.32.5"
+const goModuleVersion = "1.32.6"
diff --git a/service/kinesisvideo/CHANGELOG.md b/service/kinesisvideo/CHANGELOG.md
index 5a8bf884ae9..9854dbee85e 100644
--- a/service/kinesisvideo/CHANGELOG.md
+++ b/service/kinesisvideo/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod
index d0fd0187cb9..187a47d4d53 100644
--- a/service/kinesisvideo/go.mod
+++ b/service/kinesisvideo/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideo
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesisvideo/go.sum
+++ b/service/kinesisvideo/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesisvideo/go_module_metadata.go b/service/kinesisvideo/go_module_metadata.go
index 699bc7b2d50..06b1a87c859 100644
--- a/service/kinesisvideo/go_module_metadata.go
+++ b/service/kinesisvideo/go_module_metadata.go
@@ -3,4 +3,4 @@
package kinesisvideo
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/kinesisvideoarchivedmedia/CHANGELOG.md b/service/kinesisvideoarchivedmedia/CHANGELOG.md
index 6d2a87b07a1..6eacaa82c9f 100644
--- a/service/kinesisvideoarchivedmedia/CHANGELOG.md
+++ b/service/kinesisvideoarchivedmedia/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod
index f7692303d79..d7498bd45fc 100644
--- a/service/kinesisvideoarchivedmedia/go.mod
+++ b/service/kinesisvideoarchivedmedia/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideoarchivedmedia
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesisvideoarchivedmedia/go.sum
+++ b/service/kinesisvideoarchivedmedia/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesisvideoarchivedmedia/go_module_metadata.go b/service/kinesisvideoarchivedmedia/go_module_metadata.go
index 05068a7ae5b..04e54067a58 100644
--- a/service/kinesisvideoarchivedmedia/go_module_metadata.go
+++ b/service/kinesisvideoarchivedmedia/go_module_metadata.go
@@ -3,4 +3,4 @@
package kinesisvideoarchivedmedia
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/kinesisvideomedia/CHANGELOG.md b/service/kinesisvideomedia/CHANGELOG.md
index 1af03ec2c8f..e69b6419c33 100644
--- a/service/kinesisvideomedia/CHANGELOG.md
+++ b/service/kinesisvideomedia/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.23.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.23.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod
index 724d305d04b..c57c3aae6c2 100644
--- a/service/kinesisvideomedia/go.mod
+++ b/service/kinesisvideomedia/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideomedia
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesisvideomedia/go.sum
+++ b/service/kinesisvideomedia/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesisvideomedia/go_module_metadata.go b/service/kinesisvideomedia/go_module_metadata.go
index 64ee5c6883f..445ed6c9380 100644
--- a/service/kinesisvideomedia/go_module_metadata.go
+++ b/service/kinesisvideomedia/go_module_metadata.go
@@ -3,4 +3,4 @@
package kinesisvideomedia
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.23.3"
+const goModuleVersion = "1.23.4"
diff --git a/service/kinesisvideosignaling/CHANGELOG.md b/service/kinesisvideosignaling/CHANGELOG.md
index ac18b0afa5a..13ede61522b 100644
--- a/service/kinesisvideosignaling/CHANGELOG.md
+++ b/service/kinesisvideosignaling/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod
index c09247eccb9..42cf9b1517e 100644
--- a/service/kinesisvideosignaling/go.mod
+++ b/service/kinesisvideosignaling/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideosignaling
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesisvideosignaling/go.sum
+++ b/service/kinesisvideosignaling/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesisvideosignaling/go_module_metadata.go b/service/kinesisvideosignaling/go_module_metadata.go
index 25758b7737c..7fee272ffa1 100644
--- a/service/kinesisvideosignaling/go_module_metadata.go
+++ b/service/kinesisvideosignaling/go_module_metadata.go
@@ -3,4 +3,4 @@
package kinesisvideosignaling
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/kinesisvideowebrtcstorage/CHANGELOG.md b/service/kinesisvideowebrtcstorage/CHANGELOG.md
index f5a028c5a95..6dda98f02c9 100644
--- a/service/kinesisvideowebrtcstorage/CHANGELOG.md
+++ b/service/kinesisvideowebrtcstorage/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.15.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kinesisvideowebrtcstorage/go.mod b/service/kinesisvideowebrtcstorage/go.mod
index 2b941a9f245..65dc9d3d95a 100644
--- a/service/kinesisvideowebrtcstorage/go.mod
+++ b/service/kinesisvideowebrtcstorage/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideowebrtcstorage
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kinesisvideowebrtcstorage/go.sum b/service/kinesisvideowebrtcstorage/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kinesisvideowebrtcstorage/go.sum
+++ b/service/kinesisvideowebrtcstorage/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kinesisvideowebrtcstorage/go_module_metadata.go b/service/kinesisvideowebrtcstorage/go_module_metadata.go
index 3d0a763a5a6..6bd0d38dc14 100644
--- a/service/kinesisvideowebrtcstorage/go_module_metadata.go
+++ b/service/kinesisvideowebrtcstorage/go_module_metadata.go
@@ -3,4 +3,4 @@
package kinesisvideowebrtcstorage
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.15.3"
+const goModuleVersion = "1.15.4"
diff --git a/service/kms/CHANGELOG.md b/service/kms/CHANGELOG.md
index 593b581b528..818d3984d6d 100644
--- a/service/kms/CHANGELOG.md
+++ b/service/kms/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.41.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.41.0 (2025-06-12)
+
+* **Feature**: AWS KMS announces the support of ML-DSA key pairs that creates post-quantum safe digital signatures.
+
# v1.40.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/kms/api_op_CreateKey.go b/service/kms/api_op_CreateKey.go
index 6747b403644..0972863fb86 100644
--- a/service/kms/api_op_CreateKey.go
+++ b/service/kms/api_op_CreateKey.go
@@ -51,18 +51,19 @@ import (
// or sign and verify. You can't change these properties after the KMS key is
// created.
//
-// Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or
-// an SM2 key pair (China Regions only). The private key in an asymmetric KMS key
-// never leaves KMS unencrypted. However, you can use the GetPublicKeyoperation to download
-// the public key so it can be used outside of KMS. Each KMS key can have only one
-// key usage. KMS keys with RSA key pairs can be used to encrypt and decrypt data
-// or sign and verify messages (but not both). KMS keys with NIST-recommended ECC
-// key pairs can be used to sign and verify messages or derive shared secrets (but
-// not both). KMS keys with ECC_SECG_P256K1 can be used only to sign and verify
-// messages. KMS keys with SM2 key pairs (China Regions only) can be used to either
-// encrypt and decrypt data, sign and verify messages, or derive shared secrets
-// (you must choose one key usage type). For information about asymmetric KMS keys,
-// see [Asymmetric KMS keys]in the Key Management Service Developer Guide.
+// Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair,
+// ML-DSA key pair or an SM2 key pair (China Regions only). The private key in an
+// asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey
+// operation to download the public key so it can be used outside of KMS. Each KMS
+// key can have only one key usage. KMS keys with RSA key pairs can be used to
+// encrypt and decrypt data or sign and verify messages (but not both). KMS keys
+// with NIST-recommended ECC key pairs can be used to sign and verify messages or
+// derive shared secrets (but not both). KMS keys with ECC_SECG_P256K1 can be used
+// only to sign and verify messages. KMS keys with ML-DSA key pairs can be used to
+// sign and verify messages. KMS keys with SM2 key pairs (China Regions only) can
+// be used to either encrypt and decrypt data, sign and verify messages, or derive
+// shared secrets (you must choose one key usage type). For information about
+// asymmetric KMS keys, see [Asymmetric KMS keys]in the Key Management Service Developer Guide.
//
// HMAC KMS key To create an HMAC KMS key, set the KeySpec parameter to a key spec
// value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC
@@ -302,6 +303,14 @@ type CreateKeyInput struct {
//
// - ECC_SECG_P256K1 (secp256k1), commonly used for cryptocurrencies.
//
+ // - Asymmetric ML-DSA key pairs (signing and verification)
+ //
+ // - ML_DSA_44
+ //
+ // - ML_DSA_65
+ //
+ // - ML_DSA_87
+ //
// - SM2 key pairs (encryption and decryption -or- signing and verification -or-
// deriving shared secrets)
//
@@ -333,7 +342,9 @@ type CreateKeyInput struct {
// - For asymmetric KMS keys with NIST-recommended elliptic curve key pairs,
// specify SIGN_VERIFY or KEY_AGREEMENT .
//
- // - For asymmetric KMS keys with ECC_SECG_P256K1 key pairs specify SIGN_VERIFY .
+ // - For asymmetric KMS keys with ECC_SECG_P256K1 key pairs, specify SIGN_VERIFY .
+ //
+ // - For asymmetric KMS keys with ML-DSA key pairs, specify SIGN_VERIFY .
//
// - For asymmetric KMS keys with SM2 key pairs (China Regions only), specify
// ENCRYPT_DECRYPT , SIGN_VERIFY , or KEY_AGREEMENT .
diff --git a/service/kms/api_op_GenerateDataKeyPair.go b/service/kms/api_op_GenerateDataKeyPair.go
index 982c49d2c71..9a977048e31 100644
--- a/service/kms/api_op_GenerateDataKeyPair.go
+++ b/service/kms/api_op_GenerateDataKeyPair.go
@@ -146,10 +146,11 @@ type GenerateDataKeyPairInput struct {
// Determines the type of data key pair that is generated.
//
// The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to
- // encrypt and decrypt or to sign and verify (but not both), and the rule that
- // permits you to use ECC KMS keys only to sign and verify, are not effective on
- // data key pairs, which are used outside of KMS. The SM2 key spec is only
- // available in China Regions.
+ // encrypt and decrypt or to sign and verify (but not both), the rule that permits
+ // you to use ECC KMS keys only to sign and verify, and the rule that permits you
+ // to use ML-DSA key pairs to sign and verify only are not effective on data key
+ // pairs, which are used outside of KMS. The SM2 key spec is only available in
+ // China Regions.
//
// This member is required.
KeyPairSpec types.DataKeyPairSpec
@@ -240,8 +241,7 @@ type GenerateDataKeyPairOutput struct {
// [key ARN]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN
KeyId *string
- // The identifier of the key material used to encrypt the private key. This field
- // is omitted if the request includes the Recipient parameter.
+ // The identifier of the key material used to encrypt the private key.
KeyMaterialId *string
// The type of data key pair that was generated.
diff --git a/service/kms/api_op_GenerateDataKeyPairWithoutPlaintext.go b/service/kms/api_op_GenerateDataKeyPairWithoutPlaintext.go
index 7942faebbdc..d56ed2123dc 100644
--- a/service/kms/api_op_GenerateDataKeyPairWithoutPlaintext.go
+++ b/service/kms/api_op_GenerateDataKeyPairWithoutPlaintext.go
@@ -120,10 +120,11 @@ type GenerateDataKeyPairWithoutPlaintextInput struct {
// Determines the type of data key pair that is generated.
//
// The KMS rule that restricts the use of asymmetric RSA and SM2 KMS keys to
- // encrypt and decrypt or to sign and verify (but not both), and the rule that
- // permits you to use ECC KMS keys only to sign and verify, are not effective on
- // data key pairs, which are used outside of KMS. The SM2 key spec is only
- // available in China Regions.
+ // encrypt and decrypt or to sign and verify (but not both), the rule that permits
+ // you to use ECC KMS keys only to sign and verify, and the rule that permits you
+ // to use ML-DSA key pairs to sign and verify only are not effective on data key
+ // pairs, which are used outside of KMS. The SM2 key spec is only available in
+ // China Regions.
//
// This member is required.
KeyPairSpec types.DataKeyPairSpec
diff --git a/service/kms/api_op_Sign.go b/service/kms/api_op_Sign.go
index 16ee172fbbf..72f9af40680 100644
--- a/service/kms/api_op_Sign.go
+++ b/service/kms/api_op_Sign.go
@@ -17,10 +17,11 @@ import (
// about asymmetric KMS keys, see [Asymmetric KMS keys]in the Key Management Service Developer Guide.
//
// Digital signatures are generated and verified by using asymmetric key pair,
-// such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key
-// owner (or an authorized user) uses their private key to sign a message. Anyone
-// with the public key can verify that the message was signed with that particular
-// private key and that the message hasn't changed since it was signed.
+// such as an RSA, ECC, or ML-DSA pair that is represented by an asymmetric KMS
+// key. The key owner (or an authorized user) uses their private key to sign a
+// message. Anyone with the public key can verify that the message was signed with
+// that particular private key and that the message hasn't changed since it was
+// signed.
//
// To use the Sign operation, provide the following information:
//
@@ -31,8 +32,8 @@ import (
// - Use the Message parameter to specify the message or message digest to sign.
// You can submit messages of up to 4096 bytes. To sign a larger message, generate
// a hash digest of the message, and then provide the hash digest in the Message
-// parameter. To indicate whether the message is a full message or a digest, use
-// the MessageType parameter.
+// parameter. To indicate whether the message is a full message, a digest, or an
+// ML-DSA EXTERNAL_MU, use the MessageType parameter.
//
// - Choose a signing algorithm that is compatible with the KMS key.
//
@@ -149,24 +150,30 @@ type SignInput struct {
// Tells KMS whether the value of the Message parameter should be hashed as part
// of the signing algorithm. Use RAW for unhashed messages; use DIGEST for message
- // digests, which are already hashed.
+ // digests, which are already hashed; use EXTERNAL_MU for 64-byte representative μ
+ // used in ML-DSA signing as defined in NIST FIPS 204 Section 6.2.
//
// When the value of MessageType is RAW , KMS uses the standard signing algorithm,
// which begins with a hash function. When the value is DIGEST , KMS skips the
- // hashing step in the signing algorithm.
+ // hashing step in the signing algorithm. When the value is EXTERNAL_MU KMS skips
+ // the concatenated hashing of the public key hash and the message done in the
+ // ML-DSA signing algorithm.
//
- // Use the DIGEST value only when the value of the Message parameter is a message
- // digest. If you use the DIGEST value with an unhashed message, the security of
- // the signing operation can be compromised.
+ // Use the DIGEST or EXTERNAL_MU value only when the value of the Message
+ // parameter is a message digest. If you use the DIGEST value with an unhashed
+ // message, the security of the signing operation can be compromised.
//
// When the value of MessageType is DIGEST , the length of the Message value must
// match the length of hashed messages for the specified signing algorithm.
//
+ // When the value of MessageType is EXTERNAL_MU the length of the Message value
+ // must be 64 bytes.
+ //
// You can submit a message digest and omit the MessageType or specify RAW so the
// digest is hashed again while signing. However, this can cause verification
// failures when verifying with a system that assumes a single hash.
//
- // The hashing algorithm in that Sign uses is based on the SigningAlgorithm value.
+ // The hashing algorithm that Sign uses is based on the SigningAlgorithm value.
//
// - Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
//
@@ -174,6 +181,9 @@ type SignInput struct {
//
// - Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
//
+ // - Signing algorithms that end in SHAKE_256 use the SHAKE_256 hashing
+ // algorithm.
+ //
// - SM2DSA uses the SM3 hashing algorithm. For details, see [Offline verification with SM2 key pairs].
//
// [Offline verification with SM2 key pairs]: https://docs.aws.amazon.com/kms/latest/developerguide/offline-operations.html#key-spec-sm-offline-verification
diff --git a/service/kms/api_op_Verify.go b/service/kms/api_op_Verify.go
index a88cc1ecb56..1a82529a135 100644
--- a/service/kms/api_op_Verify.go
+++ b/service/kms/api_op_Verify.go
@@ -146,26 +146,31 @@ type VerifyInput struct {
// Tells KMS whether the value of the Message parameter should be hashed as part
// of the signing algorithm. Use RAW for unhashed messages; use DIGEST for message
- // digests, which are already hashed.
+ // digests, which are already hashed; use EXTERNAL_MU for 64-byte representative μ
+ // used in ML-DSA signing as defined in NIST FIPS 204 Section 6.2.
//
// When the value of MessageType is RAW , KMS uses the standard signing algorithm,
// which begins with a hash function. When the value is DIGEST , KMS skips the
- // hashing step in the signing algorithm.
+ // hashing step in the signing algorithm. When the value is EXTERNAL_MU KMS skips
+ // the concatenated hashing of the public key hash and the message done in the
+ // ML-DSA signing algorithm.
//
- // Use the DIGEST value only when the value of the Message parameter is a message
- // digest. If you use the DIGEST value with an unhashed message, the security of
- // the verification operation can be compromised.
+ // Use the DIGEST or EXTERNAL_MU value only when the value of the Message
+ // parameter is a message digest. If you use the DIGEST value with an unhashed
+ // message, the security of the signing operation can be compromised.
//
// When the value of MessageType is DIGEST , the length of the Message value must
// match the length of hashed messages for the specified signing algorithm.
//
+ // When the value of MessageType is EXTERNAL_MU the length of the Message value
+ // must be 64 bytes.
+ //
// You can submit a message digest and omit the MessageType or specify RAW so the
// digest is hashed again while signing. However, if the signed message is hashed
// once while signing, but twice while verifying, verification fails, even when the
// message hasn't changed.
//
- // The hashing algorithm in that Verify uses is based on the SigningAlgorithm
- // value.
+ // The hashing algorithm that Verify uses is based on the SigningAlgorithm value.
//
// - Signing algorithms that end in SHA_256 use the SHA_256 hashing algorithm.
//
@@ -173,6 +178,9 @@ type VerifyInput struct {
//
// - Signing algorithms that end in SHA_512 use the SHA_512 hashing algorithm.
//
+ // - Signing algorithms that end in SHAKE_256 use the SHAKE_256 hashing
+ // algorithm.
+ //
// - SM2DSA uses the SM3 hashing algorithm. For details, see [Offline verification with SM2 key pairs].
//
// [Offline verification with SM2 key pairs]: https://docs.aws.amazon.com/kms/latest/developerguide/offline-operations.html#key-spec-sm-offline-verification
diff --git a/service/kms/go.mod b/service/kms/go.mod
index 4accc3c379a..51da165e487 100644
--- a/service/kms/go.mod
+++ b/service/kms/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kms
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/kms/go.sum b/service/kms/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/kms/go.sum
+++ b/service/kms/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/kms/go_module_metadata.go b/service/kms/go_module_metadata.go
index 73a0978fec7..720652eacfd 100644
--- a/service/kms/go_module_metadata.go
+++ b/service/kms/go_module_metadata.go
@@ -3,4 +3,4 @@
package kms
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.40.1"
+const goModuleVersion = "1.41.1"
diff --git a/service/kms/types/enums.go b/service/kms/types/enums.go
index 9813c454e66..094ff4b9782 100644
--- a/service/kms/types/enums.go
+++ b/service/kms/types/enums.go
@@ -454,6 +454,9 @@ const (
KeySpecHmac384 KeySpec = "HMAC_384"
KeySpecHmac512 KeySpec = "HMAC_512"
KeySpecSm2 KeySpec = "SM2"
+ KeySpecMlDsa44 KeySpec = "ML_DSA_44"
+ KeySpecMlDsa65 KeySpec = "ML_DSA_65"
+ KeySpecMlDsa87 KeySpec = "ML_DSA_87"
)
// Values returns all known values for KeySpec. Note that this can be expanded in
@@ -475,6 +478,9 @@ func (KeySpec) Values() []KeySpec {
"HMAC_384",
"HMAC_512",
"SM2",
+ "ML_DSA_44",
+ "ML_DSA_65",
+ "ML_DSA_87",
}
}
@@ -559,8 +565,9 @@ type MessageType string
// Enum values for MessageType
const (
- MessageTypeRaw MessageType = "RAW"
- MessageTypeDigest MessageType = "DIGEST"
+ MessageTypeRaw MessageType = "RAW"
+ MessageTypeDigest MessageType = "DIGEST"
+ MessageTypeExternalMu MessageType = "EXTERNAL_MU"
)
// Values returns all known values for MessageType. Note that this can be expanded
@@ -571,6 +578,7 @@ func (MessageType) Values() []MessageType {
return []MessageType{
"RAW",
"DIGEST",
+ "EXTERNAL_MU",
}
}
@@ -649,6 +657,7 @@ const (
SigningAlgorithmSpecEcdsaSha384 SigningAlgorithmSpec = "ECDSA_SHA_384"
SigningAlgorithmSpecEcdsaSha512 SigningAlgorithmSpec = "ECDSA_SHA_512"
SigningAlgorithmSpecSm2dsa SigningAlgorithmSpec = "SM2DSA"
+ SigningAlgorithmSpecMlDsaShake256 SigningAlgorithmSpec = "ML_DSA_SHAKE_256"
)
// Values returns all known values for SigningAlgorithmSpec. Note that this can be
@@ -667,6 +676,7 @@ func (SigningAlgorithmSpec) Values() []SigningAlgorithmSpec {
"ECDSA_SHA_384",
"ECDSA_SHA_512",
"SM2DSA",
+ "ML_DSA_SHAKE_256",
}
}
diff --git a/service/lakeformation/CHANGELOG.md b/service/lakeformation/CHANGELOG.md
index 2647b12dc47..d1733a7bbf3 100644
--- a/service/lakeformation/CHANGELOG.md
+++ b/service/lakeformation/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.41.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.41.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod
index 8bdfe41a4f0..23ce4bb3805 100644
--- a/service/lakeformation/go.mod
+++ b/service/lakeformation/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lakeformation
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lakeformation/go.sum
+++ b/service/lakeformation/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lakeformation/go_module_metadata.go b/service/lakeformation/go_module_metadata.go
index 1740a84259f..f492795c599 100644
--- a/service/lakeformation/go_module_metadata.go
+++ b/service/lakeformation/go_module_metadata.go
@@ -3,4 +3,4 @@
package lakeformation
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.41.5"
+const goModuleVersion = "1.41.6"
diff --git a/service/lambda/CHANGELOG.md b/service/lambda/CHANGELOG.md
index b1150c8fa83..c346a7bd3d9 100644
--- a/service/lambda/CHANGELOG.md
+++ b/service/lambda/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.71.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.71.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lambda/go.mod b/service/lambda/go.mod
index 8fb4013d600..7566a01651f 100644
--- a/service/lambda/go.mod
+++ b/service/lambda/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/lambda
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lambda/go.sum b/service/lambda/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lambda/go.sum
+++ b/service/lambda/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lambda/go_module_metadata.go b/service/lambda/go_module_metadata.go
index e2a08c83fd9..2e3ee18844c 100644
--- a/service/lambda/go_module_metadata.go
+++ b/service/lambda/go_module_metadata.go
@@ -3,4 +3,4 @@
package lambda
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.71.4"
+const goModuleVersion = "1.71.5"
diff --git a/service/launchwizard/CHANGELOG.md b/service/launchwizard/CHANGELOG.md
index 09c5dc5ebb6..5a17706a369 100644
--- a/service/launchwizard/CHANGELOG.md
+++ b/service/launchwizard/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.9.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.9.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/launchwizard/go.mod b/service/launchwizard/go.mod
index 85a8a689d67..35f7d0d655e 100644
--- a/service/launchwizard/go.mod
+++ b/service/launchwizard/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/launchwizard
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/launchwizard/go.sum b/service/launchwizard/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/launchwizard/go.sum
+++ b/service/launchwizard/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/launchwizard/go_module_metadata.go b/service/launchwizard/go_module_metadata.go
index 7223f8ac3b7..fc0c3cc1c26 100644
--- a/service/launchwizard/go_module_metadata.go
+++ b/service/launchwizard/go_module_metadata.go
@@ -3,4 +3,4 @@
package launchwizard
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.9.3"
+const goModuleVersion = "1.9.4"
diff --git a/service/lexmodelbuildingservice/CHANGELOG.md b/service/lexmodelbuildingservice/CHANGELOG.md
index cab8ac70fe5..51b4eb19967 100644
--- a/service/lexmodelbuildingservice/CHANGELOG.md
+++ b/service/lexmodelbuildingservice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod
index e3a2725bffc..b82670bd5a5 100644
--- a/service/lexmodelbuildingservice/go.mod
+++ b/service/lexmodelbuildingservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lexmodelbuildingservice/go.sum
+++ b/service/lexmodelbuildingservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lexmodelbuildingservice/go_module_metadata.go b/service/lexmodelbuildingservice/go_module_metadata.go
index fd7acdc566f..66c5bf37bb2 100644
--- a/service/lexmodelbuildingservice/go_module_metadata.go
+++ b/service/lexmodelbuildingservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package lexmodelbuildingservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/lexmodelsv2/CHANGELOG.md b/service/lexmodelsv2/CHANGELOG.md
index 7ea9013e003..d6a7d206bd4 100644
--- a/service/lexmodelsv2/CHANGELOG.md
+++ b/service/lexmodelsv2/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.52.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.52.0 (2025-06-11)
+
+* **Feature**: Add support for the Assisted NLU feature to improve bot performance
+
# v1.51.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lexmodelsv2/deserializers.go b/service/lexmodelsv2/deserializers.go
index 2bcb626c52c..8c1fb38d9ce 100644
--- a/service/lexmodelsv2/deserializers.go
+++ b/service/lexmodelsv2/deserializers.go
@@ -30560,6 +30560,46 @@ func awsRestjson1_deserializeDocumentMultipleValuesSetting(v **types.MultipleVal
return nil
}
+func awsRestjson1_deserializeDocumentNluImprovementSpecification(v **types.NluImprovementSpecification, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.NluImprovementSpecification
+ if *v == nil {
+ sv = &types.NluImprovementSpecification{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "enabled":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Enabled to be of type *bool, got %T instead", value)
+ }
+ sv.Enabled = jtv
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentObfuscationSetting(v **types.ObfuscationSetting, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -32113,6 +32153,11 @@ func awsRestjson1_deserializeDocumentRuntimeSettings(v **types.RuntimeSettings,
for key, value := range shape {
switch key {
+ case "nluImprovement":
+ if err := awsRestjson1_deserializeDocumentNluImprovementSpecification(&sv.NluImprovement, value); err != nil {
+ return err
+ }
+
case "slotResolutionImprovement":
if err := awsRestjson1_deserializeDocumentSlotResolutionImprovementSpecification(&sv.SlotResolutionImprovement, value); err != nil {
return err
diff --git a/service/lexmodelsv2/go.mod b/service/lexmodelsv2/go.mod
index e2ecb90d492..b27cd149d76 100644
--- a/service/lexmodelsv2/go.mod
+++ b/service/lexmodelsv2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexmodelsv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lexmodelsv2/go.sum
+++ b/service/lexmodelsv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lexmodelsv2/go_module_metadata.go b/service/lexmodelsv2/go_module_metadata.go
index c1c9f65279a..10848ae0128 100644
--- a/service/lexmodelsv2/go_module_metadata.go
+++ b/service/lexmodelsv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package lexmodelsv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.51.2"
+const goModuleVersion = "1.52.1"
diff --git a/service/lexmodelsv2/serializers.go b/service/lexmodelsv2/serializers.go
index a762723c2a3..07ad2051eb9 100644
--- a/service/lexmodelsv2/serializers.go
+++ b/service/lexmodelsv2/serializers.go
@@ -13603,6 +13603,18 @@ func awsRestjson1_serializeDocumentNewCustomVocabularyItem(v *types.NewCustomVoc
return nil
}
+func awsRestjson1_serializeDocumentNluImprovementSpecification(v *types.NluImprovementSpecification, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ {
+ ok := object.Key("enabled")
+ ok.Boolean(v.Enabled)
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentObfuscationSetting(v *types.ObfuscationSetting, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -14112,6 +14124,13 @@ func awsRestjson1_serializeDocumentRuntimeSettings(v *types.RuntimeSettings, val
object := value.Object()
defer object.Close()
+ if v.NluImprovement != nil {
+ ok := object.Key("nluImprovement")
+ if err := awsRestjson1_serializeDocumentNluImprovementSpecification(v.NluImprovement, ok); err != nil {
+ return err
+ }
+ }
+
if v.SlotResolutionImprovement != nil {
ok := object.Key("slotResolutionImprovement")
if err := awsRestjson1_serializeDocumentSlotResolutionImprovementSpecification(v.SlotResolutionImprovement, ok); err != nil {
diff --git a/service/lexmodelsv2/types/types.go b/service/lexmodelsv2/types/types.go
index 0b986a49891..64be5889051 100644
--- a/service/lexmodelsv2/types/types.go
+++ b/service/lexmodelsv2/types/types.go
@@ -3605,6 +3605,17 @@ type NewCustomVocabularyItem struct {
noSmithyDocumentSerde
}
+// Specifies whether the assisted nlu feature is turned on or off.
+type NluImprovementSpecification struct {
+
+ // Specifies whether the assisted nlu feature is enabled.
+ //
+ // This member is required.
+ Enabled bool
+
+ noSmithyDocumentSerde
+}
+
// Determines whether Amazon Lex obscures slot values in conversation logs.
type ObfuscationSetting struct {
@@ -4092,6 +4103,9 @@ type RuntimeHintValue struct {
// from Amazon Bedrock that you can turn on for your bot.
type RuntimeSettings struct {
+ // An object containing specifications for the assisted nlu feature.
+ NluImprovement *NluImprovementSpecification
+
// An object containing specifications for the assisted slot resolution feature.
SlotResolutionImprovement *SlotResolutionImprovementSpecification
diff --git a/service/lexmodelsv2/validators.go b/service/lexmodelsv2/validators.go
index 6ce1801ce17..73ca1d6bcf5 100644
--- a/service/lexmodelsv2/validators.go
+++ b/service/lexmodelsv2/validators.go
@@ -5024,6 +5024,18 @@ func validateNewCustomVocabularyItem(v *types.NewCustomVocabularyItem) error {
}
}
+func validateNluImprovementSpecification(v *types.NluImprovementSpecification) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "NluImprovementSpecification"}
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateObfuscationSetting(v *types.ObfuscationSetting) error {
if v == nil {
return nil
@@ -5419,6 +5431,11 @@ func validateRuntimeSettings(v *types.RuntimeSettings) error {
invalidParams.AddNested("SlotResolutionImprovement", err.(smithy.InvalidParamsError))
}
}
+ if v.NluImprovement != nil {
+ if err := validateNluImprovementSpecification(v.NluImprovement); err != nil {
+ invalidParams.AddNested("NluImprovement", err.(smithy.InvalidParamsError))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
} else {
diff --git a/service/lexruntimeservice/CHANGELOG.md b/service/lexruntimeservice/CHANGELOG.md
index 3064bc0891b..21cd186a707 100644
--- a/service/lexruntimeservice/CHANGELOG.md
+++ b/service/lexruntimeservice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod
index 3c8f89dfb5f..73dbceb4ec4 100644
--- a/service/lexruntimeservice/go.mod
+++ b/service/lexruntimeservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexruntimeservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lexruntimeservice/go.sum
+++ b/service/lexruntimeservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lexruntimeservice/go_module_metadata.go b/service/lexruntimeservice/go_module_metadata.go
index b90053c1230..fad4d097332 100644
--- a/service/lexruntimeservice/go_module_metadata.go
+++ b/service/lexruntimeservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package lexruntimeservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/lexruntimev2/CHANGELOG.md b/service/lexruntimev2/CHANGELOG.md
index fa4681def78..49b69968e64 100644
--- a/service/lexruntimev2/CHANGELOG.md
+++ b/service/lexruntimev2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lexruntimev2/go.mod b/service/lexruntimev2/go.mod
index 3d0799fa15e..d1b157252b6 100644
--- a/service/lexruntimev2/go.mod
+++ b/service/lexruntimev2/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/lexruntimev2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lexruntimev2/go.sum b/service/lexruntimev2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lexruntimev2/go.sum
+++ b/service/lexruntimev2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lexruntimev2/go_module_metadata.go b/service/lexruntimev2/go_module_metadata.go
index 76c059f9440..27e18a74e98 100644
--- a/service/lexruntimev2/go_module_metadata.go
+++ b/service/lexruntimev2/go_module_metadata.go
@@ -3,4 +3,4 @@
package lexruntimev2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/licensemanager/CHANGELOG.md b/service/licensemanager/CHANGELOG.md
index b0e5a81e111..b86fc4daf96 100644
--- a/service/licensemanager/CHANGELOG.md
+++ b/service/licensemanager/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod
index 0c5d950b8da..9b8a48da2c1 100644
--- a/service/licensemanager/go.mod
+++ b/service/licensemanager/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanager
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/licensemanager/go.sum
+++ b/service/licensemanager/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/licensemanager/go_module_metadata.go b/service/licensemanager/go_module_metadata.go
index d55099da3fa..1139b138b60 100644
--- a/service/licensemanager/go_module_metadata.go
+++ b/service/licensemanager/go_module_metadata.go
@@ -3,4 +3,4 @@
package licensemanager
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.2"
+const goModuleVersion = "1.31.3"
diff --git a/service/licensemanagerlinuxsubscriptions/CHANGELOG.md b/service/licensemanagerlinuxsubscriptions/CHANGELOG.md
index 8ee052a38d2..71bbf981be2 100644
--- a/service/licensemanagerlinuxsubscriptions/CHANGELOG.md
+++ b/service/licensemanagerlinuxsubscriptions/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.15.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/licensemanagerlinuxsubscriptions/go.mod b/service/licensemanagerlinuxsubscriptions/go.mod
index 01c1555d4dc..3f4ccf87b95 100644
--- a/service/licensemanagerlinuxsubscriptions/go.mod
+++ b/service/licensemanagerlinuxsubscriptions/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanagerlinuxsubscriptions
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/licensemanagerlinuxsubscriptions/go.sum b/service/licensemanagerlinuxsubscriptions/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/licensemanagerlinuxsubscriptions/go.sum
+++ b/service/licensemanagerlinuxsubscriptions/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/licensemanagerlinuxsubscriptions/go_module_metadata.go b/service/licensemanagerlinuxsubscriptions/go_module_metadata.go
index e840757e8d8..70c2cfcb594 100644
--- a/service/licensemanagerlinuxsubscriptions/go_module_metadata.go
+++ b/service/licensemanagerlinuxsubscriptions/go_module_metadata.go
@@ -3,4 +3,4 @@
package licensemanagerlinuxsubscriptions
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.15.5"
+const goModuleVersion = "1.15.6"
diff --git a/service/licensemanagerusersubscriptions/CHANGELOG.md b/service/licensemanagerusersubscriptions/CHANGELOG.md
index 176481fde6b..2163564b372 100644
--- a/service/licensemanagerusersubscriptions/CHANGELOG.md
+++ b/service/licensemanagerusersubscriptions/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.15.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/licensemanagerusersubscriptions/go.mod b/service/licensemanagerusersubscriptions/go.mod
index 5baec9d799c..aca40246032 100644
--- a/service/licensemanagerusersubscriptions/go.mod
+++ b/service/licensemanagerusersubscriptions/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanagerusersubscriptions
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/licensemanagerusersubscriptions/go.sum b/service/licensemanagerusersubscriptions/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/licensemanagerusersubscriptions/go.sum
+++ b/service/licensemanagerusersubscriptions/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/licensemanagerusersubscriptions/go_module_metadata.go b/service/licensemanagerusersubscriptions/go_module_metadata.go
index 45b12e4e662..6ee163ac8e8 100644
--- a/service/licensemanagerusersubscriptions/go_module_metadata.go
+++ b/service/licensemanagerusersubscriptions/go_module_metadata.go
@@ -3,4 +3,4 @@
package licensemanagerusersubscriptions
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.15.5"
+const goModuleVersion = "1.15.6"
diff --git a/service/lightsail/CHANGELOG.md b/service/lightsail/CHANGELOG.md
index a468ab3eb38..2e179a4f72f 100644
--- a/service/lightsail/CHANGELOG.md
+++ b/service/lightsail/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.43.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.43.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod
index 514423d7a34..f87ce6c2330 100644
--- a/service/lightsail/go.mod
+++ b/service/lightsail/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lightsail
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lightsail/go.sum
+++ b/service/lightsail/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lightsail/go_module_metadata.go b/service/lightsail/go_module_metadata.go
index fa95e7148e7..8d877ed76c8 100644
--- a/service/lightsail/go_module_metadata.go
+++ b/service/lightsail/go_module_metadata.go
@@ -3,4 +3,4 @@
package lightsail
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.43.3"
+const goModuleVersion = "1.43.4"
diff --git a/service/location/CHANGELOG.md b/service/location/CHANGELOG.md
index 53be33f0506..61d902e4cb1 100644
--- a/service/location/CHANGELOG.md
+++ b/service/location/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.44.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.44.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/location/go.mod b/service/location/go.mod
index cd364b6e05c..5126aee90ce 100644
--- a/service/location/go.mod
+++ b/service/location/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/location
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/location/go.sum b/service/location/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/location/go.sum
+++ b/service/location/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/location/go_module_metadata.go b/service/location/go_module_metadata.go
index b11c6c401e2..b7b3a706f7a 100644
--- a/service/location/go_module_metadata.go
+++ b/service/location/go_module_metadata.go
@@ -3,4 +3,4 @@
package location
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.44.3"
+const goModuleVersion = "1.44.4"
diff --git a/service/lookoutequipment/CHANGELOG.md b/service/lookoutequipment/CHANGELOG.md
index 688f7945aaf..0d17c5b67fc 100644
--- a/service/lookoutequipment/CHANGELOG.md
+++ b/service/lookoutequipment/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lookoutequipment/go.mod b/service/lookoutequipment/go.mod
index 44124a4ab80..2934e29f073 100644
--- a/service/lookoutequipment/go.mod
+++ b/service/lookoutequipment/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutequipment
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lookoutequipment/go.sum b/service/lookoutequipment/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lookoutequipment/go.sum
+++ b/service/lookoutequipment/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lookoutequipment/go_module_metadata.go b/service/lookoutequipment/go_module_metadata.go
index 6307a8c0161..2638d627425 100644
--- a/service/lookoutequipment/go_module_metadata.go
+++ b/service/lookoutequipment/go_module_metadata.go
@@ -3,4 +3,4 @@
package lookoutequipment
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.3"
+const goModuleVersion = "1.31.4"
diff --git a/service/lookoutmetrics/CHANGELOG.md b/service/lookoutmetrics/CHANGELOG.md
index 5cca5bf85d1..1f99a16f6df 100644
--- a/service/lookoutmetrics/CHANGELOG.md
+++ b/service/lookoutmetrics/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.32.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.32.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lookoutmetrics/go.mod b/service/lookoutmetrics/go.mod
index 81446a88933..16c04a50e3a 100644
--- a/service/lookoutmetrics/go.mod
+++ b/service/lookoutmetrics/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutmetrics
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lookoutmetrics/go.sum b/service/lookoutmetrics/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lookoutmetrics/go.sum
+++ b/service/lookoutmetrics/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lookoutmetrics/go_module_metadata.go b/service/lookoutmetrics/go_module_metadata.go
index 1f1944fea5c..3c8e3230274 100644
--- a/service/lookoutmetrics/go_module_metadata.go
+++ b/service/lookoutmetrics/go_module_metadata.go
@@ -3,4 +3,4 @@
package lookoutmetrics
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.32.3"
+const goModuleVersion = "1.32.4"
diff --git a/service/lookoutvision/CHANGELOG.md b/service/lookoutvision/CHANGELOG.md
index dee43cd67fb..9226223d6b6 100644
--- a/service/lookoutvision/CHANGELOG.md
+++ b/service/lookoutvision/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/lookoutvision/go.mod b/service/lookoutvision/go.mod
index ab8466abff9..6ffba83b5f4 100644
--- a/service/lookoutvision/go.mod
+++ b/service/lookoutvision/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutvision
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/lookoutvision/go.sum b/service/lookoutvision/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/lookoutvision/go.sum
+++ b/service/lookoutvision/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/lookoutvision/go_module_metadata.go b/service/lookoutvision/go_module_metadata.go
index dec679f1a7b..2fd7aa60d72 100644
--- a/service/lookoutvision/go_module_metadata.go
+++ b/service/lookoutvision/go_module_metadata.go
@@ -3,4 +3,4 @@
package lookoutvision
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/m2/CHANGELOG.md b/service/m2/CHANGELOG.md
index 673ad5ec63c..fb38d50ccbc 100644
--- a/service/m2/CHANGELOG.md
+++ b/service/m2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.21.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.21.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/m2/go.mod b/service/m2/go.mod
index 39f1fe47d61..e3dba6773a6 100644
--- a/service/m2/go.mod
+++ b/service/m2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/m2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/m2/go.sum b/service/m2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/m2/go.sum
+++ b/service/m2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/m2/go_module_metadata.go b/service/m2/go_module_metadata.go
index 211cb2e3e6f..b9debb6aef8 100644
--- a/service/m2/go_module_metadata.go
+++ b/service/m2/go_module_metadata.go
@@ -3,4 +3,4 @@
package m2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.21.1"
+const goModuleVersion = "1.21.2"
diff --git a/service/machinelearning/CHANGELOG.md b/service/machinelearning/CHANGELOG.md
index 89e234783f8..637f7e2f41e 100644
--- a/service/machinelearning/CHANGELOG.md
+++ b/service/machinelearning/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod
index a10bb049b3d..a9f070162e7 100644
--- a/service/machinelearning/go.mod
+++ b/service/machinelearning/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/machinelearning
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/machinelearning/go.sum
+++ b/service/machinelearning/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/machinelearning/go_module_metadata.go b/service/machinelearning/go_module_metadata.go
index f538ef8101c..f190ab3e7d2 100644
--- a/service/machinelearning/go_module_metadata.go
+++ b/service/machinelearning/go_module_metadata.go
@@ -3,4 +3,4 @@
package machinelearning
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/macie2/CHANGELOG.md b/service/macie2/CHANGELOG.md
index 58a07cf685c..523decd651c 100644
--- a/service/macie2/CHANGELOG.md
+++ b/service/macie2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.45.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.45.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/macie2/go.mod b/service/macie2/go.mod
index d1155c97e4f..408ddfb3b3d 100644
--- a/service/macie2/go.mod
+++ b/service/macie2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/macie2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/macie2/go.sum b/service/macie2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/macie2/go.sum
+++ b/service/macie2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/macie2/go_module_metadata.go b/service/macie2/go_module_metadata.go
index a54146b7ef7..2e2b0900a1d 100644
--- a/service/macie2/go_module_metadata.go
+++ b/service/macie2/go_module_metadata.go
@@ -3,4 +3,4 @@
package macie2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.45.3"
+const goModuleVersion = "1.45.4"
diff --git a/service/mailmanager/CHANGELOG.md b/service/mailmanager/CHANGELOG.md
index e0dca06f8e8..e1330e0d8c8 100644
--- a/service/mailmanager/CHANGELOG.md
+++ b/service/mailmanager/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.13.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.13.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mailmanager/go.mod b/service/mailmanager/go.mod
index 9e90b49497b..527c59c054f 100644
--- a/service/mailmanager/go.mod
+++ b/service/mailmanager/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mailmanager
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mailmanager/go.sum b/service/mailmanager/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mailmanager/go.sum
+++ b/service/mailmanager/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mailmanager/go_module_metadata.go b/service/mailmanager/go_module_metadata.go
index 99075cfaefd..a1ed03efde2 100644
--- a/service/mailmanager/go_module_metadata.go
+++ b/service/mailmanager/go_module_metadata.go
@@ -3,4 +3,4 @@
package mailmanager
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.13.1"
+const goModuleVersion = "1.13.2"
diff --git a/service/managedblockchain/CHANGELOG.md b/service/managedblockchain/CHANGELOG.md
index 56fc30c3ffc..f4db95a760d 100644
--- a/service/managedblockchain/CHANGELOG.md
+++ b/service/managedblockchain/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod
index ffe046afe2b..31b2bf6e121 100644
--- a/service/managedblockchain/go.mod
+++ b/service/managedblockchain/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/managedblockchain
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/managedblockchain/go.sum
+++ b/service/managedblockchain/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/managedblockchain/go_module_metadata.go b/service/managedblockchain/go_module_metadata.go
index a5497b3d2e7..1c48e356e41 100644
--- a/service/managedblockchain/go_module_metadata.go
+++ b/service/managedblockchain/go_module_metadata.go
@@ -3,4 +3,4 @@
package managedblockchain
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/managedblockchainquery/CHANGELOG.md b/service/managedblockchainquery/CHANGELOG.md
index 9a1dc87b4d2..bbea3806855 100644
--- a/service/managedblockchainquery/CHANGELOG.md
+++ b/service/managedblockchainquery/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/managedblockchainquery/go.mod b/service/managedblockchainquery/go.mod
index 2316fd14fdb..14185d2cb5d 100644
--- a/service/managedblockchainquery/go.mod
+++ b/service/managedblockchainquery/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/managedblockchainquery
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/managedblockchainquery/go.sum b/service/managedblockchainquery/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/managedblockchainquery/go.sum
+++ b/service/managedblockchainquery/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/managedblockchainquery/go_module_metadata.go b/service/managedblockchainquery/go_module_metadata.go
index 903f524e550..c227b3c0ff8 100644
--- a/service/managedblockchainquery/go_module_metadata.go
+++ b/service/managedblockchainquery/go_module_metadata.go
@@ -3,4 +3,4 @@
package managedblockchainquery
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.3"
+const goModuleVersion = "1.17.4"
diff --git a/service/marketplaceagreement/CHANGELOG.md b/service/marketplaceagreement/CHANGELOG.md
index c5dcac7c3fd..c68c8bf1dd8 100644
--- a/service/marketplaceagreement/CHANGELOG.md
+++ b/service/marketplaceagreement/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.7.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.7.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/marketplaceagreement/go.mod b/service/marketplaceagreement/go.mod
index 10455cd8e53..764ec29135b 100644
--- a/service/marketplaceagreement/go.mod
+++ b/service/marketplaceagreement/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplaceagreement
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/marketplaceagreement/go.sum b/service/marketplaceagreement/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/marketplaceagreement/go.sum
+++ b/service/marketplaceagreement/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/marketplaceagreement/go_module_metadata.go b/service/marketplaceagreement/go_module_metadata.go
index 8ac83c31298..1cea2d3e45e 100644
--- a/service/marketplaceagreement/go_module_metadata.go
+++ b/service/marketplaceagreement/go_module_metadata.go
@@ -3,4 +3,4 @@
package marketplaceagreement
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.7.4"
+const goModuleVersion = "1.7.5"
diff --git a/service/marketplacecatalog/CHANGELOG.md b/service/marketplacecatalog/CHANGELOG.md
index 45561ca53ca..92bb0607c02 100644
--- a/service/marketplacecatalog/CHANGELOG.md
+++ b/service/marketplacecatalog/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.32.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.32.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod
index 4592e38a348..fda03c5238f 100644
--- a/service/marketplacecatalog/go.mod
+++ b/service/marketplacecatalog/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacecatalog
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/marketplacecatalog/go.sum
+++ b/service/marketplacecatalog/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/marketplacecatalog/go_module_metadata.go b/service/marketplacecatalog/go_module_metadata.go
index 9be17d5a79e..2b853e66232 100644
--- a/service/marketplacecatalog/go_module_metadata.go
+++ b/service/marketplacecatalog/go_module_metadata.go
@@ -3,4 +3,4 @@
package marketplacecatalog
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.32.1"
+const goModuleVersion = "1.32.2"
diff --git a/service/marketplacecommerceanalytics/CHANGELOG.md b/service/marketplacecommerceanalytics/CHANGELOG.md
index 1a573b3ec9a..ab69f3ab8a5 100644
--- a/service/marketplacecommerceanalytics/CHANGELOG.md
+++ b/service/marketplacecommerceanalytics/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod
index a3848f66fd0..6bcbb669778 100644
--- a/service/marketplacecommerceanalytics/go.mod
+++ b/service/marketplacecommerceanalytics/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/marketplacecommerceanalytics/go.sum
+++ b/service/marketplacecommerceanalytics/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/marketplacecommerceanalytics/go_module_metadata.go b/service/marketplacecommerceanalytics/go_module_metadata.go
index 52bbbde3bc9..4610d821561 100644
--- a/service/marketplacecommerceanalytics/go_module_metadata.go
+++ b/service/marketplacecommerceanalytics/go_module_metadata.go
@@ -3,4 +3,4 @@
package marketplacecommerceanalytics
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/marketplacedeployment/CHANGELOG.md b/service/marketplacedeployment/CHANGELOG.md
index 1ff27079cc9..92e2a1976de 100644
--- a/service/marketplacedeployment/CHANGELOG.md
+++ b/service/marketplacedeployment/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.7.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.7.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/marketplacedeployment/go.mod b/service/marketplacedeployment/go.mod
index 40bc8c6dec3..187d4326b8b 100644
--- a/service/marketplacedeployment/go.mod
+++ b/service/marketplacedeployment/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacedeployment
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/marketplacedeployment/go.sum b/service/marketplacedeployment/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/marketplacedeployment/go.sum
+++ b/service/marketplacedeployment/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/marketplacedeployment/go_module_metadata.go b/service/marketplacedeployment/go_module_metadata.go
index 387a8ea77ec..c7ac55702e4 100644
--- a/service/marketplacedeployment/go_module_metadata.go
+++ b/service/marketplacedeployment/go_module_metadata.go
@@ -3,4 +3,4 @@
package marketplacedeployment
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.7.4"
+const goModuleVersion = "1.7.5"
diff --git a/service/marketplaceentitlementservice/CHANGELOG.md b/service/marketplaceentitlementservice/CHANGELOG.md
index ae26d16c431..d4304acb3a0 100644
--- a/service/marketplaceentitlementservice/CHANGELOG.md
+++ b/service/marketplaceentitlementservice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod
index c1220d4f530..14bd2a99e96 100644
--- a/service/marketplaceentitlementservice/go.mod
+++ b/service/marketplaceentitlementservice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplaceentitlementservice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/marketplaceentitlementservice/go.sum
+++ b/service/marketplaceentitlementservice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/marketplaceentitlementservice/go_module_metadata.go b/service/marketplaceentitlementservice/go_module_metadata.go
index f73387e8d51..5f1eb7e6cfe 100644
--- a/service/marketplaceentitlementservice/go_module_metadata.go
+++ b/service/marketplaceentitlementservice/go_module_metadata.go
@@ -3,4 +3,4 @@
package marketplaceentitlementservice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.1"
+const goModuleVersion = "1.29.2"
diff --git a/service/marketplacemetering/CHANGELOG.md b/service/marketplacemetering/CHANGELOG.md
index 8fd534d456b..b06a3150401 100644
--- a/service/marketplacemetering/CHANGELOG.md
+++ b/service/marketplacemetering/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod
index 8042a7101d1..58e28767f69 100644
--- a/service/marketplacemetering/go.mod
+++ b/service/marketplacemetering/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacemetering
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/marketplacemetering/go.sum
+++ b/service/marketplacemetering/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/marketplacemetering/go_module_metadata.go b/service/marketplacemetering/go_module_metadata.go
index 1438a025859..da696af7c5f 100644
--- a/service/marketplacemetering/go_module_metadata.go
+++ b/service/marketplacemetering/go_module_metadata.go
@@ -3,4 +3,4 @@
package marketplacemetering
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.1"
+const goModuleVersion = "1.29.2"
diff --git a/service/marketplacereporting/CHANGELOG.md b/service/marketplacereporting/CHANGELOG.md
index 022636d05d2..8336d04c08b 100644
--- a/service/marketplacereporting/CHANGELOG.md
+++ b/service/marketplacereporting/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.2.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.2.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/marketplacereporting/go.mod b/service/marketplacereporting/go.mod
index c99c7135673..098cff1b24e 100644
--- a/service/marketplacereporting/go.mod
+++ b/service/marketplacereporting/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacereporting
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/marketplacereporting/go.sum b/service/marketplacereporting/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/marketplacereporting/go.sum
+++ b/service/marketplacereporting/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/marketplacereporting/go_module_metadata.go b/service/marketplacereporting/go_module_metadata.go
index bcd36ba64e5..10944e47a45 100644
--- a/service/marketplacereporting/go_module_metadata.go
+++ b/service/marketplacereporting/go_module_metadata.go
@@ -3,4 +3,4 @@
package marketplacereporting
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.3"
+const goModuleVersion = "1.2.4"
diff --git a/service/mediaconnect/CHANGELOG.md b/service/mediaconnect/CHANGELOG.md
index c7605da8472..98406e678bc 100644
--- a/service/mediaconnect/CHANGELOG.md
+++ b/service/mediaconnect/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.40.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.40.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod
index 350090c242a..537b9d9bbad 100644
--- a/service/mediaconnect/go.mod
+++ b/service/mediaconnect/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediaconnect
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mediaconnect/go.sum
+++ b/service/mediaconnect/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mediaconnect/go_module_metadata.go b/service/mediaconnect/go_module_metadata.go
index 2d59b6868f7..e9dbfcd2388 100644
--- a/service/mediaconnect/go_module_metadata.go
+++ b/service/mediaconnect/go_module_metadata.go
@@ -3,4 +3,4 @@
package mediaconnect
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.40.1"
+const goModuleVersion = "1.40.2"
diff --git a/service/mediaconvert/CHANGELOG.md b/service/mediaconvert/CHANGELOG.md
index b98988649c3..0f1039c08af 100644
--- a/service/mediaconvert/CHANGELOG.md
+++ b/service/mediaconvert/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.74.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.74.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod
index 3a4d0361819..f11970bee87 100644
--- a/service/mediaconvert/go.mod
+++ b/service/mediaconvert/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediaconvert
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mediaconvert/go.sum
+++ b/service/mediaconvert/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mediaconvert/go_module_metadata.go b/service/mediaconvert/go_module_metadata.go
index 264723f064b..17f926b3428 100644
--- a/service/mediaconvert/go_module_metadata.go
+++ b/service/mediaconvert/go_module_metadata.go
@@ -3,4 +3,4 @@
package mediaconvert
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.74.1"
+const goModuleVersion = "1.74.2"
diff --git a/service/medialive/CHANGELOG.md b/service/medialive/CHANGELOG.md
index 9b74ee40998..2d61643899b 100644
--- a/service/medialive/CHANGELOG.md
+++ b/service/medialive/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.76.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.76.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/medialive/go.mod b/service/medialive/go.mod
index 0bc21d923bc..6887012b9ac 100644
--- a/service/medialive/go.mod
+++ b/service/medialive/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/medialive
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/medialive/go.sum b/service/medialive/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/medialive/go.sum
+++ b/service/medialive/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/medialive/go_module_metadata.go b/service/medialive/go_module_metadata.go
index 149e76addd8..d53282bdb94 100644
--- a/service/medialive/go_module_metadata.go
+++ b/service/medialive/go_module_metadata.go
@@ -3,4 +3,4 @@
package medialive
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.76.1"
+const goModuleVersion = "1.76.2"
diff --git a/service/mediapackage/CHANGELOG.md b/service/mediapackage/CHANGELOG.md
index ef1bb3033fb..00cdd2c40ca 100644
--- a/service/mediapackage/CHANGELOG.md
+++ b/service/mediapackage/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod
index a30a2667143..7779fc358ac 100644
--- a/service/mediapackage/go.mod
+++ b/service/mediapackage/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackage
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mediapackage/go.sum
+++ b/service/mediapackage/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mediapackage/go_module_metadata.go b/service/mediapackage/go_module_metadata.go
index 0c943740d4c..45aa8facb48 100644
--- a/service/mediapackage/go_module_metadata.go
+++ b/service/mediapackage/go_module_metadata.go
@@ -3,4 +3,4 @@
package mediapackage
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.3"
+const goModuleVersion = "1.35.4"
diff --git a/service/mediapackagev2/CHANGELOG.md b/service/mediapackagev2/CHANGELOG.md
index f2414908c19..a22dff87382 100644
--- a/service/mediapackagev2/CHANGELOG.md
+++ b/service/mediapackagev2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.23.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.23.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mediapackagev2/go.mod b/service/mediapackagev2/go.mod
index 42cdc022d25..b898ad539cd 100644
--- a/service/mediapackagev2/go.mod
+++ b/service/mediapackagev2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackagev2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mediapackagev2/go.sum b/service/mediapackagev2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mediapackagev2/go.sum
+++ b/service/mediapackagev2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mediapackagev2/go_module_metadata.go b/service/mediapackagev2/go_module_metadata.go
index 8e653cd679d..f6add40fa91 100644
--- a/service/mediapackagev2/go_module_metadata.go
+++ b/service/mediapackagev2/go_module_metadata.go
@@ -3,4 +3,4 @@
package mediapackagev2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.23.1"
+const goModuleVersion = "1.23.2"
diff --git a/service/mediapackagevod/CHANGELOG.md b/service/mediapackagevod/CHANGELOG.md
index 73fa2b5da36..97258b24cc1 100644
--- a/service/mediapackagevod/CHANGELOG.md
+++ b/service/mediapackagevod/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod
index 4b7b7694dd9..d437a489266 100644
--- a/service/mediapackagevod/go.mod
+++ b/service/mediapackagevod/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackagevod
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mediapackagevod/go.sum
+++ b/service/mediapackagevod/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mediapackagevod/go_module_metadata.go b/service/mediapackagevod/go_module_metadata.go
index 5340295d2bd..d0d8c50caa0 100644
--- a/service/mediapackagevod/go_module_metadata.go
+++ b/service/mediapackagevod/go_module_metadata.go
@@ -3,4 +3,4 @@
package mediapackagevod
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.3"
+const goModuleVersion = "1.35.4"
diff --git a/service/mediastore/CHANGELOG.md b/service/mediastore/CHANGELOG.md
index 103d7987d72..3dfbf15b517 100644
--- a/service/mediastore/CHANGELOG.md
+++ b/service/mediastore/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod
index 681f9ee0473..7285356d1d7 100644
--- a/service/mediastore/go.mod
+++ b/service/mediastore/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediastore
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mediastore/go.sum
+++ b/service/mediastore/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mediastore/go_module_metadata.go b/service/mediastore/go_module_metadata.go
index e04605116a5..23ff395b5c4 100644
--- a/service/mediastore/go_module_metadata.go
+++ b/service/mediastore/go_module_metadata.go
@@ -3,4 +3,4 @@
package mediastore
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/mediastoredata/CHANGELOG.md b/service/mediastoredata/CHANGELOG.md
index 138481cf35c..27623f9b524 100644
--- a/service/mediastoredata/CHANGELOG.md
+++ b/service/mediastoredata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod
index f57567bc6e1..cf718076fc0 100644
--- a/service/mediastoredata/go.mod
+++ b/service/mediastoredata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediastoredata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mediastoredata/go.sum
+++ b/service/mediastoredata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mediastoredata/go_module_metadata.go b/service/mediastoredata/go_module_metadata.go
index d1d28716102..e3f3d7eb2e4 100644
--- a/service/mediastoredata/go_module_metadata.go
+++ b/service/mediastoredata/go_module_metadata.go
@@ -3,4 +3,4 @@
package mediastoredata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/mediatailor/CHANGELOG.md b/service/mediatailor/CHANGELOG.md
index 6725a50a1b1..3a50670312e 100644
--- a/service/mediatailor/CHANGELOG.md
+++ b/service/mediatailor/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.48.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.48.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod
index c03dd99c861..e226e090ee0 100644
--- a/service/mediatailor/go.mod
+++ b/service/mediatailor/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediatailor
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mediatailor/go.sum
+++ b/service/mediatailor/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mediatailor/go_module_metadata.go b/service/mediatailor/go_module_metadata.go
index de255de62f8..201f8b55b0e 100644
--- a/service/mediatailor/go_module_metadata.go
+++ b/service/mediatailor/go_module_metadata.go
@@ -3,4 +3,4 @@
package mediatailor
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.48.1"
+const goModuleVersion = "1.48.2"
diff --git a/service/medicalimaging/CHANGELOG.md b/service/medicalimaging/CHANGELOG.md
index 4f0e3903e60..a670321c8bf 100644
--- a/service/medicalimaging/CHANGELOG.md
+++ b/service/medicalimaging/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.15.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/medicalimaging/go.mod b/service/medicalimaging/go.mod
index 990fe36fea5..05bbf576f1b 100644
--- a/service/medicalimaging/go.mod
+++ b/service/medicalimaging/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/medicalimaging
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/medicalimaging/go.sum b/service/medicalimaging/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/medicalimaging/go.sum
+++ b/service/medicalimaging/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/medicalimaging/go_module_metadata.go b/service/medicalimaging/go_module_metadata.go
index 95ec9d674ea..327ab8dfc23 100644
--- a/service/medicalimaging/go_module_metadata.go
+++ b/service/medicalimaging/go_module_metadata.go
@@ -3,4 +3,4 @@
package medicalimaging
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.15.3"
+const goModuleVersion = "1.15.4"
diff --git a/service/memorydb/CHANGELOG.md b/service/memorydb/CHANGELOG.md
index 404d74355fa..024e5efe712 100644
--- a/service/memorydb/CHANGELOG.md
+++ b/service/memorydb/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/memorydb/go.mod b/service/memorydb/go.mod
index 5fd65893ef2..ba600367c6c 100644
--- a/service/memorydb/go.mod
+++ b/service/memorydb/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/memorydb
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/memorydb/go.sum b/service/memorydb/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/memorydb/go.sum
+++ b/service/memorydb/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/memorydb/go_module_metadata.go b/service/memorydb/go_module_metadata.go
index 94a398b795c..9670d82bb11 100644
--- a/service/memorydb/go_module_metadata.go
+++ b/service/memorydb/go_module_metadata.go
@@ -3,4 +3,4 @@
package memorydb
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.1"
+const goModuleVersion = "1.27.2"
diff --git a/service/mgn/CHANGELOG.md b/service/mgn/CHANGELOG.md
index ee02763a344..0a620d041e0 100644
--- a/service/mgn/CHANGELOG.md
+++ b/service/mgn/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mgn/go.mod b/service/mgn/go.mod
index 6e6962f0876..d6383a7dcf6 100644
--- a/service/mgn/go.mod
+++ b/service/mgn/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mgn
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mgn/go.sum b/service/mgn/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mgn/go.sum
+++ b/service/mgn/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mgn/go_module_metadata.go b/service/mgn/go_module_metadata.go
index db721bdbf22..7cbef843e00 100644
--- a/service/mgn/go_module_metadata.go
+++ b/service/mgn/go_module_metadata.go
@@ -3,4 +3,4 @@
package mgn
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.3"
+const goModuleVersion = "1.33.4"
diff --git a/service/migrationhub/CHANGELOG.md b/service/migrationhub/CHANGELOG.md
index 01537ae6aeb..2aac6ed2db3 100644
--- a/service/migrationhub/CHANGELOG.md
+++ b/service/migrationhub/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod
index 2322390eb85..8aa68997457 100644
--- a/service/migrationhub/go.mod
+++ b/service/migrationhub/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhub
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/migrationhub/go.sum
+++ b/service/migrationhub/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/migrationhub/go_module_metadata.go b/service/migrationhub/go_module_metadata.go
index 820f0d061d7..7d656e8fec6 100644
--- a/service/migrationhub/go_module_metadata.go
+++ b/service/migrationhub/go_module_metadata.go
@@ -3,4 +3,4 @@
package migrationhub
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/migrationhubconfig/CHANGELOG.md b/service/migrationhubconfig/CHANGELOG.md
index 531d862df47..c3a0a665633 100644
--- a/service/migrationhubconfig/CHANGELOG.md
+++ b/service/migrationhubconfig/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod
index 3ffbd5591c7..d05f057be5f 100644
--- a/service/migrationhubconfig/go.mod
+++ b/service/migrationhubconfig/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubconfig
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/migrationhubconfig/go.sum
+++ b/service/migrationhubconfig/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/migrationhubconfig/go_module_metadata.go b/service/migrationhubconfig/go_module_metadata.go
index be041ce3947..17fd3abf3a4 100644
--- a/service/migrationhubconfig/go_module_metadata.go
+++ b/service/migrationhubconfig/go_module_metadata.go
@@ -3,4 +3,4 @@
package migrationhubconfig
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/migrationhuborchestrator/CHANGELOG.md b/service/migrationhuborchestrator/CHANGELOG.md
index 4be50116765..5e7bb3b812c 100644
--- a/service/migrationhuborchestrator/CHANGELOG.md
+++ b/service/migrationhuborchestrator/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.14.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.14.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/migrationhuborchestrator/go.mod b/service/migrationhuborchestrator/go.mod
index 4f29d058f9d..4f6d0fd6fbb 100644
--- a/service/migrationhuborchestrator/go.mod
+++ b/service/migrationhuborchestrator/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhuborchestrator
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/migrationhuborchestrator/go.sum b/service/migrationhuborchestrator/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/migrationhuborchestrator/go.sum
+++ b/service/migrationhuborchestrator/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/migrationhuborchestrator/go_module_metadata.go b/service/migrationhuborchestrator/go_module_metadata.go
index 952266d01f6..fd4ecf37d42 100644
--- a/service/migrationhuborchestrator/go_module_metadata.go
+++ b/service/migrationhuborchestrator/go_module_metadata.go
@@ -3,4 +3,4 @@
package migrationhuborchestrator
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.14.3"
+const goModuleVersion = "1.14.4"
diff --git a/service/migrationhubrefactorspaces/CHANGELOG.md b/service/migrationhubrefactorspaces/CHANGELOG.md
index a2124738c13..5faba030d88 100644
--- a/service/migrationhubrefactorspaces/CHANGELOG.md
+++ b/service/migrationhubrefactorspaces/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.21.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.21.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/migrationhubrefactorspaces/go.mod b/service/migrationhubrefactorspaces/go.mod
index 98e7118bba2..81c8bd84c64 100644
--- a/service/migrationhubrefactorspaces/go.mod
+++ b/service/migrationhubrefactorspaces/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubrefactorspaces
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/migrationhubrefactorspaces/go.sum b/service/migrationhubrefactorspaces/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/migrationhubrefactorspaces/go.sum
+++ b/service/migrationhubrefactorspaces/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/migrationhubrefactorspaces/go_module_metadata.go b/service/migrationhubrefactorspaces/go_module_metadata.go
index 070955894a9..9252ff452a4 100644
--- a/service/migrationhubrefactorspaces/go_module_metadata.go
+++ b/service/migrationhubrefactorspaces/go_module_metadata.go
@@ -3,4 +3,4 @@
package migrationhubrefactorspaces
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.21.3"
+const goModuleVersion = "1.21.4"
diff --git a/service/migrationhubstrategy/CHANGELOG.md b/service/migrationhubstrategy/CHANGELOG.md
index 8cb3f394c8c..47f37c93f20 100644
--- a/service/migrationhubstrategy/CHANGELOG.md
+++ b/service/migrationhubstrategy/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.22.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.22.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/migrationhubstrategy/go.mod b/service/migrationhubstrategy/go.mod
index 96e1524263c..bf6f5635ca3 100644
--- a/service/migrationhubstrategy/go.mod
+++ b/service/migrationhubstrategy/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubstrategy
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/migrationhubstrategy/go.sum b/service/migrationhubstrategy/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/migrationhubstrategy/go.sum
+++ b/service/migrationhubstrategy/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/migrationhubstrategy/go_module_metadata.go b/service/migrationhubstrategy/go_module_metadata.go
index 6b9f9f61655..6e3c103bc29 100644
--- a/service/migrationhubstrategy/go_module_metadata.go
+++ b/service/migrationhubstrategy/go_module_metadata.go
@@ -3,4 +3,4 @@
package migrationhubstrategy
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.22.3"
+const goModuleVersion = "1.22.4"
diff --git a/service/mpa/CHANGELOG.md b/service/mpa/CHANGELOG.md
new file mode 100644
index 00000000000..2ab821f2f69
--- /dev/null
+++ b/service/mpa/CHANGELOG.md
@@ -0,0 +1,6 @@
+# v1.0.0 (2025-06-17)
+
+* **Release**: New AWS service client module
+* **Feature**: This release enables customers to create Multi-party approval teams and approval requests to protect supported operations.
+* **Dependency Update**: Updated to the latest SDK module versions
+
diff --git a/service/mpa/LICENSE.txt b/service/mpa/LICENSE.txt
new file mode 100644
index 00000000000..d6456956733
--- /dev/null
+++ b/service/mpa/LICENSE.txt
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/service/mpa/api_client.go b/service/mpa/api_client.go
new file mode 100644
index 00000000000..3b434e858ea
--- /dev/null
+++ b/service/mpa/api_client.go
@@ -0,0 +1,960 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ cryptorand "crypto/rand"
+ "errors"
+ "fmt"
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/aws/defaults"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/aws/retry"
+ "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
+ awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
+ internalauth "github.com/aws/aws-sdk-go-v2/internal/auth"
+ internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy"
+ internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources"
+ internalmiddleware "github.com/aws/aws-sdk-go-v2/internal/middleware"
+ smithy "github.com/aws/smithy-go"
+ smithyauth "github.com/aws/smithy-go/auth"
+ smithydocument "github.com/aws/smithy-go/document"
+ "github.com/aws/smithy-go/logging"
+ "github.com/aws/smithy-go/metrics"
+ "github.com/aws/smithy-go/middleware"
+ smithyrand "github.com/aws/smithy-go/rand"
+ "github.com/aws/smithy-go/tracing"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "net"
+ "net/http"
+ "sync/atomic"
+ "time"
+)
+
+const ServiceID = "MPA"
+const ServiceAPIVersion = "2022-07-26"
+
+type operationMetrics struct {
+ Duration metrics.Float64Histogram
+ SerializeDuration metrics.Float64Histogram
+ ResolveIdentityDuration metrics.Float64Histogram
+ ResolveEndpointDuration metrics.Float64Histogram
+ SignRequestDuration metrics.Float64Histogram
+ DeserializeDuration metrics.Float64Histogram
+}
+
+func (m *operationMetrics) histogramFor(name string) metrics.Float64Histogram {
+ switch name {
+ case "client.call.duration":
+ return m.Duration
+ case "client.call.serialization_duration":
+ return m.SerializeDuration
+ case "client.call.resolve_identity_duration":
+ return m.ResolveIdentityDuration
+ case "client.call.resolve_endpoint_duration":
+ return m.ResolveEndpointDuration
+ case "client.call.signing_duration":
+ return m.SignRequestDuration
+ case "client.call.deserialization_duration":
+ return m.DeserializeDuration
+ default:
+ panic("unrecognized operation metric")
+ }
+}
+
+func timeOperationMetric[T any](
+ ctx context.Context, metric string, fn func() (T, error),
+ opts ...metrics.RecordMetricOption,
+) (T, error) {
+ instr := getOperationMetrics(ctx).histogramFor(metric)
+ opts = append([]metrics.RecordMetricOption{withOperationMetadata(ctx)}, opts...)
+
+ start := time.Now()
+ v, err := fn()
+ end := time.Now()
+
+ elapsed := end.Sub(start)
+ instr.Record(ctx, float64(elapsed)/1e9, opts...)
+ return v, err
+}
+
+func startMetricTimer(ctx context.Context, metric string, opts ...metrics.RecordMetricOption) func() {
+ instr := getOperationMetrics(ctx).histogramFor(metric)
+ opts = append([]metrics.RecordMetricOption{withOperationMetadata(ctx)}, opts...)
+
+ var ended bool
+ start := time.Now()
+ return func() {
+ if ended {
+ return
+ }
+ ended = true
+
+ end := time.Now()
+
+ elapsed := end.Sub(start)
+ instr.Record(ctx, float64(elapsed)/1e9, opts...)
+ }
+}
+
+func withOperationMetadata(ctx context.Context) metrics.RecordMetricOption {
+ return func(o *metrics.RecordMetricOptions) {
+ o.Properties.Set("rpc.service", middleware.GetServiceID(ctx))
+ o.Properties.Set("rpc.method", middleware.GetOperationName(ctx))
+ }
+}
+
+type operationMetricsKey struct{}
+
+func withOperationMetrics(parent context.Context, mp metrics.MeterProvider) (context.Context, error) {
+ meter := mp.Meter("github.com/aws/aws-sdk-go-v2/service/mpa")
+ om := &operationMetrics{}
+
+ var err error
+
+ om.Duration, err = operationMetricTimer(meter, "client.call.duration",
+ "Overall call duration (including retries and time to send or receive request and response body)")
+ if err != nil {
+ return nil, err
+ }
+ om.SerializeDuration, err = operationMetricTimer(meter, "client.call.serialization_duration",
+ "The time it takes to serialize a message body")
+ if err != nil {
+ return nil, err
+ }
+ om.ResolveIdentityDuration, err = operationMetricTimer(meter, "client.call.auth.resolve_identity_duration",
+ "The time taken to acquire an identity (AWS credentials, bearer token, etc) from an Identity Provider")
+ if err != nil {
+ return nil, err
+ }
+ om.ResolveEndpointDuration, err = operationMetricTimer(meter, "client.call.resolve_endpoint_duration",
+ "The time it takes to resolve an endpoint (endpoint resolver, not DNS) for the request")
+ if err != nil {
+ return nil, err
+ }
+ om.SignRequestDuration, err = operationMetricTimer(meter, "client.call.auth.signing_duration",
+ "The time it takes to sign a request")
+ if err != nil {
+ return nil, err
+ }
+ om.DeserializeDuration, err = operationMetricTimer(meter, "client.call.deserialization_duration",
+ "The time it takes to deserialize a message body")
+ if err != nil {
+ return nil, err
+ }
+
+ return context.WithValue(parent, operationMetricsKey{}, om), nil
+}
+
+func operationMetricTimer(m metrics.Meter, name, desc string) (metrics.Float64Histogram, error) {
+ return m.Float64Histogram(name, func(o *metrics.InstrumentOptions) {
+ o.UnitLabel = "s"
+ o.Description = desc
+ })
+}
+
+func getOperationMetrics(ctx context.Context) *operationMetrics {
+ return ctx.Value(operationMetricsKey{}).(*operationMetrics)
+}
+
+func operationTracer(p tracing.TracerProvider) tracing.Tracer {
+ return p.Tracer("github.com/aws/aws-sdk-go-v2/service/mpa")
+}
+
+// Client provides the API client to make operations call for AWS Multi-party
+// Approval.
+type Client struct {
+ options Options
+
+ // Difference between the time reported by the server and the client
+ timeOffset *atomic.Int64
+}
+
+// New returns an initialized Client based on the functional options. Provide
+// additional functional options to further configure the behavior of the client,
+// such as changing the client's endpoint or adding custom middleware behavior.
+func New(options Options, optFns ...func(*Options)) *Client {
+ options = options.Copy()
+
+ resolveDefaultLogger(&options)
+
+ setResolvedDefaultsMode(&options)
+
+ resolveRetryer(&options)
+
+ resolveHTTPClient(&options)
+
+ resolveHTTPSignerV4(&options)
+
+ resolveIdempotencyTokenProvider(&options)
+
+ resolveEndpointResolverV2(&options)
+
+ resolveTracerProvider(&options)
+
+ resolveMeterProvider(&options)
+
+ resolveAuthSchemeResolver(&options)
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ finalizeRetryMaxAttempts(&options)
+
+ ignoreAnonymousAuth(&options)
+
+ wrapWithAnonymousAuth(&options)
+
+ resolveAuthSchemes(&options)
+
+ client := &Client{
+ options: options,
+ }
+
+ initializeTimeOffsetResolver(client)
+
+ return client
+}
+
+// Options returns a copy of the client configuration.
+//
+// Callers SHOULD NOT perform mutations on any inner structures within client
+// config. Config overrides should instead be made on a per-operation basis through
+// functional options.
+func (c *Client) Options() Options {
+ return c.options.Copy()
+}
+
+func (c *Client) invokeOperation(
+ ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error,
+) (
+ result interface{}, metadata middleware.Metadata, err error,
+) {
+ ctx = middleware.ClearStackValues(ctx)
+ ctx = middleware.WithServiceID(ctx, ServiceID)
+ ctx = middleware.WithOperationName(ctx, opID)
+
+ stack := middleware.NewStack(opID, smithyhttp.NewStackRequest)
+ options := c.options.Copy()
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ finalizeOperationRetryMaxAttempts(&options, *c)
+
+ finalizeClientEndpointResolverOptions(&options)
+
+ for _, fn := range stackFns {
+ if err := fn(stack, options); err != nil {
+ return nil, metadata, err
+ }
+ }
+
+ for _, fn := range options.APIOptions {
+ if err := fn(stack); err != nil {
+ return nil, metadata, err
+ }
+ }
+
+ ctx, err = withOperationMetrics(ctx, options.MeterProvider)
+ if err != nil {
+ return nil, metadata, err
+ }
+
+ tracer := operationTracer(options.TracerProvider)
+ spanName := fmt.Sprintf("%s.%s", ServiceID, opID)
+
+ ctx = tracing.WithOperationTracer(ctx, tracer)
+
+ ctx, span := tracer.StartSpan(ctx, spanName, func(o *tracing.SpanOptions) {
+ o.Kind = tracing.SpanKindClient
+ o.Properties.Set("rpc.system", "aws-api")
+ o.Properties.Set("rpc.method", opID)
+ o.Properties.Set("rpc.service", ServiceID)
+ })
+ endTimer := startMetricTimer(ctx, "client.call.duration")
+ defer endTimer()
+ defer span.End()
+
+ handler := smithyhttp.NewClientHandlerWithOptions(options.HTTPClient, func(o *smithyhttp.ClientHandler) {
+ o.Meter = options.MeterProvider.Meter("github.com/aws/aws-sdk-go-v2/service/mpa")
+ })
+ decorated := middleware.DecorateHandler(handler, stack)
+ result, metadata, err = decorated.Handle(ctx, params)
+ if err != nil {
+ span.SetProperty("exception.type", fmt.Sprintf("%T", err))
+ span.SetProperty("exception.message", err.Error())
+
+ var aerr smithy.APIError
+ if errors.As(err, &aerr) {
+ span.SetProperty("api.error_code", aerr.ErrorCode())
+ span.SetProperty("api.error_message", aerr.ErrorMessage())
+ span.SetProperty("api.error_fault", aerr.ErrorFault().String())
+ }
+
+ err = &smithy.OperationError{
+ ServiceID: ServiceID,
+ OperationName: opID,
+ Err: err,
+ }
+ }
+
+ span.SetProperty("error", err != nil)
+ if err == nil {
+ span.SetStatus(tracing.SpanStatusOK)
+ } else {
+ span.SetStatus(tracing.SpanStatusError)
+ }
+
+ return result, metadata, err
+}
+
+type operationInputKey struct{}
+
+func setOperationInput(ctx context.Context, input interface{}) context.Context {
+ return middleware.WithStackValue(ctx, operationInputKey{}, input)
+}
+
+func getOperationInput(ctx context.Context) interface{} {
+ return middleware.GetStackValue(ctx, operationInputKey{})
+}
+
+type setOperationInputMiddleware struct {
+}
+
+func (*setOperationInputMiddleware) ID() string {
+ return "setOperationInput"
+}
+
+func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ ctx = setOperationInput(ctx, in.Parameters)
+ return next.HandleSerialize(ctx, in)
+}
+
+func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error {
+ if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil {
+ return fmt.Errorf("add ResolveAuthScheme: %w", err)
+ }
+ if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil {
+ return fmt.Errorf("add GetIdentity: %v", err)
+ }
+ if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", middleware.After); err != nil {
+ return fmt.Errorf("add ResolveEndpointV2: %v", err)
+ }
+ if err := stack.Finalize.Insert(&signRequestMiddleware{options: options}, "ResolveEndpointV2", middleware.After); err != nil {
+ return fmt.Errorf("add Signing: %w", err)
+ }
+ return nil
+}
+func resolveAuthSchemeResolver(options *Options) {
+ if options.AuthSchemeResolver == nil {
+ options.AuthSchemeResolver = &defaultAuthSchemeResolver{}
+ }
+}
+
+func resolveAuthSchemes(options *Options) {
+ if options.AuthSchemes == nil {
+ options.AuthSchemes = []smithyhttp.AuthScheme{
+ internalauth.NewHTTPAuthScheme("aws.auth#sigv4", &internalauthsmithy.V4SignerAdapter{
+ Signer: options.HTTPSignerV4,
+ Logger: options.Logger,
+ LogSigning: options.ClientLogMode.IsSigning(),
+ }),
+ }
+ }
+}
+
+type noSmithyDocumentSerde = smithydocument.NoSerde
+
+type legacyEndpointContextSetter struct {
+ LegacyResolver EndpointResolver
+}
+
+func (*legacyEndpointContextSetter) ID() string {
+ return "legacyEndpointContextSetter"
+}
+
+func (m *legacyEndpointContextSetter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.LegacyResolver != nil {
+ ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, true)
+ }
+
+ return next.HandleInitialize(ctx, in)
+
+}
+func addlegacyEndpointContextSetter(stack *middleware.Stack, o Options) error {
+ return stack.Initialize.Add(&legacyEndpointContextSetter{
+ LegacyResolver: o.EndpointResolver,
+ }, middleware.Before)
+}
+
+func resolveDefaultLogger(o *Options) {
+ if o.Logger != nil {
+ return
+ }
+ o.Logger = logging.Nop{}
+}
+
+func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error {
+ return middleware.AddSetLoggerMiddleware(stack, o.Logger)
+}
+
+func setResolvedDefaultsMode(o *Options) {
+ if len(o.resolvedDefaultsMode) > 0 {
+ return
+ }
+
+ var mode aws.DefaultsMode
+ mode.SetFromString(string(o.DefaultsMode))
+
+ if mode == aws.DefaultsModeAuto {
+ mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment)
+ }
+
+ o.resolvedDefaultsMode = mode
+}
+
+// NewFromConfig returns a new client from the provided config.
+func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
+ opts := Options{
+ Region: cfg.Region,
+ DefaultsMode: cfg.DefaultsMode,
+ RuntimeEnvironment: cfg.RuntimeEnvironment,
+ HTTPClient: cfg.HTTPClient,
+ Credentials: cfg.Credentials,
+ APIOptions: cfg.APIOptions,
+ Logger: cfg.Logger,
+ ClientLogMode: cfg.ClientLogMode,
+ AppID: cfg.AppID,
+ }
+ resolveAWSRetryerProvider(cfg, &opts)
+ resolveAWSRetryMaxAttempts(cfg, &opts)
+ resolveAWSRetryMode(cfg, &opts)
+ resolveAWSEndpointResolver(cfg, &opts)
+ resolveUseDualStackEndpoint(cfg, &opts)
+ resolveUseFIPSEndpoint(cfg, &opts)
+ resolveBaseEndpoint(cfg, &opts)
+ return New(opts, optFns...)
+}
+
+func resolveHTTPClient(o *Options) {
+ var buildable *awshttp.BuildableClient
+
+ if o.HTTPClient != nil {
+ var ok bool
+ buildable, ok = o.HTTPClient.(*awshttp.BuildableClient)
+ if !ok {
+ return
+ }
+ } else {
+ buildable = awshttp.NewBuildableClient()
+ }
+
+ modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
+ if err == nil {
+ buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) {
+ if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok {
+ dialer.Timeout = dialerTimeout
+ }
+ })
+
+ buildable = buildable.WithTransportOptions(func(transport *http.Transport) {
+ if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok {
+ transport.TLSHandshakeTimeout = tlsHandshakeTimeout
+ }
+ })
+ }
+
+ o.HTTPClient = buildable
+}
+
+func resolveRetryer(o *Options) {
+ if o.Retryer != nil {
+ return
+ }
+
+ if len(o.RetryMode) == 0 {
+ modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
+ if err == nil {
+ o.RetryMode = modeConfig.RetryMode
+ }
+ }
+ if len(o.RetryMode) == 0 {
+ o.RetryMode = aws.RetryModeStandard
+ }
+
+ var standardOptions []func(*retry.StandardOptions)
+ if v := o.RetryMaxAttempts; v != 0 {
+ standardOptions = append(standardOptions, func(so *retry.StandardOptions) {
+ so.MaxAttempts = v
+ })
+ }
+
+ switch o.RetryMode {
+ case aws.RetryModeAdaptive:
+ var adaptiveOptions []func(*retry.AdaptiveModeOptions)
+ if len(standardOptions) != 0 {
+ adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) {
+ ao.StandardOptions = append(ao.StandardOptions, standardOptions...)
+ })
+ }
+ o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...)
+
+ default:
+ o.Retryer = retry.NewStandard(standardOptions...)
+ }
+}
+
+func resolveAWSRetryerProvider(cfg aws.Config, o *Options) {
+ if cfg.Retryer == nil {
+ return
+ }
+ o.Retryer = cfg.Retryer()
+}
+
+func resolveAWSRetryMode(cfg aws.Config, o *Options) {
+ if len(cfg.RetryMode) == 0 {
+ return
+ }
+ o.RetryMode = cfg.RetryMode
+}
+func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) {
+ if cfg.RetryMaxAttempts == 0 {
+ return
+ }
+ o.RetryMaxAttempts = cfg.RetryMaxAttempts
+}
+
+func finalizeRetryMaxAttempts(o *Options) {
+ if o.RetryMaxAttempts == 0 {
+ return
+ }
+
+ o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
+}
+
+func finalizeOperationRetryMaxAttempts(o *Options, client Client) {
+ if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts {
+ return
+ }
+
+ o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
+}
+
+func resolveAWSEndpointResolver(cfg aws.Config, o *Options) {
+ if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil {
+ return
+ }
+ o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions)
+}
+
+func addClientUserAgent(stack *middleware.Stack, options Options) error {
+ ua, err := getOrAddRequestUserAgent(stack)
+ if err != nil {
+ return err
+ }
+
+ ua.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "mpa", goModuleVersion)
+ if len(options.AppID) > 0 {
+ ua.AddSDKAgentKey(awsmiddleware.ApplicationIdentifier, options.AppID)
+ }
+
+ return nil
+}
+
+func getOrAddRequestUserAgent(stack *middleware.Stack) (*awsmiddleware.RequestUserAgent, error) {
+ id := (*awsmiddleware.RequestUserAgent)(nil).ID()
+ mw, ok := stack.Build.Get(id)
+ if !ok {
+ mw = awsmiddleware.NewRequestUserAgent()
+ if err := stack.Build.Add(mw, middleware.After); err != nil {
+ return nil, err
+ }
+ }
+
+ ua, ok := mw.(*awsmiddleware.RequestUserAgent)
+ if !ok {
+ return nil, fmt.Errorf("%T for %s middleware did not match expected type", mw, id)
+ }
+
+ return ua, nil
+}
+
+type HTTPSignerV4 interface {
+ SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error
+}
+
+func resolveHTTPSignerV4(o *Options) {
+ if o.HTTPSignerV4 != nil {
+ return
+ }
+ o.HTTPSignerV4 = newDefaultV4Signer(*o)
+}
+
+func newDefaultV4Signer(o Options) *v4.Signer {
+ return v4.NewSigner(func(so *v4.SignerOptions) {
+ so.Logger = o.Logger
+ so.LogSigning = o.ClientLogMode.IsSigning()
+ })
+}
+
+func addClientRequestID(stack *middleware.Stack) error {
+ return stack.Build.Add(&awsmiddleware.ClientRequestID{}, middleware.After)
+}
+
+func addComputeContentLength(stack *middleware.Stack) error {
+ return stack.Build.Add(&smithyhttp.ComputeContentLength{}, middleware.After)
+}
+
+func addRawResponseToMetadata(stack *middleware.Stack) error {
+ return stack.Deserialize.Add(&awsmiddleware.AddRawResponse{}, middleware.Before)
+}
+
+func addRecordResponseTiming(stack *middleware.Stack) error {
+ return stack.Deserialize.Add(&awsmiddleware.RecordResponseTiming{}, middleware.After)
+}
+
+func addSpanRetryLoop(stack *middleware.Stack, options Options) error {
+ return stack.Finalize.Insert(&spanRetryLoop{options: options}, "Retry", middleware.Before)
+}
+
+type spanRetryLoop struct {
+ options Options
+}
+
+func (*spanRetryLoop) ID() string {
+ return "spanRetryLoop"
+}
+
+func (m *spanRetryLoop) HandleFinalize(
+ ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
+) (
+ middleware.FinalizeOutput, middleware.Metadata, error,
+) {
+ tracer := operationTracer(m.options.TracerProvider)
+ ctx, span := tracer.StartSpan(ctx, "RetryLoop")
+ defer span.End()
+
+ return next.HandleFinalize(ctx, in)
+}
+func addStreamingEventsPayload(stack *middleware.Stack) error {
+ return stack.Finalize.Add(&v4.StreamingEventsPayload{}, middleware.Before)
+}
+
+func addUnsignedPayload(stack *middleware.Stack) error {
+ return stack.Finalize.Insert(&v4.UnsignedPayload{}, "ResolveEndpointV2", middleware.After)
+}
+
+func addComputePayloadSHA256(stack *middleware.Stack) error {
+ return stack.Finalize.Insert(&v4.ComputePayloadSHA256{}, "ResolveEndpointV2", middleware.After)
+}
+
+func addContentSHA256Header(stack *middleware.Stack) error {
+ return stack.Finalize.Insert(&v4.ContentSHA256Header{}, (*v4.ComputePayloadSHA256)(nil).ID(), middleware.After)
+}
+
+func addIsWaiterUserAgent(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ ua, err := getOrAddRequestUserAgent(stack)
+ if err != nil {
+ return err
+ }
+
+ ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureWaiter)
+ return nil
+ })
+}
+
+func addIsPaginatorUserAgent(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ ua, err := getOrAddRequestUserAgent(stack)
+ if err != nil {
+ return err
+ }
+
+ ua.AddUserAgentFeature(awsmiddleware.UserAgentFeaturePaginator)
+ return nil
+ })
+}
+
+func resolveIdempotencyTokenProvider(o *Options) {
+ if o.IdempotencyTokenProvider != nil {
+ return
+ }
+ o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader)
+}
+
+func addRetry(stack *middleware.Stack, o Options) error {
+ attempt := retry.NewAttemptMiddleware(o.Retryer, smithyhttp.RequestCloner, func(m *retry.Attempt) {
+ m.LogAttempts = o.ClientLogMode.IsRetries()
+ m.OperationMeter = o.MeterProvider.Meter("github.com/aws/aws-sdk-go-v2/service/mpa")
+ })
+ if err := stack.Finalize.Insert(attempt, "ResolveAuthScheme", middleware.Before); err != nil {
+ return err
+ }
+ if err := stack.Finalize.Insert(&retry.MetricsHeader{}, attempt.ID(), middleware.After); err != nil {
+ return err
+ }
+ return nil
+}
+
+// resolves dual-stack endpoint configuration
+func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error {
+ if len(cfg.ConfigSources) == 0 {
+ return nil
+ }
+ value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources)
+ if err != nil {
+ return err
+ }
+ if found {
+ o.EndpointOptions.UseDualStackEndpoint = value
+ }
+ return nil
+}
+
+// resolves FIPS endpoint configuration
+func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error {
+ if len(cfg.ConfigSources) == 0 {
+ return nil
+ }
+ value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources)
+ if err != nil {
+ return err
+ }
+ if found {
+ o.EndpointOptions.UseFIPSEndpoint = value
+ }
+ return nil
+}
+
+func resolveAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) *string {
+ if mode == aws.AccountIDEndpointModeDisabled {
+ return nil
+ }
+
+ if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); ok && ca.Credentials.AccountID != "" {
+ return aws.String(ca.Credentials.AccountID)
+ }
+
+ return nil
+}
+
+func addTimeOffsetBuild(stack *middleware.Stack, c *Client) error {
+ mw := internalmiddleware.AddTimeOffsetMiddleware{Offset: c.timeOffset}
+ if err := stack.Build.Add(&mw, middleware.After); err != nil {
+ return err
+ }
+ return stack.Deserialize.Insert(&mw, "RecordResponseTiming", middleware.Before)
+}
+func initializeTimeOffsetResolver(c *Client) {
+ c.timeOffset = new(atomic.Int64)
+}
+
+func addUserAgentRetryMode(stack *middleware.Stack, options Options) error {
+ ua, err := getOrAddRequestUserAgent(stack)
+ if err != nil {
+ return err
+ }
+
+ switch options.Retryer.(type) {
+ case *retry.Standard:
+ ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureRetryModeStandard)
+ case *retry.AdaptiveMode:
+ ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureRetryModeAdaptive)
+ }
+ return nil
+}
+
+type setCredentialSourceMiddleware struct {
+ ua *awsmiddleware.RequestUserAgent
+ options Options
+}
+
+func (m setCredentialSourceMiddleware) ID() string { return "SetCredentialSourceMiddleware" }
+
+func (m setCredentialSourceMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) (
+ out middleware.BuildOutput, metadata middleware.Metadata, err error,
+) {
+ asProviderSource, ok := m.options.Credentials.(aws.CredentialProviderSource)
+ if !ok {
+ return next.HandleBuild(ctx, in)
+ }
+ providerSources := asProviderSource.ProviderSources()
+ for _, source := range providerSources {
+ m.ua.AddCredentialsSource(source)
+ }
+ return next.HandleBuild(ctx, in)
+}
+
+func addCredentialSource(stack *middleware.Stack, options Options) error {
+ ua, err := getOrAddRequestUserAgent(stack)
+ if err != nil {
+ return err
+ }
+
+ mw := setCredentialSourceMiddleware{ua: ua, options: options}
+ return stack.Build.Insert(&mw, "UserAgent", middleware.Before)
+}
+
+func resolveTracerProvider(options *Options) {
+ if options.TracerProvider == nil {
+ options.TracerProvider = &tracing.NopTracerProvider{}
+ }
+}
+
+func resolveMeterProvider(options *Options) {
+ if options.MeterProvider == nil {
+ options.MeterProvider = metrics.NopMeterProvider{}
+ }
+}
+
+// IdempotencyTokenProvider interface for providing idempotency token
+type IdempotencyTokenProvider interface {
+ GetIdempotencyToken() (string, error)
+}
+
+func addRecursionDetection(stack *middleware.Stack) error {
+ return stack.Build.Add(&awsmiddleware.RecursionDetection{}, middleware.After)
+}
+
+func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error {
+ return stack.Deserialize.Insert(&awsmiddleware.RequestIDRetriever{}, "OperationDeserializer", middleware.Before)
+
+}
+
+func addResponseErrorMiddleware(stack *middleware.Stack) error {
+ return stack.Deserialize.Insert(&awshttp.ResponseErrorWrapper{}, "RequestIDRetriever", middleware.Before)
+
+}
+
+func addRequestResponseLogging(stack *middleware.Stack, o Options) error {
+ return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{
+ LogRequest: o.ClientLogMode.IsRequest(),
+ LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(),
+ LogResponse: o.ClientLogMode.IsResponse(),
+ LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(),
+ }, middleware.After)
+}
+
+type disableHTTPSMiddleware struct {
+ DisableHTTPS bool
+}
+
+func (*disableHTTPSMiddleware) ID() string {
+ return "disableHTTPS"
+}
+
+func (m *disableHTTPSMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
+ out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
+) {
+ req, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
+ }
+
+ if m.DisableHTTPS && !smithyhttp.GetHostnameImmutable(ctx) {
+ req.URL.Scheme = "http"
+ }
+
+ return next.HandleFinalize(ctx, in)
+}
+
+func addDisableHTTPSMiddleware(stack *middleware.Stack, o Options) error {
+ return stack.Finalize.Insert(&disableHTTPSMiddleware{
+ DisableHTTPS: o.EndpointOptions.DisableHTTPS,
+ }, "ResolveEndpointV2", middleware.After)
+}
+
+type spanInitializeStart struct {
+}
+
+func (*spanInitializeStart) ID() string {
+ return "spanInitializeStart"
+}
+
+func (m *spanInitializeStart) HandleInitialize(
+ ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler,
+) (
+ middleware.InitializeOutput, middleware.Metadata, error,
+) {
+ ctx, _ = tracing.StartSpan(ctx, "Initialize")
+
+ return next.HandleInitialize(ctx, in)
+}
+
+type spanInitializeEnd struct {
+}
+
+func (*spanInitializeEnd) ID() string {
+ return "spanInitializeEnd"
+}
+
+func (m *spanInitializeEnd) HandleInitialize(
+ ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler,
+) (
+ middleware.InitializeOutput, middleware.Metadata, error,
+) {
+ ctx, span := tracing.PopSpan(ctx)
+ span.End()
+
+ return next.HandleInitialize(ctx, in)
+}
+
+type spanBuildRequestStart struct {
+}
+
+func (*spanBuildRequestStart) ID() string {
+ return "spanBuildRequestStart"
+}
+
+func (m *spanBuildRequestStart) HandleSerialize(
+ ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler,
+) (
+ middleware.SerializeOutput, middleware.Metadata, error,
+) {
+ ctx, _ = tracing.StartSpan(ctx, "BuildRequest")
+
+ return next.HandleSerialize(ctx, in)
+}
+
+type spanBuildRequestEnd struct {
+}
+
+func (*spanBuildRequestEnd) ID() string {
+ return "spanBuildRequestEnd"
+}
+
+func (m *spanBuildRequestEnd) HandleBuild(
+ ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler,
+) (
+ middleware.BuildOutput, middleware.Metadata, error,
+) {
+ ctx, span := tracing.PopSpan(ctx)
+ span.End()
+
+ return next.HandleBuild(ctx, in)
+}
+
+func addSpanInitializeStart(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&spanInitializeStart{}, middleware.Before)
+}
+
+func addSpanInitializeEnd(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&spanInitializeEnd{}, middleware.After)
+}
+
+func addSpanBuildRequestStart(stack *middleware.Stack) error {
+ return stack.Serialize.Add(&spanBuildRequestStart{}, middleware.Before)
+}
+
+func addSpanBuildRequestEnd(stack *middleware.Stack) error {
+ return stack.Build.Add(&spanBuildRequestEnd{}, middleware.After)
+}
diff --git a/service/mpa/api_client_test.go b/service/mpa/api_client_test.go
new file mode 100644
index 00000000000..d086f9b4e65
--- /dev/null
+++ b/service/mpa/api_client_test.go
@@ -0,0 +1,127 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "io/ioutil"
+ "net/http"
+ "strings"
+ "testing"
+)
+
+func TestClient_resolveRetryOptions(t *testing.T) {
+ nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) {
+ return &http.Response{
+ StatusCode: 200,
+ Header: http.Header{},
+ Body: ioutil.NopCloser(strings.NewReader("")),
+ }, nil
+ })
+
+ cases := map[string]struct {
+ defaultsMode aws.DefaultsMode
+ retryer aws.Retryer
+ retryMaxAttempts int
+ opRetryMaxAttempts *int
+ retryMode aws.RetryMode
+ expectClientRetryMode aws.RetryMode
+ expectClientMaxAttempts int
+ expectOpMaxAttempts int
+ }{
+ "defaults": {
+ defaultsMode: aws.DefaultsModeStandard,
+ expectClientRetryMode: aws.RetryModeStandard,
+ expectClientMaxAttempts: 3,
+ expectOpMaxAttempts: 3,
+ },
+ "custom default retry": {
+ retryMode: aws.RetryModeAdaptive,
+ retryMaxAttempts: 10,
+ expectClientRetryMode: aws.RetryModeAdaptive,
+ expectClientMaxAttempts: 10,
+ expectOpMaxAttempts: 10,
+ },
+ "custom op max attempts": {
+ retryMode: aws.RetryModeAdaptive,
+ retryMaxAttempts: 10,
+ opRetryMaxAttempts: aws.Int(2),
+ expectClientRetryMode: aws.RetryModeAdaptive,
+ expectClientMaxAttempts: 10,
+ expectOpMaxAttempts: 2,
+ },
+ "custom op no change max attempts": {
+ retryMode: aws.RetryModeAdaptive,
+ retryMaxAttempts: 10,
+ opRetryMaxAttempts: aws.Int(10),
+ expectClientRetryMode: aws.RetryModeAdaptive,
+ expectClientMaxAttempts: 10,
+ expectOpMaxAttempts: 10,
+ },
+ "custom op 0 max attempts": {
+ retryMode: aws.RetryModeAdaptive,
+ retryMaxAttempts: 10,
+ opRetryMaxAttempts: aws.Int(0),
+ expectClientRetryMode: aws.RetryModeAdaptive,
+ expectClientMaxAttempts: 10,
+ expectOpMaxAttempts: 10,
+ },
+ }
+
+ for name, c := range cases {
+ t.Run(name, func(t *testing.T) {
+ client := NewFromConfig(aws.Config{
+ DefaultsMode: c.defaultsMode,
+ Retryer: func() func() aws.Retryer {
+ if c.retryer == nil {
+ return nil
+ }
+
+ return func() aws.Retryer { return c.retryer }
+ }(),
+ HTTPClient: nopClient,
+ RetryMaxAttempts: c.retryMaxAttempts,
+ RetryMode: c.retryMode,
+ }, func(o *Options) {
+ if o.Retryer == nil {
+ t.Errorf("retryer must not be nil in functional options")
+ }
+ })
+
+ if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a {
+ t.Errorf("expect %v retry mode, got %v", e, a)
+ }
+ if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a {
+ t.Errorf("expect %v max attempts, got %v", e, a)
+ }
+
+ _, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{},
+ []func(*Options){
+ func(o *Options) {
+ if c.opRetryMaxAttempts == nil {
+ return
+ }
+ o.RetryMaxAttempts = *c.opRetryMaxAttempts
+ },
+ },
+ func(s *middleware.Stack, o Options) error {
+ s.Initialize.Clear()
+ s.Serialize.Clear()
+ s.Build.Clear()
+ s.Finalize.Clear()
+ s.Deserialize.Clear()
+
+ if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a {
+ t.Errorf("expect %v op max attempts, got %v", e, a)
+ }
+ return nil
+ })
+ if err != nil {
+ t.Fatalf("expect no operation error, got %v", err)
+ }
+ })
+ }
+}
diff --git a/service/mpa/api_op_CancelSession.go b/service/mpa/api_op_CancelSession.go
new file mode 100644
index 00000000000..b77edf74e7b
--- /dev/null
+++ b/service/mpa/api_op_CancelSession.go
@@ -0,0 +1,158 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Cancels an approval session. For more information, see [Session] in the Multi-party
+// approval User Guide.
+//
+// [Session]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+func (c *Client) CancelSession(ctx context.Context, params *CancelSessionInput, optFns ...func(*Options)) (*CancelSessionOutput, error) {
+ if params == nil {
+ params = &CancelSessionInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CancelSession", params, optFns, c.addOperationCancelSessionMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CancelSessionOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CancelSessionInput struct {
+
+ // Amazon Resource Name (ARN) for the session.
+ //
+ // This member is required.
+ SessionArn *string
+
+ noSmithyDocumentSerde
+}
+
+type CancelSessionOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCancelSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCancelSession{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCancelSession{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CancelSession"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCancelSessionValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCancelSession(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opCancelSession(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CancelSession",
+ }
+}
diff --git a/service/mpa/api_op_CreateApprovalTeam.go b/service/mpa/api_op_CreateApprovalTeam.go
new file mode 100644
index 00000000000..2105f2920f3
--- /dev/null
+++ b/service/mpa/api_op_CreateApprovalTeam.go
@@ -0,0 +1,260 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Creates a new approval team. For more information, see [Approval team] in the Multi-party
+// approval User Guide.
+//
+// [Approval team]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+func (c *Client) CreateApprovalTeam(ctx context.Context, params *CreateApprovalTeamInput, optFns ...func(*Options)) (*CreateApprovalTeamOutput, error) {
+ if params == nil {
+ params = &CreateApprovalTeamInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateApprovalTeam", params, optFns, c.addOperationCreateApprovalTeamMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateApprovalTeamOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateApprovalTeamInput struct {
+
+ // An ApprovalStrategy object. Contains details for how the team grants approval.
+ //
+ // This member is required.
+ ApprovalStrategy types.ApprovalStrategy
+
+ // An array of ApprovalTeamRequesterApprovers objects. Contains details for the
+ // approvers in the team.
+ //
+ // This member is required.
+ Approvers []types.ApprovalTeamRequestApprover
+
+ // Description for the team.
+ //
+ // This member is required.
+ Description *string
+
+ // Name of the team.
+ //
+ // This member is required.
+ Name *string
+
+ // An array of PolicyReference objects. Contains a list of policies that define
+ // the permissions for team resources.
+ //
+ // The protected operation for a service integration might require specific
+ // permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+ //
+ // [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+ //
+ // This member is required.
+ Policies []types.PolicyReference
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency of
+ // the request. If not provided, the Amazon Web Services populates this field.
+ //
+ // What is idempotency?
+ //
+ // When you make a mutating API request, the request typically returns a result
+ // before the operation's asynchronous workflows have completed. Operations might
+ // also time out or encounter other server issues before they complete, even though
+ // the request has already returned a result. This could make it difficult to
+ // determine whether the request succeeded or not, and could lead to multiple
+ // retries to ensure that the operation completes successfully. However, if the
+ // original request and the subsequent retries are successful, the operation is
+ // completed multiple times. This means that you might create more resources than
+ // you intended.
+ //
+ // Idempotency ensures that an API request completes no more than one time. With
+ // an idempotent request, if the original request completes successfully, any
+ // subsequent retries complete successfully without performing any further actions.
+ ClientToken *string
+
+ // Tags you want to attach to the team.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type CreateApprovalTeamOutput struct {
+
+ // Amazon Resource Name (ARN) for the team that was created.
+ Arn *string
+
+ // Timestamp when the team was created.
+ CreationTime *time.Time
+
+ // Name of the team that was created.
+ Name *string
+
+ // Version ID for the team that was created. When a team is updated, the version
+ // ID changes.
+ VersionId *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateApprovalTeamMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateApprovalTeam"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opCreateApprovalTeamMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateApprovalTeamValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateApprovalTeam(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpCreateApprovalTeam struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateApprovalTeam) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateApprovalTeam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateApprovalTeamInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateApprovalTeamInput ")
+ }
+
+ if input.ClientToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.ClientToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateApprovalTeamMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateApprovalTeam{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opCreateApprovalTeam(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateApprovalTeam",
+ }
+}
diff --git a/service/mpa/api_op_CreateIdentitySource.go b/service/mpa/api_op_CreateIdentitySource.go
new file mode 100644
index 00000000000..b522b2e9f7d
--- /dev/null
+++ b/service/mpa/api_op_CreateIdentitySource.go
@@ -0,0 +1,232 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Creates a new identity source. For more information, see [Identity Source] in the Multi-party
+// approval User Guide.
+//
+// [Identity Source]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+func (c *Client) CreateIdentitySource(ctx context.Context, params *CreateIdentitySourceInput, optFns ...func(*Options)) (*CreateIdentitySourceOutput, error) {
+ if params == nil {
+ params = &CreateIdentitySourceInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateIdentitySource", params, optFns, c.addOperationCreateIdentitySourceMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateIdentitySourceOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateIdentitySourceInput struct {
+
+ // A IdentitySourceParameters object. Contains details for the resource that
+ // provides identities to the identity source. For example, an IAM Identity Center
+ // instance.
+ //
+ // This member is required.
+ IdentitySourceParameters *types.IdentitySourceParameters
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency of
+ // the request. If not provided, the Amazon Web Services populates this field.
+ //
+ // What is idempotency?
+ //
+ // When you make a mutating API request, the request typically returns a result
+ // before the operation's asynchronous workflows have completed. Operations might
+ // also time out or encounter other server issues before they complete, even though
+ // the request has already returned a result. This could make it difficult to
+ // determine whether the request succeeded or not, and could lead to multiple
+ // retries to ensure that the operation completes successfully. However, if the
+ // original request and the subsequent retries are successful, the operation is
+ // completed multiple times. This means that you might create more resources than
+ // you intended.
+ //
+ // Idempotency ensures that an API request completes no more than one time. With
+ // an idempotent request, if the original request completes successfully, any
+ // subsequent retries complete successfully without performing any further actions.
+ ClientToken *string
+
+ // Tag you want to attach to the identity source.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type CreateIdentitySourceOutput struct {
+
+ // Timestamp when the identity source was created.
+ CreationTime *time.Time
+
+ // Amazon Resource Name (ARN) for the identity source that was created.
+ IdentitySourceArn *string
+
+ // The type of resource that provided identities to the identity source. For
+ // example, an IAM Identity Center instance.
+ IdentitySourceType types.IdentitySourceType
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateIdentitySourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateIdentitySource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateIdentitySource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateIdentitySource"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opCreateIdentitySourceMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateIdentitySourceValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateIdentitySource(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpCreateIdentitySource struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateIdentitySource) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateIdentitySource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateIdentitySourceInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateIdentitySourceInput ")
+ }
+
+ if input.ClientToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.ClientToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateIdentitySourceMiddleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateIdentitySource{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opCreateIdentitySource(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateIdentitySource",
+ }
+}
diff --git a/service/mpa/api_op_DeleteIdentitySource.go b/service/mpa/api_op_DeleteIdentitySource.go
new file mode 100644
index 00000000000..0e69e04ac02
--- /dev/null
+++ b/service/mpa/api_op_DeleteIdentitySource.go
@@ -0,0 +1,158 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Deletes an identity source. For more information, see [Identity Source] in the Multi-party
+// approval User Guide.
+//
+// [Identity Source]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+func (c *Client) DeleteIdentitySource(ctx context.Context, params *DeleteIdentitySourceInput, optFns ...func(*Options)) (*DeleteIdentitySourceOutput, error) {
+ if params == nil {
+ params = &DeleteIdentitySourceInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DeleteIdentitySource", params, optFns, c.addOperationDeleteIdentitySourceMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DeleteIdentitySourceOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteIdentitySourceInput struct {
+
+ // Amazon Resource Name (ARN) for identity source.
+ //
+ // This member is required.
+ IdentitySourceArn *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteIdentitySourceOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDeleteIdentitySourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteIdentitySource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteIdentitySource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteIdentitySource"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDeleteIdentitySourceValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIdentitySource(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDeleteIdentitySource(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DeleteIdentitySource",
+ }
+}
diff --git a/service/mpa/api_op_DeleteInactiveApprovalTeamVersion.go b/service/mpa/api_op_DeleteInactiveApprovalTeamVersion.go
new file mode 100644
index 00000000000..8337f5dcc3c
--- /dev/null
+++ b/service/mpa/api_op_DeleteInactiveApprovalTeamVersion.go
@@ -0,0 +1,167 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Deletes an inactive approval team. For more information, see [Team health] in the
+// Multi-party approval User Guide.
+//
+// You can also use this operation to delete a team draft. For more information,
+// see [Interacting with drafts]in the Multi-party approval User Guide.
+//
+// [Team health]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html
+// [Interacting with drafts]: https://docs.aws.amazon.com/mpa/latest/userguide/update-team.html#update-team-draft-status
+func (c *Client) DeleteInactiveApprovalTeamVersion(ctx context.Context, params *DeleteInactiveApprovalTeamVersionInput, optFns ...func(*Options)) (*DeleteInactiveApprovalTeamVersionOutput, error) {
+ if params == nil {
+ params = &DeleteInactiveApprovalTeamVersionInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DeleteInactiveApprovalTeamVersion", params, optFns, c.addOperationDeleteInactiveApprovalTeamVersionMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DeleteInactiveApprovalTeamVersionOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteInactiveApprovalTeamVersionInput struct {
+
+ // Amaazon Resource Name (ARN) for the team.
+ //
+ // This member is required.
+ Arn *string
+
+ // Version ID for the team.
+ //
+ // This member is required.
+ VersionId *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteInactiveApprovalTeamVersionOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDeleteInactiveApprovalTeamVersionMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteInactiveApprovalTeamVersion{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteInactiveApprovalTeamVersion{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteInactiveApprovalTeamVersion"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDeleteInactiveApprovalTeamVersionValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteInactiveApprovalTeamVersion(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDeleteInactiveApprovalTeamVersion(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DeleteInactiveApprovalTeamVersion",
+ }
+}
diff --git a/service/mpa/api_op_GetApprovalTeam.go b/service/mpa/api_op_GetApprovalTeam.go
new file mode 100644
index 00000000000..0238a25a464
--- /dev/null
+++ b/service/mpa/api_op_GetApprovalTeam.go
@@ -0,0 +1,218 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Returns details for an approval team.
+func (c *Client) GetApprovalTeam(ctx context.Context, params *GetApprovalTeamInput, optFns ...func(*Options)) (*GetApprovalTeamOutput, error) {
+ if params == nil {
+ params = &GetApprovalTeamInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetApprovalTeam", params, optFns, c.addOperationGetApprovalTeamMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetApprovalTeamOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetApprovalTeamInput struct {
+
+ // Amazon Resource Name (ARN) for the team.
+ //
+ // This member is required.
+ Arn *string
+
+ noSmithyDocumentSerde
+}
+
+type GetApprovalTeamOutput struct {
+
+ // An ApprovalStrategyResponse object. Contains details for how the team grants
+ // approval.
+ ApprovalStrategy types.ApprovalStrategyResponse
+
+ // An array of GetApprovalTeamResponseApprover objects. Contains details for the
+ // approvers in the team.
+ Approvers []types.GetApprovalTeamResponseApprover
+
+ // Amazon Resource Name (ARN) for the team.
+ Arn *string
+
+ // Timestamp when the team was created.
+ CreationTime *time.Time
+
+ // Description for the team.
+ Description *string
+
+ // Timestamp when the team was last updated.
+ LastUpdateTime *time.Time
+
+ // Name of the approval team.
+ Name *string
+
+ // Total number of approvers in the team.
+ NumberOfApprovers *int32
+
+ // A PendingUpdate object. Contains details for the pending updates for the team,
+ // if applicable.
+ PendingUpdate *types.PendingUpdate
+
+ // An array of PolicyReference objects. Contains a list of policies that define
+ // the permissions for team resources.
+ //
+ // The protected operation for a service integration might require specific
+ // permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+ //
+ // [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+ Policies []types.PolicyReference
+
+ // Status for the team. For more information, see [Team health] in the Multi-party approval
+ // User Guide.
+ //
+ // [Team health]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html
+ Status types.ApprovalTeamStatus
+
+ // Status code for the approval team. For more information, see [Team health] in the
+ // Multi-party approval User Guide.
+ //
+ // [Team health]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html
+ StatusCode types.ApprovalTeamStatusCode
+
+ // Message describing the status for the team.
+ StatusMessage *string
+
+ // Amazon Resource Name (ARN) for the session.
+ UpdateSessionArn *string
+
+ // Version ID for the team.
+ VersionId *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetApprovalTeamMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetApprovalTeam"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetApprovalTeamValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetApprovalTeam(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetApprovalTeam(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetApprovalTeam",
+ }
+}
diff --git a/service/mpa/api_op_GetIdentitySource.go b/service/mpa/api_op_GetIdentitySource.go
new file mode 100644
index 00000000000..0bd5f548d50
--- /dev/null
+++ b/service/mpa/api_op_GetIdentitySource.go
@@ -0,0 +1,185 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Returns details for an identity source. For more information, see [Identity Source] in the
+// Multi-party approval User Guide.
+//
+// [Identity Source]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+func (c *Client) GetIdentitySource(ctx context.Context, params *GetIdentitySourceInput, optFns ...func(*Options)) (*GetIdentitySourceOutput, error) {
+ if params == nil {
+ params = &GetIdentitySourceInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetIdentitySource", params, optFns, c.addOperationGetIdentitySourceMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetIdentitySourceOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetIdentitySourceInput struct {
+
+ // Amazon Resource Name (ARN) for the identity source.
+ //
+ // This member is required.
+ IdentitySourceArn *string
+
+ noSmithyDocumentSerde
+}
+
+type GetIdentitySourceOutput struct {
+
+ // Timestamp when the identity source was created.
+ CreationTime *time.Time
+
+ // Amazon Resource Name (ARN) for the identity source.
+ IdentitySourceArn *string
+
+ // A IdentitySourceParameters object. Contains details for the resource that
+ // provides identities to the identity source. For example, an IAM Identity Center
+ // instance.
+ IdentitySourceParameters types.IdentitySourceParametersForGet
+
+ // The type of resource that provided identities to the identity source. For
+ // example, an IAM Identity Center instance.
+ IdentitySourceType types.IdentitySourceType
+
+ // Status for the identity source. For example, if the identity source is ACTIVE .
+ Status types.IdentitySourceStatus
+
+ // Status code of the identity source.
+ StatusCode types.IdentitySourceStatusCode
+
+ // Message describing the status for the identity source.
+ StatusMessage *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetIdentitySourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetIdentitySource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetIdentitySource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetIdentitySource"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetIdentitySourceValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetIdentitySource(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetIdentitySource(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetIdentitySource",
+ }
+}
diff --git a/service/mpa/api_op_GetPolicyVersion.go b/service/mpa/api_op_GetPolicyVersion.go
new file mode 100644
index 00000000000..e2769637e52
--- /dev/null
+++ b/service/mpa/api_op_GetPolicyVersion.go
@@ -0,0 +1,174 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns details for the version of a policy. Policies define the permissions
+// for team resources.
+//
+// The protected operation for a service integration might require specific
+// permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+//
+// [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+func (c *Client) GetPolicyVersion(ctx context.Context, params *GetPolicyVersionInput, optFns ...func(*Options)) (*GetPolicyVersionOutput, error) {
+ if params == nil {
+ params = &GetPolicyVersionInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetPolicyVersion", params, optFns, c.addOperationGetPolicyVersionMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetPolicyVersionOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetPolicyVersionInput struct {
+
+ // Amazon Resource Name (ARN) for the policy.
+ //
+ // This member is required.
+ PolicyVersionArn *string
+
+ noSmithyDocumentSerde
+}
+
+type GetPolicyVersionOutput struct {
+
+ // A PolicyVersion object. Contains details for the version of the policy.
+ // Policies define the permissions for team resources.
+ //
+ // The protected operation for a service integration might require specific
+ // permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+ //
+ // [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+ //
+ // This member is required.
+ PolicyVersion *types.PolicyVersion
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetPolicyVersionMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetPolicyVersion{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetPolicyVersion{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetPolicyVersion"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetPolicyVersionValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetPolicyVersion(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetPolicyVersion(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetPolicyVersion",
+ }
+}
diff --git a/service/mpa/api_op_GetResourcePolicy.go b/service/mpa/api_op_GetResourcePolicy.go
new file mode 100644
index 00000000000..77ebf376bb2
--- /dev/null
+++ b/service/mpa/api_op_GetResourcePolicy.go
@@ -0,0 +1,190 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns details about a policy for a resource.
+func (c *Client) GetResourcePolicy(ctx context.Context, params *GetResourcePolicyInput, optFns ...func(*Options)) (*GetResourcePolicyOutput, error) {
+ if params == nil {
+ params = &GetResourcePolicyInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetResourcePolicy", params, optFns, c.addOperationGetResourcePolicyMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetResourcePolicyOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetResourcePolicyInput struct {
+
+ // Name of the policy.
+ //
+ // This member is required.
+ PolicyName *string
+
+ // The type of policy.
+ //
+ // This member is required.
+ PolicyType types.PolicyType
+
+ // Amazon Resource Name (ARN) for the resource.
+ //
+ // This member is required.
+ ResourceArn *string
+
+ noSmithyDocumentSerde
+}
+
+type GetResourcePolicyOutput struct {
+
+ // Document that contains the contents for the policy.
+ //
+ // This member is required.
+ PolicyDocument *string
+
+ // Name of the policy.
+ //
+ // This member is required.
+ PolicyName *string
+
+ // The type of policy
+ //
+ // This member is required.
+ PolicyType types.PolicyType
+
+ // Amazon Resource Name (ARN) for the resource.
+ //
+ // This member is required.
+ ResourceArn *string
+
+ // Amazon Resource Name (ARN) for the policy version.
+ PolicyVersionArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetResourcePolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetResourcePolicy{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetResourcePolicy{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetResourcePolicy"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetResourcePolicyValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetResourcePolicy(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetResourcePolicy(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetResourcePolicy",
+ }
+}
diff --git a/service/mpa/api_op_GetSession.go b/service/mpa/api_op_GetSession.go
new file mode 100644
index 00000000000..64b54c15d95
--- /dev/null
+++ b/service/mpa/api_op_GetSession.go
@@ -0,0 +1,239 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Returns details for an approval session. For more information, see [Session] in the
+// Multi-party approval User Guide.
+//
+// [Session]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+func (c *Client) GetSession(ctx context.Context, params *GetSessionInput, optFns ...func(*Options)) (*GetSessionOutput, error) {
+ if params == nil {
+ params = &GetSessionInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetSession", params, optFns, c.addOperationGetSessionMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetSessionOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetSessionInput struct {
+
+ // Amazon Resource Name (ARN) for the session.
+ //
+ // This member is required.
+ SessionArn *string
+
+ noSmithyDocumentSerde
+}
+
+type GetSessionOutput struct {
+
+ // Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL
+ // means the operation is automatically executed using the requester's permissions,
+ // if approved.
+ ActionCompletionStrategy types.ActionCompletionStrategy
+
+ // Name of the protected operation.
+ ActionName *string
+
+ // An ApprovalStrategyResponse object. Contains details for how the team grants
+ // approval
+ ApprovalStrategy types.ApprovalStrategyResponse
+
+ // Amazon Resource Name (ARN) for the approval team.
+ ApprovalTeamArn *string
+
+ // Name of the approval team.
+ ApprovalTeamName *string
+
+ // An array of GetSessionResponseApproverResponse objects. Contains details for
+ // approver responses in the session.
+ ApproverResponses []types.GetSessionResponseApproverResponse
+
+ // Timestamp when the session completed.
+ CompletionTime *time.Time
+
+ // Description for the session.
+ Description *string
+
+ // Status for the protected operation. For example, if the operation is PENDING .
+ ExecutionStatus types.SessionExecutionStatus
+
+ // Timestamp when the session will expire.
+ ExpirationTime *time.Time
+
+ // Timestamp when the session was initiated.
+ InitiationTime *time.Time
+
+ // Metadata for the session.
+ Metadata map[string]string
+
+ // Total number of approvers in the session.
+ NumberOfApprovers *int32
+
+ // Amazon Resource Name (ARN) for the protected operation.
+ ProtectedResourceArn *string
+
+ // ID for the account that made the operation request.
+ RequesterAccountId *string
+
+ // Message from the account that made the operation request
+ RequesterComment *string
+
+ // [IAM principal] that made the operation request.
+ //
+ // [IAM principal]: https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html#intro-structure-request
+ RequesterPrincipalArn *string
+
+ // Amazon Web Services Region where the operation request originated.
+ RequesterRegion *string
+
+ // [Service principal] for the service associated with the protected operation.
+ //
+ // [Service principal]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services
+ RequesterServicePrincipal *string
+
+ // Amazon Resource Name (ARN) for the session.
+ SessionArn *string
+
+ // Status for the session. For example, if the team has approved the requested
+ // operation.
+ Status types.SessionStatus
+
+ // Status code of the session.
+ StatusCode types.SessionStatusCode
+
+ // Message describing the status for session.
+ StatusMessage *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetSession{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetSession{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetSession"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetSessionValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSession(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetSession(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetSession",
+ }
+}
diff --git a/service/mpa/api_op_ListApprovalTeams.go b/service/mpa/api_op_ListApprovalTeams.go
new file mode 100644
index 00000000000..9d1134f2c8a
--- /dev/null
+++ b/service/mpa/api_op_ListApprovalTeams.go
@@ -0,0 +1,265 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of approval teams.
+func (c *Client) ListApprovalTeams(ctx context.Context, params *ListApprovalTeamsInput, optFns ...func(*Options)) (*ListApprovalTeamsOutput, error) {
+ if params == nil {
+ params = &ListApprovalTeamsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListApprovalTeams", params, optFns, c.addOperationListApprovalTeamsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListApprovalTeamsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListApprovalTeamsInput struct {
+
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ MaxResults *int32
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListApprovalTeamsOutput struct {
+
+ // An array of ListApprovalTeamsResponseApprovalTeam objects. Contains details for
+ // approval teams.
+ ApprovalTeams []types.ListApprovalTeamsResponseApprovalTeam
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListApprovalTeamsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListApprovalTeams{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListApprovalTeams{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListApprovalTeams"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListApprovalTeams(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListApprovalTeamsPaginatorOptions is the paginator options for ListApprovalTeams
+type ListApprovalTeamsPaginatorOptions struct {
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListApprovalTeamsPaginator is a paginator for ListApprovalTeams
+type ListApprovalTeamsPaginator struct {
+ options ListApprovalTeamsPaginatorOptions
+ client ListApprovalTeamsAPIClient
+ params *ListApprovalTeamsInput
+ nextToken *string
+ firstPage bool
+}
+
+// NewListApprovalTeamsPaginator returns a new ListApprovalTeamsPaginator
+func NewListApprovalTeamsPaginator(client ListApprovalTeamsAPIClient, params *ListApprovalTeamsInput, optFns ...func(*ListApprovalTeamsPaginatorOptions)) *ListApprovalTeamsPaginator {
+ if params == nil {
+ params = &ListApprovalTeamsInput{}
+ }
+
+ options := ListApprovalTeamsPaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListApprovalTeamsPaginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListApprovalTeamsPaginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListApprovalTeams page.
+func (p *ListApprovalTeamsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListApprovalTeamsOutput, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListApprovalTeams(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListApprovalTeamsAPIClient is a client that implements the ListApprovalTeams
+// operation.
+type ListApprovalTeamsAPIClient interface {
+ ListApprovalTeams(context.Context, *ListApprovalTeamsInput, ...func(*Options)) (*ListApprovalTeamsOutput, error)
+}
+
+var _ ListApprovalTeamsAPIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListApprovalTeams(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListApprovalTeams",
+ }
+}
diff --git a/service/mpa/api_op_ListIdentitySources.go b/service/mpa/api_op_ListIdentitySources.go
new file mode 100644
index 00000000000..035786e6cc2
--- /dev/null
+++ b/service/mpa/api_op_ListIdentitySources.go
@@ -0,0 +1,268 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of identity sources. For more information, see [Identity Source] in the
+// Multi-party approval User Guide.
+//
+// [Identity Source]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+func (c *Client) ListIdentitySources(ctx context.Context, params *ListIdentitySourcesInput, optFns ...func(*Options)) (*ListIdentitySourcesOutput, error) {
+ if params == nil {
+ params = &ListIdentitySourcesInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListIdentitySources", params, optFns, c.addOperationListIdentitySourcesMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListIdentitySourcesOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListIdentitySourcesInput struct {
+
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ MaxResults *int32
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListIdentitySourcesOutput struct {
+
+ // A IdentitySources . Contains details for identity sources.
+ IdentitySources []types.IdentitySourceForList
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListIdentitySourcesMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListIdentitySources{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListIdentitySources{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListIdentitySources"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListIdentitySources(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListIdentitySourcesPaginatorOptions is the paginator options for
+// ListIdentitySources
+type ListIdentitySourcesPaginatorOptions struct {
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListIdentitySourcesPaginator is a paginator for ListIdentitySources
+type ListIdentitySourcesPaginator struct {
+ options ListIdentitySourcesPaginatorOptions
+ client ListIdentitySourcesAPIClient
+ params *ListIdentitySourcesInput
+ nextToken *string
+ firstPage bool
+}
+
+// NewListIdentitySourcesPaginator returns a new ListIdentitySourcesPaginator
+func NewListIdentitySourcesPaginator(client ListIdentitySourcesAPIClient, params *ListIdentitySourcesInput, optFns ...func(*ListIdentitySourcesPaginatorOptions)) *ListIdentitySourcesPaginator {
+ if params == nil {
+ params = &ListIdentitySourcesInput{}
+ }
+
+ options := ListIdentitySourcesPaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListIdentitySourcesPaginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListIdentitySourcesPaginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListIdentitySources page.
+func (p *ListIdentitySourcesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListIdentitySourcesOutput, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListIdentitySources(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListIdentitySourcesAPIClient is a client that implements the
+// ListIdentitySources operation.
+type ListIdentitySourcesAPIClient interface {
+ ListIdentitySources(context.Context, *ListIdentitySourcesInput, ...func(*Options)) (*ListIdentitySourcesOutput, error)
+}
+
+var _ ListIdentitySourcesAPIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListIdentitySources(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListIdentitySources",
+ }
+}
diff --git a/service/mpa/api_op_ListPolicies.go b/service/mpa/api_op_ListPolicies.go
new file mode 100644
index 00000000000..3f371655561
--- /dev/null
+++ b/service/mpa/api_op_ListPolicies.go
@@ -0,0 +1,274 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of policies. Policies define the permissions for team resources.
+//
+// The protected operation for a service integration might require specific
+// permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+//
+// [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+func (c *Client) ListPolicies(ctx context.Context, params *ListPoliciesInput, optFns ...func(*Options)) (*ListPoliciesOutput, error) {
+ if params == nil {
+ params = &ListPoliciesInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListPolicies", params, optFns, c.addOperationListPoliciesMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListPoliciesOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListPoliciesInput struct {
+
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ MaxResults *int32
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListPoliciesOutput struct {
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ // An array of Policy objects. Contains a list of policies that define the
+ // permissions for team resources.
+ //
+ // The protected operation for a service integration might require specific
+ // permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+ //
+ // [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+ Policies []types.Policy
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListPoliciesMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListPolicies{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListPolicies{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListPolicies"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPolicies(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListPoliciesPaginatorOptions is the paginator options for ListPolicies
+type ListPoliciesPaginatorOptions struct {
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListPoliciesPaginator is a paginator for ListPolicies
+type ListPoliciesPaginator struct {
+ options ListPoliciesPaginatorOptions
+ client ListPoliciesAPIClient
+ params *ListPoliciesInput
+ nextToken *string
+ firstPage bool
+}
+
+// NewListPoliciesPaginator returns a new ListPoliciesPaginator
+func NewListPoliciesPaginator(client ListPoliciesAPIClient, params *ListPoliciesInput, optFns ...func(*ListPoliciesPaginatorOptions)) *ListPoliciesPaginator {
+ if params == nil {
+ params = &ListPoliciesInput{}
+ }
+
+ options := ListPoliciesPaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListPoliciesPaginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListPoliciesPaginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListPolicies page.
+func (p *ListPoliciesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPoliciesOutput, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListPolicies(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListPoliciesAPIClient is a client that implements the ListPolicies operation.
+type ListPoliciesAPIClient interface {
+ ListPolicies(context.Context, *ListPoliciesInput, ...func(*Options)) (*ListPoliciesOutput, error)
+}
+
+var _ ListPoliciesAPIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListPolicies(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListPolicies",
+ }
+}
diff --git a/service/mpa/api_op_ListPolicyVersions.go b/service/mpa/api_op_ListPolicyVersions.go
new file mode 100644
index 00000000000..3b34b57e0ee
--- /dev/null
+++ b/service/mpa/api_op_ListPolicyVersions.go
@@ -0,0 +1,285 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of the versions for policies. Policies define the permissions
+// for team resources.
+//
+// The protected operation for a service integration might require specific
+// permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+//
+// [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+func (c *Client) ListPolicyVersions(ctx context.Context, params *ListPolicyVersionsInput, optFns ...func(*Options)) (*ListPolicyVersionsOutput, error) {
+ if params == nil {
+ params = &ListPolicyVersionsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListPolicyVersions", params, optFns, c.addOperationListPolicyVersionsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListPolicyVersionsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListPolicyVersionsInput struct {
+
+ // Amazon Resource Name (ARN) for the policy.
+ //
+ // This member is required.
+ PolicyArn *string
+
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ MaxResults *int32
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListPolicyVersionsOutput struct {
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ // An array of PolicyVersionSummary objects. Contains details for the version of
+ // the policies that define the permissions for team resources.
+ //
+ // The protected operation for a service integration might require specific
+ // permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+ //
+ // [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+ PolicyVersions []types.PolicyVersionSummary
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListPolicyVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListPolicyVersions{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListPolicyVersions{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListPolicyVersions"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpListPolicyVersionsValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPolicyVersions(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListPolicyVersionsPaginatorOptions is the paginator options for
+// ListPolicyVersions
+type ListPolicyVersionsPaginatorOptions struct {
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListPolicyVersionsPaginator is a paginator for ListPolicyVersions
+type ListPolicyVersionsPaginator struct {
+ options ListPolicyVersionsPaginatorOptions
+ client ListPolicyVersionsAPIClient
+ params *ListPolicyVersionsInput
+ nextToken *string
+ firstPage bool
+}
+
+// NewListPolicyVersionsPaginator returns a new ListPolicyVersionsPaginator
+func NewListPolicyVersionsPaginator(client ListPolicyVersionsAPIClient, params *ListPolicyVersionsInput, optFns ...func(*ListPolicyVersionsPaginatorOptions)) *ListPolicyVersionsPaginator {
+ if params == nil {
+ params = &ListPolicyVersionsInput{}
+ }
+
+ options := ListPolicyVersionsPaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListPolicyVersionsPaginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListPolicyVersionsPaginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListPolicyVersions page.
+func (p *ListPolicyVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPolicyVersionsOutput, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListPolicyVersions(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListPolicyVersionsAPIClient is a client that implements the ListPolicyVersions
+// operation.
+type ListPolicyVersionsAPIClient interface {
+ ListPolicyVersions(context.Context, *ListPolicyVersionsInput, ...func(*Options)) (*ListPolicyVersionsOutput, error)
+}
+
+var _ ListPolicyVersionsAPIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListPolicyVersions(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListPolicyVersions",
+ }
+}
diff --git a/service/mpa/api_op_ListResourcePolicies.go b/service/mpa/api_op_ListResourcePolicies.go
new file mode 100644
index 00000000000..7ca45534460
--- /dev/null
+++ b/service/mpa/api_op_ListResourcePolicies.go
@@ -0,0 +1,274 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of policies for a resource.
+func (c *Client) ListResourcePolicies(ctx context.Context, params *ListResourcePoliciesInput, optFns ...func(*Options)) (*ListResourcePoliciesOutput, error) {
+ if params == nil {
+ params = &ListResourcePoliciesInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListResourcePolicies", params, optFns, c.addOperationListResourcePoliciesMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListResourcePoliciesOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListResourcePoliciesInput struct {
+
+ // Amazon Resource Name (ARN) for the resource.
+ //
+ // This member is required.
+ ResourceArn *string
+
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ MaxResults *int32
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListResourcePoliciesOutput struct {
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ // An array of ListResourcePoliciesResponseResourcePolicy objects. Contains
+ // details about the policy for the resource.
+ ResourcePolicies []types.ListResourcePoliciesResponseResourcePolicy
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListResourcePoliciesMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListResourcePolicies{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListResourcePolicies{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListResourcePolicies"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpListResourcePoliciesValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListResourcePolicies(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListResourcePoliciesPaginatorOptions is the paginator options for
+// ListResourcePolicies
+type ListResourcePoliciesPaginatorOptions struct {
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListResourcePoliciesPaginator is a paginator for ListResourcePolicies
+type ListResourcePoliciesPaginator struct {
+ options ListResourcePoliciesPaginatorOptions
+ client ListResourcePoliciesAPIClient
+ params *ListResourcePoliciesInput
+ nextToken *string
+ firstPage bool
+}
+
+// NewListResourcePoliciesPaginator returns a new ListResourcePoliciesPaginator
+func NewListResourcePoliciesPaginator(client ListResourcePoliciesAPIClient, params *ListResourcePoliciesInput, optFns ...func(*ListResourcePoliciesPaginatorOptions)) *ListResourcePoliciesPaginator {
+ if params == nil {
+ params = &ListResourcePoliciesInput{}
+ }
+
+ options := ListResourcePoliciesPaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListResourcePoliciesPaginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListResourcePoliciesPaginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListResourcePolicies page.
+func (p *ListResourcePoliciesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListResourcePoliciesOutput, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListResourcePolicies(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListResourcePoliciesAPIClient is a client that implements the
+// ListResourcePolicies operation.
+type ListResourcePoliciesAPIClient interface {
+ ListResourcePolicies(context.Context, *ListResourcePoliciesInput, ...func(*Options)) (*ListResourcePoliciesOutput, error)
+}
+
+var _ ListResourcePoliciesAPIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListResourcePolicies(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListResourcePolicies",
+ }
+}
diff --git a/service/mpa/api_op_ListSessions.go b/service/mpa/api_op_ListSessions.go
new file mode 100644
index 00000000000..b04af90fc18
--- /dev/null
+++ b/service/mpa/api_op_ListSessions.go
@@ -0,0 +1,278 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of approval sessions. For more information, see [Session] in the
+// Multi-party approval User Guide.
+//
+// [Session]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+func (c *Client) ListSessions(ctx context.Context, params *ListSessionsInput, optFns ...func(*Options)) (*ListSessionsOutput, error) {
+ if params == nil {
+ params = &ListSessionsInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListSessions", params, optFns, c.addOperationListSessionsMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListSessionsOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListSessionsInput struct {
+
+ // Amazon Resource Name (ARN) for the approval team.
+ //
+ // This member is required.
+ ApprovalTeamArn *string
+
+ // An array of Filter objects. Contains the filter to apply when listing sessions.
+ Filters []types.Filter
+
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ MaxResults *int32
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListSessionsOutput struct {
+
+ // If present, indicates that more output is available than is included in the
+ // current response. Use this value in the NextToken request parameter in a next
+ // call to the operation to get more output. You can repeat this until the
+ // NextToken response element returns null .
+ NextToken *string
+
+ // An array of ListSessionsResponseSession objects. Contains details for the
+ // sessions.
+ Sessions []types.ListSessionsResponseSession
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListSessionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListSessions{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListSessions{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListSessions"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpListSessionsValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSessions(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListSessionsPaginatorOptions is the paginator options for ListSessions
+type ListSessionsPaginatorOptions struct {
+ // The maximum number of items to return in the response. If more results exist
+ // than the specified MaxResults value, a token is included in the response so
+ // that you can retrieve the remaining results.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListSessionsPaginator is a paginator for ListSessions
+type ListSessionsPaginator struct {
+ options ListSessionsPaginatorOptions
+ client ListSessionsAPIClient
+ params *ListSessionsInput
+ nextToken *string
+ firstPage bool
+}
+
+// NewListSessionsPaginator returns a new ListSessionsPaginator
+func NewListSessionsPaginator(client ListSessionsAPIClient, params *ListSessionsInput, optFns ...func(*ListSessionsPaginatorOptions)) *ListSessionsPaginator {
+ if params == nil {
+ params = &ListSessionsInput{}
+ }
+
+ options := ListSessionsPaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListSessionsPaginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListSessionsPaginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListSessions page.
+func (p *ListSessionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSessionsOutput, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListSessions(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListSessionsAPIClient is a client that implements the ListSessions operation.
+type ListSessionsAPIClient interface {
+ ListSessions(context.Context, *ListSessionsInput, ...func(*Options)) (*ListSessionsOutput, error)
+}
+
+var _ ListSessionsAPIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListSessions(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListSessions",
+ }
+}
diff --git a/service/mpa/api_op_ListTagsForResource.go b/service/mpa/api_op_ListTagsForResource.go
new file mode 100644
index 00000000000..da090b90f86
--- /dev/null
+++ b/service/mpa/api_op_ListTagsForResource.go
@@ -0,0 +1,159 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of the tags for a resource.
+func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) {
+ if params == nil {
+ params = &ListTagsForResourceInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListTagsForResourceOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListTagsForResourceInput struct {
+
+ // Amazon Resource Name (ARN) for the resource.
+ //
+ // This member is required.
+ ResourceArn *string
+
+ noSmithyDocumentSerde
+}
+
+type ListTagsForResourceOutput struct {
+
+ // Tags attached to the resource.
+ Tags map[string]string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListTagsForResource"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListTagsForResource",
+ }
+}
diff --git a/service/mpa/api_op_StartActiveApprovalTeamDeletion.go b/service/mpa/api_op_StartActiveApprovalTeamDeletion.go
new file mode 100644
index 00000000000..a620730ee86
--- /dev/null
+++ b/service/mpa/api_op_StartActiveApprovalTeamDeletion.go
@@ -0,0 +1,171 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Starts the deletion process for an active approval team.
+//
+// # Deletions require team approval
+//
+// Requests to delete an active team must be approved by the team.
+func (c *Client) StartActiveApprovalTeamDeletion(ctx context.Context, params *StartActiveApprovalTeamDeletionInput, optFns ...func(*Options)) (*StartActiveApprovalTeamDeletionOutput, error) {
+ if params == nil {
+ params = &StartActiveApprovalTeamDeletionInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "StartActiveApprovalTeamDeletion", params, optFns, c.addOperationStartActiveApprovalTeamDeletionMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*StartActiveApprovalTeamDeletionOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type StartActiveApprovalTeamDeletionInput struct {
+
+ // Amazon Resource Name (ARN) for the team.
+ //
+ // This member is required.
+ Arn *string
+
+ // Number of days between when the team approves the delete request and when the
+ // team is deleted.
+ PendingWindowDays *int32
+
+ noSmithyDocumentSerde
+}
+
+type StartActiveApprovalTeamDeletionOutput struct {
+
+ // Timestamp when the deletion process is scheduled to complete.
+ DeletionCompletionTime *time.Time
+
+ // Timestamp when the deletion process was initiated.
+ DeletionStartTime *time.Time
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationStartActiveApprovalTeamDeletionMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpStartActiveApprovalTeamDeletion{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpStartActiveApprovalTeamDeletion{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "StartActiveApprovalTeamDeletion"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpStartActiveApprovalTeamDeletionValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartActiveApprovalTeamDeletion(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opStartActiveApprovalTeamDeletion(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "StartActiveApprovalTeamDeletion",
+ }
+}
diff --git a/service/mpa/api_op_TagResource.go b/service/mpa/api_op_TagResource.go
new file mode 100644
index 00000000000..8276d9e8849
--- /dev/null
+++ b/service/mpa/api_op_TagResource.go
@@ -0,0 +1,162 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Creates or updates a resource tag. Each tag is a label consisting of a
+// user-defined key and value. Tags can help you manage, identify, organize, search
+// for, and filter resources.
+func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) {
+ if params == nil {
+ params = &TagResourceInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*TagResourceOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type TagResourceInput struct {
+
+ // Amazon Resource Name (ARN) for the resource you want to tag.
+ //
+ // This member is required.
+ ResourceArn *string
+
+ // Tags that you have added to the specified resource.
+ //
+ // This member is required.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type TagResourceOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "TagResource"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpTagResourceValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "TagResource",
+ }
+}
diff --git a/service/mpa/api_op_UntagResource.go b/service/mpa/api_op_UntagResource.go
new file mode 100644
index 00000000000..9f577473aaf
--- /dev/null
+++ b/service/mpa/api_op_UntagResource.go
@@ -0,0 +1,162 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Removes a resource tag. Each tag is a label consisting of a user-defined key
+// and value. Tags can help you manage, identify, organize, search for, and filter
+// resources.
+func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) {
+ if params == nil {
+ params = &UntagResourceInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*UntagResourceOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type UntagResourceInput struct {
+
+ // Amazon Resource Name (ARN) for the resource you want to untag.
+ //
+ // This member is required.
+ ResourceArn *string
+
+ // Array of tag key-value pairs that you want to untag.
+ //
+ // This member is required.
+ TagKeys []string
+
+ noSmithyDocumentSerde
+}
+
+type UntagResourceOutput struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "UntagResource"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpUntagResourceValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "UntagResource",
+ }
+}
diff --git a/service/mpa/api_op_UpdateApprovalTeam.go b/service/mpa/api_op_UpdateApprovalTeam.go
new file mode 100644
index 00000000000..9b7a7d68548
--- /dev/null
+++ b/service/mpa/api_op_UpdateApprovalTeam.go
@@ -0,0 +1,176 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Updates an approval team. You can request to update the team description,
+// approval threshold, and approvers in the team.
+//
+// # Updates require team approval
+//
+// Updates to an active team must be approved by the team.
+func (c *Client) UpdateApprovalTeam(ctx context.Context, params *UpdateApprovalTeamInput, optFns ...func(*Options)) (*UpdateApprovalTeamOutput, error) {
+ if params == nil {
+ params = &UpdateApprovalTeamInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "UpdateApprovalTeam", params, optFns, c.addOperationUpdateApprovalTeamMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*UpdateApprovalTeamOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type UpdateApprovalTeamInput struct {
+
+ // Amazon Resource Name (ARN) for the team.
+ //
+ // This member is required.
+ Arn *string
+
+ // An ApprovalStrategy object. Contains details for how the team grants approval.
+ ApprovalStrategy types.ApprovalStrategy
+
+ // An array of ApprovalTeamRequestApprover objects. Contains details for the
+ // approvers in the team.
+ Approvers []types.ApprovalTeamRequestApprover
+
+ // Description for the team.
+ Description *string
+
+ noSmithyDocumentSerde
+}
+
+type UpdateApprovalTeamOutput struct {
+
+ // Version ID for the team that was created. When an approval team is updated, the
+ // version ID changes.
+ VersionId *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationUpdateApprovalTeamMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateApprovalTeam{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateApprovalTeam"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpUpdateApprovalTeamValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateApprovalTeam(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opUpdateApprovalTeam(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "UpdateApprovalTeam",
+ }
+}
diff --git a/service/mpa/auth.go b/service/mpa/auth.go
new file mode 100644
index 00000000000..b1f01f60e46
--- /dev/null
+++ b/service/mpa/auth.go
@@ -0,0 +1,313 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ smithy "github.com/aws/smithy-go"
+ smithyauth "github.com/aws/smithy-go/auth"
+ "github.com/aws/smithy-go/metrics"
+ "github.com/aws/smithy-go/middleware"
+ "github.com/aws/smithy-go/tracing"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+func bindAuthParamsRegion(_ interface{}, params *AuthResolverParameters, _ interface{}, options Options) {
+ params.Region = options.Region
+}
+
+type setLegacyContextSigningOptionsMiddleware struct {
+}
+
+func (*setLegacyContextSigningOptionsMiddleware) ID() string {
+ return "setLegacyContextSigningOptions"
+}
+
+func (m *setLegacyContextSigningOptionsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
+ out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
+) {
+ rscheme := getResolvedAuthScheme(ctx)
+ schemeID := rscheme.Scheme.SchemeID()
+
+ if sn := awsmiddleware.GetSigningName(ctx); sn != "" {
+ if schemeID == "aws.auth#sigv4" {
+ smithyhttp.SetSigV4SigningName(&rscheme.SignerProperties, sn)
+ } else if schemeID == "aws.auth#sigv4a" {
+ smithyhttp.SetSigV4ASigningName(&rscheme.SignerProperties, sn)
+ }
+ }
+
+ if sr := awsmiddleware.GetSigningRegion(ctx); sr != "" {
+ if schemeID == "aws.auth#sigv4" {
+ smithyhttp.SetSigV4SigningRegion(&rscheme.SignerProperties, sr)
+ } else if schemeID == "aws.auth#sigv4a" {
+ smithyhttp.SetSigV4ASigningRegions(&rscheme.SignerProperties, []string{sr})
+ }
+ }
+
+ return next.HandleFinalize(ctx, in)
+}
+
+func addSetLegacyContextSigningOptionsMiddleware(stack *middleware.Stack) error {
+ return stack.Finalize.Insert(&setLegacyContextSigningOptionsMiddleware{}, "Signing", middleware.Before)
+}
+
+type withAnonymous struct {
+ resolver AuthSchemeResolver
+}
+
+var _ AuthSchemeResolver = (*withAnonymous)(nil)
+
+func (v *withAnonymous) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) {
+ opts, err := v.resolver.ResolveAuthSchemes(ctx, params)
+ if err != nil {
+ return nil, err
+ }
+
+ opts = append(opts, &smithyauth.Option{
+ SchemeID: smithyauth.SchemeIDAnonymous,
+ })
+ return opts, nil
+}
+
+func wrapWithAnonymousAuth(options *Options) {
+ if _, ok := options.AuthSchemeResolver.(*defaultAuthSchemeResolver); !ok {
+ return
+ }
+
+ options.AuthSchemeResolver = &withAnonymous{
+ resolver: options.AuthSchemeResolver,
+ }
+}
+
+// AuthResolverParameters contains the set of inputs necessary for auth scheme
+// resolution.
+type AuthResolverParameters struct {
+ // The name of the operation being invoked.
+ Operation string
+
+ // The region in which the operation is being invoked.
+ Region string
+}
+
+func bindAuthResolverParams(ctx context.Context, operation string, input interface{}, options Options) *AuthResolverParameters {
+ params := &AuthResolverParameters{
+ Operation: operation,
+ }
+
+ bindAuthParamsRegion(ctx, params, input, options)
+
+ return params
+}
+
+// AuthSchemeResolver returns a set of possible authentication options for an
+// operation.
+type AuthSchemeResolver interface {
+ ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
+}
+
+type defaultAuthSchemeResolver struct{}
+
+var _ AuthSchemeResolver = (*defaultAuthSchemeResolver)(nil)
+
+func (*defaultAuthSchemeResolver) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) {
+ if overrides, ok := operationAuthOptions[params.Operation]; ok {
+ return overrides(params), nil
+ }
+ return serviceAuthOptions(params), nil
+}
+
+var operationAuthOptions = map[string]func(*AuthResolverParameters) []*smithyauth.Option{}
+
+func serviceAuthOptions(params *AuthResolverParameters) []*smithyauth.Option {
+ return []*smithyauth.Option{
+ {
+ SchemeID: smithyauth.SchemeIDSigV4,
+ SignerProperties: func() smithy.Properties {
+ var props smithy.Properties
+ smithyhttp.SetSigV4SigningName(&props, "mpa")
+ smithyhttp.SetSigV4SigningRegion(&props, params.Region)
+ return props
+ }(),
+ },
+ }
+}
+
+type resolveAuthSchemeMiddleware struct {
+ operation string
+ options Options
+}
+
+func (*resolveAuthSchemeMiddleware) ID() string {
+ return "ResolveAuthScheme"
+}
+
+func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
+ out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "ResolveAuthScheme")
+ defer span.End()
+
+ params := bindAuthResolverParams(ctx, m.operation, getOperationInput(ctx), m.options)
+ options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params)
+ if err != nil {
+ return out, metadata, fmt.Errorf("resolve auth scheme: %w", err)
+ }
+
+ scheme, ok := m.selectScheme(options)
+ if !ok {
+ return out, metadata, fmt.Errorf("could not select an auth scheme")
+ }
+
+ ctx = setResolvedAuthScheme(ctx, scheme)
+
+ span.SetProperty("auth.scheme_id", scheme.Scheme.SchemeID())
+ span.End()
+ return next.HandleFinalize(ctx, in)
+}
+
+func (m *resolveAuthSchemeMiddleware) selectScheme(options []*smithyauth.Option) (*resolvedAuthScheme, bool) {
+ for _, option := range options {
+ if option.SchemeID == smithyauth.SchemeIDAnonymous {
+ return newResolvedAuthScheme(smithyhttp.NewAnonymousScheme(), option), true
+ }
+
+ for _, scheme := range m.options.AuthSchemes {
+ if scheme.SchemeID() != option.SchemeID {
+ continue
+ }
+
+ if scheme.IdentityResolver(m.options) != nil {
+ return newResolvedAuthScheme(scheme, option), true
+ }
+ }
+ }
+
+ return nil, false
+}
+
+type resolvedAuthSchemeKey struct{}
+
+type resolvedAuthScheme struct {
+ Scheme smithyhttp.AuthScheme
+ IdentityProperties smithy.Properties
+ SignerProperties smithy.Properties
+}
+
+func newResolvedAuthScheme(scheme smithyhttp.AuthScheme, option *smithyauth.Option) *resolvedAuthScheme {
+ return &resolvedAuthScheme{
+ Scheme: scheme,
+ IdentityProperties: option.IdentityProperties,
+ SignerProperties: option.SignerProperties,
+ }
+}
+
+func setResolvedAuthScheme(ctx context.Context, scheme *resolvedAuthScheme) context.Context {
+ return middleware.WithStackValue(ctx, resolvedAuthSchemeKey{}, scheme)
+}
+
+func getResolvedAuthScheme(ctx context.Context) *resolvedAuthScheme {
+ v, _ := middleware.GetStackValue(ctx, resolvedAuthSchemeKey{}).(*resolvedAuthScheme)
+ return v
+}
+
+type getIdentityMiddleware struct {
+ options Options
+}
+
+func (*getIdentityMiddleware) ID() string {
+ return "GetIdentity"
+}
+
+func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
+ out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
+) {
+ innerCtx, span := tracing.StartSpan(ctx, "GetIdentity")
+ defer span.End()
+
+ rscheme := getResolvedAuthScheme(innerCtx)
+ if rscheme == nil {
+ return out, metadata, fmt.Errorf("no resolved auth scheme")
+ }
+
+ resolver := rscheme.Scheme.IdentityResolver(m.options)
+ if resolver == nil {
+ return out, metadata, fmt.Errorf("no identity resolver")
+ }
+
+ identity, err := timeOperationMetric(ctx, "client.call.resolve_identity_duration",
+ func() (smithyauth.Identity, error) {
+ return resolver.GetIdentity(innerCtx, rscheme.IdentityProperties)
+ },
+ func(o *metrics.RecordMetricOptions) {
+ o.Properties.Set("auth.scheme_id", rscheme.Scheme.SchemeID())
+ })
+ if err != nil {
+ return out, metadata, fmt.Errorf("get identity: %w", err)
+ }
+
+ ctx = setIdentity(ctx, identity)
+
+ span.End()
+ return next.HandleFinalize(ctx, in)
+}
+
+type identityKey struct{}
+
+func setIdentity(ctx context.Context, identity smithyauth.Identity) context.Context {
+ return middleware.WithStackValue(ctx, identityKey{}, identity)
+}
+
+func getIdentity(ctx context.Context) smithyauth.Identity {
+ v, _ := middleware.GetStackValue(ctx, identityKey{}).(smithyauth.Identity)
+ return v
+}
+
+type signRequestMiddleware struct {
+ options Options
+}
+
+func (*signRequestMiddleware) ID() string {
+ return "Signing"
+}
+
+func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
+ out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "SignRequest")
+ defer span.End()
+
+ req, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request)
+ }
+
+ rscheme := getResolvedAuthScheme(ctx)
+ if rscheme == nil {
+ return out, metadata, fmt.Errorf("no resolved auth scheme")
+ }
+
+ identity := getIdentity(ctx)
+ if identity == nil {
+ return out, metadata, fmt.Errorf("no identity")
+ }
+
+ signer := rscheme.Scheme.Signer()
+ if signer == nil {
+ return out, metadata, fmt.Errorf("no signer")
+ }
+
+ _, err = timeOperationMetric(ctx, "client.call.signing_duration", func() (any, error) {
+ return nil, signer.SignRequest(ctx, req, identity, rscheme.SignerProperties)
+ }, func(o *metrics.RecordMetricOptions) {
+ o.Properties.Set("auth.scheme_id", rscheme.Scheme.SchemeID())
+ })
+ if err != nil {
+ return out, metadata, fmt.Errorf("sign request: %w", err)
+ }
+
+ span.End()
+ return next.HandleFinalize(ctx, in)
+}
diff --git a/service/mpa/deserializers.go b/service/mpa/deserializers.go
new file mode 100644
index 00000000000..6f1e002e3f6
--- /dev/null
+++ b/service/mpa/deserializers.go
@@ -0,0 +1,6198 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "bytes"
+ "context"
+ "encoding/json"
+ "fmt"
+ "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ smithy "github.com/aws/smithy-go"
+ smithyio "github.com/aws/smithy-go/io"
+ "github.com/aws/smithy-go/middleware"
+ "github.com/aws/smithy-go/ptr"
+ smithytime "github.com/aws/smithy-go/time"
+ "github.com/aws/smithy-go/tracing"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "io"
+ "io/ioutil"
+ "strings"
+ "time"
+)
+
+func deserializeS3Expires(v string) (*time.Time, error) {
+ t, err := smithytime.ParseHTTPDate(v)
+ if err != nil {
+ return nil, nil
+ }
+ return &t, nil
+}
+
+type awsRestjson1_deserializeOpCancelSession struct {
+}
+
+func (*awsRestjson1_deserializeOpCancelSession) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpCancelSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorCancelSession(response, &metadata)
+ }
+ output := &CancelSessionOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorCancelSession(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpCreateApprovalTeam struct {
+}
+
+func (*awsRestjson1_deserializeOpCreateApprovalTeam) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpCreateApprovalTeam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateApprovalTeam(response, &metadata)
+ }
+ output := &CreateApprovalTeamOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentCreateApprovalTeamOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorCreateApprovalTeam(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ServiceQuotaExceededException", errorCode):
+ return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentCreateApprovalTeamOutput(v **CreateApprovalTeamOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *CreateApprovalTeamOutput
+ if *v == nil {
+ sv = &CreateApprovalTeamOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamArn to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "CreationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreationTime = ptr.Time(t)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "VersionId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.VersionId = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpCreateIdentitySource struct {
+}
+
+func (*awsRestjson1_deserializeOpCreateIdentitySource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpCreateIdentitySource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateIdentitySource(response, &metadata)
+ }
+ output := &CreateIdentitySourceOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentCreateIdentitySourceOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorCreateIdentitySource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ServiceQuotaExceededException", errorCode):
+ return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentCreateIdentitySourceOutput(v **CreateIdentitySourceOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *CreateIdentitySourceOutput
+ if *v == nil {
+ sv = &CreateIdentitySourceOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "CreationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreationTime = ptr.Time(t)
+ }
+
+ case "IdentitySourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.IdentitySourceArn = ptr.String(jtv)
+ }
+
+ case "IdentitySourceType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentitySourceType to be of type string, got %T instead", value)
+ }
+ sv.IdentitySourceType = types.IdentitySourceType(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpDeleteIdentitySource struct {
+}
+
+func (*awsRestjson1_deserializeOpDeleteIdentitySource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpDeleteIdentitySource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteIdentitySource(response, &metadata)
+ }
+ output := &DeleteIdentitySourceOutput{}
+ out.Result = output
+
+ if _, err = io.Copy(ioutil.Discard, response.Body); err != nil {
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to discard response body, %w", err),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorDeleteIdentitySource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpDeleteInactiveApprovalTeamVersion struct {
+}
+
+func (*awsRestjson1_deserializeOpDeleteInactiveApprovalTeamVersion) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpDeleteInactiveApprovalTeamVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteInactiveApprovalTeamVersion(response, &metadata)
+ }
+ output := &DeleteInactiveApprovalTeamVersionOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorDeleteInactiveApprovalTeamVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpGetApprovalTeam struct {
+}
+
+func (*awsRestjson1_deserializeOpGetApprovalTeam) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpGetApprovalTeam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorGetApprovalTeam(response, &metadata)
+ }
+ output := &GetApprovalTeamOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetApprovalTeamOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorGetApprovalTeam(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentGetApprovalTeamOutput(v **GetApprovalTeamOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetApprovalTeamOutput
+ if *v == nil {
+ sv = &GetApprovalTeamOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApprovalStrategy":
+ if err := awsRestjson1_deserializeDocumentApprovalStrategyResponse(&sv.ApprovalStrategy, value); err != nil {
+ return err
+ }
+
+ case "Approvers":
+ if err := awsRestjson1_deserializeDocumentGetApprovalTeamResponseApprovers(&sv.Approvers, value); err != nil {
+ return err
+ }
+
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "CreationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreationTime = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Description to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "LastUpdateTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.LastUpdateTime = ptr.Time(t)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "NumberOfApprovers":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.NumberOfApprovers = ptr.Int32(int32(i64))
+ }
+
+ case "PendingUpdate":
+ if err := awsRestjson1_deserializeDocumentPendingUpdate(&sv.PendingUpdate, value); err != nil {
+ return err
+ }
+
+ case "Policies":
+ if err := awsRestjson1_deserializeDocumentPoliciesReferences(&sv.Policies, value); err != nil {
+ return err
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.ApprovalTeamStatus(jtv)
+ }
+
+ case "StatusCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamStatusCode to be of type string, got %T instead", value)
+ }
+ sv.StatusCode = types.ApprovalTeamStatusCode(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Message to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ case "UpdateSessionArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.UpdateSessionArn = ptr.String(jtv)
+ }
+
+ case "VersionId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.VersionId = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpGetIdentitySource struct {
+}
+
+func (*awsRestjson1_deserializeOpGetIdentitySource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpGetIdentitySource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorGetIdentitySource(response, &metadata)
+ }
+ output := &GetIdentitySourceOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetIdentitySourceOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorGetIdentitySource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentGetIdentitySourceOutput(v **GetIdentitySourceOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetIdentitySourceOutput
+ if *v == nil {
+ sv = &GetIdentitySourceOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "CreationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreationTime = ptr.Time(t)
+ }
+
+ case "IdentitySourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.IdentitySourceArn = ptr.String(jtv)
+ }
+
+ case "IdentitySourceParameters":
+ if err := awsRestjson1_deserializeDocumentIdentitySourceParametersForGet(&sv.IdentitySourceParameters, value); err != nil {
+ return err
+ }
+
+ case "IdentitySourceType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentitySourceType to be of type string, got %T instead", value)
+ }
+ sv.IdentitySourceType = types.IdentitySourceType(jtv)
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentitySourceStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.IdentitySourceStatus(jtv)
+ }
+
+ case "StatusCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentitySourceStatusCode to be of type string, got %T instead", value)
+ }
+ sv.StatusCode = types.IdentitySourceStatusCode(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpGetPolicyVersion struct {
+}
+
+func (*awsRestjson1_deserializeOpGetPolicyVersion) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpGetPolicyVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorGetPolicyVersion(response, &metadata)
+ }
+ output := &GetPolicyVersionOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetPolicyVersionOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorGetPolicyVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentGetPolicyVersionOutput(v **GetPolicyVersionOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetPolicyVersionOutput
+ if *v == nil {
+ sv = &GetPolicyVersionOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "PolicyVersion":
+ if err := awsRestjson1_deserializeDocumentPolicyVersion(&sv.PolicyVersion, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpGetResourcePolicy struct {
+}
+
+func (*awsRestjson1_deserializeOpGetResourcePolicy) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpGetResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorGetResourcePolicy(response, &metadata)
+ }
+ output := &GetResourcePolicyOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetResourcePolicyOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorGetResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InvalidParameterException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidParameterException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePolicyOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetResourcePolicyOutput
+ if *v == nil {
+ sv = &GetResourcePolicyOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "PolicyDocument":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value)
+ }
+ sv.PolicyDocument = ptr.String(jtv)
+ }
+
+ case "PolicyName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value)
+ }
+ sv.PolicyName = ptr.String(jtv)
+ }
+
+ case "PolicyType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyType to be of type string, got %T instead", value)
+ }
+ sv.PolicyType = types.PolicyType(jtv)
+ }
+
+ case "PolicyVersionArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.PolicyVersionArn = ptr.String(jtv)
+ }
+
+ case "ResourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ResourceArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpGetSession struct {
+}
+
+func (*awsRestjson1_deserializeOpGetSession) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpGetSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorGetSession(response, &metadata)
+ }
+ output := &GetSessionOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetSessionOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorGetSession(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentGetSessionOutput(v **GetSessionOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetSessionOutput
+ if *v == nil {
+ sv = &GetSessionOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ActionCompletionStrategy":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ActionCompletionStrategy to be of type string, got %T instead", value)
+ }
+ sv.ActionCompletionStrategy = types.ActionCompletionStrategy(jtv)
+ }
+
+ case "ActionName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ActionName to be of type string, got %T instead", value)
+ }
+ sv.ActionName = ptr.String(jtv)
+ }
+
+ case "ApprovalStrategy":
+ if err := awsRestjson1_deserializeDocumentApprovalStrategyResponse(&sv.ApprovalStrategy, value); err != nil {
+ return err
+ }
+
+ case "ApprovalTeamArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamArn to be of type string, got %T instead", value)
+ }
+ sv.ApprovalTeamArn = ptr.String(jtv)
+ }
+
+ case "ApprovalTeamName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamName to be of type string, got %T instead", value)
+ }
+ sv.ApprovalTeamName = ptr.String(jtv)
+ }
+
+ case "ApproverResponses":
+ if err := awsRestjson1_deserializeDocumentGetSessionResponseApproverResponses(&sv.ApproverResponses, value); err != nil {
+ return err
+ }
+
+ case "CompletionTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CompletionTime = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Description to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "ExecutionStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionExecutionStatus to be of type string, got %T instead", value)
+ }
+ sv.ExecutionStatus = types.SessionExecutionStatus(jtv)
+ }
+
+ case "ExpirationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.ExpirationTime = ptr.Time(t)
+ }
+
+ case "InitiationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.InitiationTime = ptr.Time(t)
+ }
+
+ case "Metadata":
+ if err := awsRestjson1_deserializeDocumentSessionMetadata(&sv.Metadata, value); err != nil {
+ return err
+ }
+
+ case "NumberOfApprovers":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.NumberOfApprovers = ptr.Int32(int32(i64))
+ }
+
+ case "ProtectedResourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ProtectedResourceArn = ptr.String(jtv)
+ }
+
+ case "RequesterAccountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.RequesterAccountId = ptr.String(jtv)
+ }
+
+ case "RequesterComment":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected RequesterComment to be of type string, got %T instead", value)
+ }
+ sv.RequesterComment = ptr.String(jtv)
+ }
+
+ case "RequesterPrincipalArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.RequesterPrincipalArn = ptr.String(jtv)
+ }
+
+ case "RequesterRegion":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Region to be of type string, got %T instead", value)
+ }
+ sv.RequesterRegion = ptr.String(jtv)
+ }
+
+ case "RequesterServicePrincipal":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ServicePrincipal to be of type string, got %T instead", value)
+ }
+ sv.RequesterServicePrincipal = ptr.String(jtv)
+ }
+
+ case "SessionArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionArn to be of type string, got %T instead", value)
+ }
+ sv.SessionArn = ptr.String(jtv)
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.SessionStatus(jtv)
+ }
+
+ case "StatusCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionStatusCode to be of type string, got %T instead", value)
+ }
+ sv.StatusCode = types.SessionStatusCode(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Message to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListApprovalTeams struct {
+}
+
+func (*awsRestjson1_deserializeOpListApprovalTeams) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListApprovalTeams) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListApprovalTeams(response, &metadata)
+ }
+ output := &ListApprovalTeamsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListApprovalTeamsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListApprovalTeams(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListApprovalTeamsOutput(v **ListApprovalTeamsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListApprovalTeamsOutput
+ if *v == nil {
+ sv = &ListApprovalTeamsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApprovalTeams":
+ if err := awsRestjson1_deserializeDocumentListApprovalTeamsResponseApprovalTeams(&sv.ApprovalTeams, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Token to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListIdentitySources struct {
+}
+
+func (*awsRestjson1_deserializeOpListIdentitySources) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListIdentitySources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListIdentitySources(response, &metadata)
+ }
+ output := &ListIdentitySourcesOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListIdentitySourcesOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListIdentitySources(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListIdentitySourcesOutput(v **ListIdentitySourcesOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListIdentitySourcesOutput
+ if *v == nil {
+ sv = &ListIdentitySourcesOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "IdentitySources":
+ if err := awsRestjson1_deserializeDocumentIdentitySources(&sv.IdentitySources, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Token to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListPolicies struct {
+}
+
+func (*awsRestjson1_deserializeOpListPolicies) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListPolicies(response, &metadata)
+ }
+ output := &ListPoliciesOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListPoliciesOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListPoliciesOutput(v **ListPoliciesOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListPoliciesOutput
+ if *v == nil {
+ sv = &ListPoliciesOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Token to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "Policies":
+ if err := awsRestjson1_deserializeDocumentPolicies(&sv.Policies, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListPolicyVersions struct {
+}
+
+func (*awsRestjson1_deserializeOpListPolicyVersions) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListPolicyVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListPolicyVersions(response, &metadata)
+ }
+ output := &ListPolicyVersionsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListPolicyVersionsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListPolicyVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListPolicyVersionsOutput(v **ListPolicyVersionsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListPolicyVersionsOutput
+ if *v == nil {
+ sv = &ListPolicyVersionsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Token to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "PolicyVersions":
+ if err := awsRestjson1_deserializeDocumentPolicyVersions(&sv.PolicyVersions, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListResourcePolicies struct {
+}
+
+func (*awsRestjson1_deserializeOpListResourcePolicies) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListResourcePolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListResourcePolicies(response, &metadata)
+ }
+ output := &ListResourcePoliciesOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListResourcePoliciesOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListResourcePolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListResourcePoliciesOutput(v **ListResourcePoliciesOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListResourcePoliciesOutput
+ if *v == nil {
+ sv = &ListResourcePoliciesOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Token to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "ResourcePolicies":
+ if err := awsRestjson1_deserializeDocumentListResourcePoliciesResponseResourcePolicies(&sv.ResourcePolicies, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListSessions struct {
+}
+
+func (*awsRestjson1_deserializeOpListSessions) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListSessions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListSessions(response, &metadata)
+ }
+ output := &ListSessionsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListSessionsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListSessions(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListSessionsOutput(v **ListSessionsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListSessionsOutput
+ if *v == nil {
+ sv = &ListSessionsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Token to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "Sessions":
+ if err := awsRestjson1_deserializeDocumentListSessionsResponseSessions(&sv.Sessions, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListTagsForResource struct {
+}
+
+func (*awsRestjson1_deserializeOpListTagsForResource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata)
+ }
+ output := &ListTagsForResourceOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListTagsForResourceOutput
+ if *v == nil {
+ sv = &ListTagsForResourceOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Tags":
+ if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpStartActiveApprovalTeamDeletion struct {
+}
+
+func (*awsRestjson1_deserializeOpStartActiveApprovalTeamDeletion) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpStartActiveApprovalTeamDeletion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorStartActiveApprovalTeamDeletion(response, &metadata)
+ }
+ output := &StartActiveApprovalTeamDeletionOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentStartActiveApprovalTeamDeletionOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorStartActiveApprovalTeamDeletion(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentStartActiveApprovalTeamDeletionOutput(v **StartActiveApprovalTeamDeletionOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *StartActiveApprovalTeamDeletionOutput
+ if *v == nil {
+ sv = &StartActiveApprovalTeamDeletionOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "DeletionCompletionTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.DeletionCompletionTime = ptr.Time(t)
+ }
+
+ case "DeletionStartTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.DeletionStartTime = ptr.Time(t)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpTagResource struct {
+}
+
+func (*awsRestjson1_deserializeOpTagResource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata)
+ }
+ output := &TagResourceOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("TooManyTagsException", errorCode):
+ return awsRestjson1_deserializeErrorTooManyTagsException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUntagResource struct {
+}
+
+func (*awsRestjson1_deserializeOpUntagResource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata)
+ }
+ output := &UntagResourceOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateApprovalTeam struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateApprovalTeam) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateApprovalTeam) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateApprovalTeam(response, &metadata)
+ }
+ output := &UpdateApprovalTeamOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateApprovalTeamOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateApprovalTeam(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ServiceQuotaExceededException", errorCode):
+ return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateApprovalTeamOutput(v **UpdateApprovalTeamOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateApprovalTeamOutput
+ if *v == nil {
+ sv = &UpdateApprovalTeamOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "VersionId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.VersionId = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.AccessDeniedException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ConflictException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentConflictException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.InternalServerException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorInvalidParameterException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.InvalidParameterException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentInvalidParameterException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ResourceNotFoundException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ServiceQuotaExceededException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ThrottlingException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorTooManyTagsException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.TooManyTagsException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentTooManyTagsException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ValidationException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentValidationException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AccessDeniedException
+ if *v == nil {
+ sv = &types.AccessDeniedException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentApprovalStrategyResponse(v *types.ApprovalStrategyResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var uv types.ApprovalStrategyResponse
+loop:
+ for key, value := range shape {
+ if value == nil {
+ continue
+ }
+ switch key {
+ case "MofN":
+ var mv types.MofNApprovalStrategy
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentMofNApprovalStrategy(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.ApprovalStrategyResponseMemberMofN{Value: mv}
+ break loop
+
+ default:
+ uv = &types.UnknownUnionMember{Tag: key}
+ break loop
+
+ }
+ }
+ *v = uv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ConflictException
+ if *v == nil {
+ sv = &types.ConflictException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentGetApprovalTeamResponseApprover(v **types.GetApprovalTeamResponseApprover, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.GetApprovalTeamResponseApprover
+ if *v == nil {
+ sv = &types.GetApprovalTeamResponseApprover{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApproverId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ParticipantId to be of type string, got %T instead", value)
+ }
+ sv.ApproverId = ptr.String(jtv)
+ }
+
+ case "PrimaryIdentityId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value)
+ }
+ sv.PrimaryIdentityId = ptr.String(jtv)
+ }
+
+ case "PrimaryIdentitySourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.PrimaryIdentitySourceArn = ptr.String(jtv)
+ }
+
+ case "PrimaryIdentityStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentityStatus to be of type string, got %T instead", value)
+ }
+ sv.PrimaryIdentityStatus = types.IdentityStatus(jtv)
+ }
+
+ case "ResponseTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.ResponseTime = ptr.Time(t)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentGetApprovalTeamResponseApprovers(v *[]types.GetApprovalTeamResponseApprover, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.GetApprovalTeamResponseApprover
+ if *v == nil {
+ cv = []types.GetApprovalTeamResponseApprover{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.GetApprovalTeamResponseApprover
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentGetApprovalTeamResponseApprover(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentGetSessionResponseApproverResponse(v **types.GetSessionResponseApproverResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.GetSessionResponseApproverResponse
+ if *v == nil {
+ sv = &types.GetSessionResponseApproverResponse{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApproverId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ParticipantId to be of type string, got %T instead", value)
+ }
+ sv.ApproverId = ptr.String(jtv)
+ }
+
+ case "IdentityId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentityId to be of type string, got %T instead", value)
+ }
+ sv.IdentityId = ptr.String(jtv)
+ }
+
+ case "IdentitySourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.IdentitySourceArn = ptr.String(jtv)
+ }
+
+ case "Response":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionResponse to be of type string, got %T instead", value)
+ }
+ sv.Response = types.SessionResponse(jtv)
+ }
+
+ case "ResponseTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.ResponseTime = ptr.Time(t)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentGetSessionResponseApproverResponses(v *[]types.GetSessionResponseApproverResponse, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.GetSessionResponseApproverResponse
+ if *v == nil {
+ cv = []types.GetSessionResponseApproverResponse{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.GetSessionResponseApproverResponse
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentGetSessionResponseApproverResponse(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentIamIdentityCenterForGet(v **types.IamIdentityCenterForGet, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.IamIdentityCenterForGet
+ if *v == nil {
+ sv = &types.IamIdentityCenterForGet{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApprovalPortalUrl":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ApprovalPortalUrl = ptr.String(jtv)
+ }
+
+ case "InstanceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.InstanceArn = ptr.String(jtv)
+ }
+
+ case "Region":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Region = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentIamIdentityCenterForList(v **types.IamIdentityCenterForList, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.IamIdentityCenterForList
+ if *v == nil {
+ sv = &types.IamIdentityCenterForList{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApprovalPortalUrl":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ApprovalPortalUrl = ptr.String(jtv)
+ }
+
+ case "InstanceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.InstanceArn = ptr.String(jtv)
+ }
+
+ case "Region":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Region = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentIdentitySourceForList(v **types.IdentitySourceForList, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.IdentitySourceForList
+ if *v == nil {
+ sv = &types.IdentitySourceForList{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "CreationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreationTime = ptr.Time(t)
+ }
+
+ case "IdentitySourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.IdentitySourceArn = ptr.String(jtv)
+ }
+
+ case "IdentitySourceParameters":
+ if err := awsRestjson1_deserializeDocumentIdentitySourceParametersForList(&sv.IdentitySourceParameters, value); err != nil {
+ return err
+ }
+
+ case "IdentitySourceType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentitySourceType to be of type string, got %T instead", value)
+ }
+ sv.IdentitySourceType = types.IdentitySourceType(jtv)
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentitySourceStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.IdentitySourceStatus(jtv)
+ }
+
+ case "StatusCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IdentitySourceStatusCode to be of type string, got %T instead", value)
+ }
+ sv.StatusCode = types.IdentitySourceStatusCode(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentIdentitySourceParametersForGet(v *types.IdentitySourceParametersForGet, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var uv types.IdentitySourceParametersForGet
+loop:
+ for key, value := range shape {
+ if value == nil {
+ continue
+ }
+ switch key {
+ case "IamIdentityCenter":
+ var mv types.IamIdentityCenterForGet
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentIamIdentityCenterForGet(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.IdentitySourceParametersForGetMemberIamIdentityCenter{Value: mv}
+ break loop
+
+ default:
+ uv = &types.UnknownUnionMember{Tag: key}
+ break loop
+
+ }
+ }
+ *v = uv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentIdentitySourceParametersForList(v *types.IdentitySourceParametersForList, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var uv types.IdentitySourceParametersForList
+loop:
+ for key, value := range shape {
+ if value == nil {
+ continue
+ }
+ switch key {
+ case "IamIdentityCenter":
+ var mv types.IamIdentityCenterForList
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentIamIdentityCenterForList(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.IdentitySourceParametersForListMemberIamIdentityCenter{Value: mv}
+ break loop
+
+ default:
+ uv = &types.UnknownUnionMember{Tag: key}
+ break loop
+
+ }
+ }
+ *v = uv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentIdentitySources(v *[]types.IdentitySourceForList, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.IdentitySourceForList
+ if *v == nil {
+ cv = []types.IdentitySourceForList{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.IdentitySourceForList
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentIdentitySourceForList(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InternalServerException
+ if *v == nil {
+ sv = &types.InternalServerException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentInvalidParameterException(v **types.InvalidParameterException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InvalidParameterException
+ if *v == nil {
+ sv = &types.InvalidParameterException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentListApprovalTeamsResponseApprovalTeam(v **types.ListApprovalTeamsResponseApprovalTeam, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ListApprovalTeamsResponseApprovalTeam
+ if *v == nil {
+ sv = &types.ListApprovalTeamsResponseApprovalTeam{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApprovalStrategy":
+ if err := awsRestjson1_deserializeDocumentApprovalStrategyResponse(&sv.ApprovalStrategy, value); err != nil {
+ return err
+ }
+
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamArn to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "CreationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreationTime = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Description to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "NumberOfApprovers":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.NumberOfApprovers = ptr.Int32(int32(i64))
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.ApprovalTeamStatus(jtv)
+ }
+
+ case "StatusCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamStatusCode to be of type string, got %T instead", value)
+ }
+ sv.StatusCode = types.ApprovalTeamStatusCode(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Message to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentListApprovalTeamsResponseApprovalTeams(v *[]types.ListApprovalTeamsResponseApprovalTeam, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ListApprovalTeamsResponseApprovalTeam
+ if *v == nil {
+ cv = []types.ListApprovalTeamsResponseApprovalTeam{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ListApprovalTeamsResponseApprovalTeam
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentListApprovalTeamsResponseApprovalTeam(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentListResourcePoliciesResponseResourcePolicies(v *[]types.ListResourcePoliciesResponseResourcePolicy, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ListResourcePoliciesResponseResourcePolicy
+ if *v == nil {
+ cv = []types.ListResourcePoliciesResponseResourcePolicy{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ListResourcePoliciesResponseResourcePolicy
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentListResourcePoliciesResponseResourcePolicy(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentListResourcePoliciesResponseResourcePolicy(v **types.ListResourcePoliciesResponseResourcePolicy, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ListResourcePoliciesResponseResourcePolicy
+ if *v == nil {
+ sv = &types.ListResourcePoliciesResponseResourcePolicy{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "PolicyArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.PolicyArn = ptr.String(jtv)
+ }
+
+ case "PolicyName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.PolicyName = ptr.String(jtv)
+ }
+
+ case "PolicyType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyType to be of type string, got %T instead", value)
+ }
+ sv.PolicyType = types.PolicyType(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentListSessionsResponseSession(v **types.ListSessionsResponseSession, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ListSessionsResponseSession
+ if *v == nil {
+ sv = &types.ListSessionsResponseSession{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ActionCompletionStrategy":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ActionCompletionStrategy to be of type string, got %T instead", value)
+ }
+ sv.ActionCompletionStrategy = types.ActionCompletionStrategy(jtv)
+ }
+
+ case "ActionName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ActionName to be of type string, got %T instead", value)
+ }
+ sv.ActionName = ptr.String(jtv)
+ }
+
+ case "ApprovalTeamArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamArn to be of type string, got %T instead", value)
+ }
+ sv.ApprovalTeamArn = ptr.String(jtv)
+ }
+
+ case "ApprovalTeamName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamName to be of type string, got %T instead", value)
+ }
+ sv.ApprovalTeamName = ptr.String(jtv)
+ }
+
+ case "CompletionTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CompletionTime = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Description to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "ExpirationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.ExpirationTime = ptr.Time(t)
+ }
+
+ case "InitiationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.InitiationTime = ptr.Time(t)
+ }
+
+ case "ProtectedResourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ProtectedResourceArn = ptr.String(jtv)
+ }
+
+ case "RequesterAccountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AccountId to be of type string, got %T instead", value)
+ }
+ sv.RequesterAccountId = ptr.String(jtv)
+ }
+
+ case "RequesterPrincipalArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.RequesterPrincipalArn = ptr.String(jtv)
+ }
+
+ case "RequesterRegion":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Region to be of type string, got %T instead", value)
+ }
+ sv.RequesterRegion = ptr.String(jtv)
+ }
+
+ case "RequesterServicePrincipal":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ServicePrincipal to be of type string, got %T instead", value)
+ }
+ sv.RequesterServicePrincipal = ptr.String(jtv)
+ }
+
+ case "SessionArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionArn to be of type string, got %T instead", value)
+ }
+ sv.SessionArn = ptr.String(jtv)
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.SessionStatus(jtv)
+ }
+
+ case "StatusCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionStatusCode to be of type string, got %T instead", value)
+ }
+ sv.StatusCode = types.SessionStatusCode(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Message to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentListSessionsResponseSessions(v *[]types.ListSessionsResponseSession, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ListSessionsResponseSession
+ if *v == nil {
+ cv = []types.ListSessionsResponseSession{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ListSessionsResponseSession
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentListSessionsResponseSession(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentMofNApprovalStrategy(v **types.MofNApprovalStrategy, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.MofNApprovalStrategy
+ if *v == nil {
+ sv = &types.MofNApprovalStrategy{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "MinApprovalsRequired":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.MinApprovalsRequired = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentPendingUpdate(v **types.PendingUpdate, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.PendingUpdate
+ if *v == nil {
+ sv = &types.PendingUpdate{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ApprovalStrategy":
+ if err := awsRestjson1_deserializeDocumentApprovalStrategyResponse(&sv.ApprovalStrategy, value); err != nil {
+ return err
+ }
+
+ case "Approvers":
+ if err := awsRestjson1_deserializeDocumentGetApprovalTeamResponseApprovers(&sv.Approvers, value); err != nil {
+ return err
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "NumberOfApprovers":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.NumberOfApprovers = ptr.Int32(int32(i64))
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.ApprovalTeamStatus(jtv)
+ }
+
+ case "StatusCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ApprovalTeamStatusCode to be of type string, got %T instead", value)
+ }
+ sv.StatusCode = types.ApprovalTeamStatusCode(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Message to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ case "UpdateInitiationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.UpdateInitiationTime = ptr.Time(t)
+ }
+
+ case "VersionId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.VersionId = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentPolicies(v *[]types.Policy, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.Policy
+ if *v == nil {
+ cv = []types.Policy{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.Policy
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentPolicy(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentPoliciesReferences(v *[]types.PolicyReference, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.PolicyReference
+ if *v == nil {
+ cv = []types.PolicyReference{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.PolicyReference
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentPolicyReference(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentPolicy(v **types.Policy, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.Policy
+ if *v == nil {
+ sv = &types.Policy{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected UnqualifiedPolicyArn to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "DefaultVersion":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected PolicyVersionId to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.DefaultVersion = ptr.Int32(int32(i64))
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "PolicyType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyType to be of type string, got %T instead", value)
+ }
+ sv.PolicyType = types.PolicyType(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentPolicyReference(v **types.PolicyReference, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.PolicyReference
+ if *v == nil {
+ sv = &types.PolicyReference{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "PolicyArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected QualifiedPolicyArn to be of type string, got %T instead", value)
+ }
+ sv.PolicyArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentPolicyVersion(v **types.PolicyVersion, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.PolicyVersion
+ if *v == nil {
+ sv = &types.PolicyVersion{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected QualifiedPolicyArn to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "CreationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreationTime = ptr.Time(t)
+ }
+
+ case "Document":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyDocument to be of type string, got %T instead", value)
+ }
+ sv.Document = ptr.String(jtv)
+ }
+
+ case "IsDefault":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.IsDefault = ptr.Bool(jtv)
+ }
+
+ case "LastUpdatedTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.LastUpdatedTime = ptr.Time(t)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "PolicyArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected UnqualifiedPolicyArn to be of type string, got %T instead", value)
+ }
+ sv.PolicyArn = ptr.String(jtv)
+ }
+
+ case "PolicyType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyType to be of type string, got %T instead", value)
+ }
+ sv.PolicyType = types.PolicyType(jtv)
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.PolicyStatus(jtv)
+ }
+
+ case "VersionId":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected PolicyVersionId to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.VersionId = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentPolicyVersions(v *[]types.PolicyVersionSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.PolicyVersionSummary
+ if *v == nil {
+ cv = []types.PolicyVersionSummary{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.PolicyVersionSummary
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentPolicyVersionSummary(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentPolicyVersionSummary(v **types.PolicyVersionSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.PolicyVersionSummary
+ if *v == nil {
+ sv = &types.PolicyVersionSummary{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected QualifiedPolicyArn to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "CreationTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreationTime = ptr.Time(t)
+ }
+
+ case "IsDefault":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.IsDefault = ptr.Bool(jtv)
+ }
+
+ case "LastUpdatedTime":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IsoTimestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.LastUpdatedTime = ptr.Time(t)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "PolicyArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected UnqualifiedPolicyArn to be of type string, got %T instead", value)
+ }
+ sv.PolicyArn = ptr.String(jtv)
+ }
+
+ case "PolicyType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyType to be of type string, got %T instead", value)
+ }
+ sv.PolicyType = types.PolicyType(jtv)
+ }
+
+ case "Status":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected PolicyStatus to be of type string, got %T instead", value)
+ }
+ sv.Status = types.PolicyStatus(jtv)
+ }
+
+ case "VersionId":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected PolicyVersionId to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.VersionId = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ResourceNotFoundException
+ if *v == nil {
+ sv = &types.ResourceNotFoundException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ServiceQuotaExceededException
+ if *v == nil {
+ sv = &types.ServiceQuotaExceededException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentSessionMetadata(v *map[string]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var mv map[string]string
+ if *v == nil {
+ mv = map[string]string{}
+ } else {
+ mv = *v
+ }
+
+ for key, value := range shape {
+ var parsedVal string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SessionValue to be of type string, got %T instead", value)
+ }
+ parsedVal = jtv
+ }
+ mv[key] = parsedVal
+
+ }
+ *v = mv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var mv map[string]string
+ if *v == nil {
+ mv = map[string]string{}
+ } else {
+ mv = *v
+ }
+
+ for key, value := range shape {
+ var parsedVal string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TagValue to be of type string, got %T instead", value)
+ }
+ parsedVal = jtv
+ }
+ mv[key] = parsedVal
+
+ }
+ *v = mv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ThrottlingException
+ if *v == nil {
+ sv = &types.ThrottlingException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentTooManyTagsException(v **types.TooManyTagsException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.TooManyTagsException
+ if *v == nil {
+ sv = &types.TooManyTagsException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ case "ResourceName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.ResourceName = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ValidationException
+ if *v == nil {
+ sv = &types.ValidationException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected String to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
diff --git a/service/mpa/doc.go b/service/mpa/doc.go
new file mode 100644
index 00000000000..0fee6ba598a
--- /dev/null
+++ b/service/mpa/doc.go
@@ -0,0 +1,30 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+// Package mpa provides the API client, operations, and parameter types for AWS
+// Multi-party Approval.
+//
+// Multi-party approval is a capability of [Organizations] that allows you to protect a
+// predefined list of operations through a distributed approval process. Use
+// Multi-party approval to establish approval workflows and transform security
+// processes into team-based decisions.
+//
+// When to use Multi-party approval:
+//
+// - You need to align with the Zero Trust principle of "never trust, always
+// verify"
+//
+// - You need to make sure that the right humans have access to the right things
+// in the right way
+//
+// - You need distributed decision-making for sensitive or critical operations
+//
+// - You need to protect against unintended operations on sensitive or critical
+// resources
+//
+// - You need formal reviews and approvals for auditing or compliance reasons
+//
+// For more information, see [What is Multi-party approval] in the Multi-party approval User Guide.
+//
+// [What is Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/what-is.html
+// [Organizations]: http://aws.amazon.com/organizations
+package mpa
diff --git a/service/mpa/endpoints.go b/service/mpa/endpoints.go
new file mode 100644
index 00000000000..2239eeb5ae5
--- /dev/null
+++ b/service/mpa/endpoints.go
@@ -0,0 +1,462 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "github.com/aws/aws-sdk-go-v2/aws"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources"
+ "github.com/aws/aws-sdk-go-v2/internal/endpoints"
+ "github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn"
+ internalendpoints "github.com/aws/aws-sdk-go-v2/service/mpa/internal/endpoints"
+ smithyauth "github.com/aws/smithy-go/auth"
+ smithyendpoints "github.com/aws/smithy-go/endpoints"
+ "github.com/aws/smithy-go/middleware"
+ "github.com/aws/smithy-go/ptr"
+ "github.com/aws/smithy-go/tracing"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "net/http"
+ "net/url"
+ "os"
+ "strings"
+)
+
+// EndpointResolverOptions is the service endpoint resolver options
+type EndpointResolverOptions = internalendpoints.Options
+
+// EndpointResolver interface for resolving service endpoints.
+type EndpointResolver interface {
+ ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
+}
+
+var _ EndpointResolver = &internalendpoints.Resolver{}
+
+// NewDefaultEndpointResolver constructs a new service endpoint resolver
+func NewDefaultEndpointResolver() *internalendpoints.Resolver {
+ return internalendpoints.New()
+}
+
+// EndpointResolverFunc is a helper utility that wraps a function so it satisfies
+// the EndpointResolver interface. This is useful when you want to add additional
+// endpoint resolving logic, or stub out specific endpoints with custom values.
+type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
+
+func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
+ return fn(region, options)
+}
+
+// EndpointResolverFromURL returns an EndpointResolver configured using the
+// provided endpoint url. By default, the resolved endpoint resolver uses the
+// client region as signing region, and the endpoint source is set to
+// EndpointSourceCustom.You can provide functional options to configure endpoint
+// values for the resolved endpoint.
+func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver {
+ e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom}
+ for _, fn := range optFns {
+ fn(&e)
+ }
+
+ return EndpointResolverFunc(
+ func(region string, options EndpointResolverOptions) (aws.Endpoint, error) {
+ if len(e.SigningRegion) == 0 {
+ e.SigningRegion = region
+ }
+ return e, nil
+ },
+ )
+}
+
+type ResolveEndpoint struct {
+ Resolver EndpointResolver
+ Options EndpointResolverOptions
+}
+
+func (*ResolveEndpoint) ID() string {
+ return "ResolveEndpoint"
+}
+
+func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ if !awsmiddleware.GetRequiresLegacyEndpoints(ctx) {
+ return next.HandleSerialize(ctx, in)
+ }
+
+ req, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
+ }
+
+ if m.Resolver == nil {
+ return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil")
+ }
+
+ eo := m.Options
+ eo.Logger = middleware.GetLogger(ctx)
+
+ var endpoint aws.Endpoint
+ endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo)
+ if err != nil {
+ nf := (&aws.EndpointNotFoundError{})
+ if errors.As(err, &nf) {
+ ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, false)
+ return next.HandleSerialize(ctx, in)
+ }
+ return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err)
+ }
+
+ req.URL, err = url.Parse(endpoint.URL)
+ if err != nil {
+ return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err)
+ }
+
+ if len(awsmiddleware.GetSigningName(ctx)) == 0 {
+ signingName := endpoint.SigningName
+ if len(signingName) == 0 {
+ signingName = "mpa"
+ }
+ ctx = awsmiddleware.SetSigningName(ctx, signingName)
+ }
+ ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source)
+ ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable)
+ ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion)
+ ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID)
+ return next.HandleSerialize(ctx, in)
+}
+func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error {
+ return stack.Serialize.Insert(&ResolveEndpoint{
+ Resolver: o.EndpointResolver,
+ Options: o.EndpointOptions,
+ }, "OperationSerializer", middleware.Before)
+}
+
+func removeResolveEndpointMiddleware(stack *middleware.Stack) error {
+ _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID())
+ return err
+}
+
+type wrappedEndpointResolver struct {
+ awsResolver aws.EndpointResolverWithOptions
+}
+
+func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
+ return w.awsResolver.ResolveEndpoint(ServiceID, region, options)
+}
+
+type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error)
+
+func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) {
+ return a(service, region)
+}
+
+var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil)
+
+// withEndpointResolver returns an aws.EndpointResolverWithOptions that first delegates endpoint resolution to the awsResolver.
+// If awsResolver returns aws.EndpointNotFoundError error, the v1 resolver middleware will swallow the error,
+// and set an appropriate context flag such that fallback will occur when EndpointResolverV2 is invoked
+// via its middleware.
+//
+// If another error (besides aws.EndpointNotFoundError) is returned, then that error will be propagated.
+func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions) EndpointResolver {
+ var resolver aws.EndpointResolverWithOptions
+
+ if awsResolverWithOptions != nil {
+ resolver = awsResolverWithOptions
+ } else if awsResolver != nil {
+ resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint)
+ }
+
+ return &wrappedEndpointResolver{
+ awsResolver: resolver,
+ }
+}
+
+func finalizeClientEndpointResolverOptions(options *Options) {
+ options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage()
+
+ if len(options.EndpointOptions.ResolvedRegion) == 0 {
+ const fipsInfix = "-fips-"
+ const fipsPrefix = "fips-"
+ const fipsSuffix = "-fips"
+
+ if strings.Contains(options.Region, fipsInfix) ||
+ strings.Contains(options.Region, fipsPrefix) ||
+ strings.Contains(options.Region, fipsSuffix) {
+ options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(
+ options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "")
+ options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled
+ }
+ }
+
+}
+
+func resolveEndpointResolverV2(options *Options) {
+ if options.EndpointResolverV2 == nil {
+ options.EndpointResolverV2 = NewDefaultEndpointResolverV2()
+ }
+}
+
+func resolveBaseEndpoint(cfg aws.Config, o *Options) {
+ if cfg.BaseEndpoint != nil {
+ o.BaseEndpoint = cfg.BaseEndpoint
+ }
+
+ _, g := os.LookupEnv("AWS_ENDPOINT_URL")
+ _, s := os.LookupEnv("AWS_ENDPOINT_URL_MPA")
+
+ if g && !s {
+ return
+ }
+
+ value, found, err := internalConfig.ResolveServiceBaseEndpoint(context.Background(), "MPA", cfg.ConfigSources)
+ if found && err == nil {
+ o.BaseEndpoint = &value
+ }
+}
+
+func bindRegion(region string) *string {
+ if region == "" {
+ return nil
+ }
+ return aws.String(endpoints.MapFIPSRegion(region))
+}
+
+// EndpointParameters provides the parameters that influence how endpoints are
+// resolved.
+type EndpointParameters struct {
+ // When true, send this request to the FIPS-compliant regional endpoint. If the
+ // configured endpoint does not have a FIPS compliant endpoint, dispatching the
+ // request will return an error.
+ //
+ // Defaults to false if no value is
+ // provided.
+ //
+ // AWS::UseFIPS
+ UseFIPS *bool
+
+ // Override the endpoint used to send this request
+ //
+ // Parameter is
+ // required.
+ //
+ // SDK::Endpoint
+ Endpoint *string
+
+ // The AWS region used to dispatch the request.
+ //
+ // Parameter is
+ // required.
+ //
+ // AWS::Region
+ Region *string
+}
+
+// ValidateRequired validates required parameters are set.
+func (p EndpointParameters) ValidateRequired() error {
+ if p.UseFIPS == nil {
+ return fmt.Errorf("parameter UseFIPS is required")
+ }
+
+ return nil
+}
+
+// WithDefaults returns a shallow copy of EndpointParameterswith default values
+// applied to members where applicable.
+func (p EndpointParameters) WithDefaults() EndpointParameters {
+ if p.UseFIPS == nil {
+ p.UseFIPS = ptr.Bool(false)
+ }
+ return p
+}
+
+type stringSlice []string
+
+func (s stringSlice) Get(i int) *string {
+ if i < 0 || i >= len(s) {
+ return nil
+ }
+
+ v := s[i]
+ return &v
+}
+
+// EndpointResolverV2 provides the interface for resolving service endpoints.
+type EndpointResolverV2 interface {
+ // ResolveEndpoint attempts to resolve the endpoint with the provided options,
+ // returning the endpoint if found. Otherwise an error is returned.
+ ResolveEndpoint(ctx context.Context, params EndpointParameters) (
+ smithyendpoints.Endpoint, error,
+ )
+}
+
+// resolver provides the implementation for resolving endpoints.
+type resolver struct{}
+
+func NewDefaultEndpointResolverV2() EndpointResolverV2 {
+ return &resolver{}
+}
+
+// ResolveEndpoint attempts to resolve the endpoint with the provided options,
+// returning the endpoint if found. Otherwise an error is returned.
+func (r *resolver) ResolveEndpoint(
+ ctx context.Context, params EndpointParameters,
+) (
+ endpoint smithyendpoints.Endpoint, err error,
+) {
+ params = params.WithDefaults()
+ if err = params.ValidateRequired(); err != nil {
+ return endpoint, fmt.Errorf("endpoint parameters are not valid, %w", err)
+ }
+ _UseFIPS := *params.UseFIPS
+
+ if exprVal := params.Endpoint; exprVal != nil {
+ _Endpoint := *exprVal
+ _ = _Endpoint
+ if _UseFIPS == true {
+ return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: FIPS and custom endpoint are not supported")
+ }
+ uriString := _Endpoint
+
+ uri, err := url.Parse(uriString)
+ if err != nil {
+ return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
+ }
+
+ return smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ }, nil
+ }
+ if exprVal := params.Region; exprVal != nil {
+ _Region := *exprVal
+ _ = _Region
+ if exprVal := awsrulesfn.GetPartition(_Region); exprVal != nil {
+ _PartitionResult := *exprVal
+ _ = _PartitionResult
+ if _UseFIPS == true {
+ uriString := func() string {
+ var out strings.Builder
+ out.WriteString("https://mpa-fips.")
+ out.WriteString(_Region)
+ out.WriteString(".")
+ out.WriteString(_PartitionResult.DualStackDnsSuffix)
+ return out.String()
+ }()
+
+ uri, err := url.Parse(uriString)
+ if err != nil {
+ return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
+ }
+
+ return smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ }, nil
+ }
+ uriString := func() string {
+ var out strings.Builder
+ out.WriteString("https://mpa.")
+ out.WriteString(_Region)
+ out.WriteString(".")
+ out.WriteString(_PartitionResult.DualStackDnsSuffix)
+ return out.String()
+ }()
+
+ uri, err := url.Parse(uriString)
+ if err != nil {
+ return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
+ }
+
+ return smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ }, nil
+ }
+ return endpoint, fmt.Errorf("Endpoint resolution failed. Invalid operation or environment input.")
+ }
+ return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Missing Region")
+}
+
+type endpointParamsBinder interface {
+ bindEndpointParams(*EndpointParameters)
+}
+
+func bindEndpointParams(ctx context.Context, input interface{}, options Options) *EndpointParameters {
+ params := &EndpointParameters{}
+
+ params.UseFIPS = aws.Bool(options.EndpointOptions.UseFIPSEndpoint == aws.FIPSEndpointStateEnabled)
+ params.Endpoint = options.BaseEndpoint
+ params.Region = bindRegion(options.Region)
+
+ if b, ok := input.(endpointParamsBinder); ok {
+ b.bindEndpointParams(params)
+ }
+
+ return params
+}
+
+type resolveEndpointV2Middleware struct {
+ options Options
+}
+
+func (*resolveEndpointV2Middleware) ID() string {
+ return "ResolveEndpointV2"
+}
+
+func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
+ out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "ResolveEndpoint")
+ defer span.End()
+
+ if awsmiddleware.GetRequiresLegacyEndpoints(ctx) {
+ return next.HandleFinalize(ctx, in)
+ }
+
+ req, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
+ }
+
+ if m.options.EndpointResolverV2 == nil {
+ return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil")
+ }
+
+ params := bindEndpointParams(ctx, getOperationInput(ctx), m.options)
+ endpt, err := timeOperationMetric(ctx, "client.call.resolve_endpoint_duration",
+ func() (smithyendpoints.Endpoint, error) {
+ return m.options.EndpointResolverV2.ResolveEndpoint(ctx, *params)
+ })
+ if err != nil {
+ return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err)
+ }
+
+ span.SetProperty("client.call.resolved_endpoint", endpt.URI.String())
+
+ if endpt.URI.RawPath == "" && req.URL.RawPath != "" {
+ endpt.URI.RawPath = endpt.URI.Path
+ }
+ req.URL.Scheme = endpt.URI.Scheme
+ req.URL.Host = endpt.URI.Host
+ req.URL.Path = smithyhttp.JoinPath(endpt.URI.Path, req.URL.Path)
+ req.URL.RawPath = smithyhttp.JoinPath(endpt.URI.RawPath, req.URL.RawPath)
+ for k := range endpt.Headers {
+ req.Header.Set(k, endpt.Headers.Get(k))
+ }
+
+ rscheme := getResolvedAuthScheme(ctx)
+ if rscheme == nil {
+ return out, metadata, fmt.Errorf("no resolved auth scheme")
+ }
+
+ opts, _ := smithyauth.GetAuthOptions(&endpt.Properties)
+ for _, o := range opts {
+ rscheme.SignerProperties.SetAll(&o.SignerProperties)
+ }
+
+ span.End()
+ return next.HandleFinalize(ctx, in)
+}
diff --git a/service/mpa/endpoints_config_test.go b/service/mpa/endpoints_config_test.go
new file mode 100644
index 00000000000..c3a76afe082
--- /dev/null
+++ b/service/mpa/endpoints_config_test.go
@@ -0,0 +1,139 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "os"
+ "reflect"
+ "testing"
+)
+
+type mockConfigSource struct {
+ global string
+ service string
+ ignore bool
+}
+
+// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured
+// endpoints feature.
+func (m mockConfigSource) GetIgnoreConfiguredEndpoints(context.Context) (bool, bool, error) {
+ return m.ignore, m.ignore, nil
+}
+
+// GetServiceBaseEndpoint is used to retrieve a normalized SDK ID for use
+// with configured endpoints.
+func (m mockConfigSource) GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error) {
+ if m.service != "" {
+ return m.service, true, nil
+ }
+ return "", false, nil
+}
+
+func TestResolveBaseEndpoint(t *testing.T) {
+ cases := map[string]struct {
+ envGlobal string
+ envService string
+ envIgnore bool
+ configGlobal string
+ configService string
+ configIgnore bool
+ clientEndpoint *string
+ expectURL *string
+ }{
+ "env ignore": {
+ envGlobal: "https://env-global.dev",
+ envService: "https://env-mpa.dev",
+ envIgnore: true,
+ configGlobal: "http://config-global.dev",
+ configService: "http://config-mpa.dev",
+ expectURL: nil,
+ },
+ "env global": {
+ envGlobal: "https://env-global.dev",
+ configGlobal: "http://config-global.dev",
+ configService: "http://config-mpa.dev",
+ expectURL: aws.String("https://env-global.dev"),
+ },
+ "env service": {
+ envGlobal: "https://env-global.dev",
+ envService: "https://env-mpa.dev",
+ configGlobal: "http://config-global.dev",
+ configService: "http://config-mpa.dev",
+ expectURL: aws.String("https://env-mpa.dev"),
+ },
+ "config ignore": {
+ envGlobal: "https://env-global.dev",
+ envService: "https://env-mpa.dev",
+ configGlobal: "http://config-global.dev",
+ configService: "http://config-mpa.dev",
+ configIgnore: true,
+ expectURL: nil,
+ },
+ "config global": {
+ configGlobal: "http://config-global.dev",
+ expectURL: aws.String("http://config-global.dev"),
+ },
+ "config service": {
+ configGlobal: "http://config-global.dev",
+ configService: "http://config-mpa.dev",
+ expectURL: aws.String("http://config-mpa.dev"),
+ },
+ "client": {
+ envGlobal: "https://env-global.dev",
+ envService: "https://env-mpa.dev",
+ configGlobal: "http://config-global.dev",
+ configService: "http://config-mpa.dev",
+ clientEndpoint: aws.String("https://client-mpa.dev"),
+ expectURL: aws.String("https://client-mpa.dev"),
+ },
+ }
+
+ for name, c := range cases {
+ t.Run(name, func(t *testing.T) {
+ os.Clearenv()
+
+ awsConfig := aws.Config{}
+ ignore := c.envIgnore || c.configIgnore
+
+ if c.configGlobal != "" && !ignore {
+ awsConfig.BaseEndpoint = aws.String(c.configGlobal)
+ }
+
+ if c.envGlobal != "" {
+ t.Setenv("AWS_ENDPOINT_URL", c.envGlobal)
+ if !ignore {
+ awsConfig.BaseEndpoint = aws.String(c.envGlobal)
+ }
+ }
+
+ if c.envService != "" {
+ t.Setenv("AWS_ENDPOINT_URL_MPA", c.envService)
+ }
+
+ awsConfig.ConfigSources = []interface{}{
+ mockConfigSource{
+ global: c.envGlobal,
+ service: c.envService,
+ ignore: c.envIgnore,
+ },
+ mockConfigSource{
+ global: c.configGlobal,
+ service: c.configService,
+ ignore: c.configIgnore,
+ },
+ }
+
+ client := NewFromConfig(awsConfig, func(o *Options) {
+ if c.clientEndpoint != nil {
+ o.BaseEndpoint = c.clientEndpoint
+ }
+ })
+
+ if e, a := c.expectURL, client.options.BaseEndpoint; !reflect.DeepEqual(e, a) {
+ t.Errorf("expect endpoint %v , got %v", e, a)
+ }
+ })
+ }
+}
diff --git a/service/mpa/endpoints_test.go b/service/mpa/endpoints_test.go
new file mode 100644
index 00000000000..0266871d23b
--- /dev/null
+++ b/service/mpa/endpoints_test.go
@@ -0,0 +1,590 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ smithy "github.com/aws/smithy-go"
+ smithyendpoints "github.com/aws/smithy-go/endpoints"
+ "github.com/aws/smithy-go/ptr"
+ "net/http"
+ "net/url"
+ "reflect"
+ "strings"
+ "testing"
+)
+
+// For custom endpoint with region not set and fips disabled
+func TestEndpointCase0(t *testing.T) {
+ var params = EndpointParameters{
+ Endpoint: ptr.String("https://example.com"),
+ UseFIPS: ptr.Bool(false),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://example.com")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For custom endpoint with fips enabled
+func TestEndpointCase1(t *testing.T) {
+ var params = EndpointParameters{
+ Endpoint: ptr.String("https://example.com"),
+ UseFIPS: ptr.Bool(true),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err == nil {
+ t.Fatalf("expect error, got none")
+ }
+ if e, a := "Invalid Configuration: FIPS and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) {
+ t.Errorf("expect %v error in %v", e, a)
+ }
+}
+
+// For region us-east-1 with FIPS enabled and DualStack enabled
+func TestEndpointCase2(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-east-1"),
+ UseFIPS: ptr.Bool(true),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa-fips.us-east-1.api.aws")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-east-1 with FIPS disabled and DualStack enabled
+func TestEndpointCase3(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-east-1"),
+ UseFIPS: ptr.Bool(false),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa.us-east-1.api.aws")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region cn-northwest-1 with FIPS enabled and DualStack enabled
+func TestEndpointCase4(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("cn-northwest-1"),
+ UseFIPS: ptr.Bool(true),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa-fips.cn-northwest-1.api.amazonwebservices.com.cn")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region cn-northwest-1 with FIPS disabled and DualStack enabled
+func TestEndpointCase5(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("cn-northwest-1"),
+ UseFIPS: ptr.Bool(false),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa.cn-northwest-1.api.amazonwebservices.com.cn")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-gov-west-1 with FIPS enabled and DualStack enabled
+func TestEndpointCase6(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-gov-west-1"),
+ UseFIPS: ptr.Bool(true),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa-fips.us-gov-west-1.api.aws")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-gov-west-1 with FIPS disabled and DualStack enabled
+func TestEndpointCase7(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-gov-west-1"),
+ UseFIPS: ptr.Bool(false),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa.us-gov-west-1.api.aws")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-iso-east-1 with FIPS enabled and DualStack enabled
+func TestEndpointCase8(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-iso-east-1"),
+ UseFIPS: ptr.Bool(true),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa-fips.us-iso-east-1.c2s.ic.gov")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-iso-east-1 with FIPS disabled and DualStack enabled
+func TestEndpointCase9(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-iso-east-1"),
+ UseFIPS: ptr.Bool(false),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa.us-iso-east-1.c2s.ic.gov")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-isob-east-1 with FIPS enabled and DualStack enabled
+func TestEndpointCase10(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-isob-east-1"),
+ UseFIPS: ptr.Bool(true),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa-fips.us-isob-east-1.sc2s.sgov.gov")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-isob-east-1 with FIPS disabled and DualStack enabled
+func TestEndpointCase11(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-isob-east-1"),
+ UseFIPS: ptr.Bool(false),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa.us-isob-east-1.sc2s.sgov.gov")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region eu-isoe-west-1 with FIPS enabled and DualStack enabled
+func TestEndpointCase12(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("eu-isoe-west-1"),
+ UseFIPS: ptr.Bool(true),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa-fips.eu-isoe-west-1.cloud.adc-e.uk")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region eu-isoe-west-1 with FIPS disabled and DualStack enabled
+func TestEndpointCase13(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("eu-isoe-west-1"),
+ UseFIPS: ptr.Bool(false),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa.eu-isoe-west-1.cloud.adc-e.uk")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-isof-south-1 with FIPS enabled and DualStack enabled
+func TestEndpointCase14(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-isof-south-1"),
+ UseFIPS: ptr.Bool(true),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa-fips.us-isof-south-1.csp.hci.ic.gov")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// For region us-isof-south-1 with FIPS disabled and DualStack enabled
+func TestEndpointCase15(t *testing.T) {
+ var params = EndpointParameters{
+ Region: ptr.String("us-isof-south-1"),
+ UseFIPS: ptr.Bool(false),
+ }
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err != nil {
+ t.Fatalf("expect no error, got %v", err)
+ }
+
+ uri, _ := url.Parse("https://mpa.us-isof-south-1.csp.hci.ic.gov")
+
+ expectEndpoint := smithyendpoints.Endpoint{
+ URI: *uri,
+ Headers: http.Header{},
+ Properties: smithy.Properties{},
+ }
+
+ if e, a := expectEndpoint.URI, result.URI; e != a {
+ t.Errorf("expect %v URI, got %v", e, a)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Headers, result.Headers) {
+ t.Errorf("expect headers to match\n%v != %v", expectEndpoint.Headers, result.Headers)
+ }
+
+ if !reflect.DeepEqual(expectEndpoint.Properties, result.Properties) {
+ t.Errorf("expect properties to match\n%v != %v", expectEndpoint.Properties, result.Properties)
+ }
+}
+
+// Missing region
+func TestEndpointCase16(t *testing.T) {
+ var params = EndpointParameters{}
+
+ resolver := NewDefaultEndpointResolverV2()
+ result, err := resolver.ResolveEndpoint(context.Background(), params)
+ _, _ = result, err
+
+ if err == nil {
+ t.Fatalf("expect error, got none")
+ }
+ if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) {
+ t.Errorf("expect %v error in %v", e, a)
+ }
+}
diff --git a/service/mpa/generated.json b/service/mpa/generated.json
new file mode 100644
index 00000000000..bafcc55f022
--- /dev/null
+++ b/service/mpa/generated.json
@@ -0,0 +1,55 @@
+{
+ "dependencies": {
+ "github.com/aws/aws-sdk-go-v2": "v1.4.0",
+ "github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000",
+ "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000",
+ "github.com/aws/smithy-go": "v1.4.0"
+ },
+ "files": [
+ "api_client.go",
+ "api_client_test.go",
+ "api_op_CancelSession.go",
+ "api_op_CreateApprovalTeam.go",
+ "api_op_CreateIdentitySource.go",
+ "api_op_DeleteIdentitySource.go",
+ "api_op_DeleteInactiveApprovalTeamVersion.go",
+ "api_op_GetApprovalTeam.go",
+ "api_op_GetIdentitySource.go",
+ "api_op_GetPolicyVersion.go",
+ "api_op_GetResourcePolicy.go",
+ "api_op_GetSession.go",
+ "api_op_ListApprovalTeams.go",
+ "api_op_ListIdentitySources.go",
+ "api_op_ListPolicies.go",
+ "api_op_ListPolicyVersions.go",
+ "api_op_ListResourcePolicies.go",
+ "api_op_ListSessions.go",
+ "api_op_ListTagsForResource.go",
+ "api_op_StartActiveApprovalTeamDeletion.go",
+ "api_op_TagResource.go",
+ "api_op_UntagResource.go",
+ "api_op_UpdateApprovalTeam.go",
+ "auth.go",
+ "deserializers.go",
+ "doc.go",
+ "endpoints.go",
+ "endpoints_config_test.go",
+ "endpoints_test.go",
+ "generated.json",
+ "internal/endpoints/endpoints.go",
+ "internal/endpoints/endpoints_test.go",
+ "options.go",
+ "protocol_test.go",
+ "serializers.go",
+ "snapshot_test.go",
+ "sra_operation_order_test.go",
+ "types/enums.go",
+ "types/errors.go",
+ "types/types.go",
+ "types/types_exported_test.go",
+ "validators.go"
+ ],
+ "go": "1.22",
+ "module": "github.com/aws/aws-sdk-go-v2/service/mpa",
+ "unstable": false
+}
diff --git a/service/mpa/go.mod b/service/mpa/go.mod
new file mode 100644
index 00000000000..9010d117d87
--- /dev/null
+++ b/service/mpa/go.mod
@@ -0,0 +1,16 @@
+module github.com/aws/aws-sdk-go-v2/service/mpa
+
+go 1.22
+
+require (
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
+)
+
+replace github.com/aws/aws-sdk-go-v2 => ../../
+
+replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../internal/configsources/
+
+replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../internal/endpoints/v2/
diff --git a/service/mpa/go.sum b/service/mpa/go.sum
new file mode 100644
index 00000000000..4b2de34095f
--- /dev/null
+++ b/service/mpa/go.sum
@@ -0,0 +1,2 @@
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mpa/go_module_metadata.go b/service/mpa/go_module_metadata.go
new file mode 100644
index 00000000000..f7d9971896e
--- /dev/null
+++ b/service/mpa/go_module_metadata.go
@@ -0,0 +1,6 @@
+// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
+
+package mpa
+
+// goModuleVersion is the tagged release for this module
+const goModuleVersion = "1.0.0"
diff --git a/service/mpa/internal/endpoints/endpoints.go b/service/mpa/internal/endpoints/endpoints.go
new file mode 100644
index 00000000000..2cf67035ec6
--- /dev/null
+++ b/service/mpa/internal/endpoints/endpoints.go
@@ -0,0 +1,319 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package endpoints
+
+import (
+ "github.com/aws/aws-sdk-go-v2/aws"
+ endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2"
+ "github.com/aws/smithy-go/logging"
+ "regexp"
+)
+
+// Options is the endpoint resolver configuration options
+type Options struct {
+ // Logger is a logging implementation that log events should be sent to.
+ Logger logging.Logger
+
+ // LogDeprecated indicates that deprecated endpoints should be logged to the
+ // provided logger.
+ LogDeprecated bool
+
+ // ResolvedRegion is used to override the region to be resolved, rather then the
+ // using the value passed to the ResolveEndpoint method. This value is used by the
+ // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative
+ // name. You must not set this value directly in your application.
+ ResolvedRegion string
+
+ // DisableHTTPS informs the resolver to return an endpoint that does not use the
+ // HTTPS scheme.
+ DisableHTTPS bool
+
+ // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint.
+ UseDualStackEndpoint aws.DualStackEndpointState
+
+ // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint.
+ UseFIPSEndpoint aws.FIPSEndpointState
+}
+
+func (o Options) GetResolvedRegion() string {
+ return o.ResolvedRegion
+}
+
+func (o Options) GetDisableHTTPS() bool {
+ return o.DisableHTTPS
+}
+
+func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState {
+ return o.UseDualStackEndpoint
+}
+
+func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState {
+ return o.UseFIPSEndpoint
+}
+
+func transformToSharedOptions(options Options) endpoints.Options {
+ return endpoints.Options{
+ Logger: options.Logger,
+ LogDeprecated: options.LogDeprecated,
+ ResolvedRegion: options.ResolvedRegion,
+ DisableHTTPS: options.DisableHTTPS,
+ UseDualStackEndpoint: options.UseDualStackEndpoint,
+ UseFIPSEndpoint: options.UseFIPSEndpoint,
+ }
+}
+
+// Resolver MPA endpoint resolver
+type Resolver struct {
+ partitions endpoints.Partitions
+}
+
+// ResolveEndpoint resolves the service endpoint for the given region and options
+func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) {
+ if len(region) == 0 {
+ return endpoint, &aws.MissingRegionError{}
+ }
+
+ opt := transformToSharedOptions(options)
+ return r.partitions.ResolveEndpoint(region, opt)
+}
+
+// New returns a new Resolver
+func New() *Resolver {
+ return &Resolver{
+ partitions: defaultPartitions,
+ }
+}
+
+var partitionRegexp = struct {
+ Aws *regexp.Regexp
+ AwsCn *regexp.Regexp
+ AwsEusc *regexp.Regexp
+ AwsIso *regexp.Regexp
+ AwsIsoB *regexp.Regexp
+ AwsIsoE *regexp.Regexp
+ AwsIsoF *regexp.Regexp
+ AwsUsGov *regexp.Regexp
+}{
+
+ Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$"),
+ AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"),
+ AwsEusc: regexp.MustCompile("^eusc\\-(de)\\-\\w+\\-\\d+$"),
+ AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"),
+ AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"),
+ AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"),
+ AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"),
+ AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"),
+}
+
+var defaultPartitions = endpoints.Partitions{
+ {
+ ID: "aws",
+ Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
+ {
+ Variant: endpoints.DualStackVariant,
+ }: {
+ Hostname: "mpa.{region}.api.aws",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: endpoints.FIPSVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.amazonaws.com",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.api.aws",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: 0,
+ }: {
+ Hostname: "mpa.{region}.amazonaws.com",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ },
+ RegionRegex: partitionRegexp.Aws,
+ IsRegionalized: true,
+ },
+ {
+ ID: "aws-cn",
+ Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
+ {
+ Variant: endpoints.DualStackVariant,
+ }: {
+ Hostname: "mpa.{region}.api.amazonwebservices.com.cn",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: endpoints.FIPSVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.amazonaws.com.cn",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.api.amazonwebservices.com.cn",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: 0,
+ }: {
+ Hostname: "mpa.{region}.amazonaws.com.cn",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ },
+ RegionRegex: partitionRegexp.AwsCn,
+ IsRegionalized: true,
+ },
+ {
+ ID: "aws-eusc",
+ Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
+ {
+ Variant: endpoints.FIPSVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.amazonaws.eu",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: 0,
+ }: {
+ Hostname: "mpa.{region}.amazonaws.eu",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ },
+ RegionRegex: partitionRegexp.AwsEusc,
+ IsRegionalized: true,
+ },
+ {
+ ID: "aws-iso",
+ Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
+ {
+ Variant: endpoints.FIPSVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.c2s.ic.gov",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: 0,
+ }: {
+ Hostname: "mpa.{region}.c2s.ic.gov",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ },
+ RegionRegex: partitionRegexp.AwsIso,
+ IsRegionalized: true,
+ },
+ {
+ ID: "aws-iso-b",
+ Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
+ {
+ Variant: endpoints.FIPSVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.sc2s.sgov.gov",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: 0,
+ }: {
+ Hostname: "mpa.{region}.sc2s.sgov.gov",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ },
+ RegionRegex: partitionRegexp.AwsIsoB,
+ IsRegionalized: true,
+ },
+ {
+ ID: "aws-iso-e",
+ Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
+ {
+ Variant: endpoints.FIPSVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.cloud.adc-e.uk",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: 0,
+ }: {
+ Hostname: "mpa.{region}.cloud.adc-e.uk",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ },
+ RegionRegex: partitionRegexp.AwsIsoE,
+ IsRegionalized: true,
+ },
+ {
+ ID: "aws-iso-f",
+ Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
+ {
+ Variant: endpoints.FIPSVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.csp.hci.ic.gov",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: 0,
+ }: {
+ Hostname: "mpa.{region}.csp.hci.ic.gov",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ },
+ RegionRegex: partitionRegexp.AwsIsoF,
+ IsRegionalized: true,
+ },
+ {
+ ID: "aws-us-gov",
+ Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
+ {
+ Variant: endpoints.DualStackVariant,
+ }: {
+ Hostname: "mpa.{region}.api.aws",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: endpoints.FIPSVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.amazonaws.com",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
+ }: {
+ Hostname: "mpa-fips.{region}.api.aws",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ {
+ Variant: 0,
+ }: {
+ Hostname: "mpa.{region}.amazonaws.com",
+ Protocols: []string{"https"},
+ SignatureVersions: []string{"v4"},
+ },
+ },
+ RegionRegex: partitionRegexp.AwsUsGov,
+ IsRegionalized: true,
+ },
+}
diff --git a/service/mpa/internal/endpoints/endpoints_test.go b/service/mpa/internal/endpoints/endpoints_test.go
new file mode 100644
index 00000000000..08e5da2d833
--- /dev/null
+++ b/service/mpa/internal/endpoints/endpoints_test.go
@@ -0,0 +1,11 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package endpoints
+
+import (
+ "testing"
+)
+
+func TestRegexCompile(t *testing.T) {
+ _ = defaultPartitions
+}
diff --git a/service/mpa/options.go b/service/mpa/options.go
new file mode 100644
index 00000000000..b49fc254325
--- /dev/null
+++ b/service/mpa/options.go
@@ -0,0 +1,236 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "github.com/aws/aws-sdk-go-v2/aws"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy"
+ smithyauth "github.com/aws/smithy-go/auth"
+ "github.com/aws/smithy-go/logging"
+ "github.com/aws/smithy-go/metrics"
+ "github.com/aws/smithy-go/middleware"
+ "github.com/aws/smithy-go/tracing"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "net/http"
+)
+
+type HTTPClient interface {
+ Do(*http.Request) (*http.Response, error)
+}
+
+type Options struct {
+ // Set of options to modify how an operation is invoked. These apply to all
+ // operations invoked for this client. Use functional options on operation call to
+ // modify this list for per operation behavior.
+ APIOptions []func(*middleware.Stack) error
+
+ // The optional application specific identifier appended to the User-Agent header.
+ AppID string
+
+ // This endpoint will be given as input to an EndpointResolverV2. It is used for
+ // providing a custom base endpoint that is subject to modifications by the
+ // processing EndpointResolverV2.
+ BaseEndpoint *string
+
+ // Configures the events that will be sent to the configured logger.
+ ClientLogMode aws.ClientLogMode
+
+ // The credentials object to use when signing requests.
+ Credentials aws.CredentialsProvider
+
+ // The configuration DefaultsMode that the SDK should use when constructing the
+ // clients initial default settings.
+ DefaultsMode aws.DefaultsMode
+
+ // The endpoint options to be used when attempting to resolve an endpoint.
+ EndpointOptions EndpointResolverOptions
+
+ // The service endpoint resolver.
+ //
+ // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a
+ // value for this field will likely prevent you from using any endpoint-related
+ // service features released after the introduction of EndpointResolverV2 and
+ // BaseEndpoint.
+ //
+ // To migrate an EndpointResolver implementation that uses a custom endpoint, set
+ // the client option BaseEndpoint instead.
+ EndpointResolver EndpointResolver
+
+ // Resolves the endpoint used for a particular service operation. This should be
+ // used over the deprecated EndpointResolver.
+ EndpointResolverV2 EndpointResolverV2
+
+ // Signature Version 4 (SigV4) Signer
+ HTTPSignerV4 HTTPSignerV4
+
+ // Provides idempotency tokens values that will be automatically populated into
+ // idempotent API operations.
+ IdempotencyTokenProvider IdempotencyTokenProvider
+
+ // The logger writer interface to write logging messages to.
+ Logger logging.Logger
+
+ // The client meter provider.
+ MeterProvider metrics.MeterProvider
+
+ // The region to send requests to. (Required)
+ Region string
+
+ // RetryMaxAttempts specifies the maximum number attempts an API client will call
+ // an operation that fails with a retryable error. A value of 0 is ignored, and
+ // will not be used to configure the API client created default retryer, or modify
+ // per operation call's retry max attempts.
+ //
+ // If specified in an operation call's functional options with a value that is
+ // different than the constructed client's Options, the Client's Retryer will be
+ // wrapped to use the operation's specific RetryMaxAttempts value.
+ RetryMaxAttempts int
+
+ // RetryMode specifies the retry mode the API client will be created with, if
+ // Retryer option is not also specified.
+ //
+ // When creating a new API Clients this member will only be used if the Retryer
+ // Options member is nil. This value will be ignored if Retryer is not nil.
+ //
+ // Currently does not support per operation call overrides, may in the future.
+ RetryMode aws.RetryMode
+
+ // Retryer guides how HTTP requests should be retried in case of recoverable
+ // failures. When nil the API client will use a default retryer. The kind of
+ // default retry created by the API client can be changed with the RetryMode
+ // option.
+ Retryer aws.Retryer
+
+ // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set
+ // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You
+ // should not populate this structure programmatically, or rely on the values here
+ // within your applications.
+ RuntimeEnvironment aws.RuntimeEnvironment
+
+ // The client tracer provider.
+ TracerProvider tracing.TracerProvider
+
+ // The initial DefaultsMode used when the client options were constructed. If the
+ // DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved
+ // value was at that point in time.
+ //
+ // Currently does not support per operation call overrides, may in the future.
+ resolvedDefaultsMode aws.DefaultsMode
+
+ // The HTTP client to invoke API calls with. Defaults to client's default HTTP
+ // implementation if nil.
+ HTTPClient HTTPClient
+
+ // The auth scheme resolver which determines how to authenticate for each
+ // operation.
+ AuthSchemeResolver AuthSchemeResolver
+
+ // The list of auth schemes supported by the client.
+ AuthSchemes []smithyhttp.AuthScheme
+}
+
+// Copy creates a clone where the APIOptions list is deep copied.
+func (o Options) Copy() Options {
+ to := o
+ to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions))
+ copy(to.APIOptions, o.APIOptions)
+
+ return to
+}
+
+func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver {
+ if schemeID == "aws.auth#sigv4" {
+ return getSigV4IdentityResolver(o)
+ }
+ if schemeID == "smithy.api#noAuth" {
+ return &smithyauth.AnonymousIdentityResolver{}
+ }
+ return nil
+}
+
+// WithAPIOptions returns a functional option for setting the Client's APIOptions
+// option.
+func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) {
+ return func(o *Options) {
+ o.APIOptions = append(o.APIOptions, optFns...)
+ }
+}
+
+// Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for
+// this field will likely prevent you from using any endpoint-related service
+// features released after the introduction of EndpointResolverV2 and BaseEndpoint.
+//
+// To migrate an EndpointResolver implementation that uses a custom endpoint, set
+// the client option BaseEndpoint instead.
+func WithEndpointResolver(v EndpointResolver) func(*Options) {
+ return func(o *Options) {
+ o.EndpointResolver = v
+ }
+}
+
+// WithEndpointResolverV2 returns a functional option for setting the Client's
+// EndpointResolverV2 option.
+func WithEndpointResolverV2(v EndpointResolverV2) func(*Options) {
+ return func(o *Options) {
+ o.EndpointResolverV2 = v
+ }
+}
+
+func getSigV4IdentityResolver(o Options) smithyauth.IdentityResolver {
+ if o.Credentials != nil {
+ return &internalauthsmithy.CredentialsProviderAdapter{Provider: o.Credentials}
+ }
+ return nil
+}
+
+// WithSigV4SigningName applies an override to the authentication workflow to
+// use the given signing name for SigV4-authenticated operations.
+//
+// This is an advanced setting. The value here is FINAL, taking precedence over
+// the resolved signing name from both auth scheme resolution and endpoint
+// resolution.
+func WithSigV4SigningName(name string) func(*Options) {
+ fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+ ) {
+ return next.HandleInitialize(awsmiddleware.SetSigningName(ctx, name), in)
+ }
+ return func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error {
+ return s.Initialize.Add(
+ middleware.InitializeMiddlewareFunc("withSigV4SigningName", fn),
+ middleware.Before,
+ )
+ })
+ }
+}
+
+// WithSigV4SigningRegion applies an override to the authentication workflow to
+// use the given signing region for SigV4-authenticated operations.
+//
+// This is an advanced setting. The value here is FINAL, taking precedence over
+// the resolved signing region from both auth scheme resolution and endpoint
+// resolution.
+func WithSigV4SigningRegion(region string) func(*Options) {
+ fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+ ) {
+ return next.HandleInitialize(awsmiddleware.SetSigningRegion(ctx, region), in)
+ }
+ return func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error {
+ return s.Initialize.Add(
+ middleware.InitializeMiddlewareFunc("withSigV4SigningRegion", fn),
+ middleware.Before,
+ )
+ })
+ }
+}
+
+func ignoreAnonymousAuth(options *Options) {
+ if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) {
+ options.Credentials = nil
+ }
+}
diff --git a/service/mpa/protocol_test.go b/service/mpa/protocol_test.go
new file mode 100644
index 00000000000..f7ff8c9ec6e
--- /dev/null
+++ b/service/mpa/protocol_test.go
@@ -0,0 +1,3 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
diff --git a/service/mpa/serializers.go b/service/mpa/serializers.go
new file mode 100644
index 00000000000..11f032f076e
--- /dev/null
+++ b/service/mpa/serializers.go
@@ -0,0 +1,1939 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "bytes"
+ "context"
+ "fmt"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ smithy "github.com/aws/smithy-go"
+ "github.com/aws/smithy-go/encoding/httpbinding"
+ smithyjson "github.com/aws/smithy-go/encoding/json"
+ "github.com/aws/smithy-go/middleware"
+ "github.com/aws/smithy-go/tracing"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+type awsRestjson1_serializeOpCancelSession struct {
+}
+
+func (*awsRestjson1_serializeOpCancelSession) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCancelSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CancelSessionInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/sessions/{SessionArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "PUT"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsCancelSessionInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCancelSessionInput(v *CancelSessionInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.SessionArn == nil || len(*v.SessionArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member SessionArn must not be empty")}
+ }
+ if v.SessionArn != nil {
+ if err := encoder.SetURI("SessionArn").String(*v.SessionArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateApprovalTeam struct {
+}
+
+func (*awsRestjson1_serializeOpCreateApprovalTeam) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateApprovalTeam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateApprovalTeamInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/approval-teams")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateApprovalTeamInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateApprovalTeamInput(v *CreateApprovalTeamInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateApprovalTeamInput(v *CreateApprovalTeamInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ApprovalStrategy != nil {
+ ok := object.Key("ApprovalStrategy")
+ if err := awsRestjson1_serializeDocumentApprovalStrategy(v.ApprovalStrategy, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Approvers != nil {
+ ok := object.Key("Approvers")
+ if err := awsRestjson1_serializeDocumentApprovalTeamRequestApprovers(v.Approvers, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.ClientToken != nil {
+ ok := object.Key("ClientToken")
+ ok.String(*v.ClientToken)
+ }
+
+ if v.Description != nil {
+ ok := object.Key("Description")
+ ok.String(*v.Description)
+ }
+
+ if v.Name != nil {
+ ok := object.Key("Name")
+ ok.String(*v.Name)
+ }
+
+ if v.Policies != nil {
+ ok := object.Key("Policies")
+ if err := awsRestjson1_serializeDocumentPoliciesReferences(v.Policies, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateIdentitySource struct {
+}
+
+func (*awsRestjson1_serializeOpCreateIdentitySource) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateIdentitySource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateIdentitySourceInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/identity-sources")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateIdentitySourceInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateIdentitySourceInput(v *CreateIdentitySourceInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateIdentitySourceInput(v *CreateIdentitySourceInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ClientToken != nil {
+ ok := object.Key("ClientToken")
+ ok.String(*v.ClientToken)
+ }
+
+ if v.IdentitySourceParameters != nil {
+ ok := object.Key("IdentitySourceParameters")
+ if err := awsRestjson1_serializeDocumentIdentitySourceParameters(v.IdentitySourceParameters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteIdentitySource struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteIdentitySource) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteIdentitySource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteIdentitySourceInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/identity-sources/{IdentitySourceArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteIdentitySourceInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteIdentitySourceInput(v *DeleteIdentitySourceInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.IdentitySourceArn == nil || len(*v.IdentitySourceArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member IdentitySourceArn must not be empty")}
+ }
+ if v.IdentitySourceArn != nil {
+ if err := encoder.SetURI("IdentitySourceArn").String(*v.IdentitySourceArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteInactiveApprovalTeamVersion struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteInactiveApprovalTeamVersion) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteInactiveApprovalTeamVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteInactiveApprovalTeamVersionInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/approval-teams/{Arn}/{VersionId}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteInactiveApprovalTeamVersionInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteInactiveApprovalTeamVersionInput(v *DeleteInactiveApprovalTeamVersionInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.Arn == nil || len(*v.Arn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")}
+ }
+ if v.Arn != nil {
+ if err := encoder.SetURI("Arn").String(*v.Arn); err != nil {
+ return err
+ }
+ }
+
+ if v.VersionId == nil || len(*v.VersionId) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member VersionId must not be empty")}
+ }
+ if v.VersionId != nil {
+ if err := encoder.SetURI("VersionId").String(*v.VersionId); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpGetApprovalTeam struct {
+}
+
+func (*awsRestjson1_serializeOpGetApprovalTeam) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetApprovalTeam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetApprovalTeamInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/approval-teams/{Arn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsGetApprovalTeamInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetApprovalTeamInput(v *GetApprovalTeamInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.Arn == nil || len(*v.Arn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")}
+ }
+ if v.Arn != nil {
+ if err := encoder.SetURI("Arn").String(*v.Arn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpGetIdentitySource struct {
+}
+
+func (*awsRestjson1_serializeOpGetIdentitySource) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetIdentitySource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetIdentitySourceInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/identity-sources/{IdentitySourceArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsGetIdentitySourceInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetIdentitySourceInput(v *GetIdentitySourceInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.IdentitySourceArn == nil || len(*v.IdentitySourceArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member IdentitySourceArn must not be empty")}
+ }
+ if v.IdentitySourceArn != nil {
+ if err := encoder.SetURI("IdentitySourceArn").String(*v.IdentitySourceArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpGetPolicyVersion struct {
+}
+
+func (*awsRestjson1_serializeOpGetPolicyVersion) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetPolicyVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetPolicyVersionInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/policy-versions/{PolicyVersionArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsGetPolicyVersionInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetPolicyVersionInput(v *GetPolicyVersionInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.PolicyVersionArn == nil || len(*v.PolicyVersionArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyVersionArn must not be empty")}
+ }
+ if v.PolicyVersionArn != nil {
+ if err := encoder.SetURI("PolicyVersionArn").String(*v.PolicyVersionArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpGetResourcePolicy struct {
+}
+
+func (*awsRestjson1_serializeOpGetResourcePolicy) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetResourcePolicyInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/GetResourcePolicy")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentGetResourcePolicyInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetResourcePolicyInput(v *GetResourcePolicyInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentGetResourcePolicyInput(v *GetResourcePolicyInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.PolicyName != nil {
+ ok := object.Key("PolicyName")
+ ok.String(*v.PolicyName)
+ }
+
+ if len(v.PolicyType) > 0 {
+ ok := object.Key("PolicyType")
+ ok.String(string(v.PolicyType))
+ }
+
+ if v.ResourceArn != nil {
+ ok := object.Key("ResourceArn")
+ ok.String(*v.ResourceArn)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpGetSession struct {
+}
+
+func (*awsRestjson1_serializeOpGetSession) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpGetSession) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*GetSessionInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/sessions/{SessionArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsGetSessionInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsGetSessionInput(v *GetSessionInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.SessionArn == nil || len(*v.SessionArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member SessionArn must not be empty")}
+ }
+ if v.SessionArn != nil {
+ if err := encoder.SetURI("SessionArn").String(*v.SessionArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListApprovalTeams struct {
+}
+
+func (*awsRestjson1_serializeOpListApprovalTeams) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListApprovalTeams) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListApprovalTeamsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/approval-teams/?List")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListApprovalTeamsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListApprovalTeamsInput(v *ListApprovalTeamsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListIdentitySources struct {
+}
+
+func (*awsRestjson1_serializeOpListIdentitySources) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListIdentitySources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListIdentitySourcesInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/identity-sources/?List")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListIdentitySourcesInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListIdentitySourcesInput(v *ListIdentitySourcesInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListPolicies struct {
+}
+
+func (*awsRestjson1_serializeOpListPolicies) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListPolicies) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListPoliciesInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/policies/?List")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListPoliciesInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListPoliciesInput(v *ListPoliciesInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListPolicyVersions struct {
+}
+
+func (*awsRestjson1_serializeOpListPolicyVersions) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListPolicyVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListPolicyVersionsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/policies/{PolicyArn}/?List")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListPolicyVersionsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListPolicyVersionsInput(v *ListPolicyVersionsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ if v.PolicyArn == nil || len(*v.PolicyArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member PolicyArn must not be empty")}
+ }
+ if v.PolicyArn != nil {
+ if err := encoder.SetURI("PolicyArn").String(*v.PolicyArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListResourcePolicies struct {
+}
+
+func (*awsRestjson1_serializeOpListResourcePolicies) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListResourcePolicies) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListResourcePoliciesInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/resource-policies/{ResourceArn}/?List")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListResourcePoliciesInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListResourcePoliciesInput(v *ListResourcePoliciesInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")}
+ }
+ if v.ResourceArn != nil {
+ if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListSessions struct {
+}
+
+func (*awsRestjson1_serializeOpListSessions) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListSessions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListSessionsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/approval-teams/{ApprovalTeamArn}/sessions/?List")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListSessionsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentListSessionsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListSessionsInput(v *ListSessionsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ApprovalTeamArn == nil || len(*v.ApprovalTeamArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ApprovalTeamArn must not be empty")}
+ }
+ if v.ApprovalTeamArn != nil {
+ if err := encoder.SetURI("ApprovalTeamArn").String(*v.ApprovalTeamArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentListSessionsInput(v *ListSessionsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Filters != nil {
+ ok := object.Key("Filters")
+ if err := awsRestjson1_serializeDocumentFilters(v.Filters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MaxResults != nil {
+ ok := object.Key("MaxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("NextToken")
+ ok.String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpListTagsForResource struct {
+}
+
+func (*awsRestjson1_serializeOpListTagsForResource) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListTagsForResourceInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")}
+ }
+ if v.ResourceArn != nil {
+ if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpStartActiveApprovalTeamDeletion struct {
+}
+
+func (*awsRestjson1_serializeOpStartActiveApprovalTeamDeletion) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpStartActiveApprovalTeamDeletion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*StartActiveApprovalTeamDeletionInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/approval-teams/{Arn}?Delete")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsStartActiveApprovalTeamDeletionInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentStartActiveApprovalTeamDeletionInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsStartActiveApprovalTeamDeletionInput(v *StartActiveApprovalTeamDeletionInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.Arn == nil || len(*v.Arn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")}
+ }
+ if v.Arn != nil {
+ if err := encoder.SetURI("Arn").String(*v.Arn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentStartActiveApprovalTeamDeletionInput(v *StartActiveApprovalTeamDeletionInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.PendingWindowDays != nil {
+ ok := object.Key("PendingWindowDays")
+ ok.Integer(*v.PendingWindowDays)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpTagResource struct {
+}
+
+func (*awsRestjson1_serializeOpTagResource) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*TagResourceInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "PUT"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")}
+ }
+ if v.ResourceArn != nil {
+ if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpUntagResource struct {
+}
+
+func (*awsRestjson1_serializeOpUntagResource) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*UntagResourceInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentUntagResourceInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")}
+ }
+ if v.ResourceArn != nil {
+ if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.TagKeys != nil {
+ ok := object.Key("TagKeys")
+ if err := awsRestjson1_serializeDocumentTagKeyList(v.TagKeys, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpUpdateApprovalTeam struct {
+}
+
+func (*awsRestjson1_serializeOpUpdateApprovalTeam) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpUpdateApprovalTeam) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*UpdateApprovalTeamInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/approval-teams/{Arn}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "PATCH"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsUpdateApprovalTeamInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentUpdateApprovalTeamInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsUpdateApprovalTeamInput(v *UpdateApprovalTeamInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.Arn == nil || len(*v.Arn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Arn must not be empty")}
+ }
+ if v.Arn != nil {
+ if err := encoder.SetURI("Arn").String(*v.Arn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentUpdateApprovalTeamInput(v *UpdateApprovalTeamInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ApprovalStrategy != nil {
+ ok := object.Key("ApprovalStrategy")
+ if err := awsRestjson1_serializeDocumentApprovalStrategy(v.ApprovalStrategy, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Approvers != nil {
+ ok := object.Key("Approvers")
+ if err := awsRestjson1_serializeDocumentApprovalTeamRequestApprovers(v.Approvers, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Description != nil {
+ ok := object.Key("Description")
+ ok.String(*v.Description)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentApprovalStrategy(v types.ApprovalStrategy, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ switch uv := v.(type) {
+ case *types.ApprovalStrategyMemberMofN:
+ av := object.Key("MofN")
+ if err := awsRestjson1_serializeDocumentMofNApprovalStrategy(&uv.Value, av); err != nil {
+ return err
+ }
+
+ default:
+ return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
+
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentApprovalTeamRequestApprover(v *types.ApprovalTeamRequestApprover, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.PrimaryIdentityId != nil {
+ ok := object.Key("PrimaryIdentityId")
+ ok.String(*v.PrimaryIdentityId)
+ }
+
+ if v.PrimaryIdentitySourceArn != nil {
+ ok := object.Key("PrimaryIdentitySourceArn")
+ ok.String(*v.PrimaryIdentitySourceArn)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentApprovalTeamRequestApprovers(v []types.ApprovalTeamRequestApprover, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentApprovalTeamRequestApprover(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if len(v.Operator) > 0 {
+ ok := object.Key("Operator")
+ ok.String(string(v.Operator))
+ }
+
+ if v.Value != nil {
+ ok := object.Key("Value")
+ ok.String(*v.Value)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentFilters(v []types.Filter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentIamIdentityCenter(v *types.IamIdentityCenter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.InstanceArn != nil {
+ ok := object.Key("InstanceArn")
+ ok.String(*v.InstanceArn)
+ }
+
+ if v.Region != nil {
+ ok := object.Key("Region")
+ ok.String(*v.Region)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentIdentitySourceParameters(v *types.IdentitySourceParameters, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.IamIdentityCenter != nil {
+ ok := object.Key("IamIdentityCenter")
+ if err := awsRestjson1_serializeDocumentIamIdentityCenter(v.IamIdentityCenter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentMofNApprovalStrategy(v *types.MofNApprovalStrategy, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.MinApprovalsRequired != nil {
+ ok := object.Key("MinApprovalsRequired")
+ ok.Integer(*v.MinApprovalsRequired)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentPoliciesReferences(v []types.PolicyReference, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentPolicyReference(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentPolicyReference(v *types.PolicyReference, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.PolicyArn != nil {
+ ok := object.Key("PolicyArn")
+ ok.String(*v.PolicyArn)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(v[i])
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ for key := range v {
+ om := object.Key(key)
+ om.String(v[key])
+ }
+ return nil
+}
diff --git a/service/mpa/snapshot/api_op_CancelSession.go.snap b/service/mpa/snapshot/api_op_CancelSession.go.snap
new file mode 100644
index 00000000000..ab293837095
--- /dev/null
+++ b/service/mpa/snapshot/api_op_CancelSession.go.snap
@@ -0,0 +1,42 @@
+CancelSession
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_CreateApprovalTeam.go.snap b/service/mpa/snapshot/api_op_CreateApprovalTeam.go.snap
new file mode 100644
index 00000000000..fea7e6a5a50
--- /dev/null
+++ b/service/mpa/snapshot/api_op_CreateApprovalTeam.go.snap
@@ -0,0 +1,43 @@
+CreateApprovalTeam
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_CreateIdentitySource.go.snap b/service/mpa/snapshot/api_op_CreateIdentitySource.go.snap
new file mode 100644
index 00000000000..b2ea863f640
--- /dev/null
+++ b/service/mpa/snapshot/api_op_CreateIdentitySource.go.snap
@@ -0,0 +1,43 @@
+CreateIdentitySource
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_DeleteIdentitySource.go.snap b/service/mpa/snapshot/api_op_DeleteIdentitySource.go.snap
new file mode 100644
index 00000000000..220fbe2ebf7
--- /dev/null
+++ b/service/mpa/snapshot/api_op_DeleteIdentitySource.go.snap
@@ -0,0 +1,42 @@
+DeleteIdentitySource
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_DeleteInactiveApprovalTeamVersion.go.snap b/service/mpa/snapshot/api_op_DeleteInactiveApprovalTeamVersion.go.snap
new file mode 100644
index 00000000000..7211cb99a60
--- /dev/null
+++ b/service/mpa/snapshot/api_op_DeleteInactiveApprovalTeamVersion.go.snap
@@ -0,0 +1,42 @@
+DeleteInactiveApprovalTeamVersion
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_GetApprovalTeam.go.snap b/service/mpa/snapshot/api_op_GetApprovalTeam.go.snap
new file mode 100644
index 00000000000..aba8b8b5965
--- /dev/null
+++ b/service/mpa/snapshot/api_op_GetApprovalTeam.go.snap
@@ -0,0 +1,42 @@
+GetApprovalTeam
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_GetIdentitySource.go.snap b/service/mpa/snapshot/api_op_GetIdentitySource.go.snap
new file mode 100644
index 00000000000..acb733271f3
--- /dev/null
+++ b/service/mpa/snapshot/api_op_GetIdentitySource.go.snap
@@ -0,0 +1,42 @@
+GetIdentitySource
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_GetPolicyVersion.go.snap b/service/mpa/snapshot/api_op_GetPolicyVersion.go.snap
new file mode 100644
index 00000000000..96752e02173
--- /dev/null
+++ b/service/mpa/snapshot/api_op_GetPolicyVersion.go.snap
@@ -0,0 +1,42 @@
+GetPolicyVersion
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_GetResourcePolicy.go.snap b/service/mpa/snapshot/api_op_GetResourcePolicy.go.snap
new file mode 100644
index 00000000000..e3408c09804
--- /dev/null
+++ b/service/mpa/snapshot/api_op_GetResourcePolicy.go.snap
@@ -0,0 +1,42 @@
+GetResourcePolicy
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_GetSession.go.snap b/service/mpa/snapshot/api_op_GetSession.go.snap
new file mode 100644
index 00000000000..b1fe5b7fa64
--- /dev/null
+++ b/service/mpa/snapshot/api_op_GetSession.go.snap
@@ -0,0 +1,42 @@
+GetSession
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_ListApprovalTeams.go.snap b/service/mpa/snapshot/api_op_ListApprovalTeams.go.snap
new file mode 100644
index 00000000000..d450b186ee3
--- /dev/null
+++ b/service/mpa/snapshot/api_op_ListApprovalTeams.go.snap
@@ -0,0 +1,41 @@
+ListApprovalTeams
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_ListIdentitySources.go.snap b/service/mpa/snapshot/api_op_ListIdentitySources.go.snap
new file mode 100644
index 00000000000..880d69ce18b
--- /dev/null
+++ b/service/mpa/snapshot/api_op_ListIdentitySources.go.snap
@@ -0,0 +1,41 @@
+ListIdentitySources
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_ListPolicies.go.snap b/service/mpa/snapshot/api_op_ListPolicies.go.snap
new file mode 100644
index 00000000000..39b48762975
--- /dev/null
+++ b/service/mpa/snapshot/api_op_ListPolicies.go.snap
@@ -0,0 +1,41 @@
+ListPolicies
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_ListPolicyVersions.go.snap b/service/mpa/snapshot/api_op_ListPolicyVersions.go.snap
new file mode 100644
index 00000000000..6a28c1e5f49
--- /dev/null
+++ b/service/mpa/snapshot/api_op_ListPolicyVersions.go.snap
@@ -0,0 +1,42 @@
+ListPolicyVersions
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_ListResourcePolicies.go.snap b/service/mpa/snapshot/api_op_ListResourcePolicies.go.snap
new file mode 100644
index 00000000000..ab59b620e09
--- /dev/null
+++ b/service/mpa/snapshot/api_op_ListResourcePolicies.go.snap
@@ -0,0 +1,42 @@
+ListResourcePolicies
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_ListSessions.go.snap b/service/mpa/snapshot/api_op_ListSessions.go.snap
new file mode 100644
index 00000000000..36259a68421
--- /dev/null
+++ b/service/mpa/snapshot/api_op_ListSessions.go.snap
@@ -0,0 +1,42 @@
+ListSessions
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_ListTagsForResource.go.snap b/service/mpa/snapshot/api_op_ListTagsForResource.go.snap
new file mode 100644
index 00000000000..d1502a85c09
--- /dev/null
+++ b/service/mpa/snapshot/api_op_ListTagsForResource.go.snap
@@ -0,0 +1,42 @@
+ListTagsForResource
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_StartActiveApprovalTeamDeletion.go.snap b/service/mpa/snapshot/api_op_StartActiveApprovalTeamDeletion.go.snap
new file mode 100644
index 00000000000..0cb04e2be88
--- /dev/null
+++ b/service/mpa/snapshot/api_op_StartActiveApprovalTeamDeletion.go.snap
@@ -0,0 +1,42 @@
+StartActiveApprovalTeamDeletion
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_TagResource.go.snap b/service/mpa/snapshot/api_op_TagResource.go.snap
new file mode 100644
index 00000000000..95691fd5776
--- /dev/null
+++ b/service/mpa/snapshot/api_op_TagResource.go.snap
@@ -0,0 +1,42 @@
+TagResource
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_UntagResource.go.snap b/service/mpa/snapshot/api_op_UntagResource.go.snap
new file mode 100644
index 00000000000..cfcedbbfaba
--- /dev/null
+++ b/service/mpa/snapshot/api_op_UntagResource.go.snap
@@ -0,0 +1,42 @@
+UntagResource
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot/api_op_UpdateApprovalTeam.go.snap b/service/mpa/snapshot/api_op_UpdateApprovalTeam.go.snap
new file mode 100644
index 00000000000..902d294ab21
--- /dev/null
+++ b/service/mpa/snapshot/api_op_UpdateApprovalTeam.go.snap
@@ -0,0 +1,42 @@
+UpdateApprovalTeam
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/mpa/snapshot_test.go b/service/mpa/snapshot_test.go
new file mode 100644
index 00000000000..3ba2bc3c3ce
--- /dev/null
+++ b/service/mpa/snapshot_test.go
@@ -0,0 +1,566 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+//go:build snapshot
+
+package mpa
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "github.com/aws/smithy-go/middleware"
+ "io"
+ "io/fs"
+ "os"
+ "testing"
+)
+
+const ssprefix = "snapshot"
+
+type snapshotOK struct{}
+
+func (snapshotOK) Error() string { return "error: success" }
+
+func createp(path string) (*os.File, error) {
+ if err := os.Mkdir(ssprefix, 0700); err != nil && !errors.Is(err, fs.ErrExist) {
+ return nil, err
+ }
+ return os.Create(path)
+}
+
+func sspath(op string) string {
+ return fmt.Sprintf("%s/api_op_%s.go.snap", ssprefix, op)
+}
+
+func updateSnapshot(stack *middleware.Stack, operation string) error {
+ f, err := createp(sspath(operation))
+ if err != nil {
+ return err
+ }
+ defer f.Close()
+ if _, err := f.Write([]byte(stack.String())); err != nil {
+ return err
+ }
+ return snapshotOK{}
+}
+
+func testSnapshot(stack *middleware.Stack, operation string) error {
+ f, err := os.Open(sspath(operation))
+ if errors.Is(err, fs.ErrNotExist) {
+ return snapshotOK{}
+ }
+ if err != nil {
+ return err
+ }
+ defer f.Close()
+ expected, err := io.ReadAll(f)
+ if err != nil {
+ return err
+ }
+ if actual := stack.String(); actual != string(expected) {
+ return fmt.Errorf("%s != %s", expected, actual)
+ }
+ return snapshotOK{}
+}
+func TestCheckSnapshot_CancelSession(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CancelSession(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CancelSession")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_CreateApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_CreateIdentitySource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateIdentitySource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateIdentitySource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_DeleteIdentitySource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteIdentitySource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DeleteIdentitySource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_DeleteInactiveApprovalTeamVersion(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteInactiveApprovalTeamVersion(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DeleteInactiveApprovalTeamVersion")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetIdentitySource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetIdentitySource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetIdentitySource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetPolicyVersion(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetPolicyVersion(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetPolicyVersion")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetResourcePolicy(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetResourcePolicy(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetResourcePolicy")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetSession(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetSession(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetSession")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListApprovalTeams(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListApprovalTeams(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListApprovalTeams")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListIdentitySources(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListIdentitySources(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListIdentitySources")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListPolicies(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListPolicies(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListPolicies")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListPolicyVersions(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListPolicyVersions(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListPolicyVersions")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListResourcePolicies(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListResourcePolicies(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListResourcePolicies")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListSessions(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListSessions(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListSessions")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_ListTagsForResource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListTagsForResource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListTagsForResource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_StartActiveApprovalTeamDeletion(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.StartActiveApprovalTeamDeletion(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "StartActiveApprovalTeamDeletion")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_TagResource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.TagResource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "TagResource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_UntagResource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UntagResource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "UntagResource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_UpdateApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "UpdateApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+func TestUpdateSnapshot_CancelSession(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CancelSession(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CancelSession")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_CreateApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_CreateIdentitySource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateIdentitySource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateIdentitySource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_DeleteIdentitySource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteIdentitySource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DeleteIdentitySource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_DeleteInactiveApprovalTeamVersion(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteInactiveApprovalTeamVersion(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DeleteInactiveApprovalTeamVersion")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetIdentitySource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetIdentitySource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetIdentitySource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetPolicyVersion(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetPolicyVersion(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetPolicyVersion")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetResourcePolicy(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetResourcePolicy(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetResourcePolicy")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetSession(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetSession(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetSession")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListApprovalTeams(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListApprovalTeams(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListApprovalTeams")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListIdentitySources(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListIdentitySources(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListIdentitySources")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListPolicies(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListPolicies(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListPolicies")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListPolicyVersions(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListPolicyVersions(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListPolicyVersions")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListResourcePolicies(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListResourcePolicies(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListResourcePolicies")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListSessions(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListSessions(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListSessions")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_ListTagsForResource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListTagsForResource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListTagsForResource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_StartActiveApprovalTeamDeletion(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.StartActiveApprovalTeamDeletion(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "StartActiveApprovalTeamDeletion")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_TagResource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.TagResource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "TagResource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_UntagResource(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UntagResource(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "UntagResource")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_UpdateApprovalTeam(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateApprovalTeam(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "UpdateApprovalTeam")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
diff --git a/service/mpa/sra_operation_order_test.go b/service/mpa/sra_operation_order_test.go
new file mode 100644
index 00000000000..a64902fd01a
--- /dev/null
+++ b/service/mpa/sra_operation_order_test.go
@@ -0,0 +1,756 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "errors"
+ "github.com/aws/smithy-go/middleware"
+ "slices"
+ "strings"
+ "testing"
+)
+
+var errTestReturnEarly = errors.New("errTestReturnEarly")
+
+func captureMiddlewareStack(stack *middleware.Stack) func(*middleware.Stack) error {
+ return func(inner *middleware.Stack) error {
+ *stack = *inner
+ return errTestReturnEarly
+ }
+}
+func TestOpCancelSessionSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CancelSession(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateApprovalTeamSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateApprovalTeam(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateIdentitySourceSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateIdentitySource(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteIdentitySourceSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteIdentitySource(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteInactiveApprovalTeamVersionSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteInactiveApprovalTeamVersion(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpGetApprovalTeamSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetApprovalTeam(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpGetIdentitySourceSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetIdentitySource(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpGetPolicyVersionSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetPolicyVersion(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpGetResourcePolicySRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetResourcePolicy(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpGetSessionSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.GetSession(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListApprovalTeamsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListApprovalTeams(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListIdentitySourcesSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListIdentitySources(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListPoliciesSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListPolicies(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListPolicyVersionsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListPolicyVersions(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListResourcePoliciesSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListResourcePolicies(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListSessionsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListSessions(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpListTagsForResourceSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ListTagsForResource(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpStartActiveApprovalTeamDeletionSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.StartActiveApprovalTeamDeletion(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpTagResourceSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.TagResource(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpUntagResourceSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.UntagResource(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpUpdateApprovalTeamSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.UpdateApprovalTeam(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
diff --git a/service/mpa/types/enums.go b/service/mpa/types/enums.go
new file mode 100644
index 00000000000..7f2bfb60d9a
--- /dev/null
+++ b/service/mpa/types/enums.go
@@ -0,0 +1,354 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package types
+
+type ActionCompletionStrategy string
+
+// Enum values for ActionCompletionStrategy
+const (
+ ActionCompletionStrategyAutoCompletionUponApproval ActionCompletionStrategy = "AUTO_COMPLETION_UPON_APPROVAL"
+)
+
+// Values returns all known values for ActionCompletionStrategy. Note that this
+// can be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ActionCompletionStrategy) Values() []ActionCompletionStrategy {
+ return []ActionCompletionStrategy{
+ "AUTO_COMPLETION_UPON_APPROVAL",
+ }
+}
+
+type ApprovalTeamStatus string
+
+// Enum values for ApprovalTeamStatus
+const (
+ ApprovalTeamStatusActive ApprovalTeamStatus = "ACTIVE"
+ ApprovalTeamStatusInactive ApprovalTeamStatus = "INACTIVE"
+ ApprovalTeamStatusDeleting ApprovalTeamStatus = "DELETING"
+ ApprovalTeamStatusPending ApprovalTeamStatus = "PENDING"
+)
+
+// Values returns all known values for ApprovalTeamStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ApprovalTeamStatus) Values() []ApprovalTeamStatus {
+ return []ApprovalTeamStatus{
+ "ACTIVE",
+ "INACTIVE",
+ "DELETING",
+ "PENDING",
+ }
+}
+
+type ApprovalTeamStatusCode string
+
+// Enum values for ApprovalTeamStatusCode
+const (
+ ApprovalTeamStatusCodeValidating ApprovalTeamStatusCode = "VALIDATING"
+ ApprovalTeamStatusCodePendingActivation ApprovalTeamStatusCode = "PENDING_ACTIVATION"
+ ApprovalTeamStatusCodeFailedValidation ApprovalTeamStatusCode = "FAILED_VALIDATION"
+ ApprovalTeamStatusCodeFailedActivation ApprovalTeamStatusCode = "FAILED_ACTIVATION"
+ ApprovalTeamStatusCodeUpdatePendingApproval ApprovalTeamStatusCode = "UPDATE_PENDING_APPROVAL"
+ ApprovalTeamStatusCodeUpdatePendingActivation ApprovalTeamStatusCode = "UPDATE_PENDING_ACTIVATION"
+ ApprovalTeamStatusCodeUpdateFailedApproval ApprovalTeamStatusCode = "UPDATE_FAILED_APPROVAL"
+ ApprovalTeamStatusCodeUpdateFailedActivation ApprovalTeamStatusCode = "UPDATE_FAILED_ACTIVATION"
+ ApprovalTeamStatusCodeUpdateFailedValidation ApprovalTeamStatusCode = "UPDATE_FAILED_VALIDATION"
+ ApprovalTeamStatusCodeDeletePendingApproval ApprovalTeamStatusCode = "DELETE_PENDING_APPROVAL"
+ ApprovalTeamStatusCodeDeleteFailedApproval ApprovalTeamStatusCode = "DELETE_FAILED_APPROVAL"
+ ApprovalTeamStatusCodeDeleteFailedValidation ApprovalTeamStatusCode = "DELETE_FAILED_VALIDATION"
+)
+
+// Values returns all known values for ApprovalTeamStatusCode. Note that this can
+// be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ApprovalTeamStatusCode) Values() []ApprovalTeamStatusCode {
+ return []ApprovalTeamStatusCode{
+ "VALIDATING",
+ "PENDING_ACTIVATION",
+ "FAILED_VALIDATION",
+ "FAILED_ACTIVATION",
+ "UPDATE_PENDING_APPROVAL",
+ "UPDATE_PENDING_ACTIVATION",
+ "UPDATE_FAILED_APPROVAL",
+ "UPDATE_FAILED_ACTIVATION",
+ "UPDATE_FAILED_VALIDATION",
+ "DELETE_PENDING_APPROVAL",
+ "DELETE_FAILED_APPROVAL",
+ "DELETE_FAILED_VALIDATION",
+ }
+}
+
+type FilterField string
+
+// Enum values for FilterField
+const (
+ FilterFieldActionName FilterField = "ActionName"
+ FilterFieldApprovalTeamName FilterField = "ApprovalTeamName"
+ FilterFieldVotingTime FilterField = "VotingTime"
+ FilterFieldVote FilterField = "Vote"
+ FilterFieldSessionStatus FilterField = "SessionStatus"
+ FilterFieldInitiationTime FilterField = "InitiationTime"
+)
+
+// Values returns all known values for FilterField. Note that this can be expanded
+// in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (FilterField) Values() []FilterField {
+ return []FilterField{
+ "ActionName",
+ "ApprovalTeamName",
+ "VotingTime",
+ "Vote",
+ "SessionStatus",
+ "InitiationTime",
+ }
+}
+
+type IdentitySourceStatus string
+
+// Enum values for IdentitySourceStatus
+const (
+ IdentitySourceStatusCreating IdentitySourceStatus = "CREATING"
+ IdentitySourceStatusActive IdentitySourceStatus = "ACTIVE"
+ IdentitySourceStatusDeleting IdentitySourceStatus = "DELETING"
+ IdentitySourceStatusError IdentitySourceStatus = "ERROR"
+)
+
+// Values returns all known values for IdentitySourceStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (IdentitySourceStatus) Values() []IdentitySourceStatus {
+ return []IdentitySourceStatus{
+ "CREATING",
+ "ACTIVE",
+ "DELETING",
+ "ERROR",
+ }
+}
+
+type IdentitySourceStatusCode string
+
+// Enum values for IdentitySourceStatusCode
+const (
+ IdentitySourceStatusCodeAccessDenied IdentitySourceStatusCode = "ACCESS_DENIED"
+ IdentitySourceStatusCodeDeletionFailed IdentitySourceStatusCode = "DELETION_FAILED"
+ IdentitySourceStatusCodeIdcInstanceNotFound IdentitySourceStatusCode = "IDC_INSTANCE_NOT_FOUND"
+ IdentitySourceStatusCodeIdcInstanceNotValid IdentitySourceStatusCode = "IDC_INSTANCE_NOT_VALID"
+)
+
+// Values returns all known values for IdentitySourceStatusCode. Note that this
+// can be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (IdentitySourceStatusCode) Values() []IdentitySourceStatusCode {
+ return []IdentitySourceStatusCode{
+ "ACCESS_DENIED",
+ "DELETION_FAILED",
+ "IDC_INSTANCE_NOT_FOUND",
+ "IDC_INSTANCE_NOT_VALID",
+ }
+}
+
+type IdentitySourceType string
+
+// Enum values for IdentitySourceType
+const (
+ IdentitySourceTypeIamIdentityCenter IdentitySourceType = "IAM_IDENTITY_CENTER"
+)
+
+// Values returns all known values for IdentitySourceType. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (IdentitySourceType) Values() []IdentitySourceType {
+ return []IdentitySourceType{
+ "IAM_IDENTITY_CENTER",
+ }
+}
+
+type IdentityStatus string
+
+// Enum values for IdentityStatus
+const (
+ IdentityStatusPending IdentityStatus = "PENDING"
+ IdentityStatusAccepted IdentityStatus = "ACCEPTED"
+ IdentityStatusRejected IdentityStatus = "REJECTED"
+ IdentityStatusInvalid IdentityStatus = "INVALID"
+)
+
+// Values returns all known values for IdentityStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (IdentityStatus) Values() []IdentityStatus {
+ return []IdentityStatus{
+ "PENDING",
+ "ACCEPTED",
+ "REJECTED",
+ "INVALID",
+ }
+}
+
+type Operator string
+
+// Enum values for Operator
+const (
+ OperatorEquals Operator = "EQ"
+ OperatorNotEquals Operator = "NE"
+ OperatorGreaterThan Operator = "GT"
+ OperatorLessThan Operator = "LT"
+ OperatorGreaterThanOrEqualTo Operator = "GTE"
+ OperatorLessThanOrEqualTo Operator = "LTE"
+ OperatorContains Operator = "CONTAINS"
+ OperatorDoesNotContain Operator = "NOT_CONTAINS"
+ OperatorBetween Operator = "BETWEEN"
+)
+
+// Values returns all known values for Operator. Note that this can be expanded in
+// the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (Operator) Values() []Operator {
+ return []Operator{
+ "EQ",
+ "NE",
+ "GT",
+ "LT",
+ "GTE",
+ "LTE",
+ "CONTAINS",
+ "NOT_CONTAINS",
+ "BETWEEN",
+ }
+}
+
+type PolicyStatus string
+
+// Enum values for PolicyStatus
+const (
+ PolicyStatusAttachable PolicyStatus = "ATTACHABLE"
+ PolicyStatusDeprecated PolicyStatus = "DEPRECATED"
+)
+
+// Values returns all known values for PolicyStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (PolicyStatus) Values() []PolicyStatus {
+ return []PolicyStatus{
+ "ATTACHABLE",
+ "DEPRECATED",
+ }
+}
+
+type PolicyType string
+
+// Enum values for PolicyType
+const (
+ PolicyTypeAwsManaged PolicyType = "AWS_MANAGED"
+ PolicyTypeAwsRam PolicyType = "AWS_RAM"
+)
+
+// Values returns all known values for PolicyType. Note that this can be expanded
+// in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (PolicyType) Values() []PolicyType {
+ return []PolicyType{
+ "AWS_MANAGED",
+ "AWS_RAM",
+ }
+}
+
+type SessionExecutionStatus string
+
+// Enum values for SessionExecutionStatus
+const (
+ SessionExecutionStatusExecuted SessionExecutionStatus = "EXECUTED"
+ SessionExecutionStatusFailed SessionExecutionStatus = "FAILED"
+ SessionExecutionStatusPending SessionExecutionStatus = "PENDING"
+)
+
+// Values returns all known values for SessionExecutionStatus. Note that this can
+// be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (SessionExecutionStatus) Values() []SessionExecutionStatus {
+ return []SessionExecutionStatus{
+ "EXECUTED",
+ "FAILED",
+ "PENDING",
+ }
+}
+
+type SessionResponse string
+
+// Enum values for SessionResponse
+const (
+ SessionResponseApproved SessionResponse = "APPROVED"
+ SessionResponseRejected SessionResponse = "REJECTED"
+ SessionResponseNoResponse SessionResponse = "NO_RESPONSE"
+)
+
+// Values returns all known values for SessionResponse. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (SessionResponse) Values() []SessionResponse {
+ return []SessionResponse{
+ "APPROVED",
+ "REJECTED",
+ "NO_RESPONSE",
+ }
+}
+
+type SessionStatus string
+
+// Enum values for SessionStatus
+const (
+ SessionStatusPending SessionStatus = "PENDING"
+ SessionStatusCancelled SessionStatus = "CANCELLED"
+ SessionStatusApproved SessionStatus = "APPROVED"
+ SessionStatusFailed SessionStatus = "FAILED"
+ SessionStatusCreating SessionStatus = "CREATING"
+)
+
+// Values returns all known values for SessionStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (SessionStatus) Values() []SessionStatus {
+ return []SessionStatus{
+ "PENDING",
+ "CANCELLED",
+ "APPROVED",
+ "FAILED",
+ "CREATING",
+ }
+}
+
+type SessionStatusCode string
+
+// Enum values for SessionStatusCode
+const (
+ SessionStatusCodeRejected SessionStatusCode = "REJECTED"
+ SessionStatusCodeExpired SessionStatusCode = "EXPIRED"
+ SessionStatusCodeConfigurationChanged SessionStatusCode = "CONFIGURATION_CHANGED"
+)
+
+// Values returns all known values for SessionStatusCode. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (SessionStatusCode) Values() []SessionStatusCode {
+ return []SessionStatusCode{
+ "REJECTED",
+ "EXPIRED",
+ "CONFIGURATION_CHANGED",
+ }
+}
diff --git a/service/mpa/types/errors.go b/service/mpa/types/errors.go
new file mode 100644
index 00000000000..1c2e0c908c1
--- /dev/null
+++ b/service/mpa/types/errors.go
@@ -0,0 +1,250 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package types
+
+import (
+ "fmt"
+ smithy "github.com/aws/smithy-go"
+)
+
+// You do not have sufficient access to perform this action. Check your
+// permissions, and try again.
+type AccessDeniedException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *AccessDeniedException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *AccessDeniedException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *AccessDeniedException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "AccessDeniedException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The request cannot be completed because it conflicts with the current state of
+// a resource.
+type ConflictException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *ConflictException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *ConflictException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *ConflictException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "ConflictException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The service encountered an internal error. Try your request again. If the
+// problem persists, contact Amazon Web Services Support.
+type InternalServerException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *InternalServerException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *InternalServerException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *InternalServerException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "InternalServerException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
+
+// The request contains an invalid parameter value.
+type InvalidParameterException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *InvalidParameterException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *InvalidParameterException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *InvalidParameterException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "InvalidParameterException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The specified resource doesn't exist. Check the resource ID, and try again.
+type ResourceNotFoundException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *ResourceNotFoundException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *ResourceNotFoundException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *ResourceNotFoundException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "ResourceNotFoundException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The request exceeds the service quota for your account. Request a quota
+// increase or reduce your request size.
+type ServiceQuotaExceededException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *ServiceQuotaExceededException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *ServiceQuotaExceededException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *ServiceQuotaExceededException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "ServiceQuotaExceededException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The request was denied due to request throttling.
+type ThrottlingException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *ThrottlingException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *ThrottlingException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *ThrottlingException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "ThrottlingException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The request exceeds the maximum number of tags allowed for this resource.
+// Remove some tags, and try again.
+type TooManyTagsException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ ResourceName *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *TooManyTagsException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *TooManyTagsException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *TooManyTagsException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "TooManyTagsException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The input fails to satisfy the constraints specified by an Amazon Web Services
+// service.
+type ValidationException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *ValidationException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *ValidationException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *ValidationException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "ValidationException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
diff --git a/service/mpa/types/types.go b/service/mpa/types/types.go
new file mode 100644
index 00000000000..84a02c0f54a
--- /dev/null
+++ b/service/mpa/types/types.go
@@ -0,0 +1,656 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package types
+
+import (
+ smithydocument "github.com/aws/smithy-go/document"
+ "time"
+)
+
+// Strategy for how an approval team grants approval.
+//
+// The following types satisfy this interface:
+//
+// ApprovalStrategyMemberMofN
+type ApprovalStrategy interface {
+ isApprovalStrategy()
+}
+
+// Minimum number of approvals (M) required for a total number of approvers (N).
+type ApprovalStrategyMemberMofN struct {
+ Value MofNApprovalStrategy
+
+ noSmithyDocumentSerde
+}
+
+func (*ApprovalStrategyMemberMofN) isApprovalStrategy() {}
+
+// Contains details for how an approval team grants approval.
+//
+// The following types satisfy this interface:
+//
+// ApprovalStrategyResponseMemberMofN
+type ApprovalStrategyResponse interface {
+ isApprovalStrategyResponse()
+}
+
+// Minimum number of approvals (M) required for a total number of approvers (N).
+type ApprovalStrategyResponseMemberMofN struct {
+ Value MofNApprovalStrategy
+
+ noSmithyDocumentSerde
+}
+
+func (*ApprovalStrategyResponseMemberMofN) isApprovalStrategyResponse() {}
+
+// Contains details for an approver.
+type ApprovalTeamRequestApprover struct {
+
+ // ID for the user.
+ //
+ // This member is required.
+ PrimaryIdentityId *string
+
+ // Amazon Resource Name (ARN) for the identity source. The identity source manages
+ // the user authentication for approvers.
+ //
+ // This member is required.
+ PrimaryIdentitySourceArn *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains the filter to apply to requests. You can specify up to 10 filters for
+// a request.
+type Filter struct {
+
+ // Name of the filter to use.
+ //
+ // Supported filters
+ //
+ // The supported filters for ListSessions are: ActionName , SessionStatus , and InitationTime .
+ FieldName FilterField
+
+ // Operator to use for filtering.
+ //
+ // - EQ : Equal to the specified value
+ //
+ // - NE : Not equal to the specified value
+ //
+ // - GT : Greater than the specified value
+ //
+ // - LT : Less than the specified value
+ //
+ // - GTE : Greater than or equal to the specified value
+ //
+ // - LTE : Less than or equal to the specified value
+ //
+ // - CONTAINS : Contains the specified value
+ //
+ // - NOT_CONTAINS : Does not contain the specified value
+ //
+ // - BETWEEN : Between two values, inclusive of the specified values.
+ //
+ // Supported operators for each filter:
+ //
+ // - ActionName : EQ | NE | CONTAINS | NOT_CONTAINS
+ //
+ // - SessionStatus : EQ | NE
+ //
+ // - InitiationTime : GT | LT | GTE | LTE | BETWEEN
+ Operator Operator
+
+ // Value to use for filtering. For the BETWEEN operator, specify values in the
+ // format a AND b ( AND is case-insensitive).
+ Value *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for an approver.
+type GetApprovalTeamResponseApprover struct {
+
+ // ID for the approver.
+ ApproverId *string
+
+ // ID for the user.
+ PrimaryIdentityId *string
+
+ // Amazon Resource Name (ARN) for the identity source. The identity source manages
+ // the user authentication for approvers.
+ PrimaryIdentitySourceArn *string
+
+ // Status for the identity source. For example, if an approver has accepted a team
+ // invitation with a user authentication method managed by the identity source.
+ PrimaryIdentityStatus IdentityStatus
+
+ // Timestamp when the approver responded to an approval team invitation.
+ ResponseTime *time.Time
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for an approver response in an approval session.
+type GetSessionResponseApproverResponse struct {
+
+ // ID for the approver.
+ ApproverId *string
+
+ // ID for the identity source. The identity source manages the user authentication
+ // for approvers.
+ IdentityId *string
+
+ // Amazon Resource Name (ARN) for the identity source. The identity source manages
+ // the user authentication for approvers.
+ IdentitySourceArn *string
+
+ // Response to the operation request.
+ Response SessionResponse
+
+ // Timestamp when a approver responded to the operation request.
+ ResponseTime *time.Time
+
+ noSmithyDocumentSerde
+}
+
+// IAM Identity Center credentials. For more information see, [IAM Identity Center] .
+//
+// [IAM Identity Center]: http://aws.amazon.com/identity-center/
+type IamIdentityCenter struct {
+
+ // Amazon Resource Name (ARN) for the IAM Identity Center instance.
+ //
+ // This member is required.
+ InstanceArn *string
+
+ // Amazon Web Services Region where the IAM Identity Center instance is located.
+ //
+ // This member is required.
+ Region *string
+
+ noSmithyDocumentSerde
+}
+
+// IAM Identity Center credentials. For more information see, [IAM Identity Center] .
+//
+// [IAM Identity Center]: http://aws.amazon.com/identity-center/
+type IamIdentityCenterForGet struct {
+
+ // URL for the approval portal associated with the IAM Identity Center instance.
+ ApprovalPortalUrl *string
+
+ // Amazon Resource Name (ARN) for the IAM Identity Center instance.
+ InstanceArn *string
+
+ // Amazon Web Services Region where the IAM Identity Center instance is located.
+ Region *string
+
+ noSmithyDocumentSerde
+}
+
+// IAM Identity Center credentials. For more information see, [IAM Identity Center] .
+//
+// [IAM Identity Center]: http://aws.amazon.com/identity-center/
+type IamIdentityCenterForList struct {
+
+ // URL for the approval portal associated with the IAM Identity Center instance.
+ ApprovalPortalUrl *string
+
+ // Amazon Resource Name (ARN) for the IAM Identity Center instance.
+ InstanceArn *string
+
+ // Amazon Web Services Region where the IAM Identity Center instance is located.
+ Region *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for an identity source. For more information, see [Identity source] in the
+// Multi-party approval User Guide.
+//
+// [Identity source]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+type IdentitySourceForList struct {
+
+ // Timestamp when the identity source was created.
+ CreationTime *time.Time
+
+ // Amazon Resource Name (ARN) for the identity source.
+ IdentitySourceArn *string
+
+ // A IdentitySourceParametersForList object. Contains details for the resource
+ // that provides identities to the identity source. For example, an IAM Identity
+ // Center instance.
+ IdentitySourceParameters IdentitySourceParametersForList
+
+ // The type of resource that provided identities to the identity source. For
+ // example, an IAM Identity Center instance.
+ IdentitySourceType IdentitySourceType
+
+ // Status for the identity source. For example, if the identity source is ACTIVE .
+ Status IdentitySourceStatus
+
+ // Status code of the identity source.
+ StatusCode IdentitySourceStatusCode
+
+ // Message describing the status for the identity source.
+ StatusMessage *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for the resource that provides identities to the identity
+// source. For example, an IAM Identity Center instance.
+type IdentitySourceParameters struct {
+
+ // IAM Identity Center credentials.
+ IamIdentityCenter *IamIdentityCenter
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for the resource that provides identities to the identity
+// source. For example, an IAM Identity Center instance. For more information, see [Identity source]
+// in the Multi-party approval User Guide.
+//
+// The following types satisfy this interface:
+//
+// IdentitySourceParametersForGetMemberIamIdentityCenter
+//
+// [Identity source]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+type IdentitySourceParametersForGet interface {
+ isIdentitySourceParametersForGet()
+}
+
+// IAM Identity Center credentials.
+type IdentitySourceParametersForGetMemberIamIdentityCenter struct {
+ Value IamIdentityCenterForGet
+
+ noSmithyDocumentSerde
+}
+
+func (*IdentitySourceParametersForGetMemberIamIdentityCenter) isIdentitySourceParametersForGet() {}
+
+// Contains details for the resource that provides identities to the identity
+// source. For example, an IAM Identity Center instance. For more information, see [Identity source]
+// in the Multi-party approval User Guide.
+//
+// The following types satisfy this interface:
+//
+// IdentitySourceParametersForListMemberIamIdentityCenter
+//
+// [Identity source]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html
+type IdentitySourceParametersForList interface {
+ isIdentitySourceParametersForList()
+}
+
+// IAM Identity Center credentials.
+type IdentitySourceParametersForListMemberIamIdentityCenter struct {
+ Value IamIdentityCenterForList
+
+ noSmithyDocumentSerde
+}
+
+func (*IdentitySourceParametersForListMemberIamIdentityCenter) isIdentitySourceParametersForList() {}
+
+// Contains details for an approval team
+type ListApprovalTeamsResponseApprovalTeam struct {
+
+ // An ApprovalStrategyResponse object. Contains details for how an approval team
+ // grants approval.
+ ApprovalStrategy ApprovalStrategyResponse
+
+ // Amazon Resource Name (ARN) for the team.
+ Arn *string
+
+ // Timestamp when the team was created.
+ CreationTime *time.Time
+
+ // Description for the team.
+ Description *string
+
+ // Name of the team.
+ Name *string
+
+ // Total number of approvers in the team.
+ NumberOfApprovers *int32
+
+ // Status for the team. For more information, see [Team health] in the Multi-party approval
+ // User Guide.
+ //
+ // [Team health]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html
+ Status ApprovalTeamStatus
+
+ // Status code for the team. For more information, see [Team health] in the Multi-party
+ // approval User Guide.
+ //
+ // [Team health]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html
+ StatusCode ApprovalTeamStatusCode
+
+ // Message describing the status for the team.
+ StatusMessage *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details about a policy for a resource.
+type ListResourcePoliciesResponseResourcePolicy struct {
+
+ // Amazon Resource Name (ARN) for policy.
+ PolicyArn *string
+
+ // Name of the policy.
+ PolicyName *string
+
+ // The type of policy.
+ PolicyType PolicyType
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for an approval session. For more information, see [Session] in the
+// Multi-party approval User Guide
+//
+// [Session]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html
+type ListSessionsResponseSession struct {
+
+ // Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL
+ // means the operation is executed automatically using the requester's permissions,
+ // if approved.
+ ActionCompletionStrategy ActionCompletionStrategy
+
+ // Name of the protected operation.
+ ActionName *string
+
+ // Amazon Resource Name (ARN) for the approval team.
+ ApprovalTeamArn *string
+
+ // Name of the approval team.
+ ApprovalTeamName *string
+
+ // Timestamp when the session was completed.
+ CompletionTime *time.Time
+
+ // Description for the team.
+ Description *string
+
+ // Timestamp when the session was expire.
+ ExpirationTime *time.Time
+
+ // Timestamp when the session was initiated.
+ InitiationTime *time.Time
+
+ // Amazon Resource Name (ARN) for the protected operation.
+ ProtectedResourceArn *string
+
+ // ID for the account that made the operation request.
+ RequesterAccountId *string
+
+ // [IAM principal] that made the operation request.
+ //
+ // [IAM principal]: https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html#intro-structure-request
+ RequesterPrincipalArn *string
+
+ // Amazon Web Services Region where the operation request originated.
+ RequesterRegion *string
+
+ // [Service principal] for the service associated with the protected operation.
+ //
+ // [Service principal]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services
+ RequesterServicePrincipal *string
+
+ // Amazon Resource Name (ARN) for the session.
+ SessionArn *string
+
+ // Status for the protected operation. For example, if the operation is PENDING .
+ Status SessionStatus
+
+ // Status code of the session.
+ StatusCode SessionStatusCode
+
+ // Message describing the status for session.
+ StatusMessage *string
+
+ noSmithyDocumentSerde
+}
+
+// Strategy for how an approval team grants approval.
+type MofNApprovalStrategy struct {
+
+ // Minimum number of approvals (M) required for a total number of approvers (N).
+ //
+ // This member is required.
+ MinApprovalsRequired *int32
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for the pending updates for an approval team, if applicable.
+type PendingUpdate struct {
+
+ // An ApprovalStrategyResponse object. Contains details for how the team grants
+ // approval.
+ ApprovalStrategy ApprovalStrategyResponse
+
+ // An array of GetApprovalTeamResponseApprover objects. Contains details for the
+ // approvers in the team.
+ Approvers []GetApprovalTeamResponseApprover
+
+ // Description for the team.
+ Description *string
+
+ // Total number of approvers in the team.
+ NumberOfApprovers *int32
+
+ // Status for the team. For more information, see [Team health] in the Multi-party approval
+ // User Guide.
+ //
+ // [Team health]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html
+ Status ApprovalTeamStatus
+
+ // Status code for the update. For more information, see [Team health] in the Multi-party
+ // approval User Guide.
+ //
+ // [Team health]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html
+ StatusCode ApprovalTeamStatusCode
+
+ // Message describing the status for the team.
+ StatusMessage *string
+
+ // Timestamp when the update request was initiated.
+ UpdateInitiationTime *time.Time
+
+ // Version ID for the team.
+ VersionId *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for a policy. Policies define what operations a team that
+// define the permissions for team resources.
+//
+// The protected operation for a service integration might require specific
+// permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+//
+// [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+type Policy struct {
+
+ // Amazon Resource Name (ARN) for the policy.
+ //
+ // This member is required.
+ Arn *string
+
+ // Determines if the specified policy is the default for the team.
+ //
+ // This member is required.
+ DefaultVersion *int32
+
+ // Name of the policy.
+ //
+ // This member is required.
+ Name *string
+
+ // The type of policy.
+ //
+ // This member is required.
+ PolicyType PolicyType
+
+ noSmithyDocumentSerde
+}
+
+// Contains the Amazon Resource Name (ARN) for a policy. Policies define what
+// operations a team that define the permissions for team resources.
+//
+// The protected operation for a service integration might require specific
+// permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+//
+// [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+type PolicyReference struct {
+
+ // Amazon Resource Name (ARN) for the policy.
+ //
+ // This member is required.
+ PolicyArn *string
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for the version of a policy. Policies define what operations a
+// team that define the permissions for team resources.
+//
+// The protected operation for a service integration might require specific
+// permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+//
+// [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+type PolicyVersion struct {
+
+ // Amazon Resource Name (ARN) for the team.
+ //
+ // This member is required.
+ Arn *string
+
+ // Timestamp when the policy was created.
+ //
+ // This member is required.
+ CreationTime *time.Time
+
+ // Document that contains the policy contents.
+ //
+ // This member is required.
+ Document *string
+
+ // Determines if the specified policy is the default for the team.
+ //
+ // This member is required.
+ IsDefault *bool
+
+ // Timestamp when the policy was last updated.
+ //
+ // This member is required.
+ LastUpdatedTime *time.Time
+
+ // Name of the policy.
+ //
+ // This member is required.
+ Name *string
+
+ // Amazon Resource Name (ARN) for the policy.
+ //
+ // This member is required.
+ PolicyArn *string
+
+ // The type of policy.
+ //
+ // This member is required.
+ PolicyType PolicyType
+
+ // Status for the policy. For example, if the policy is [attachable] or [deprecated].
+ //
+ // [deprecated]: https://docs.aws.amazon.com/access_policies_managed-deprecated.html
+ // [attachable]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_attach-policy.html
+ //
+ // This member is required.
+ Status PolicyStatus
+
+ // Verison ID
+ //
+ // This member is required.
+ VersionId *int32
+
+ noSmithyDocumentSerde
+}
+
+// Contains details for the version of a policy. Policies define what operations a
+// team that define the permissions for team resources.
+//
+// The protected operation for a service integration might require specific
+// permissions. For more information, see [How other services work with Multi-party approval]in the Multi-party approval User Guide.
+//
+// [How other services work with Multi-party approval]: https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html
+type PolicyVersionSummary struct {
+
+ // Amazon Resource Name (ARN) for the team.
+ //
+ // This member is required.
+ Arn *string
+
+ // Timestamp when the policy was created.
+ //
+ // This member is required.
+ CreationTime *time.Time
+
+ // Determines if the specified policy is the default for the team.
+ //
+ // This member is required.
+ IsDefault *bool
+
+ // Timestamp when the policy was last updated.
+ //
+ // This member is required.
+ LastUpdatedTime *time.Time
+
+ // Name of the policy
+ //
+ // This member is required.
+ Name *string
+
+ // Amazon Resource Name (ARN) for the policy.
+ //
+ // This member is required.
+ PolicyArn *string
+
+ // The type of policy.
+ //
+ // This member is required.
+ PolicyType PolicyType
+
+ // Status for the policy. For example, if the policy is [attachable] or [deprecated].
+ //
+ // [deprecated]: https://docs.aws.amazon.com/access_policies_managed-deprecated.html
+ // [attachable]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_attach-policy.html
+ //
+ // This member is required.
+ Status PolicyStatus
+
+ // Version ID for the policy.
+ //
+ // This member is required.
+ VersionId *int32
+
+ noSmithyDocumentSerde
+}
+
+type noSmithyDocumentSerde = smithydocument.NoSerde
+
+// UnknownUnionMember is returned when a union member is returned over the wire,
+// but has an unknown tag.
+type UnknownUnionMember struct {
+ Tag string
+ Value []byte
+
+ noSmithyDocumentSerde
+}
+
+func (*UnknownUnionMember) isApprovalStrategy() {}
+func (*UnknownUnionMember) isApprovalStrategyResponse() {}
+func (*UnknownUnionMember) isIdentitySourceParametersForGet() {}
+func (*UnknownUnionMember) isIdentitySourceParametersForList() {}
diff --git a/service/mpa/types/types_exported_test.go b/service/mpa/types/types_exported_test.go
new file mode 100644
index 00000000000..9b25d8c2d25
--- /dev/null
+++ b/service/mpa/types/types_exported_test.go
@@ -0,0 +1,80 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package types_test
+
+import (
+ "fmt"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+)
+
+func ExampleApprovalStrategy_outputUsage() {
+ var union types.ApprovalStrategy
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.ApprovalStrategyMemberMofN:
+ _ = v.Value // Value is types.MofNApprovalStrategy
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.MofNApprovalStrategy
+
+func ExampleApprovalStrategyResponse_outputUsage() {
+ var union types.ApprovalStrategyResponse
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.ApprovalStrategyResponseMemberMofN:
+ _ = v.Value // Value is types.MofNApprovalStrategy
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.MofNApprovalStrategy
+
+func ExampleIdentitySourceParametersForGet_outputUsage() {
+ var union types.IdentitySourceParametersForGet
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.IdentitySourceParametersForGetMemberIamIdentityCenter:
+ _ = v.Value // Value is types.IamIdentityCenterForGet
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.IamIdentityCenterForGet
+
+func ExampleIdentitySourceParametersForList_outputUsage() {
+ var union types.IdentitySourceParametersForList
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.IdentitySourceParametersForListMemberIamIdentityCenter:
+ _ = v.Value // Value is types.IamIdentityCenterForList
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.IamIdentityCenterForList
diff --git a/service/mpa/validators.go b/service/mpa/validators.go
new file mode 100644
index 00000000000..23827bf9517
--- /dev/null
+++ b/service/mpa/validators.go
@@ -0,0 +1,902 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package mpa
+
+import (
+ "context"
+ "fmt"
+ "github.com/aws/aws-sdk-go-v2/service/mpa/types"
+ smithy "github.com/aws/smithy-go"
+ "github.com/aws/smithy-go/middleware"
+)
+
+type validateOpCancelSession struct {
+}
+
+func (*validateOpCancelSession) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCancelSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CancelSessionInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCancelSessionInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpCreateApprovalTeam struct {
+}
+
+func (*validateOpCreateApprovalTeam) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateApprovalTeam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateApprovalTeamInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateApprovalTeamInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpCreateIdentitySource struct {
+}
+
+func (*validateOpCreateIdentitySource) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateIdentitySource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateIdentitySourceInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateIdentitySourceInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpDeleteIdentitySource struct {
+}
+
+func (*validateOpDeleteIdentitySource) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDeleteIdentitySource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DeleteIdentitySourceInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDeleteIdentitySourceInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpDeleteInactiveApprovalTeamVersion struct {
+}
+
+func (*validateOpDeleteInactiveApprovalTeamVersion) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDeleteInactiveApprovalTeamVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DeleteInactiveApprovalTeamVersionInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDeleteInactiveApprovalTeamVersionInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpGetApprovalTeam struct {
+}
+
+func (*validateOpGetApprovalTeam) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetApprovalTeam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetApprovalTeamInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetApprovalTeamInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpGetIdentitySource struct {
+}
+
+func (*validateOpGetIdentitySource) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetIdentitySource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetIdentitySourceInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetIdentitySourceInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpGetPolicyVersion struct {
+}
+
+func (*validateOpGetPolicyVersion) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetPolicyVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetPolicyVersionInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetPolicyVersionInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpGetResourcePolicy struct {
+}
+
+func (*validateOpGetResourcePolicy) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetResourcePolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetResourcePolicyInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetResourcePolicyInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpGetSession struct {
+}
+
+func (*validateOpGetSession) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetSessionInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetSessionInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpListPolicyVersions struct {
+}
+
+func (*validateOpListPolicyVersions) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpListPolicyVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*ListPolicyVersionsInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpListPolicyVersionsInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpListResourcePolicies struct {
+}
+
+func (*validateOpListResourcePolicies) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpListResourcePolicies) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*ListResourcePoliciesInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpListResourcePoliciesInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpListSessions struct {
+}
+
+func (*validateOpListSessions) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpListSessions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*ListSessionsInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpListSessionsInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpListTagsForResource struct {
+}
+
+func (*validateOpListTagsForResource) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*ListTagsForResourceInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpListTagsForResourceInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpStartActiveApprovalTeamDeletion struct {
+}
+
+func (*validateOpStartActiveApprovalTeamDeletion) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpStartActiveApprovalTeamDeletion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*StartActiveApprovalTeamDeletionInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpStartActiveApprovalTeamDeletionInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpTagResource struct {
+}
+
+func (*validateOpTagResource) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*TagResourceInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpTagResourceInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpUntagResource struct {
+}
+
+func (*validateOpUntagResource) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*UntagResourceInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpUntagResourceInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpUpdateApprovalTeam struct {
+}
+
+func (*validateOpUpdateApprovalTeam) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpUpdateApprovalTeam) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*UpdateApprovalTeamInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpUpdateApprovalTeamInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+func addOpCancelSessionValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCancelSession{}, middleware.After)
+}
+
+func addOpCreateApprovalTeamValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateApprovalTeam{}, middleware.After)
+}
+
+func addOpCreateIdentitySourceValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateIdentitySource{}, middleware.After)
+}
+
+func addOpDeleteIdentitySourceValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDeleteIdentitySource{}, middleware.After)
+}
+
+func addOpDeleteInactiveApprovalTeamVersionValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDeleteInactiveApprovalTeamVersion{}, middleware.After)
+}
+
+func addOpGetApprovalTeamValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetApprovalTeam{}, middleware.After)
+}
+
+func addOpGetIdentitySourceValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetIdentitySource{}, middleware.After)
+}
+
+func addOpGetPolicyVersionValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetPolicyVersion{}, middleware.After)
+}
+
+func addOpGetResourcePolicyValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetResourcePolicy{}, middleware.After)
+}
+
+func addOpGetSessionValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetSession{}, middleware.After)
+}
+
+func addOpListPolicyVersionsValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpListPolicyVersions{}, middleware.After)
+}
+
+func addOpListResourcePoliciesValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpListResourcePolicies{}, middleware.After)
+}
+
+func addOpListSessionsValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpListSessions{}, middleware.After)
+}
+
+func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After)
+}
+
+func addOpStartActiveApprovalTeamDeletionValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpStartActiveApprovalTeamDeletion{}, middleware.After)
+}
+
+func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpTagResource{}, middleware.After)
+}
+
+func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After)
+}
+
+func addOpUpdateApprovalTeamValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpUpdateApprovalTeam{}, middleware.After)
+}
+
+func validateApprovalStrategy(v types.ApprovalStrategy) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ApprovalStrategy"}
+ switch uv := v.(type) {
+ case *types.ApprovalStrategyMemberMofN:
+ if err := validateMofNApprovalStrategy(&uv.Value); err != nil {
+ invalidParams.AddNested("[MofN]", err.(smithy.InvalidParamsError))
+ }
+
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateApprovalTeamRequestApprover(v *types.ApprovalTeamRequestApprover) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ApprovalTeamRequestApprover"}
+ if v.PrimaryIdentityId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("PrimaryIdentityId"))
+ }
+ if v.PrimaryIdentitySourceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("PrimaryIdentitySourceArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateApprovalTeamRequestApprovers(v []types.ApprovalTeamRequestApprover) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ApprovalTeamRequestApprovers"}
+ for i := range v {
+ if err := validateApprovalTeamRequestApprover(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateIamIdentityCenter(v *types.IamIdentityCenter) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "IamIdentityCenter"}
+ if v.InstanceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("InstanceArn"))
+ }
+ if v.Region == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Region"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateIdentitySourceParameters(v *types.IdentitySourceParameters) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "IdentitySourceParameters"}
+ if v.IamIdentityCenter != nil {
+ if err := validateIamIdentityCenter(v.IamIdentityCenter); err != nil {
+ invalidParams.AddNested("IamIdentityCenter", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateMofNApprovalStrategy(v *types.MofNApprovalStrategy) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "MofNApprovalStrategy"}
+ if v.MinApprovalsRequired == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("MinApprovalsRequired"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validatePoliciesReferences(v []types.PolicyReference) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "PoliciesReferences"}
+ for i := range v {
+ if err := validatePolicyReference(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validatePolicyReference(v *types.PolicyReference) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "PolicyReference"}
+ if v.PolicyArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("PolicyArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpCancelSessionInput(v *CancelSessionInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CancelSessionInput"}
+ if v.SessionArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("SessionArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpCreateApprovalTeamInput(v *CreateApprovalTeamInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateApprovalTeamInput"}
+ if v.ApprovalStrategy == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ApprovalStrategy"))
+ } else if v.ApprovalStrategy != nil {
+ if err := validateApprovalStrategy(v.ApprovalStrategy); err != nil {
+ invalidParams.AddNested("ApprovalStrategy", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.Approvers == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Approvers"))
+ } else if v.Approvers != nil {
+ if err := validateApprovalTeamRequestApprovers(v.Approvers); err != nil {
+ invalidParams.AddNested("Approvers", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.Description == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Description"))
+ }
+ if v.Policies == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Policies"))
+ } else if v.Policies != nil {
+ if err := validatePoliciesReferences(v.Policies); err != nil {
+ invalidParams.AddNested("Policies", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.Name == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Name"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpCreateIdentitySourceInput(v *CreateIdentitySourceInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateIdentitySourceInput"}
+ if v.IdentitySourceParameters == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("IdentitySourceParameters"))
+ } else if v.IdentitySourceParameters != nil {
+ if err := validateIdentitySourceParameters(v.IdentitySourceParameters); err != nil {
+ invalidParams.AddNested("IdentitySourceParameters", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpDeleteIdentitySourceInput(v *DeleteIdentitySourceInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DeleteIdentitySourceInput"}
+ if v.IdentitySourceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("IdentitySourceArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpDeleteInactiveApprovalTeamVersionInput(v *DeleteInactiveApprovalTeamVersionInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DeleteInactiveApprovalTeamVersionInput"}
+ if v.Arn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Arn"))
+ }
+ if v.VersionId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("VersionId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpGetApprovalTeamInput(v *GetApprovalTeamInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetApprovalTeamInput"}
+ if v.Arn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Arn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpGetIdentitySourceInput(v *GetIdentitySourceInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetIdentitySourceInput"}
+ if v.IdentitySourceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("IdentitySourceArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpGetPolicyVersionInput(v *GetPolicyVersionInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetPolicyVersionInput"}
+ if v.PolicyVersionArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("PolicyVersionArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpGetResourcePolicyInput(v *GetResourcePolicyInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetResourcePolicyInput"}
+ if v.ResourceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
+ }
+ if v.PolicyName == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("PolicyName"))
+ }
+ if len(v.PolicyType) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("PolicyType"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpGetSessionInput(v *GetSessionInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetSessionInput"}
+ if v.SessionArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("SessionArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpListPolicyVersionsInput(v *ListPolicyVersionsInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ListPolicyVersionsInput"}
+ if v.PolicyArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("PolicyArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpListResourcePoliciesInput(v *ListResourcePoliciesInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ListResourcePoliciesInput"}
+ if v.ResourceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpListSessionsInput(v *ListSessionsInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ListSessionsInput"}
+ if v.ApprovalTeamArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ApprovalTeamArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"}
+ if v.ResourceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpStartActiveApprovalTeamDeletionInput(v *StartActiveApprovalTeamDeletionInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "StartActiveApprovalTeamDeletionInput"}
+ if v.Arn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Arn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpTagResourceInput(v *TagResourceInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"}
+ if v.ResourceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
+ }
+ if v.Tags == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Tags"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpUntagResourceInput(v *UntagResourceInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"}
+ if v.ResourceArn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
+ }
+ if v.TagKeys == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("TagKeys"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpUpdateApprovalTeamInput(v *UpdateApprovalTeamInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateApprovalTeamInput"}
+ if v.ApprovalStrategy != nil {
+ if err := validateApprovalStrategy(v.ApprovalStrategy); err != nil {
+ invalidParams.AddNested("ApprovalStrategy", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.Approvers != nil {
+ if err := validateApprovalTeamRequestApprovers(v.Approvers); err != nil {
+ invalidParams.AddNested("Approvers", err.(smithy.InvalidParamsError))
+ }
+ }
+ if v.Arn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Arn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
diff --git a/service/mq/CHANGELOG.md b/service/mq/CHANGELOG.md
index 6fcb12e0b25..1076b98c499 100644
--- a/service/mq/CHANGELOG.md
+++ b/service/mq/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mq/go.mod b/service/mq/go.mod
index c4b07fd2d72..6eb27d8458f 100644
--- a/service/mq/go.mod
+++ b/service/mq/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mq
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mq/go.sum b/service/mq/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mq/go.sum
+++ b/service/mq/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mq/go_module_metadata.go b/service/mq/go_module_metadata.go
index d31e930ae49..b1f66eba17b 100644
--- a/service/mq/go_module_metadata.go
+++ b/service/mq/go_module_metadata.go
@@ -3,4 +3,4 @@
package mq
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.1"
+const goModuleVersion = "1.29.2"
diff --git a/service/mturk/CHANGELOG.md b/service/mturk/CHANGELOG.md
index c8a65ea1c75..20b98911eae 100644
--- a/service/mturk/CHANGELOG.md
+++ b/service/mturk/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mturk/go.mod b/service/mturk/go.mod
index c7fb3f3228c..c83b8389cb3 100644
--- a/service/mturk/go.mod
+++ b/service/mturk/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mturk
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mturk/go.sum b/service/mturk/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mturk/go.sum
+++ b/service/mturk/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mturk/go_module_metadata.go b/service/mturk/go_module_metadata.go
index 5269546bc49..4c490264261 100644
--- a/service/mturk/go_module_metadata.go
+++ b/service/mturk/go_module_metadata.go
@@ -3,4 +3,4 @@
package mturk
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/mwaa/CHANGELOG.md b/service/mwaa/CHANGELOG.md
index a2ca7cff7c6..9a051320cac 100644
--- a/service/mwaa/CHANGELOG.md
+++ b/service/mwaa/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/mwaa/go.mod b/service/mwaa/go.mod
index ecb27de0d5b..d9b524d1468 100644
--- a/service/mwaa/go.mod
+++ b/service/mwaa/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mwaa
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/mwaa/go.sum b/service/mwaa/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/mwaa/go.sum
+++ b/service/mwaa/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/mwaa/go_module_metadata.go b/service/mwaa/go_module_metadata.go
index de8af912ab5..b6b284434ad 100644
--- a/service/mwaa/go_module_metadata.go
+++ b/service/mwaa/go_module_metadata.go
@@ -3,4 +3,4 @@
package mwaa
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.2"
+const goModuleVersion = "1.35.3"
diff --git a/service/neptune/CHANGELOG.md b/service/neptune/CHANGELOG.md
index 49b616770a2..08977806d35 100644
--- a/service/neptune/CHANGELOG.md
+++ b/service/neptune/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.37.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.37.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/neptune/go.mod b/service/neptune/go.mod
index f024a63d86e..c96163c2982 100644
--- a/service/neptune/go.mod
+++ b/service/neptune/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/neptune
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/neptune/go.sum b/service/neptune/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/neptune/go.sum
+++ b/service/neptune/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/neptune/go_module_metadata.go b/service/neptune/go_module_metadata.go
index 04f9fb1442e..db2bc4046b5 100644
--- a/service/neptune/go_module_metadata.go
+++ b/service/neptune/go_module_metadata.go
@@ -3,4 +3,4 @@
package neptune
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.37.2"
+const goModuleVersion = "1.37.3"
diff --git a/service/neptunedata/CHANGELOG.md b/service/neptunedata/CHANGELOG.md
index bb0d12e4bc3..82b49f5be2e 100644
--- a/service/neptunedata/CHANGELOG.md
+++ b/service/neptunedata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.10.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.10.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/neptunedata/go.mod b/service/neptunedata/go.mod
index 82f04b51b70..99c1d5510b9 100644
--- a/service/neptunedata/go.mod
+++ b/service/neptunedata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/neptunedata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/neptunedata/go.sum b/service/neptunedata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/neptunedata/go.sum
+++ b/service/neptunedata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/neptunedata/go_module_metadata.go b/service/neptunedata/go_module_metadata.go
index acc9e7f68e3..9d01f55db51 100644
--- a/service/neptunedata/go_module_metadata.go
+++ b/service/neptunedata/go_module_metadata.go
@@ -3,4 +3,4 @@
package neptunedata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.10.3"
+const goModuleVersion = "1.10.4"
diff --git a/service/neptunegraph/CHANGELOG.md b/service/neptunegraph/CHANGELOG.md
index 646a5e4117f..b75c853f976 100644
--- a/service/neptunegraph/CHANGELOG.md
+++ b/service/neptunegraph/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/neptunegraph/go.mod b/service/neptunegraph/go.mod
index c3ac12f6541..d4221be3d92 100644
--- a/service/neptunegraph/go.mod
+++ b/service/neptunegraph/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/neptunegraph
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/neptunegraph/go.sum b/service/neptunegraph/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/neptunegraph/go.sum
+++ b/service/neptunegraph/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/neptunegraph/go_module_metadata.go b/service/neptunegraph/go_module_metadata.go
index 4a7c2cd0253..b6f743cb867 100644
--- a/service/neptunegraph/go_module_metadata.go
+++ b/service/neptunegraph/go_module_metadata.go
@@ -3,4 +3,4 @@
package neptunegraph
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.4"
+const goModuleVersion = "1.17.5"
diff --git a/service/networkfirewall/CHANGELOG.md b/service/networkfirewall/CHANGELOG.md
index 76e620b851b..3f4b9a66616 100644
--- a/service/networkfirewall/CHANGELOG.md
+++ b/service/networkfirewall/CHANGELOG.md
@@ -1,3 +1,13 @@
+# v1.51.0 (2025-06-17)
+
+* **Feature**: Release of Active Threat Defense in Network Firewall
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.50.0 (2025-06-16)
+
+* **Feature**: You can now create firewalls using a Transit Gateway instead of a VPC, resulting in a TGW attachment.
+
# v1.49.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/networkfirewall/api_op_AcceptNetworkFirewallTransitGatewayAttachment.go b/service/networkfirewall/api_op_AcceptNetworkFirewallTransitGatewayAttachment.go
new file mode 100644
index 00000000000..7c923869f0e
--- /dev/null
+++ b/service/networkfirewall/api_op_AcceptNetworkFirewallTransitGatewayAttachment.go
@@ -0,0 +1,199 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package networkfirewall
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/networkfirewall/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Accepts a transit gateway attachment request for Network Firewall. When you
+// accept the attachment request, Network Firewall creates the necessary routing
+// components to enable traffic flow between the transit gateway and firewall
+// endpoints.
+//
+// You must accept a transit gateway attachment to complete the creation of a
+// transit gateway-attached firewall, unless auto-accept is enabled on the transit
+// gateway. After acceptance, use DescribeFirewallto verify the firewall status.
+//
+// To reject an attachment instead of accepting it, use RejectNetworkFirewallTransitGatewayAttachment.
+//
+// It can take several minutes for the attachment acceptance to complete and the
+// firewall to become available.
+func (c *Client) AcceptNetworkFirewallTransitGatewayAttachment(ctx context.Context, params *AcceptNetworkFirewallTransitGatewayAttachmentInput, optFns ...func(*Options)) (*AcceptNetworkFirewallTransitGatewayAttachmentOutput, error) {
+ if params == nil {
+ params = &AcceptNetworkFirewallTransitGatewayAttachmentInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "AcceptNetworkFirewallTransitGatewayAttachment", params, optFns, c.addOperationAcceptNetworkFirewallTransitGatewayAttachmentMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*AcceptNetworkFirewallTransitGatewayAttachmentOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type AcceptNetworkFirewallTransitGatewayAttachmentInput struct {
+
+ // Required. The unique identifier of the transit gateway attachment to accept.
+ // This ID is returned in the response when creating a transit gateway-attached
+ // firewall.
+ //
+ // This member is required.
+ TransitGatewayAttachmentId *string
+
+ noSmithyDocumentSerde
+}
+
+type AcceptNetworkFirewallTransitGatewayAttachmentOutput struct {
+
+ // The unique identifier of the transit gateway attachment that was accepted.
+ //
+ // This member is required.
+ TransitGatewayAttachmentId *string
+
+ // The current status of the transit gateway attachment. Valid values are:
+ //
+ // - CREATING - The attachment is being created
+ //
+ // - DELETING - The attachment is being deleted
+ //
+ // - DELETED - The attachment has been deleted
+ //
+ // - FAILED - The attachment creation has failed and cannot be recovered
+ //
+ // - ERROR - The attachment is in an error state that might be recoverable
+ //
+ // - READY - The attachment is active and processing traffic
+ //
+ // - PENDING_ACCEPTANCE - The attachment is waiting to be accepted
+ //
+ // - REJECTING - The attachment is in the process of being rejected
+ //
+ // - REJECTED - The attachment has been rejected
+ //
+ // This member is required.
+ TransitGatewayAttachmentStatus types.TransitGatewayAttachmentStatus
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationAcceptNetworkFirewallTransitGatewayAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsAwsjson10_serializeOpAcceptNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpAcceptNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "AcceptNetworkFirewallTransitGatewayAttachment"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpAcceptNetworkFirewallTransitGatewayAttachmentValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAcceptNetworkFirewallTransitGatewayAttachment(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opAcceptNetworkFirewallTransitGatewayAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "AcceptNetworkFirewallTransitGatewayAttachment",
+ }
+}
diff --git a/service/networkfirewall/api_op_AssociateAvailabilityZones.go b/service/networkfirewall/api_op_AssociateAvailabilityZones.go
new file mode 100644
index 00000000000..3242cfffd13
--- /dev/null
+++ b/service/networkfirewall/api_op_AssociateAvailabilityZones.go
@@ -0,0 +1,219 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package networkfirewall
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/networkfirewall/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Associates the specified Availability Zones with a transit gateway-attached
+// firewall. For each Availability Zone, Network Firewall creates a firewall
+// endpoint to process traffic. You can specify one or more Availability Zones
+// where you want to deploy the firewall.
+//
+// After adding Availability Zones, you must update your transit gateway route
+// tables to direct traffic through the new firewall endpoints. Use DescribeFirewallto monitor the
+// status of the new endpoints.
+func (c *Client) AssociateAvailabilityZones(ctx context.Context, params *AssociateAvailabilityZonesInput, optFns ...func(*Options)) (*AssociateAvailabilityZonesOutput, error) {
+ if params == nil {
+ params = &AssociateAvailabilityZonesInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "AssociateAvailabilityZones", params, optFns, c.addOperationAssociateAvailabilityZonesMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*AssociateAvailabilityZonesOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type AssociateAvailabilityZonesInput struct {
+
+ // Required. The Availability Zones where you want to create firewall endpoints.
+ // You must specify at least one Availability Zone.
+ //
+ // This member is required.
+ AvailabilityZoneMappings []types.AvailabilityZoneMapping
+
+ // The Amazon Resource Name (ARN) of the firewall.
+ //
+ // You must specify the ARN or the name, and you can specify both.
+ FirewallArn *string
+
+ // The descriptive name of the firewall. You can't change the name of a firewall
+ // after you create it.
+ //
+ // You must specify the ARN or the name, and you can specify both.
+ FirewallName *string
+
+ // An optional token that you can use for optimistic locking. Network Firewall
+ // returns a token to your requests that access the firewall. The token marks the
+ // state of the firewall resource at the time of the request.
+ //
+ // To make an unconditional change to the firewall, omit the token in your update
+ // request. Without the token, Network Firewall performs your updates regardless of
+ // whether the firewall has changed since you last retrieved it.
+ //
+ // To make a conditional change to the firewall, provide the token in your update
+ // request. Network Firewall uses the token to ensure that the firewall hasn't
+ // changed since you last retrieved it. If it has changed, the operation fails with
+ // an InvalidTokenException . If this happens, retrieve the firewall again to get a
+ // current copy of it with a new token. Reapply your changes as needed, then try
+ // the operation again using the new token.
+ UpdateToken *string
+
+ noSmithyDocumentSerde
+}
+
+type AssociateAvailabilityZonesOutput struct {
+
+ // The Availability Zones where Network Firewall created firewall endpoints. Each
+ // mapping specifies an Availability Zone where the firewall processes traffic.
+ AvailabilityZoneMappings []types.AvailabilityZoneMapping
+
+ // The Amazon Resource Name (ARN) of the firewall.
+ FirewallArn *string
+
+ // The descriptive name of the firewall. You can't change the name of a firewall
+ // after you create it.
+ FirewallName *string
+
+ // An optional token that you can use for optimistic locking. Network Firewall
+ // returns a token to your requests that access the firewall. The token marks the
+ // state of the firewall resource at the time of the request.
+ //
+ // To make an unconditional change to the firewall, omit the token in your update
+ // request. Without the token, Network Firewall performs your updates regardless of
+ // whether the firewall has changed since you last retrieved it.
+ //
+ // To make a conditional change to the firewall, provide the token in your update
+ // request. Network Firewall uses the token to ensure that the firewall hasn't
+ // changed since you last retrieved it. If it has changed, the operation fails with
+ // an InvalidTokenException . If this happens, retrieve the firewall again to get a
+ // current copy of it with a new token. Reapply your changes as needed, then try
+ // the operation again using the new token.
+ UpdateToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationAssociateAvailabilityZonesMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsAwsjson10_serializeOpAssociateAvailabilityZones{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpAssociateAvailabilityZones{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "AssociateAvailabilityZones"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpAssociateAvailabilityZonesValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateAvailabilityZones(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opAssociateAvailabilityZones(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "AssociateAvailabilityZones",
+ }
+}
diff --git a/service/networkfirewall/api_op_CreateFirewall.go b/service/networkfirewall/api_op_CreateFirewall.go
index 8c0d794900e..3a344d1832a 100644
--- a/service/networkfirewall/api_op_CreateFirewall.go
+++ b/service/networkfirewall/api_op_CreateFirewall.go
@@ -59,6 +59,23 @@ type CreateFirewallInput struct {
// This member is required.
FirewallPolicyArn *string
+ // Optional. A setting indicating whether the firewall is protected against
+ // changes to its Availability Zone configuration. When set to TRUE , you cannot
+ // add or remove Availability Zones without first disabling this protection using UpdateAvailabilityZoneChangeProtection.
+ //
+ // Default value: FALSE
+ AvailabilityZoneChangeProtection bool
+
+ // Required. The Availability Zones where you want to create firewall endpoints
+ // for a transit gateway-attached firewall. You must specify at least one
+ // Availability Zone. Consider enabling the firewall in every Availability Zone
+ // where you have workloads to maintain Availability Zone independence.
+ //
+ // You can modify Availability Zones later using AssociateAvailabilityZones or DisassociateAvailabilityZones, but this may briefly
+ // disrupt traffic. The AvailabilityZoneChangeProtection setting controls whether
+ // you can make these modifications.
+ AvailabilityZoneMappings []types.AvailabilityZoneMapping
+
// A flag indicating whether it is possible to delete the firewall. A setting of
// TRUE indicates that the firewall is protected against deletion. Use this setting
// to protect against accidentally deleting a firewall that is in use. When you
@@ -95,6 +112,20 @@ type CreateFirewallInput struct {
// The key:value pairs to associate with the resource.
Tags []types.Tag
+ // Required when creating a transit gateway-attached firewall. The unique
+ // identifier of the transit gateway to attach to this firewall. You can provide
+ // either a transit gateway from your account or one that has been shared with you
+ // through Resource Access Manager.
+ //
+ // After creating the firewall, you cannot change the transit gateway association.
+ // To use a different transit gateway, you must create a new firewall.
+ //
+ // For information about creating firewalls, see CreateFirewall. For specific guidance about
+ // transit gateway-attached firewalls, see [Considerations for transit gateway-attached firewalls]in the Network Firewall Developer Guide.
+ //
+ // [Considerations for transit gateway-attached firewalls]: https://docs.aws.amazon.com/network-firewall/latest/developerguide/tgw-firewall-considerations.html
+ TransitGatewayId *string
+
// The unique identifier of the VPC where Network Firewall should create the
// firewall.
//
diff --git a/service/networkfirewall/api_op_CreateRuleGroup.go b/service/networkfirewall/api_op_CreateRuleGroup.go
index 40586a493fe..b8568bbabce 100644
--- a/service/networkfirewall/api_op_CreateRuleGroup.go
+++ b/service/networkfirewall/api_op_CreateRuleGroup.go
@@ -140,6 +140,17 @@ type CreateRuleGroupInput struct {
// the originating rule group.
SourceMetadata *types.SourceMetadata
+ // An object that contains a RuleOptions array of strings. You use RuleOptions to
+ // determine which of the following RuleSummaryvalues are returned in response to
+ // DescribeRuleGroupSummary .
+ //
+ // - Metadata - returns
+ //
+ // - Msg
+ //
+ // - SID
+ SummaryConfiguration *types.SummaryConfiguration
+
// The key:value pairs to associate with the resource.
Tags []types.Tag
diff --git a/service/networkfirewall/api_op_DeleteNetworkFirewallTransitGatewayAttachment.go b/service/networkfirewall/api_op_DeleteNetworkFirewallTransitGatewayAttachment.go
new file mode 100644
index 00000000000..dd86ba5f716
--- /dev/null
+++ b/service/networkfirewall/api_op_DeleteNetworkFirewallTransitGatewayAttachment.go
@@ -0,0 +1,193 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package networkfirewall
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/networkfirewall/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Deletes a transit gateway attachment from a Network Firewall. Either the
+// firewall owner or the transit gateway owner can delete the attachment.
+//
+// After you delete a transit gateway attachment, raffic will no longer flow
+// through the firewall endpoints.
+//
+// After you initiate the delete operation, use DescribeFirewall to monitor the deletion status.
+func (c *Client) DeleteNetworkFirewallTransitGatewayAttachment(ctx context.Context, params *DeleteNetworkFirewallTransitGatewayAttachmentInput, optFns ...func(*Options)) (*DeleteNetworkFirewallTransitGatewayAttachmentOutput, error) {
+ if params == nil {
+ params = &DeleteNetworkFirewallTransitGatewayAttachmentInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkFirewallTransitGatewayAttachment", params, optFns, c.addOperationDeleteNetworkFirewallTransitGatewayAttachmentMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DeleteNetworkFirewallTransitGatewayAttachmentOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteNetworkFirewallTransitGatewayAttachmentInput struct {
+
+ // Required. The unique identifier of the transit gateway attachment to delete.
+ //
+ // This member is required.
+ TransitGatewayAttachmentId *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteNetworkFirewallTransitGatewayAttachmentOutput struct {
+
+ // The ID of the transit gateway attachment that was deleted.
+ //
+ // This member is required.
+ TransitGatewayAttachmentId *string
+
+ // The current status of the transit gateway attachment deletion process.
+ //
+ // Valid values are:
+ //
+ // - CREATING - The attachment is being created
+ //
+ // - DELETING - The attachment is being deleted
+ //
+ // - DELETED - The attachment has been deleted
+ //
+ // - FAILED - The attachment creation has failed and cannot be recovered
+ //
+ // - ERROR - The attachment is in an error state that might be recoverable
+ //
+ // - READY - The attachment is active and processing traffic
+ //
+ // - PENDING_ACCEPTANCE - The attachment is waiting to be accepted
+ //
+ // - REJECTING - The attachment is in the process of being rejected
+ //
+ // - REJECTED - The attachment has been rejected
+ //
+ // This member is required.
+ TransitGatewayAttachmentStatus types.TransitGatewayAttachmentStatus
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDeleteNetworkFirewallTransitGatewayAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteNetworkFirewallTransitGatewayAttachment"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDeleteNetworkFirewallTransitGatewayAttachmentValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteNetworkFirewallTransitGatewayAttachment(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDeleteNetworkFirewallTransitGatewayAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DeleteNetworkFirewallTransitGatewayAttachment",
+ }
+}
diff --git a/service/networkfirewall/api_op_DescribeFirewallMetadata.go b/service/networkfirewall/api_op_DescribeFirewallMetadata.go
index a79087786f2..eac9c9bb779 100644
--- a/service/networkfirewall/api_op_DescribeFirewallMetadata.go
+++ b/service/networkfirewall/api_op_DescribeFirewallMetadata.go
@@ -57,6 +57,10 @@ type DescribeFirewallMetadataOutput struct {
// Availability Zones for which the firewall has a subnet defined.
SupportedAvailabilityZones map[string]types.AvailabilityZoneMetadata
+ // The unique identifier of the transit gateway attachment associated with this
+ // firewall. This field is only present for transit gateway-attached firewalls.
+ TransitGatewayAttachmentId *string
+
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
diff --git a/service/networkfirewall/api_op_DescribeRuleGroupMetadata.go b/service/networkfirewall/api_op_DescribeRuleGroupMetadata.go
index 11a97227f93..531689bb8bb 100644
--- a/service/networkfirewall/api_op_DescribeRuleGroupMetadata.go
+++ b/service/networkfirewall/api_op_DescribeRuleGroupMetadata.go
@@ -85,7 +85,7 @@ type DescribeRuleGroupMetadataOutput struct {
// Returns the metadata objects for the specified rule group.
Description *string
- // The last time that the rule group was changed.
+ // A timestamp indicating when the rule group was last modified.
LastModifiedTime *time.Time
// Additional options governing how Network Firewall handles the rule group. You
diff --git a/service/networkfirewall/api_op_DescribeRuleGroupSummary.go b/service/networkfirewall/api_op_DescribeRuleGroupSummary.go
new file mode 100644
index 00000000000..de8d40e4d70
--- /dev/null
+++ b/service/networkfirewall/api_op_DescribeRuleGroupSummary.go
@@ -0,0 +1,197 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package networkfirewall
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/networkfirewall/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns detailed information for a stateful rule group.
+//
+// For active threat defense Amazon Web Services managed rule groups, this
+// operation provides insight into the protections enabled by the rule group, based
+// on Suricata rule metadata fields. Summaries are available for rule groups you
+// manage and for active threat defense Amazon Web Services managed rule groups.
+//
+// To modify how threat information appears in summaries, use the
+// SummaryConfiguration parameter in UpdateRuleGroup.
+func (c *Client) DescribeRuleGroupSummary(ctx context.Context, params *DescribeRuleGroupSummaryInput, optFns ...func(*Options)) (*DescribeRuleGroupSummaryOutput, error) {
+ if params == nil {
+ params = &DescribeRuleGroupSummaryInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DescribeRuleGroupSummary", params, optFns, c.addOperationDescribeRuleGroupSummaryMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DescribeRuleGroupSummaryOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DescribeRuleGroupSummaryInput struct {
+
+ // Required. The Amazon Resource Name (ARN) of the rule group.
+ //
+ // You must specify the ARN or the name, and you can specify both.
+ RuleGroupArn *string
+
+ // The descriptive name of the rule group. You can't change the name of a rule
+ // group after you create it.
+ //
+ // You must specify the ARN or the name, and you can specify both.
+ RuleGroupName *string
+
+ // The type of rule group you want a summary for. This is a required field.
+ //
+ // Valid value: STATEFUL
+ //
+ // Note that STATELESS exists but is not currently supported. If you provide
+ // STATELESS , an exception is returned.
+ Type types.RuleGroupType
+
+ noSmithyDocumentSerde
+}
+
+type DescribeRuleGroupSummaryOutput struct {
+
+ // The descriptive name of the rule group. You can't change the name of a rule
+ // group after you create it.
+ //
+ // This member is required.
+ RuleGroupName *string
+
+ // A description of the rule group.
+ Description *string
+
+ // A complex type that contains rule information based on the rule group's
+ // configured summary settings. The content varies depending on the fields that you
+ // specified to extract in your SummaryConfiguration. When you haven't configured
+ // any summary settings, this returns an empty array. The response might include:
+ //
+ // - Rule identifiers
+ //
+ // - Rule descriptions
+ //
+ // - Any metadata fields that you specified in your SummaryConfiguration
+ Summary *types.Summary
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDescribeRuleGroupSummaryMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsAwsjson10_serializeOpDescribeRuleGroupSummary{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDescribeRuleGroupSummary{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeRuleGroupSummary"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRuleGroupSummary(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDescribeRuleGroupSummary(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DescribeRuleGroupSummary",
+ }
+}
diff --git a/service/networkfirewall/api_op_DisassociateAvailabilityZones.go b/service/networkfirewall/api_op_DisassociateAvailabilityZones.go
new file mode 100644
index 00000000000..7dcbbe6dbb6
--- /dev/null
+++ b/service/networkfirewall/api_op_DisassociateAvailabilityZones.go
@@ -0,0 +1,220 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package networkfirewall
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/networkfirewall/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Removes the specified Availability Zone associations from a transit
+// gateway-attached firewall. This removes the firewall endpoints from these
+// Availability Zones and stops traffic filtering in those zones. Before removing
+// an Availability Zone, ensure you've updated your transit gateway route tables to
+// redirect traffic appropriately.
+//
+// If AvailabilityZoneChangeProtection is enabled, you must first disable it using UpdateAvailabilityZoneChangeProtection
+// .
+//
+// To verify the status of your Availability Zone changes, use DescribeFirewall.
+func (c *Client) DisassociateAvailabilityZones(ctx context.Context, params *DisassociateAvailabilityZonesInput, optFns ...func(*Options)) (*DisassociateAvailabilityZonesOutput, error) {
+ if params == nil {
+ params = &DisassociateAvailabilityZonesInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DisassociateAvailabilityZones", params, optFns, c.addOperationDisassociateAvailabilityZonesMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DisassociateAvailabilityZonesOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DisassociateAvailabilityZonesInput struct {
+
+ // Required. The Availability Zones to remove from the firewall's configuration.
+ //
+ // This member is required.
+ AvailabilityZoneMappings []types.AvailabilityZoneMapping
+
+ // The Amazon Resource Name (ARN) of the firewall.
+ //
+ // You must specify the ARN or the name, and you can specify both.
+ FirewallArn *string
+
+ // The descriptive name of the firewall. You can't change the name of a firewall
+ // after you create it.
+ //
+ // You must specify the ARN or the name, and you can specify both.
+ FirewallName *string
+
+ // An optional token that you can use for optimistic locking. Network Firewall
+ // returns a token to your requests that access the firewall. The token marks the
+ // state of the firewall resource at the time of the request.
+ //
+ // To make an unconditional change to the firewall, omit the token in your update
+ // request. Without the token, Network Firewall performs your updates regardless of
+ // whether the firewall has changed since you last retrieved it.
+ //
+ // To make a conditional change to the firewall, provide the token in your update
+ // request. Network Firewall uses the token to ensure that the firewall hasn't
+ // changed since you last retrieved it. If it has changed, the operation fails with
+ // an InvalidTokenException . If this happens, retrieve the firewall again to get a
+ // current copy of it with a new token. Reapply your changes as needed, then try
+ // the operation again using the new token.
+ UpdateToken *string
+
+ noSmithyDocumentSerde
+}
+
+type DisassociateAvailabilityZonesOutput struct {
+
+ // The remaining Availability Zones where the firewall has endpoints after the
+ // disassociation.
+ AvailabilityZoneMappings []types.AvailabilityZoneMapping
+
+ // The Amazon Resource Name (ARN) of the firewall.
+ FirewallArn *string
+
+ // The descriptive name of the firewall. You can't change the name of a firewall
+ // after you create it.
+ FirewallName *string
+
+ // An optional token that you can use for optimistic locking. Network Firewall
+ // returns a token to your requests that access the firewall. The token marks the
+ // state of the firewall resource at the time of the request.
+ //
+ // To make an unconditional change to the firewall, omit the token in your update
+ // request. Without the token, Network Firewall performs your updates regardless of
+ // whether the firewall has changed since you last retrieved it.
+ //
+ // To make a conditional change to the firewall, provide the token in your update
+ // request. Network Firewall uses the token to ensure that the firewall hasn't
+ // changed since you last retrieved it. If it has changed, the operation fails with
+ // an InvalidTokenException . If this happens, retrieve the firewall again to get a
+ // current copy of it with a new token. Reapply your changes as needed, then try
+ // the operation again using the new token.
+ UpdateToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDisassociateAvailabilityZonesMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsAwsjson10_serializeOpDisassociateAvailabilityZones{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDisassociateAvailabilityZones{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DisassociateAvailabilityZones"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDisassociateAvailabilityZonesValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateAvailabilityZones(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDisassociateAvailabilityZones(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DisassociateAvailabilityZones",
+ }
+}
diff --git a/service/networkfirewall/api_op_RejectNetworkFirewallTransitGatewayAttachment.go b/service/networkfirewall/api_op_RejectNetworkFirewallTransitGatewayAttachment.go
new file mode 100644
index 00000000000..d0d04c0d50e
--- /dev/null
+++ b/service/networkfirewall/api_op_RejectNetworkFirewallTransitGatewayAttachment.go
@@ -0,0 +1,203 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package networkfirewall
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/networkfirewall/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Rejects a transit gateway attachment request for Network Firewall. When you
+// reject the attachment request, Network Firewall cancels the creation of routing
+// components between the transit gateway and firewall endpoints.
+//
+// Only the firewall owner can reject the attachment. After rejection, no traffic
+// will flow through the firewall endpoints for this attachment.
+//
+// Use DescribeFirewall to monitor the rejection status. To accept the attachment instead of
+// rejecting it, use AcceptNetworkFirewallTransitGatewayAttachment.
+//
+// Once rejected, you cannot reverse this action. To establish connectivity, you
+// must create a new transit gateway-attached firewall.
+func (c *Client) RejectNetworkFirewallTransitGatewayAttachment(ctx context.Context, params *RejectNetworkFirewallTransitGatewayAttachmentInput, optFns ...func(*Options)) (*RejectNetworkFirewallTransitGatewayAttachmentOutput, error) {
+ if params == nil {
+ params = &RejectNetworkFirewallTransitGatewayAttachmentInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "RejectNetworkFirewallTransitGatewayAttachment", params, optFns, c.addOperationRejectNetworkFirewallTransitGatewayAttachmentMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*RejectNetworkFirewallTransitGatewayAttachmentOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type RejectNetworkFirewallTransitGatewayAttachmentInput struct {
+
+ // Required. The unique identifier of the transit gateway attachment to reject.
+ // This ID is returned in the response when creating a transit gateway-attached
+ // firewall.
+ //
+ // This member is required.
+ TransitGatewayAttachmentId *string
+
+ noSmithyDocumentSerde
+}
+
+type RejectNetworkFirewallTransitGatewayAttachmentOutput struct {
+
+ // The unique identifier of the transit gateway attachment that was rejected.
+ //
+ // This member is required.
+ TransitGatewayAttachmentId *string
+
+ // The current status of the transit gateway attachment. Valid values are:
+ //
+ // - CREATING - The attachment is being created
+ //
+ // - DELETING - The attachment is being deleted
+ //
+ // - DELETED - The attachment has been deleted
+ //
+ // - FAILED - The attachment creation has failed and cannot be recovered
+ //
+ // - ERROR - The attachment is in an error state that might be recoverable
+ //
+ // - READY - The attachment is active and processing traffic
+ //
+ // - PENDING_ACCEPTANCE - The attachment is waiting to be accepted
+ //
+ // - REJECTING - The attachment is in the process of being rejected
+ //
+ // - REJECTED - The attachment has been rejected
+ //
+ // For information about troubleshooting endpoint failures, see [Troubleshooting firewall endpoint failures] in the Network
+ // Firewall Developer Guide.
+ //
+ // [Troubleshooting firewall endpoint failures]: https://docs.aws.amazon.com/network-firewall/latest/developerguide/firewall-troubleshooting-endpoint-failures.html
+ //
+ // This member is required.
+ TransitGatewayAttachmentStatus types.TransitGatewayAttachmentStatus
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationRejectNetworkFirewallTransitGatewayAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsAwsjson10_serializeOpRejectNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpRejectNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "RejectNetworkFirewallTransitGatewayAttachment"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpRejectNetworkFirewallTransitGatewayAttachmentValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRejectNetworkFirewallTransitGatewayAttachment(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opRejectNetworkFirewallTransitGatewayAttachment(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "RejectNetworkFirewallTransitGatewayAttachment",
+ }
+}
diff --git a/service/networkfirewall/api_op_UpdateAvailabilityZoneChangeProtection.go b/service/networkfirewall/api_op_UpdateAvailabilityZoneChangeProtection.go
new file mode 100644
index 00000000000..5199dbd31fb
--- /dev/null
+++ b/service/networkfirewall/api_op_UpdateAvailabilityZoneChangeProtection.go
@@ -0,0 +1,221 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package networkfirewall
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Modifies the AvailabilityZoneChangeProtection setting for a transit
+// gateway-attached firewall. When enabled, this setting prevents accidental
+// changes to the firewall's Availability Zone configuration. This helps protect
+// against disrupting traffic flow in production environments.
+//
+// When enabled, you must disable this protection before using AssociateAvailabilityZones or DisassociateAvailabilityZones to modify the
+// firewall's Availability Zone configuration.
+func (c *Client) UpdateAvailabilityZoneChangeProtection(ctx context.Context, params *UpdateAvailabilityZoneChangeProtectionInput, optFns ...func(*Options)) (*UpdateAvailabilityZoneChangeProtectionOutput, error) {
+ if params == nil {
+ params = &UpdateAvailabilityZoneChangeProtectionInput{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "UpdateAvailabilityZoneChangeProtection", params, optFns, c.addOperationUpdateAvailabilityZoneChangeProtectionMiddlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*UpdateAvailabilityZoneChangeProtectionOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type UpdateAvailabilityZoneChangeProtectionInput struct {
+
+ // A setting indicating whether the firewall is protected against changes to the
+ // subnet associations. Use this setting to protect against accidentally modifying
+ // the subnet associations for a firewall that is in use. When you create a
+ // firewall, the operation initializes this setting to TRUE .
+ //
+ // This member is required.
+ AvailabilityZoneChangeProtection bool
+
+ // The Amazon Resource Name (ARN) of the firewall.
+ //
+ // You must specify the ARN or the name, and you can specify both.
+ FirewallArn *string
+
+ // The descriptive name of the firewall. You can't change the name of a firewall
+ // after you create it.
+ //
+ // You must specify the ARN or the name, and you can specify both.
+ FirewallName *string
+
+ // An optional token that you can use for optimistic locking. Network Firewall
+ // returns a token to your requests that access the firewall. The token marks the
+ // state of the firewall resource at the time of the request.
+ //
+ // To make an unconditional change to the firewall, omit the token in your update
+ // request. Without the token, Network Firewall performs your updates regardless of
+ // whether the firewall has changed since you last retrieved it.
+ //
+ // To make a conditional change to the firewall, provide the token in your update
+ // request. Network Firewall uses the token to ensure that the firewall hasn't
+ // changed since you last retrieved it. If it has changed, the operation fails with
+ // an InvalidTokenException . If this happens, retrieve the firewall again to get a
+ // current copy of it with a new token. Reapply your changes as needed, then try
+ // the operation again using the new token.
+ UpdateToken *string
+
+ noSmithyDocumentSerde
+}
+
+type UpdateAvailabilityZoneChangeProtectionOutput struct {
+
+ // A setting indicating whether the firewall is protected against changes to the
+ // subnet associations. Use this setting to protect against accidentally modifying
+ // the subnet associations for a firewall that is in use. When you create a
+ // firewall, the operation initializes this setting to TRUE .
+ AvailabilityZoneChangeProtection bool
+
+ // The Amazon Resource Name (ARN) of the firewall.
+ FirewallArn *string
+
+ // The descriptive name of the firewall. You can't change the name of a firewall
+ // after you create it.
+ FirewallName *string
+
+ // An optional token that you can use for optimistic locking. Network Firewall
+ // returns a token to your requests that access the firewall. The token marks the
+ // state of the firewall resource at the time of the request.
+ //
+ // To make an unconditional change to the firewall, omit the token in your update
+ // request. Without the token, Network Firewall performs your updates regardless of
+ // whether the firewall has changed since you last retrieved it.
+ //
+ // To make a conditional change to the firewall, provide the token in your update
+ // request. Network Firewall uses the token to ensure that the firewall hasn't
+ // changed since you last retrieved it. If it has changed, the operation fails with
+ // an InvalidTokenException . If this happens, retrieve the firewall again to get a
+ // current copy of it with a new token. Reapply your changes as needed, then try
+ // the operation again using the new token.
+ UpdateToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationUpdateAvailabilityZoneChangeProtectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateAvailabilityZoneChangeProtection{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateAvailabilityZoneChangeProtection{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateAvailabilityZoneChangeProtection"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpUpdateAvailabilityZoneChangeProtectionValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAvailabilityZoneChangeProtection(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opUpdateAvailabilityZoneChangeProtection(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "UpdateAvailabilityZoneChangeProtection",
+ }
+}
diff --git a/service/networkfirewall/api_op_UpdateRuleGroup.go b/service/networkfirewall/api_op_UpdateRuleGroup.go
index 7c2f28e8ca5..bdceae42f9e 100644
--- a/service/networkfirewall/api_op_UpdateRuleGroup.go
+++ b/service/networkfirewall/api_op_UpdateRuleGroup.go
@@ -110,6 +110,11 @@ type UpdateRuleGroupInput struct {
// the originating rule group.
SourceMetadata *types.SourceMetadata
+ // Updates the selected summary configuration for a rule group.
+ //
+ // Changes affect subsequent responses from DescribeRuleGroupSummary.
+ SummaryConfiguration *types.SummaryConfiguration
+
// Indicates whether the rule group is stateless or stateful. If the rule group is
// stateless, it contains stateless rules. If it is stateful, it contains stateful
// rules.
diff --git a/service/networkfirewall/deserializers.go b/service/networkfirewall/deserializers.go
index dd1448291fc..d4d0922129b 100644
--- a/service/networkfirewall/deserializers.go
+++ b/service/networkfirewall/deserializers.go
@@ -29,6 +29,255 @@ func deserializeS3Expires(v string) (*time.Time, error) {
return &t, nil
}
+type awsAwsjson10_deserializeOpAcceptNetworkFirewallTransitGatewayAttachment struct {
+}
+
+func (*awsAwsjson10_deserializeOpAcceptNetworkFirewallTransitGatewayAttachment) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsAwsjson10_deserializeOpAcceptNetworkFirewallTransitGatewayAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsAwsjson10_deserializeOpErrorAcceptNetworkFirewallTransitGatewayAttachment(response, &metadata)
+ }
+ output := &AcceptNetworkFirewallTransitGatewayAttachmentOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsAwsjson10_deserializeOpDocumentAcceptNetworkFirewallTransitGatewayAttachmentOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ return out, metadata, err
+}
+
+func awsAwsjson10_deserializeOpErrorAcceptNetworkFirewallTransitGatewayAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ bodyInfo, err := getProtocolErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok {
+ errorCode = restjson.SanitizeErrorCode(typ)
+ }
+ if len(bodyInfo.Message) != 0 {
+ errorMessage = bodyInfo.Message
+ }
+ switch {
+ case strings.EqualFold("InternalServerError", errorCode):
+ return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsAwsjson10_deserializeOpAssociateAvailabilityZones struct {
+}
+
+func (*awsAwsjson10_deserializeOpAssociateAvailabilityZones) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsAwsjson10_deserializeOpAssociateAvailabilityZones) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsAwsjson10_deserializeOpErrorAssociateAvailabilityZones(response, &metadata)
+ }
+ output := &AssociateAvailabilityZonesOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsAwsjson10_deserializeOpDocumentAssociateAvailabilityZonesOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ return out, metadata, err
+}
+
+func awsAwsjson10_deserializeOpErrorAssociateAvailabilityZones(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ bodyInfo, err := getProtocolErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok {
+ errorCode = restjson.SanitizeErrorCode(typ)
+ }
+ if len(bodyInfo.Message) != 0 {
+ errorMessage = bodyInfo.Message
+ }
+ switch {
+ case strings.EqualFold("InsufficientCapacityException", errorCode):
+ return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
+
+ case strings.EqualFold("InternalServerError", errorCode):
+ return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+
+ case strings.EqualFold("InvalidOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("InvalidTokenException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidTokenException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
type awsAwsjson10_deserializeOpAssociateFirewallPolicy struct {
}
@@ -410,14 +659,638 @@ func awsAwsjson10_deserializeOpErrorCreateFirewall(response *smithyhttp.Response
}
}
-type awsAwsjson10_deserializeOpCreateFirewallPolicy struct {
+type awsAwsjson10_deserializeOpCreateFirewallPolicy struct {
+}
+
+func (*awsAwsjson10_deserializeOpCreateFirewallPolicy) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsAwsjson10_deserializeOpCreateFirewallPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsAwsjson10_deserializeOpErrorCreateFirewallPolicy(response, &metadata)
+ }
+ output := &CreateFirewallPolicyOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsAwsjson10_deserializeOpDocumentCreateFirewallPolicyOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ return out, metadata, err
+}
+
+func awsAwsjson10_deserializeOpErrorCreateFirewallPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ bodyInfo, err := getProtocolErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok {
+ errorCode = restjson.SanitizeErrorCode(typ)
+ }
+ if len(bodyInfo.Message) != 0 {
+ errorMessage = bodyInfo.Message
+ }
+ switch {
+ case strings.EqualFold("InsufficientCapacityException", errorCode):
+ return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
+
+ case strings.EqualFold("InternalServerError", errorCode):
+ return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsAwsjson10_deserializeOpCreateRuleGroup struct {
+}
+
+func (*awsAwsjson10_deserializeOpCreateRuleGroup) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsAwsjson10_deserializeOpCreateRuleGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsAwsjson10_deserializeOpErrorCreateRuleGroup(response, &metadata)
+ }
+ output := &CreateRuleGroupOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsAwsjson10_deserializeOpDocumentCreateRuleGroupOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ return out, metadata, err
+}
+
+func awsAwsjson10_deserializeOpErrorCreateRuleGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ bodyInfo, err := getProtocolErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok {
+ errorCode = restjson.SanitizeErrorCode(typ)
+ }
+ if len(bodyInfo.Message) != 0 {
+ errorMessage = bodyInfo.Message
+ }
+ switch {
+ case strings.EqualFold("InsufficientCapacityException", errorCode):
+ return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
+
+ case strings.EqualFold("InternalServerError", errorCode):
+ return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration struct {
+}
+
+func (*awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsAwsjson10_deserializeOpErrorCreateTLSInspectionConfiguration(response, &metadata)
+ }
+ output := &CreateTLSInspectionConfigurationOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsAwsjson10_deserializeOpDocumentCreateTLSInspectionConfigurationOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ return out, metadata, err
+}
+
+func awsAwsjson10_deserializeOpErrorCreateTLSInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ bodyInfo, err := getProtocolErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok {
+ errorCode = restjson.SanitizeErrorCode(typ)
+ }
+ if len(bodyInfo.Message) != 0 {
+ errorMessage = bodyInfo.Message
+ }
+ switch {
+ case strings.EqualFold("InsufficientCapacityException", errorCode):
+ return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
+
+ case strings.EqualFold("InternalServerError", errorCode):
+ return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsAwsjson10_deserializeOpCreateVpcEndpointAssociation struct {
+}
+
+func (*awsAwsjson10_deserializeOpCreateVpcEndpointAssociation) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsAwsjson10_deserializeOpCreateVpcEndpointAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsAwsjson10_deserializeOpErrorCreateVpcEndpointAssociation(response, &metadata)
+ }
+ output := &CreateVpcEndpointAssociationOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsAwsjson10_deserializeOpDocumentCreateVpcEndpointAssociationOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ return out, metadata, err
+}
+
+func awsAwsjson10_deserializeOpErrorCreateVpcEndpointAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ bodyInfo, err := getProtocolErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok {
+ errorCode = restjson.SanitizeErrorCode(typ)
+ }
+ if len(bodyInfo.Message) != 0 {
+ errorMessage = bodyInfo.Message
+ }
+ switch {
+ case strings.EqualFold("InsufficientCapacityException", errorCode):
+ return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
+
+ case strings.EqualFold("InternalServerError", errorCode):
+ return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+
+ case strings.EqualFold("InvalidOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsAwsjson10_deserializeOpDeleteFirewall struct {
+}
+
+func (*awsAwsjson10_deserializeOpDeleteFirewall) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsAwsjson10_deserializeOpDeleteFirewall) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsAwsjson10_deserializeOpErrorDeleteFirewall(response, &metadata)
+ }
+ output := &DeleteFirewallOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsAwsjson10_deserializeOpDocumentDeleteFirewallOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ return out, metadata, err
+}
+
+func awsAwsjson10_deserializeOpErrorDeleteFirewall(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ bodyInfo, err := getProtocolErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if typ, ok := resolveProtocolErrorType(headerCode, bodyInfo); ok {
+ errorCode = restjson.SanitizeErrorCode(typ)
+ }
+ if len(bodyInfo.Message) != 0 {
+ errorMessage = bodyInfo.Message
+ }
+ switch {
+ case strings.EqualFold("InternalServerError", errorCode):
+ return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+
+ case strings.EqualFold("InvalidOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
+
+ case strings.EqualFold("InvalidRequestException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("UnsupportedOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorUnsupportedOperationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsAwsjson10_deserializeOpDeleteFirewallPolicy struct {
}
-func (*awsAwsjson10_deserializeOpCreateFirewallPolicy) ID() string {
+func (*awsAwsjson10_deserializeOpDeleteFirewallPolicy) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpCreateFirewallPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDeleteFirewallPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -435,9 +1308,9 @@ func (m *awsAwsjson10_deserializeOpCreateFirewallPolicy) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorCreateFirewallPolicy(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDeleteFirewallPolicy(response, &metadata)
}
- output := &CreateFirewallPolicyOutput{}
+ output := &DeleteFirewallPolicyOutput{}
out.Result = output
var buff [1024]byte
@@ -457,7 +1330,7 @@ func (m *awsAwsjson10_deserializeOpCreateFirewallPolicy) HandleDeserialize(ctx c
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentCreateFirewallPolicyOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDeleteFirewallPolicyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -471,7 +1344,7 @@ func (m *awsAwsjson10_deserializeOpCreateFirewallPolicy) HandleDeserialize(ctx c
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorCreateFirewallPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDeleteFirewallPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -508,21 +1381,24 @@ func awsAwsjson10_deserializeOpErrorCreateFirewallPolicy(response *smithyhttp.Re
errorMessage = bodyInfo.Message
}
switch {
- case strings.EqualFold("InsufficientCapacityException", errorCode):
- return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
-
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+ case strings.EqualFold("InvalidOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
+
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+ case strings.EqualFold("UnsupportedOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorUnsupportedOperationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -533,14 +1409,14 @@ func awsAwsjson10_deserializeOpErrorCreateFirewallPolicy(response *smithyhttp.Re
}
}
-type awsAwsjson10_deserializeOpCreateRuleGroup struct {
+type awsAwsjson10_deserializeOpDeleteNetworkFirewallTransitGatewayAttachment struct {
}
-func (*awsAwsjson10_deserializeOpCreateRuleGroup) ID() string {
+func (*awsAwsjson10_deserializeOpDeleteNetworkFirewallTransitGatewayAttachment) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpCreateRuleGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDeleteNetworkFirewallTransitGatewayAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -558,9 +1434,9 @@ func (m *awsAwsjson10_deserializeOpCreateRuleGroup) HandleDeserialize(ctx contex
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorCreateRuleGroup(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDeleteNetworkFirewallTransitGatewayAttachment(response, &metadata)
}
- output := &CreateRuleGroupOutput{}
+ output := &DeleteNetworkFirewallTransitGatewayAttachmentOutput{}
out.Result = output
var buff [1024]byte
@@ -580,7 +1456,7 @@ func (m *awsAwsjson10_deserializeOpCreateRuleGroup) HandleDeserialize(ctx contex
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentCreateRuleGroupOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDeleteNetworkFirewallTransitGatewayAttachmentOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -594,7 +1470,7 @@ func (m *awsAwsjson10_deserializeOpCreateRuleGroup) HandleDeserialize(ctx contex
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorCreateRuleGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDeleteNetworkFirewallTransitGatewayAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -631,17 +1507,14 @@ func awsAwsjson10_deserializeOpErrorCreateRuleGroup(response *smithyhttp.Respons
errorMessage = bodyInfo.Message
}
switch {
- case strings.EqualFold("InsufficientCapacityException", errorCode):
- return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
-
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -656,14 +1529,14 @@ func awsAwsjson10_deserializeOpErrorCreateRuleGroup(response *smithyhttp.Respons
}
}
-type awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration struct {
+type awsAwsjson10_deserializeOpDeleteResourcePolicy struct {
}
-func (*awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration) ID() string {
+func (*awsAwsjson10_deserializeOpDeleteResourcePolicy) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -681,9 +1554,9 @@ func (m *awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration) HandleDeser
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorCreateTLSInspectionConfiguration(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDeleteResourcePolicy(response, &metadata)
}
- output := &CreateTLSInspectionConfigurationOutput{}
+ output := &DeleteResourcePolicyOutput{}
out.Result = output
var buff [1024]byte
@@ -703,7 +1576,7 @@ func (m *awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration) HandleDeser
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentCreateTLSInspectionConfigurationOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDeleteResourcePolicyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -717,7 +1590,7 @@ func (m *awsAwsjson10_deserializeOpCreateTLSInspectionConfiguration) HandleDeser
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorCreateTLSInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -754,17 +1627,17 @@ func awsAwsjson10_deserializeOpErrorCreateTLSInspectionConfiguration(response *s
errorMessage = bodyInfo.Message
}
switch {
- case strings.EqualFold("InsufficientCapacityException", errorCode):
- return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
-
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("InvalidResourcePolicyException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidResourcePolicyException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -779,14 +1652,14 @@ func awsAwsjson10_deserializeOpErrorCreateTLSInspectionConfiguration(response *s
}
}
-type awsAwsjson10_deserializeOpCreateVpcEndpointAssociation struct {
+type awsAwsjson10_deserializeOpDeleteRuleGroup struct {
}
-func (*awsAwsjson10_deserializeOpCreateVpcEndpointAssociation) ID() string {
+func (*awsAwsjson10_deserializeOpDeleteRuleGroup) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpCreateVpcEndpointAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDeleteRuleGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -804,9 +1677,9 @@ func (m *awsAwsjson10_deserializeOpCreateVpcEndpointAssociation) HandleDeseriali
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorCreateVpcEndpointAssociation(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDeleteRuleGroup(response, &metadata)
}
- output := &CreateVpcEndpointAssociationOutput{}
+ output := &DeleteRuleGroupOutput{}
out.Result = output
var buff [1024]byte
@@ -826,7 +1699,7 @@ func (m *awsAwsjson10_deserializeOpCreateVpcEndpointAssociation) HandleDeseriali
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentCreateVpcEndpointAssociationOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDeleteRuleGroupOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -840,7 +1713,7 @@ func (m *awsAwsjson10_deserializeOpCreateVpcEndpointAssociation) HandleDeseriali
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorCreateVpcEndpointAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDeleteRuleGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -877,9 +1750,6 @@ func awsAwsjson10_deserializeOpErrorCreateVpcEndpointAssociation(response *smith
errorMessage = bodyInfo.Message
}
switch {
- case strings.EqualFold("InsufficientCapacityException", errorCode):
- return awsAwsjson10_deserializeErrorInsufficientCapacityException(response, errorBody)
-
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
@@ -889,15 +1759,15 @@ func awsAwsjson10_deserializeOpErrorCreateVpcEndpointAssociation(response *smith
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody)
-
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
+ case strings.EqualFold("UnsupportedOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorUnsupportedOperationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -908,14 +1778,14 @@ func awsAwsjson10_deserializeOpErrorCreateVpcEndpointAssociation(response *smith
}
}
-type awsAwsjson10_deserializeOpDeleteFirewall struct {
+type awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration struct {
}
-func (*awsAwsjson10_deserializeOpDeleteFirewall) ID() string {
+func (*awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDeleteFirewall) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -933,9 +1803,9 @@ func (m *awsAwsjson10_deserializeOpDeleteFirewall) HandleDeserialize(ctx context
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDeleteFirewall(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDeleteTLSInspectionConfiguration(response, &metadata)
}
- output := &DeleteFirewallOutput{}
+ output := &DeleteTLSInspectionConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -955,7 +1825,7 @@ func (m *awsAwsjson10_deserializeOpDeleteFirewall) HandleDeserialize(ctx context
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDeleteFirewallOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDeleteTLSInspectionConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -969,7 +1839,7 @@ func (m *awsAwsjson10_deserializeOpDeleteFirewall) HandleDeserialize(ctx context
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDeleteFirewall(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDeleteTLSInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1021,9 +1891,6 @@ func awsAwsjson10_deserializeOpErrorDeleteFirewall(response *smithyhttp.Response
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("UnsupportedOperationException", errorCode):
- return awsAwsjson10_deserializeErrorUnsupportedOperationException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -1034,14 +1901,14 @@ func awsAwsjson10_deserializeOpErrorDeleteFirewall(response *smithyhttp.Response
}
}
-type awsAwsjson10_deserializeOpDeleteFirewallPolicy struct {
+type awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation struct {
}
-func (*awsAwsjson10_deserializeOpDeleteFirewallPolicy) ID() string {
+func (*awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDeleteFirewallPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1059,9 +1926,9 @@ func (m *awsAwsjson10_deserializeOpDeleteFirewallPolicy) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDeleteFirewallPolicy(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDeleteVpcEndpointAssociation(response, &metadata)
}
- output := &DeleteFirewallPolicyOutput{}
+ output := &DeleteVpcEndpointAssociationOutput{}
out.Result = output
var buff [1024]byte
@@ -1081,7 +1948,7 @@ func (m *awsAwsjson10_deserializeOpDeleteFirewallPolicy) HandleDeserialize(ctx c
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDeleteFirewallPolicyOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDeleteVpcEndpointAssociationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1095,7 +1962,7 @@ func (m *awsAwsjson10_deserializeOpDeleteFirewallPolicy) HandleDeserialize(ctx c
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDeleteFirewallPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDeleteVpcEndpointAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1147,9 +2014,6 @@ func awsAwsjson10_deserializeOpErrorDeleteFirewallPolicy(response *smithyhttp.Re
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("UnsupportedOperationException", errorCode):
- return awsAwsjson10_deserializeErrorUnsupportedOperationException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -1160,14 +2024,14 @@ func awsAwsjson10_deserializeOpErrorDeleteFirewallPolicy(response *smithyhttp.Re
}
}
-type awsAwsjson10_deserializeOpDeleteResourcePolicy struct {
+type awsAwsjson10_deserializeOpDescribeFirewall struct {
}
-func (*awsAwsjson10_deserializeOpDeleteResourcePolicy) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeFirewall) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeFirewall) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1185,9 +2049,9 @@ func (m *awsAwsjson10_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDeleteResourcePolicy(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeFirewall(response, &metadata)
}
- output := &DeleteResourcePolicyOutput{}
+ output := &DescribeFirewallOutput{}
out.Result = output
var buff [1024]byte
@@ -1207,7 +2071,7 @@ func (m *awsAwsjson10_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx c
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDeleteResourcePolicyOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeFirewallOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1221,7 +2085,7 @@ func (m *awsAwsjson10_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx c
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeFirewall(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1264,9 +2128,6 @@ func awsAwsjson10_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Re
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("InvalidResourcePolicyException", errorCode):
- return awsAwsjson10_deserializeErrorInvalidResourcePolicyException(response, errorBody)
-
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -1283,14 +2144,14 @@ func awsAwsjson10_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Re
}
}
-type awsAwsjson10_deserializeOpDeleteRuleGroup struct {
+type awsAwsjson10_deserializeOpDescribeFirewallMetadata struct {
}
-func (*awsAwsjson10_deserializeOpDeleteRuleGroup) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeFirewallMetadata) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDeleteRuleGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeFirewallMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1308,9 +2169,9 @@ func (m *awsAwsjson10_deserializeOpDeleteRuleGroup) HandleDeserialize(ctx contex
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDeleteRuleGroup(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeFirewallMetadata(response, &metadata)
}
- output := &DeleteRuleGroupOutput{}
+ output := &DescribeFirewallMetadataOutput{}
out.Result = output
var buff [1024]byte
@@ -1330,7 +2191,7 @@ func (m *awsAwsjson10_deserializeOpDeleteRuleGroup) HandleDeserialize(ctx contex
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDeleteRuleGroupOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeFirewallMetadataOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1344,7 +2205,7 @@ func (m *awsAwsjson10_deserializeOpDeleteRuleGroup) HandleDeserialize(ctx contex
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDeleteRuleGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeFirewallMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1384,9 +2245,6 @@ func awsAwsjson10_deserializeOpErrorDeleteRuleGroup(response *smithyhttp.Respons
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
- case strings.EqualFold("InvalidOperationException", errorCode):
- return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
-
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
@@ -1396,9 +2254,6 @@ func awsAwsjson10_deserializeOpErrorDeleteRuleGroup(response *smithyhttp.Respons
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("UnsupportedOperationException", errorCode):
- return awsAwsjson10_deserializeErrorUnsupportedOperationException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -1409,14 +2264,14 @@ func awsAwsjson10_deserializeOpErrorDeleteRuleGroup(response *smithyhttp.Respons
}
}
-type awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration struct {
+type awsAwsjson10_deserializeOpDescribeFirewallPolicy struct {
}
-func (*awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeFirewallPolicy) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeFirewallPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1434,9 +2289,9 @@ func (m *awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration) HandleDeser
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDeleteTLSInspectionConfiguration(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeFirewallPolicy(response, &metadata)
}
- output := &DeleteTLSInspectionConfigurationOutput{}
+ output := &DescribeFirewallPolicyOutput{}
out.Result = output
var buff [1024]byte
@@ -1456,7 +2311,7 @@ func (m *awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration) HandleDeser
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDeleteTLSInspectionConfigurationOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeFirewallPolicyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1470,7 +2325,7 @@ func (m *awsAwsjson10_deserializeOpDeleteTLSInspectionConfiguration) HandleDeser
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDeleteTLSInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeFirewallPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1510,9 +2365,6 @@ func awsAwsjson10_deserializeOpErrorDeleteTLSInspectionConfiguration(response *s
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
- case strings.EqualFold("InvalidOperationException", errorCode):
- return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
-
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
@@ -1532,14 +2384,14 @@ func awsAwsjson10_deserializeOpErrorDeleteTLSInspectionConfiguration(response *s
}
}
-type awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation struct {
+type awsAwsjson10_deserializeOpDescribeFlowOperation struct {
}
-func (*awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeFlowOperation) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeFlowOperation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1557,9 +2409,9 @@ func (m *awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation) HandleDeseriali
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDeleteVpcEndpointAssociation(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeFlowOperation(response, &metadata)
}
- output := &DeleteVpcEndpointAssociationOutput{}
+ output := &DescribeFlowOperationOutput{}
out.Result = output
var buff [1024]byte
@@ -1579,7 +2431,7 @@ func (m *awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation) HandleDeseriali
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDeleteVpcEndpointAssociationOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeFlowOperationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1593,7 +2445,7 @@ func (m *awsAwsjson10_deserializeOpDeleteVpcEndpointAssociation) HandleDeseriali
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDeleteVpcEndpointAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeFlowOperation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1633,9 +2485,6 @@ func awsAwsjson10_deserializeOpErrorDeleteVpcEndpointAssociation(response *smith
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
- case strings.EqualFold("InvalidOperationException", errorCode):
- return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
-
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
@@ -1655,14 +2504,14 @@ func awsAwsjson10_deserializeOpErrorDeleteVpcEndpointAssociation(response *smith
}
}
-type awsAwsjson10_deserializeOpDescribeFirewall struct {
+type awsAwsjson10_deserializeOpDescribeLoggingConfiguration struct {
}
-func (*awsAwsjson10_deserializeOpDescribeFirewall) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeLoggingConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeFirewall) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeLoggingConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1680,9 +2529,9 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewall) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeFirewall(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeLoggingConfiguration(response, &metadata)
}
- output := &DescribeFirewallOutput{}
+ output := &DescribeLoggingConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -1702,7 +2551,7 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewall) HandleDeserialize(ctx conte
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeFirewallOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeLoggingConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1716,7 +2565,7 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewall) HandleDeserialize(ctx conte
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeFirewall(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeLoggingConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1775,14 +2624,14 @@ func awsAwsjson10_deserializeOpErrorDescribeFirewall(response *smithyhttp.Respon
}
}
-type awsAwsjson10_deserializeOpDescribeFirewallMetadata struct {
+type awsAwsjson10_deserializeOpDescribeResourcePolicy struct {
}
-func (*awsAwsjson10_deserializeOpDescribeFirewallMetadata) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeResourcePolicy) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeFirewallMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1800,9 +2649,9 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewallMetadata) HandleDeserialize(c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeFirewallMetadata(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeResourcePolicy(response, &metadata)
}
- output := &DescribeFirewallMetadataOutput{}
+ output := &DescribeResourcePolicyOutput{}
out.Result = output
var buff [1024]byte
@@ -1822,7 +2671,7 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewallMetadata) HandleDeserialize(c
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeFirewallMetadataOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeResourcePolicyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1836,7 +2685,7 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewallMetadata) HandleDeserialize(c
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeFirewallMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -1895,14 +2744,14 @@ func awsAwsjson10_deserializeOpErrorDescribeFirewallMetadata(response *smithyhtt
}
}
-type awsAwsjson10_deserializeOpDescribeFirewallPolicy struct {
+type awsAwsjson10_deserializeOpDescribeRuleGroup struct {
}
-func (*awsAwsjson10_deserializeOpDescribeFirewallPolicy) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeRuleGroup) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeFirewallPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeRuleGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1920,9 +2769,9 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewallPolicy) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeFirewallPolicy(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeRuleGroup(response, &metadata)
}
- output := &DescribeFirewallPolicyOutput{}
+ output := &DescribeRuleGroupOutput{}
out.Result = output
var buff [1024]byte
@@ -1942,7 +2791,7 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewallPolicy) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeFirewallPolicyOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeRuleGroupOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1956,7 +2805,7 @@ func (m *awsAwsjson10_deserializeOpDescribeFirewallPolicy) HandleDeserialize(ctx
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeFirewallPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeRuleGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2015,14 +2864,14 @@ func awsAwsjson10_deserializeOpErrorDescribeFirewallPolicy(response *smithyhttp.
}
}
-type awsAwsjson10_deserializeOpDescribeFlowOperation struct {
+type awsAwsjson10_deserializeOpDescribeRuleGroupMetadata struct {
}
-func (*awsAwsjson10_deserializeOpDescribeFlowOperation) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeRuleGroupMetadata) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeFlowOperation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeRuleGroupMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2040,9 +2889,9 @@ func (m *awsAwsjson10_deserializeOpDescribeFlowOperation) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeFlowOperation(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeRuleGroupMetadata(response, &metadata)
}
- output := &DescribeFlowOperationOutput{}
+ output := &DescribeRuleGroupMetadataOutput{}
out.Result = output
var buff [1024]byte
@@ -2062,7 +2911,7 @@ func (m *awsAwsjson10_deserializeOpDescribeFlowOperation) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeFlowOperationOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeRuleGroupMetadataOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2076,7 +2925,7 @@ func (m *awsAwsjson10_deserializeOpDescribeFlowOperation) HandleDeserialize(ctx
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeFlowOperation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeRuleGroupMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2135,14 +2984,14 @@ func awsAwsjson10_deserializeOpErrorDescribeFlowOperation(response *smithyhttp.R
}
}
-type awsAwsjson10_deserializeOpDescribeLoggingConfiguration struct {
+type awsAwsjson10_deserializeOpDescribeRuleGroupSummary struct {
}
-func (*awsAwsjson10_deserializeOpDescribeLoggingConfiguration) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeRuleGroupSummary) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeLoggingConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeRuleGroupSummary) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2160,9 +3009,9 @@ func (m *awsAwsjson10_deserializeOpDescribeLoggingConfiguration) HandleDeseriali
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeLoggingConfiguration(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeRuleGroupSummary(response, &metadata)
}
- output := &DescribeLoggingConfigurationOutput{}
+ output := &DescribeRuleGroupSummaryOutput{}
out.Result = output
var buff [1024]byte
@@ -2182,7 +3031,7 @@ func (m *awsAwsjson10_deserializeOpDescribeLoggingConfiguration) HandleDeseriali
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeLoggingConfigurationOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeRuleGroupSummaryOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2196,7 +3045,7 @@ func (m *awsAwsjson10_deserializeOpDescribeLoggingConfiguration) HandleDeseriali
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeLoggingConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeRuleGroupSummary(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2255,14 +3104,14 @@ func awsAwsjson10_deserializeOpErrorDescribeLoggingConfiguration(response *smith
}
}
-type awsAwsjson10_deserializeOpDescribeResourcePolicy struct {
+type awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration struct {
}
-func (*awsAwsjson10_deserializeOpDescribeResourcePolicy) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2280,9 +3129,9 @@ func (m *awsAwsjson10_deserializeOpDescribeResourcePolicy) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeResourcePolicy(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeTLSInspectionConfiguration(response, &metadata)
}
- output := &DescribeResourcePolicyOutput{}
+ output := &DescribeTLSInspectionConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -2302,7 +3151,7 @@ func (m *awsAwsjson10_deserializeOpDescribeResourcePolicy) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeResourcePolicyOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeTLSInspectionConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2316,7 +3165,7 @@ func (m *awsAwsjson10_deserializeOpDescribeResourcePolicy) HandleDeserialize(ctx
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeTLSInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2375,14 +3224,14 @@ func awsAwsjson10_deserializeOpErrorDescribeResourcePolicy(response *smithyhttp.
}
}
-type awsAwsjson10_deserializeOpDescribeRuleGroup struct {
+type awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation struct {
}
-func (*awsAwsjson10_deserializeOpDescribeRuleGroup) ID() string {
+func (*awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeRuleGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2400,9 +3249,9 @@ func (m *awsAwsjson10_deserializeOpDescribeRuleGroup) HandleDeserialize(ctx cont
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeRuleGroup(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDescribeVpcEndpointAssociation(response, &metadata)
}
- output := &DescribeRuleGroupOutput{}
+ output := &DescribeVpcEndpointAssociationOutput{}
out.Result = output
var buff [1024]byte
@@ -2422,7 +3271,7 @@ func (m *awsAwsjson10_deserializeOpDescribeRuleGroup) HandleDeserialize(ctx cont
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeRuleGroupOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDescribeVpcEndpointAssociationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2436,7 +3285,7 @@ func (m *awsAwsjson10_deserializeOpDescribeRuleGroup) HandleDeserialize(ctx cont
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeRuleGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDescribeVpcEndpointAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2495,14 +3344,14 @@ func awsAwsjson10_deserializeOpErrorDescribeRuleGroup(response *smithyhttp.Respo
}
}
-type awsAwsjson10_deserializeOpDescribeRuleGroupMetadata struct {
+type awsAwsjson10_deserializeOpDisassociateAvailabilityZones struct {
}
-func (*awsAwsjson10_deserializeOpDescribeRuleGroupMetadata) ID() string {
+func (*awsAwsjson10_deserializeOpDisassociateAvailabilityZones) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeRuleGroupMetadata) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDisassociateAvailabilityZones) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2520,9 +3369,9 @@ func (m *awsAwsjson10_deserializeOpDescribeRuleGroupMetadata) HandleDeserialize(
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeRuleGroupMetadata(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDisassociateAvailabilityZones(response, &metadata)
}
- output := &DescribeRuleGroupMetadataOutput{}
+ output := &DisassociateAvailabilityZonesOutput{}
out.Result = output
var buff [1024]byte
@@ -2542,7 +3391,7 @@ func (m *awsAwsjson10_deserializeOpDescribeRuleGroupMetadata) HandleDeserialize(
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeRuleGroupMetadataOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDisassociateAvailabilityZonesOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2556,7 +3405,7 @@ func (m *awsAwsjson10_deserializeOpDescribeRuleGroupMetadata) HandleDeserialize(
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeRuleGroupMetadata(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDisassociateAvailabilityZones(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2596,9 +3445,15 @@ func awsAwsjson10_deserializeOpErrorDescribeRuleGroupMetadata(response *smithyht
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+ case strings.EqualFold("InvalidOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
+
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+ case strings.EqualFold("InvalidTokenException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidTokenException(response, errorBody)
+
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -2615,14 +3470,14 @@ func awsAwsjson10_deserializeOpErrorDescribeRuleGroupMetadata(response *smithyht
}
}
-type awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration struct {
+type awsAwsjson10_deserializeOpDisassociateSubnets struct {
}
-func (*awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration) ID() string {
+func (*awsAwsjson10_deserializeOpDisassociateSubnets) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpDisassociateSubnets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2640,9 +3495,9 @@ func (m *awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration) HandleDes
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeTLSInspectionConfiguration(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorDisassociateSubnets(response, &metadata)
}
- output := &DescribeTLSInspectionConfigurationOutput{}
+ output := &DisassociateSubnetsOutput{}
out.Result = output
var buff [1024]byte
@@ -2662,7 +3517,7 @@ func (m *awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration) HandleDes
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeTLSInspectionConfigurationOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentDisassociateSubnetsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2676,7 +3531,7 @@ func (m *awsAwsjson10_deserializeOpDescribeTLSInspectionConfiguration) HandleDes
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeTLSInspectionConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorDisassociateSubnets(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2716,9 +3571,15 @@ func awsAwsjson10_deserializeOpErrorDescribeTLSInspectionConfiguration(response
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
+ case strings.EqualFold("InvalidOperationException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
+
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+ case strings.EqualFold("InvalidTokenException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidTokenException(response, errorBody)
+
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -2735,14 +3596,14 @@ func awsAwsjson10_deserializeOpErrorDescribeTLSInspectionConfiguration(response
}
}
-type awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation struct {
+type awsAwsjson10_deserializeOpGetAnalysisReportResults struct {
}
-func (*awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation) ID() string {
+func (*awsAwsjson10_deserializeOpGetAnalysisReportResults) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpGetAnalysisReportResults) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2760,9 +3621,9 @@ func (m *awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation) HandleDeseria
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDescribeVpcEndpointAssociation(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorGetAnalysisReportResults(response, &metadata)
}
- output := &DescribeVpcEndpointAssociationOutput{}
+ output := &GetAnalysisReportResultsOutput{}
out.Result = output
var buff [1024]byte
@@ -2782,7 +3643,7 @@ func (m *awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation) HandleDeseria
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDescribeVpcEndpointAssociationOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentGetAnalysisReportResultsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2796,7 +3657,7 @@ func (m *awsAwsjson10_deserializeOpDescribeVpcEndpointAssociation) HandleDeseria
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDescribeVpcEndpointAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorGetAnalysisReportResults(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2855,14 +3716,14 @@ func awsAwsjson10_deserializeOpErrorDescribeVpcEndpointAssociation(response *smi
}
}
-type awsAwsjson10_deserializeOpDisassociateSubnets struct {
+type awsAwsjson10_deserializeOpListAnalysisReports struct {
}
-func (*awsAwsjson10_deserializeOpDisassociateSubnets) ID() string {
+func (*awsAwsjson10_deserializeOpListAnalysisReports) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpDisassociateSubnets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListAnalysisReports) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2880,9 +3741,9 @@ func (m *awsAwsjson10_deserializeOpDisassociateSubnets) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorDisassociateSubnets(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListAnalysisReports(response, &metadata)
}
- output := &DisassociateSubnetsOutput{}
+ output := &ListAnalysisReportsOutput{}
out.Result = output
var buff [1024]byte
@@ -2902,7 +3763,7 @@ func (m *awsAwsjson10_deserializeOpDisassociateSubnets) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentDisassociateSubnetsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListAnalysisReportsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2916,7 +3777,7 @@ func (m *awsAwsjson10_deserializeOpDisassociateSubnets) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorDisassociateSubnets(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListAnalysisReports(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2956,15 +3817,9 @@ func awsAwsjson10_deserializeOpErrorDisassociateSubnets(response *smithyhttp.Res
case strings.EqualFold("InternalServerError", errorCode):
return awsAwsjson10_deserializeErrorInternalServerError(response, errorBody)
- case strings.EqualFold("InvalidOperationException", errorCode):
- return awsAwsjson10_deserializeErrorInvalidOperationException(response, errorBody)
-
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("InvalidTokenException", errorCode):
- return awsAwsjson10_deserializeErrorInvalidTokenException(response, errorBody)
-
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -2981,14 +3836,14 @@ func awsAwsjson10_deserializeOpErrorDisassociateSubnets(response *smithyhttp.Res
}
}
-type awsAwsjson10_deserializeOpGetAnalysisReportResults struct {
+type awsAwsjson10_deserializeOpListFirewallPolicies struct {
}
-func (*awsAwsjson10_deserializeOpGetAnalysisReportResults) ID() string {
+func (*awsAwsjson10_deserializeOpListFirewallPolicies) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpGetAnalysisReportResults) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListFirewallPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3006,9 +3861,9 @@ func (m *awsAwsjson10_deserializeOpGetAnalysisReportResults) HandleDeserialize(c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorGetAnalysisReportResults(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListFirewallPolicies(response, &metadata)
}
- output := &GetAnalysisReportResultsOutput{}
+ output := &ListFirewallPoliciesOutput{}
out.Result = output
var buff [1024]byte
@@ -3028,7 +3883,7 @@ func (m *awsAwsjson10_deserializeOpGetAnalysisReportResults) HandleDeserialize(c
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentGetAnalysisReportResultsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListFirewallPoliciesOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3042,7 +3897,7 @@ func (m *awsAwsjson10_deserializeOpGetAnalysisReportResults) HandleDeserialize(c
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorGetAnalysisReportResults(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListFirewallPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3085,9 +3940,6 @@ func awsAwsjson10_deserializeOpErrorGetAnalysisReportResults(response *smithyhtt
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -3101,14 +3953,14 @@ func awsAwsjson10_deserializeOpErrorGetAnalysisReportResults(response *smithyhtt
}
}
-type awsAwsjson10_deserializeOpListAnalysisReports struct {
+type awsAwsjson10_deserializeOpListFirewalls struct {
}
-func (*awsAwsjson10_deserializeOpListAnalysisReports) ID() string {
+func (*awsAwsjson10_deserializeOpListFirewalls) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListAnalysisReports) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListFirewalls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3126,9 +3978,9 @@ func (m *awsAwsjson10_deserializeOpListAnalysisReports) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListAnalysisReports(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListFirewalls(response, &metadata)
}
- output := &ListAnalysisReportsOutput{}
+ output := &ListFirewallsOutput{}
out.Result = output
var buff [1024]byte
@@ -3148,7 +4000,7 @@ func (m *awsAwsjson10_deserializeOpListAnalysisReports) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListAnalysisReportsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListFirewallsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3162,7 +4014,7 @@ func (m *awsAwsjson10_deserializeOpListAnalysisReports) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListAnalysisReports(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListFirewalls(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3205,9 +4057,6 @@ func awsAwsjson10_deserializeOpErrorListAnalysisReports(response *smithyhttp.Res
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -3221,14 +4070,14 @@ func awsAwsjson10_deserializeOpErrorListAnalysisReports(response *smithyhttp.Res
}
}
-type awsAwsjson10_deserializeOpListFirewallPolicies struct {
+type awsAwsjson10_deserializeOpListFlowOperationResults struct {
}
-func (*awsAwsjson10_deserializeOpListFirewallPolicies) ID() string {
+func (*awsAwsjson10_deserializeOpListFlowOperationResults) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListFirewallPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListFlowOperationResults) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3246,9 +4095,9 @@ func (m *awsAwsjson10_deserializeOpListFirewallPolicies) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListFirewallPolicies(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListFlowOperationResults(response, &metadata)
}
- output := &ListFirewallPoliciesOutput{}
+ output := &ListFlowOperationResultsOutput{}
out.Result = output
var buff [1024]byte
@@ -3268,7 +4117,7 @@ func (m *awsAwsjson10_deserializeOpListFirewallPolicies) HandleDeserialize(ctx c
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListFirewallPoliciesOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListFlowOperationResultsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3282,7 +4131,7 @@ func (m *awsAwsjson10_deserializeOpListFirewallPolicies) HandleDeserialize(ctx c
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListFirewallPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListFlowOperationResults(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3325,6 +4174,9 @@ func awsAwsjson10_deserializeOpErrorListFirewallPolicies(response *smithyhttp.Re
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -3338,14 +4190,14 @@ func awsAwsjson10_deserializeOpErrorListFirewallPolicies(response *smithyhttp.Re
}
}
-type awsAwsjson10_deserializeOpListFirewalls struct {
+type awsAwsjson10_deserializeOpListFlowOperations struct {
}
-func (*awsAwsjson10_deserializeOpListFirewalls) ID() string {
+func (*awsAwsjson10_deserializeOpListFlowOperations) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListFirewalls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListFlowOperations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3363,9 +4215,9 @@ func (m *awsAwsjson10_deserializeOpListFirewalls) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListFirewalls(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListFlowOperations(response, &metadata)
}
- output := &ListFirewallsOutput{}
+ output := &ListFlowOperationsOutput{}
out.Result = output
var buff [1024]byte
@@ -3385,7 +4237,7 @@ func (m *awsAwsjson10_deserializeOpListFirewalls) HandleDeserialize(ctx context.
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListFirewallsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListFlowOperationsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3399,7 +4251,7 @@ func (m *awsAwsjson10_deserializeOpListFirewalls) HandleDeserialize(ctx context.
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListFirewalls(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListFlowOperations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3442,6 +4294,9 @@ func awsAwsjson10_deserializeOpErrorListFirewalls(response *smithyhttp.Response,
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -3455,14 +4310,14 @@ func awsAwsjson10_deserializeOpErrorListFirewalls(response *smithyhttp.Response,
}
}
-type awsAwsjson10_deserializeOpListFlowOperationResults struct {
+type awsAwsjson10_deserializeOpListRuleGroups struct {
}
-func (*awsAwsjson10_deserializeOpListFlowOperationResults) ID() string {
+func (*awsAwsjson10_deserializeOpListRuleGroups) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListFlowOperationResults) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListRuleGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3480,9 +4335,9 @@ func (m *awsAwsjson10_deserializeOpListFlowOperationResults) HandleDeserialize(c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListFlowOperationResults(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListRuleGroups(response, &metadata)
}
- output := &ListFlowOperationResultsOutput{}
+ output := &ListRuleGroupsOutput{}
out.Result = output
var buff [1024]byte
@@ -3502,7 +4357,7 @@ func (m *awsAwsjson10_deserializeOpListFlowOperationResults) HandleDeserialize(c
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListFlowOperationResultsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListRuleGroupsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3516,7 +4371,7 @@ func (m *awsAwsjson10_deserializeOpListFlowOperationResults) HandleDeserialize(c
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListFlowOperationResults(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListRuleGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3559,9 +4414,6 @@ func awsAwsjson10_deserializeOpErrorListFlowOperationResults(response *smithyhtt
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -3575,14 +4427,14 @@ func awsAwsjson10_deserializeOpErrorListFlowOperationResults(response *smithyhtt
}
}
-type awsAwsjson10_deserializeOpListFlowOperations struct {
+type awsAwsjson10_deserializeOpListTagsForResource struct {
}
-func (*awsAwsjson10_deserializeOpListFlowOperations) ID() string {
+func (*awsAwsjson10_deserializeOpListTagsForResource) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListFlowOperations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3600,9 +4452,9 @@ func (m *awsAwsjson10_deserializeOpListFlowOperations) HandleDeserialize(ctx con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListFlowOperations(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListTagsForResource(response, &metadata)
}
- output := &ListFlowOperationsOutput{}
+ output := &ListTagsForResourceOutput{}
out.Result = output
var buff [1024]byte
@@ -3622,7 +4474,7 @@ func (m *awsAwsjson10_deserializeOpListFlowOperations) HandleDeserialize(ctx con
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListFlowOperationsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3636,7 +4488,7 @@ func (m *awsAwsjson10_deserializeOpListFlowOperations) HandleDeserialize(ctx con
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListFlowOperations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3695,14 +4547,14 @@ func awsAwsjson10_deserializeOpErrorListFlowOperations(response *smithyhttp.Resp
}
}
-type awsAwsjson10_deserializeOpListRuleGroups struct {
+type awsAwsjson10_deserializeOpListTLSInspectionConfigurations struct {
}
-func (*awsAwsjson10_deserializeOpListRuleGroups) ID() string {
+func (*awsAwsjson10_deserializeOpListTLSInspectionConfigurations) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListRuleGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListTLSInspectionConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3720,9 +4572,9 @@ func (m *awsAwsjson10_deserializeOpListRuleGroups) HandleDeserialize(ctx context
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListRuleGroups(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListTLSInspectionConfigurations(response, &metadata)
}
- output := &ListRuleGroupsOutput{}
+ output := &ListTLSInspectionConfigurationsOutput{}
out.Result = output
var buff [1024]byte
@@ -3742,7 +4594,7 @@ func (m *awsAwsjson10_deserializeOpListRuleGroups) HandleDeserialize(ctx context
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListRuleGroupsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListTLSInspectionConfigurationsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3756,7 +4608,7 @@ func (m *awsAwsjson10_deserializeOpListRuleGroups) HandleDeserialize(ctx context
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListRuleGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListTLSInspectionConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3812,14 +4664,14 @@ func awsAwsjson10_deserializeOpErrorListRuleGroups(response *smithyhttp.Response
}
}
-type awsAwsjson10_deserializeOpListTagsForResource struct {
+type awsAwsjson10_deserializeOpListVpcEndpointAssociations struct {
}
-func (*awsAwsjson10_deserializeOpListTagsForResource) ID() string {
+func (*awsAwsjson10_deserializeOpListVpcEndpointAssociations) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpListVpcEndpointAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3837,9 +4689,9 @@ func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListTagsForResource(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorListVpcEndpointAssociations(response, &metadata)
}
- output := &ListTagsForResourceOutput{}
+ output := &ListVpcEndpointAssociationsOutput{}
out.Result = output
var buff [1024]byte
@@ -3859,7 +4711,7 @@ func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentListVpcEndpointAssociationsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3873,7 +4725,7 @@ func (m *awsAwsjson10_deserializeOpListTagsForResource) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorListVpcEndpointAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3916,9 +4768,6 @@ func awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Res
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
-
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -3932,14 +4781,14 @@ func awsAwsjson10_deserializeOpErrorListTagsForResource(response *smithyhttp.Res
}
}
-type awsAwsjson10_deserializeOpListTLSInspectionConfigurations struct {
+type awsAwsjson10_deserializeOpPutResourcePolicy struct {
}
-func (*awsAwsjson10_deserializeOpListTLSInspectionConfigurations) ID() string {
+func (*awsAwsjson10_deserializeOpPutResourcePolicy) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListTLSInspectionConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpPutResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3957,9 +4806,9 @@ func (m *awsAwsjson10_deserializeOpListTLSInspectionConfigurations) HandleDeseri
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListTLSInspectionConfigurations(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorPutResourcePolicy(response, &metadata)
}
- output := &ListTLSInspectionConfigurationsOutput{}
+ output := &PutResourcePolicyOutput{}
out.Result = output
var buff [1024]byte
@@ -3979,7 +4828,7 @@ func (m *awsAwsjson10_deserializeOpListTLSInspectionConfigurations) HandleDeseri
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListTLSInspectionConfigurationsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentPutResourcePolicyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3993,7 +4842,7 @@ func (m *awsAwsjson10_deserializeOpListTLSInspectionConfigurations) HandleDeseri
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListTLSInspectionConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4036,6 +4885,12 @@ func awsAwsjson10_deserializeOpErrorListTLSInspectionConfigurations(response *sm
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+ case strings.EqualFold("InvalidResourcePolicyException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidResourcePolicyException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -4049,14 +4904,14 @@ func awsAwsjson10_deserializeOpErrorListTLSInspectionConfigurations(response *sm
}
}
-type awsAwsjson10_deserializeOpListVpcEndpointAssociations struct {
+type awsAwsjson10_deserializeOpRejectNetworkFirewallTransitGatewayAttachment struct {
}
-func (*awsAwsjson10_deserializeOpListVpcEndpointAssociations) ID() string {
+func (*awsAwsjson10_deserializeOpRejectNetworkFirewallTransitGatewayAttachment) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpListVpcEndpointAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpRejectNetworkFirewallTransitGatewayAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4074,9 +4929,9 @@ func (m *awsAwsjson10_deserializeOpListVpcEndpointAssociations) HandleDeserializ
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorListVpcEndpointAssociations(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorRejectNetworkFirewallTransitGatewayAttachment(response, &metadata)
}
- output := &ListVpcEndpointAssociationsOutput{}
+ output := &RejectNetworkFirewallTransitGatewayAttachmentOutput{}
out.Result = output
var buff [1024]byte
@@ -4096,7 +4951,7 @@ func (m *awsAwsjson10_deserializeOpListVpcEndpointAssociations) HandleDeserializ
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentListVpcEndpointAssociationsOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentRejectNetworkFirewallTransitGatewayAttachmentOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4110,7 +4965,7 @@ func (m *awsAwsjson10_deserializeOpListVpcEndpointAssociations) HandleDeserializ
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorListVpcEndpointAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorRejectNetworkFirewallTransitGatewayAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4153,6 +5008,9 @@ func awsAwsjson10_deserializeOpErrorListVpcEndpointAssociations(response *smithy
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -4166,14 +5024,14 @@ func awsAwsjson10_deserializeOpErrorListVpcEndpointAssociations(response *smithy
}
}
-type awsAwsjson10_deserializeOpPutResourcePolicy struct {
+type awsAwsjson10_deserializeOpStartAnalysisReport struct {
}
-func (*awsAwsjson10_deserializeOpPutResourcePolicy) ID() string {
+func (*awsAwsjson10_deserializeOpStartAnalysisReport) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpPutResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpStartAnalysisReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4191,9 +5049,9 @@ func (m *awsAwsjson10_deserializeOpPutResourcePolicy) HandleDeserialize(ctx cont
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorPutResourcePolicy(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorStartAnalysisReport(response, &metadata)
}
- output := &PutResourcePolicyOutput{}
+ output := &StartAnalysisReportOutput{}
out.Result = output
var buff [1024]byte
@@ -4213,7 +5071,7 @@ func (m *awsAwsjson10_deserializeOpPutResourcePolicy) HandleDeserialize(ctx cont
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentPutResourcePolicyOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentStartAnalysisReportOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4227,7 +5085,7 @@ func (m *awsAwsjson10_deserializeOpPutResourcePolicy) HandleDeserialize(ctx cont
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorStartAnalysisReport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4270,9 +5128,6 @@ func awsAwsjson10_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Respo
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
- case strings.EqualFold("InvalidResourcePolicyException", errorCode):
- return awsAwsjson10_deserializeErrorInvalidResourcePolicyException(response, errorBody)
-
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -4289,14 +5144,14 @@ func awsAwsjson10_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Respo
}
}
-type awsAwsjson10_deserializeOpStartAnalysisReport struct {
+type awsAwsjson10_deserializeOpStartFlowCapture struct {
}
-func (*awsAwsjson10_deserializeOpStartAnalysisReport) ID() string {
+func (*awsAwsjson10_deserializeOpStartFlowCapture) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpStartAnalysisReport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpStartFlowCapture) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4314,9 +5169,9 @@ func (m *awsAwsjson10_deserializeOpStartAnalysisReport) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorStartAnalysisReport(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorStartFlowCapture(response, &metadata)
}
- output := &StartAnalysisReportOutput{}
+ output := &StartFlowCaptureOutput{}
out.Result = output
var buff [1024]byte
@@ -4336,7 +5191,7 @@ func (m *awsAwsjson10_deserializeOpStartAnalysisReport) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentStartAnalysisReportOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentStartFlowCaptureOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4350,7 +5205,7 @@ func (m *awsAwsjson10_deserializeOpStartAnalysisReport) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorStartAnalysisReport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorStartFlowCapture(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4409,14 +5264,14 @@ func awsAwsjson10_deserializeOpErrorStartAnalysisReport(response *smithyhttp.Res
}
}
-type awsAwsjson10_deserializeOpStartFlowCapture struct {
+type awsAwsjson10_deserializeOpStartFlowFlush struct {
}
-func (*awsAwsjson10_deserializeOpStartFlowCapture) ID() string {
+func (*awsAwsjson10_deserializeOpStartFlowFlush) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpStartFlowCapture) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpStartFlowFlush) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4434,9 +5289,9 @@ func (m *awsAwsjson10_deserializeOpStartFlowCapture) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorStartFlowCapture(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorStartFlowFlush(response, &metadata)
}
- output := &StartFlowCaptureOutput{}
+ output := &StartFlowFlushOutput{}
out.Result = output
var buff [1024]byte
@@ -4456,7 +5311,7 @@ func (m *awsAwsjson10_deserializeOpStartFlowCapture) HandleDeserialize(ctx conte
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentStartFlowCaptureOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentStartFlowFlushOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4470,7 +5325,7 @@ func (m *awsAwsjson10_deserializeOpStartFlowCapture) HandleDeserialize(ctx conte
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorStartFlowCapture(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorStartFlowFlush(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4529,14 +5384,14 @@ func awsAwsjson10_deserializeOpErrorStartFlowCapture(response *smithyhttp.Respon
}
}
-type awsAwsjson10_deserializeOpStartFlowFlush struct {
+type awsAwsjson10_deserializeOpTagResource struct {
}
-func (*awsAwsjson10_deserializeOpStartFlowFlush) ID() string {
+func (*awsAwsjson10_deserializeOpTagResource) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpStartFlowFlush) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4554,9 +5409,9 @@ func (m *awsAwsjson10_deserializeOpStartFlowFlush) HandleDeserialize(ctx context
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorStartFlowFlush(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorTagResource(response, &metadata)
}
- output := &StartFlowFlushOutput{}
+ output := &TagResourceOutput{}
out.Result = output
var buff [1024]byte
@@ -4576,7 +5431,7 @@ func (m *awsAwsjson10_deserializeOpStartFlowFlush) HandleDeserialize(ctx context
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentStartFlowFlushOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentTagResourceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4590,7 +5445,7 @@ func (m *awsAwsjson10_deserializeOpStartFlowFlush) HandleDeserialize(ctx context
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorStartFlowFlush(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4649,14 +5504,14 @@ func awsAwsjson10_deserializeOpErrorStartFlowFlush(response *smithyhttp.Response
}
}
-type awsAwsjson10_deserializeOpTagResource struct {
+type awsAwsjson10_deserializeOpUntagResource struct {
}
-func (*awsAwsjson10_deserializeOpTagResource) ID() string {
+func (*awsAwsjson10_deserializeOpUntagResource) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4674,9 +5529,9 @@ func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorTagResource(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorUntagResource(response, &metadata)
}
- output := &TagResourceOutput{}
+ output := &UntagResourceOutput{}
out.Result = output
var buff [1024]byte
@@ -4696,7 +5551,7 @@ func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Co
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentTagResourceOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentUntagResourceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4710,7 +5565,7 @@ func (m *awsAwsjson10_deserializeOpTagResource) HandleDeserialize(ctx context.Co
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4769,14 +5624,14 @@ func awsAwsjson10_deserializeOpErrorTagResource(response *smithyhttp.Response, m
}
}
-type awsAwsjson10_deserializeOpUntagResource struct {
+type awsAwsjson10_deserializeOpUpdateAvailabilityZoneChangeProtection struct {
}
-func (*awsAwsjson10_deserializeOpUntagResource) ID() string {
+func (*awsAwsjson10_deserializeOpUpdateAvailabilityZoneChangeProtection) ID() string {
return "OperationDeserializer"
}
-func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsAwsjson10_deserializeOpUpdateAvailabilityZoneChangeProtection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4794,9 +5649,9 @@ func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsAwsjson10_deserializeOpErrorUntagResource(response, &metadata)
+ return out, metadata, awsAwsjson10_deserializeOpErrorUpdateAvailabilityZoneChangeProtection(response, &metadata)
}
- output := &UntagResourceOutput{}
+ output := &UpdateAvailabilityZoneChangeProtectionOutput{}
out.Result = output
var buff [1024]byte
@@ -4816,7 +5671,7 @@ func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context.
return out, metadata, err
}
- err = awsAwsjson10_deserializeOpDocumentUntagResourceOutput(&output, shape)
+ err = awsAwsjson10_deserializeOpDocumentUpdateAvailabilityZoneChangeProtectionOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4830,7 +5685,7 @@ func (m *awsAwsjson10_deserializeOpUntagResource) HandleDeserialize(ctx context.
return out, metadata, err
}
-func awsAwsjson10_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsAwsjson10_deserializeOpErrorUpdateAvailabilityZoneChangeProtection(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4873,9 +5728,15 @@ func awsAwsjson10_deserializeOpErrorUntagResource(response *smithyhttp.Response,
case strings.EqualFold("InvalidRequestException", errorCode):
return awsAwsjson10_deserializeErrorInvalidRequestException(response, errorBody)
+ case strings.EqualFold("InvalidTokenException", errorCode):
+ return awsAwsjson10_deserializeErrorInvalidTokenException(response, errorBody)
+
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ResourceOwnerCheckException", errorCode):
+ return awsAwsjson10_deserializeErrorResourceOwnerCheckException(response, errorBody)
+
case strings.EqualFold("ThrottlingException", errorCode):
return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody)
@@ -7084,6 +7945,80 @@ func awsAwsjson10_deserializeDocumentAttachment(v **types.Attachment, value inte
return nil
}
+func awsAwsjson10_deserializeDocumentAvailabilityZoneMapping(v **types.AvailabilityZoneMapping, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AvailabilityZoneMapping
+ if *v == nil {
+ sv = &types.AvailabilityZoneMapping{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AvailabilityZone":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AvailabilityZoneMappingString to be of type string, got %T instead", value)
+ }
+ sv.AvailabilityZone = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsAwsjson10_deserializeDocumentAvailabilityZoneMappings(v *[]types.AvailabilityZoneMapping, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.AvailabilityZoneMapping
+ if *v == nil {
+ cv = []types.AvailabilityZoneMapping{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.AvailabilityZoneMapping
+ destAddr := &col
+ if err := awsAwsjson10_deserializeDocumentAvailabilityZoneMapping(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsAwsjson10_deserializeDocumentAvailabilityZoneMetadata(v **types.AvailabilityZoneMetadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -7601,6 +8536,20 @@ func awsAwsjson10_deserializeDocumentFirewall(v **types.Firewall, value interfac
for key, value := range shape {
switch key {
+ case "AvailabilityZoneChangeProtection":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.AvailabilityZoneChangeProtection = jtv
+ }
+
+ case "AvailabilityZoneMappings":
+ if err := awsAwsjson10_deserializeDocumentAvailabilityZoneMappings(&sv.AvailabilityZoneMappings, value); err != nil {
+ return err
+ }
+
case "DeleteProtection":
if value != nil {
jtv, ok := value.(bool)
@@ -7706,6 +8655,24 @@ func awsAwsjson10_deserializeDocumentFirewall(v **types.Firewall, value interfac
return err
}
+ case "TransitGatewayId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayId to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayId = ptr.String(jtv)
+ }
+
+ case "TransitGatewayOwnerAccountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayOwnerAccountId = ptr.String(jtv)
+ }
+
case "VpcId":
if value != nil {
jtv, ok := value.(string)
@@ -7764,6 +8731,15 @@ func awsAwsjson10_deserializeDocumentFirewallMetadata(v **types.FirewallMetadata
sv.FirewallName = ptr.String(jtv)
}
+ case "TransitGatewayAttachmentId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentId to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentId = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
@@ -8161,6 +9137,11 @@ func awsAwsjson10_deserializeDocumentFirewallStatus(v **types.FirewallStatus, va
return err
}
+ case "TransitGatewayAttachmentSyncState":
+ if err := awsAwsjson10_deserializeDocumentTransitGatewayAttachmentSyncState(&sv.TransitGatewayAttachmentSyncState, value); err != nil {
+ return err
+ }
+
default:
_, _ = key, value
@@ -10303,6 +11284,11 @@ func awsAwsjson10_deserializeDocumentRuleGroupResponse(v **types.RuleGroupRespon
return err
}
+ case "SummaryConfiguration":
+ if err := awsAwsjson10_deserializeDocumentSummaryConfiguration(&sv.SummaryConfiguration, value); err != nil {
+ return err
+ }
+
case "Tags":
if err := awsAwsjson10_deserializeDocumentTagList(&sv.Tags, value); err != nil {
return err
@@ -10566,9 +11552,101 @@ func awsAwsjson10_deserializeDocumentRulesSourceList(v **types.RulesSourceList,
return err
}
- case "TargetTypes":
- if err := awsAwsjson10_deserializeDocumentTargetTypes(&sv.TargetTypes, value); err != nil {
- return err
+ case "TargetTypes":
+ if err := awsAwsjson10_deserializeDocumentTargetTypes(&sv.TargetTypes, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsAwsjson10_deserializeDocumentRuleSummaries(v *[]types.RuleSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.RuleSummary
+ if *v == nil {
+ cv = []types.RuleSummary{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.RuleSummary
+ destAddr := &col
+ if err := awsAwsjson10_deserializeDocumentRuleSummary(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsAwsjson10_deserializeDocumentRuleSummary(v **types.RuleSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.RuleSummary
+ if *v == nil {
+ sv = &types.RuleSummary{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Metadata":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CollectionMember_String to be of type string, got %T instead", value)
+ }
+ sv.Metadata = ptr.String(jtv)
+ }
+
+ case "Msg":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CollectionMember_String to be of type string, got %T instead", value)
+ }
+ sv.Msg = ptr.String(jtv)
+ }
+
+ case "SID":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected CollectionMember_String to be of type string, got %T instead", value)
+ }
+ sv.SID = ptr.String(jtv)
}
default:
@@ -11197,6 +12275,15 @@ func awsAwsjson10_deserializeDocumentStatefulRuleGroupReference(v **types.Statef
for key, value := range shape {
switch key {
+ case "DeepThreatInspection":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected DeepThreatInspection to be of type *bool, got %T instead", value)
+ }
+ sv.DeepThreatInspection = ptr.Bool(jtv)
+ }
+
case "Override":
if err := awsAwsjson10_deserializeDocumentStatefulRuleGroupOverride(&sv.Override, value); err != nil {
return err
@@ -11671,6 +12758,114 @@ func awsAwsjson10_deserializeDocumentSubnetMappings(v *[]types.SubnetMapping, va
return nil
}
+func awsAwsjson10_deserializeDocumentSummary(v **types.Summary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.Summary
+ if *v == nil {
+ sv = &types.Summary{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "RuleSummaries":
+ if err := awsAwsjson10_deserializeDocumentRuleSummaries(&sv.RuleSummaries, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsAwsjson10_deserializeDocumentSummaryConfiguration(v **types.SummaryConfiguration, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.SummaryConfiguration
+ if *v == nil {
+ sv = &types.SummaryConfiguration{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "RuleOptions":
+ if err := awsAwsjson10_deserializeDocumentSummaryRuleOptions(&sv.RuleOptions, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsAwsjson10_deserializeDocumentSummaryRuleOptions(v *[]types.SummaryRuleOption, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.SummaryRuleOption
+ if *v == nil {
+ cv = []types.SummaryRuleOption{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.SummaryRuleOption
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SummaryRuleOption to be of type string, got %T instead", value)
+ }
+ col = types.SummaryRuleOption(jtv)
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsAwsjson10_deserializeDocumentSupportedAvailabilityZones(v *map[string]types.AvailabilityZoneMetadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -12362,6 +13557,64 @@ func awsAwsjson10_deserializeDocumentTLSInspectionConfigurations(v *[]types.TLSI
return nil
}
+func awsAwsjson10_deserializeDocumentTransitGatewayAttachmentSyncState(v **types.TransitGatewayAttachmentSyncState, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.TransitGatewayAttachmentSyncState
+ if *v == nil {
+ sv = &types.TransitGatewayAttachmentSyncState{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AttachmentId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AttachmentId to be of type string, got %T instead", value)
+ }
+ sv.AttachmentId = ptr.String(jtv)
+ }
+
+ case "StatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentSyncStateMessage to be of type string, got %T instead", value)
+ }
+ sv.StatusMessage = ptr.String(jtv)
+ }
+
+ case "TransitGatewayAttachmentStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentStatus to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentStatus = types.TransitGatewayAttachmentStatus(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson10_deserializeDocumentUniqueSources(v **types.UniqueSources, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -12687,6 +13940,118 @@ func awsAwsjson10_deserializeDocumentVpcEndpointAssociationStatus(v **types.VpcE
return nil
}
+func awsAwsjson10_deserializeOpDocumentAcceptNetworkFirewallTransitGatewayAttachmentOutput(v **AcceptNetworkFirewallTransitGatewayAttachmentOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *AcceptNetworkFirewallTransitGatewayAttachmentOutput
+ if *v == nil {
+ sv = &AcceptNetworkFirewallTransitGatewayAttachmentOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "TransitGatewayAttachmentId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentId to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentId = ptr.String(jtv)
+ }
+
+ case "TransitGatewayAttachmentStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentStatus to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentStatus = types.TransitGatewayAttachmentStatus(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsAwsjson10_deserializeOpDocumentAssociateAvailabilityZonesOutput(v **AssociateAvailabilityZonesOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *AssociateAvailabilityZonesOutput
+ if *v == nil {
+ sv = &AssociateAvailabilityZonesOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AvailabilityZoneMappings":
+ if err := awsAwsjson10_deserializeDocumentAvailabilityZoneMappings(&sv.AvailabilityZoneMappings, value); err != nil {
+ return err
+ }
+
+ case "FirewallArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value)
+ }
+ sv.FirewallArn = ptr.String(jtv)
+ }
+
+ case "FirewallName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value)
+ }
+ sv.FirewallName = ptr.String(jtv)
+ }
+
+ case "UpdateToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected UpdateToken to be of type string, got %T instead", value)
+ }
+ sv.UpdateToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson10_deserializeOpDocumentAssociateFirewallPolicyOutput(v **AssociateFirewallPolicyOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -13111,6 +14476,55 @@ func awsAwsjson10_deserializeOpDocumentDeleteFirewallPolicyOutput(v **DeleteFire
return nil
}
+func awsAwsjson10_deserializeOpDocumentDeleteNetworkFirewallTransitGatewayAttachmentOutput(v **DeleteNetworkFirewallTransitGatewayAttachmentOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DeleteNetworkFirewallTransitGatewayAttachmentOutput
+ if *v == nil {
+ sv = &DeleteNetworkFirewallTransitGatewayAttachmentOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "TransitGatewayAttachmentId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentId to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentId = ptr.String(jtv)
+ }
+
+ case "TransitGatewayAttachmentStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentStatus to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentStatus = types.TransitGatewayAttachmentStatus(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson10_deserializeOpDocumentDeleteResourcePolicyOutput(v **DeleteResourcePolicyOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -13318,6 +14732,15 @@ func awsAwsjson10_deserializeOpDocumentDescribeFirewallMetadataOutput(v **Descri
return err
}
+ case "TransitGatewayAttachmentId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentId to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentId = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
@@ -13796,6 +15219,60 @@ func awsAwsjson10_deserializeOpDocumentDescribeRuleGroupOutput(v **DescribeRuleG
return nil
}
+func awsAwsjson10_deserializeOpDocumentDescribeRuleGroupSummaryOutput(v **DescribeRuleGroupSummaryOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DescribeRuleGroupSummaryOutput
+ if *v == nil {
+ sv = &DescribeRuleGroupSummaryOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Description to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "RuleGroupName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value)
+ }
+ sv.RuleGroupName = ptr.String(jtv)
+ }
+
+ case "Summary":
+ if err := awsAwsjson10_deserializeDocumentSummary(&sv.Summary, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson10_deserializeOpDocumentDescribeTLSInspectionConfigurationOutput(v **DescribeTLSInspectionConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -13887,6 +15364,69 @@ func awsAwsjson10_deserializeOpDocumentDescribeVpcEndpointAssociationOutput(v **
return nil
}
+func awsAwsjson10_deserializeOpDocumentDisassociateAvailabilityZonesOutput(v **DisassociateAvailabilityZonesOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DisassociateAvailabilityZonesOutput
+ if *v == nil {
+ sv = &DisassociateAvailabilityZonesOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AvailabilityZoneMappings":
+ if err := awsAwsjson10_deserializeDocumentAvailabilityZoneMappings(&sv.AvailabilityZoneMappings, value); err != nil {
+ return err
+ }
+
+ case "FirewallArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value)
+ }
+ sv.FirewallArn = ptr.String(jtv)
+ }
+
+ case "FirewallName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value)
+ }
+ sv.FirewallName = ptr.String(jtv)
+ }
+
+ case "UpdateToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected UpdateToken to be of type string, got %T instead", value)
+ }
+ sv.UpdateToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson10_deserializeOpDocumentDisassociateSubnetsOutput(v **DisassociateSubnetsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -14576,6 +16116,55 @@ func awsAwsjson10_deserializeOpDocumentPutResourcePolicyOutput(v **PutResourcePo
return nil
}
+func awsAwsjson10_deserializeOpDocumentRejectNetworkFirewallTransitGatewayAttachmentOutput(v **RejectNetworkFirewallTransitGatewayAttachmentOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *RejectNetworkFirewallTransitGatewayAttachmentOutput
+ if *v == nil {
+ sv = &RejectNetworkFirewallTransitGatewayAttachmentOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "TransitGatewayAttachmentId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentId to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentId = ptr.String(jtv)
+ }
+
+ case "TransitGatewayAttachmentStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TransitGatewayAttachmentStatus to be of type string, got %T instead", value)
+ }
+ sv.TransitGatewayAttachmentStatus = types.TransitGatewayAttachmentStatus(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson10_deserializeOpDocumentStartAnalysisReportOutput(v **StartAnalysisReportOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -14794,6 +16383,73 @@ func awsAwsjson10_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp
return nil
}
+func awsAwsjson10_deserializeOpDocumentUpdateAvailabilityZoneChangeProtectionOutput(v **UpdateAvailabilityZoneChangeProtectionOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateAvailabilityZoneChangeProtectionOutput
+ if *v == nil {
+ sv = &UpdateAvailabilityZoneChangeProtectionOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AvailabilityZoneChangeProtection":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.AvailabilityZoneChangeProtection = jtv
+ }
+
+ case "FirewallArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value)
+ }
+ sv.FirewallArn = ptr.String(jtv)
+ }
+
+ case "FirewallName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value)
+ }
+ sv.FirewallName = ptr.String(jtv)
+ }
+
+ case "UpdateToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected UpdateToken to be of type string, got %T instead", value)
+ }
+ sv.UpdateToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson10_deserializeOpDocumentUpdateFirewallAnalysisSettingsOutput(v **UpdateFirewallAnalysisSettingsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
diff --git a/service/networkfirewall/generated.json b/service/networkfirewall/generated.json
index b23b5172b3c..f5c01766d08 100644
--- a/service/networkfirewall/generated.json
+++ b/service/networkfirewall/generated.json
@@ -8,6 +8,8 @@
"files": [
"api_client.go",
"api_client_test.go",
+ "api_op_AcceptNetworkFirewallTransitGatewayAttachment.go",
+ "api_op_AssociateAvailabilityZones.go",
"api_op_AssociateFirewallPolicy.go",
"api_op_AssociateSubnets.go",
"api_op_CreateFirewall.go",
@@ -17,6 +19,7 @@
"api_op_CreateVpcEndpointAssociation.go",
"api_op_DeleteFirewall.go",
"api_op_DeleteFirewallPolicy.go",
+ "api_op_DeleteNetworkFirewallTransitGatewayAttachment.go",
"api_op_DeleteResourcePolicy.go",
"api_op_DeleteRuleGroup.go",
"api_op_DeleteTLSInspectionConfiguration.go",
@@ -29,8 +32,10 @@
"api_op_DescribeResourcePolicy.go",
"api_op_DescribeRuleGroup.go",
"api_op_DescribeRuleGroupMetadata.go",
+ "api_op_DescribeRuleGroupSummary.go",
"api_op_DescribeTLSInspectionConfiguration.go",
"api_op_DescribeVpcEndpointAssociation.go",
+ "api_op_DisassociateAvailabilityZones.go",
"api_op_DisassociateSubnets.go",
"api_op_GetAnalysisReportResults.go",
"api_op_ListAnalysisReports.go",
@@ -43,11 +48,13 @@
"api_op_ListTagsForResource.go",
"api_op_ListVpcEndpointAssociations.go",
"api_op_PutResourcePolicy.go",
+ "api_op_RejectNetworkFirewallTransitGatewayAttachment.go",
"api_op_StartAnalysisReport.go",
"api_op_StartFlowCapture.go",
"api_op_StartFlowFlush.go",
"api_op_TagResource.go",
"api_op_UntagResource.go",
+ "api_op_UpdateAvailabilityZoneChangeProtection.go",
"api_op_UpdateFirewallAnalysisSettings.go",
"api_op_UpdateFirewallDeleteProtection.go",
"api_op_UpdateFirewallDescription.go",
diff --git a/service/networkfirewall/go.mod b/service/networkfirewall/go.mod
index 371a885dbd6..624482bb281 100644
--- a/service/networkfirewall/go.mod
+++ b/service/networkfirewall/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkfirewall
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/networkfirewall/go.sum
+++ b/service/networkfirewall/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/networkfirewall/go_module_metadata.go b/service/networkfirewall/go_module_metadata.go
index 7131afac08e..75ce2e7dc0c 100644
--- a/service/networkfirewall/go_module_metadata.go
+++ b/service/networkfirewall/go_module_metadata.go
@@ -3,4 +3,4 @@
package networkfirewall
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.49.1"
+const goModuleVersion = "1.51.0"
diff --git a/service/networkfirewall/serializers.go b/service/networkfirewall/serializers.go
index 6f53dfdbb60..621944c2630 100644
--- a/service/networkfirewall/serializers.go
+++ b/service/networkfirewall/serializers.go
@@ -16,6 +16,128 @@ import (
"path"
)
+type awsAwsjson10_serializeOpAcceptNetworkFirewallTransitGatewayAttachment struct {
+}
+
+func (*awsAwsjson10_serializeOpAcceptNetworkFirewallTransitGatewayAttachment) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsAwsjson10_serializeOpAcceptNetworkFirewallTransitGatewayAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*AcceptNetworkFirewallTransitGatewayAttachmentInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ operationPath := "/"
+ if len(request.Request.URL.Path) == 0 {
+ request.Request.URL.Path = operationPath
+ } else {
+ request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
+ if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
+ request.Request.URL.Path += "/"
+ }
+ }
+ request.Request.Method = "POST"
+ httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.AcceptNetworkFirewallTransitGatewayAttachment")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsAwsjson10_serializeOpDocumentAcceptNetworkFirewallTransitGatewayAttachmentInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+
+type awsAwsjson10_serializeOpAssociateAvailabilityZones struct {
+}
+
+func (*awsAwsjson10_serializeOpAssociateAvailabilityZones) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsAwsjson10_serializeOpAssociateAvailabilityZones) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*AssociateAvailabilityZonesInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ operationPath := "/"
+ if len(request.Request.URL.Path) == 0 {
+ request.Request.URL.Path = operationPath
+ } else {
+ request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
+ if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
+ request.Request.URL.Path += "/"
+ }
+ }
+ request.Request.Method = "POST"
+ httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.AssociateAvailabilityZones")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsAwsjson10_serializeOpDocumentAssociateAvailabilityZonesInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+
type awsAwsjson10_serializeOpAssociateFirewallPolicy struct {
}
@@ -565,6 +687,67 @@ func (m *awsAwsjson10_serializeOpDeleteFirewallPolicy) HandleSerialize(ctx conte
return next.HandleSerialize(ctx, in)
}
+type awsAwsjson10_serializeOpDeleteNetworkFirewallTransitGatewayAttachment struct {
+}
+
+func (*awsAwsjson10_serializeOpDeleteNetworkFirewallTransitGatewayAttachment) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsAwsjson10_serializeOpDeleteNetworkFirewallTransitGatewayAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteNetworkFirewallTransitGatewayAttachmentInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ operationPath := "/"
+ if len(request.Request.URL.Path) == 0 {
+ request.Request.URL.Path = operationPath
+ } else {
+ request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
+ if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
+ request.Request.URL.Path += "/"
+ }
+ }
+ request.Request.Method = "POST"
+ httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.DeleteNetworkFirewallTransitGatewayAttachment")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsAwsjson10_serializeOpDocumentDeleteNetworkFirewallTransitGatewayAttachmentInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+
type awsAwsjson10_serializeOpDeleteResourcePolicy struct {
}
@@ -1297,6 +1480,67 @@ func (m *awsAwsjson10_serializeOpDescribeRuleGroupMetadata) HandleSerialize(ctx
return next.HandleSerialize(ctx, in)
}
+type awsAwsjson10_serializeOpDescribeRuleGroupSummary struct {
+}
+
+func (*awsAwsjson10_serializeOpDescribeRuleGroupSummary) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsAwsjson10_serializeOpDescribeRuleGroupSummary) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeRuleGroupSummaryInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ operationPath := "/"
+ if len(request.Request.URL.Path) == 0 {
+ request.Request.URL.Path = operationPath
+ } else {
+ request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
+ if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
+ request.Request.URL.Path += "/"
+ }
+ }
+ request.Request.Method = "POST"
+ httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.DescribeRuleGroupSummary")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsAwsjson10_serializeOpDocumentDescribeRuleGroupSummaryInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+
type awsAwsjson10_serializeOpDescribeTLSInspectionConfiguration struct {
}
@@ -1419,6 +1663,67 @@ func (m *awsAwsjson10_serializeOpDescribeVpcEndpointAssociation) HandleSerialize
return next.HandleSerialize(ctx, in)
}
+type awsAwsjson10_serializeOpDisassociateAvailabilityZones struct {
+}
+
+func (*awsAwsjson10_serializeOpDisassociateAvailabilityZones) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsAwsjson10_serializeOpDisassociateAvailabilityZones) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DisassociateAvailabilityZonesInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ operationPath := "/"
+ if len(request.Request.URL.Path) == 0 {
+ request.Request.URL.Path = operationPath
+ } else {
+ request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
+ if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
+ request.Request.URL.Path += "/"
+ }
+ }
+ request.Request.Method = "POST"
+ httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.DisassociateAvailabilityZones")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsAwsjson10_serializeOpDocumentDisassociateAvailabilityZonesInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+
type awsAwsjson10_serializeOpDisassociateSubnets struct {
}
@@ -2011,7 +2316,68 @@ func (m *awsAwsjson10_serializeOpListTLSInspectionConfigurations) HandleSerializ
httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.ListTLSInspectionConfigurations")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsAwsjson10_serializeOpDocumentListTLSInspectionConfigurationsInput(input, jsonEncoder.Value); err != nil {
+ if err := awsAwsjson10_serializeOpDocumentListTLSInspectionConfigurationsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+
+type awsAwsjson10_serializeOpListVpcEndpointAssociations struct {
+}
+
+func (*awsAwsjson10_serializeOpListVpcEndpointAssociations) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsAwsjson10_serializeOpListVpcEndpointAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListVpcEndpointAssociationsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ operationPath := "/"
+ if len(request.Request.URL.Path) == 0 {
+ request.Request.URL.Path = operationPath
+ } else {
+ request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
+ if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
+ request.Request.URL.Path += "/"
+ }
+ }
+ request.Request.Method = "POST"
+ httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.ListVpcEndpointAssociations")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsAwsjson10_serializeOpDocumentListVpcEndpointAssociationsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2029,14 +2395,14 @@ func (m *awsAwsjson10_serializeOpListTLSInspectionConfigurations) HandleSerializ
return next.HandleSerialize(ctx, in)
}
-type awsAwsjson10_serializeOpListVpcEndpointAssociations struct {
+type awsAwsjson10_serializeOpPutResourcePolicy struct {
}
-func (*awsAwsjson10_serializeOpListVpcEndpointAssociations) ID() string {
+func (*awsAwsjson10_serializeOpPutResourcePolicy) ID() string {
return "OperationSerializer"
}
-func (m *awsAwsjson10_serializeOpListVpcEndpointAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsAwsjson10_serializeOpPutResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2048,7 +2414,7 @@ func (m *awsAwsjson10_serializeOpListVpcEndpointAssociations) HandleSerialize(ct
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListVpcEndpointAssociationsInput)
+ input, ok := in.Parameters.(*PutResourcePolicyInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
@@ -2069,10 +2435,10 @@ func (m *awsAwsjson10_serializeOpListVpcEndpointAssociations) HandleSerialize(ct
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
- httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.ListVpcEndpointAssociations")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.PutResourcePolicy")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsAwsjson10_serializeOpDocumentListVpcEndpointAssociationsInput(input, jsonEncoder.Value); err != nil {
+ if err := awsAwsjson10_serializeOpDocumentPutResourcePolicyInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2090,14 +2456,14 @@ func (m *awsAwsjson10_serializeOpListVpcEndpointAssociations) HandleSerialize(ct
return next.HandleSerialize(ctx, in)
}
-type awsAwsjson10_serializeOpPutResourcePolicy struct {
+type awsAwsjson10_serializeOpRejectNetworkFirewallTransitGatewayAttachment struct {
}
-func (*awsAwsjson10_serializeOpPutResourcePolicy) ID() string {
+func (*awsAwsjson10_serializeOpRejectNetworkFirewallTransitGatewayAttachment) ID() string {
return "OperationSerializer"
}
-func (m *awsAwsjson10_serializeOpPutResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsAwsjson10_serializeOpRejectNetworkFirewallTransitGatewayAttachment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2109,7 +2475,7 @@ func (m *awsAwsjson10_serializeOpPutResourcePolicy) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*PutResourcePolicyInput)
+ input, ok := in.Parameters.(*RejectNetworkFirewallTransitGatewayAttachmentInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
@@ -2130,10 +2496,10 @@ func (m *awsAwsjson10_serializeOpPutResourcePolicy) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: err}
}
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
- httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.PutResourcePolicy")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.RejectNetworkFirewallTransitGatewayAttachment")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsAwsjson10_serializeOpDocumentPutResourcePolicyInput(input, jsonEncoder.Value); err != nil {
+ if err := awsAwsjson10_serializeOpDocumentRejectNetworkFirewallTransitGatewayAttachmentInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2456,6 +2822,67 @@ func (m *awsAwsjson10_serializeOpUntagResource) HandleSerialize(ctx context.Cont
return next.HandleSerialize(ctx, in)
}
+type awsAwsjson10_serializeOpUpdateAvailabilityZoneChangeProtection struct {
+}
+
+func (*awsAwsjson10_serializeOpUpdateAvailabilityZoneChangeProtection) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsAwsjson10_serializeOpUpdateAvailabilityZoneChangeProtection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*UpdateAvailabilityZoneChangeProtectionInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ operationPath := "/"
+ if len(request.Request.URL.Path) == 0 {
+ request.Request.URL.Path = operationPath
+ } else {
+ request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
+ if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
+ request.Request.URL.Path += "/"
+ }
+ }
+ request.Request.Method = "POST"
+ httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0")
+ httpBindingEncoder.SetHeader("X-Amz-Target").String("NetworkFirewall_20201112.UpdateAvailabilityZoneChangeProtection")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsAwsjson10_serializeOpDocumentUpdateAvailabilityZoneChangeProtectionInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+
type awsAwsjson10_serializeOpUpdateFirewallAnalysisSettings struct {
}
@@ -3104,6 +3531,31 @@ func awsAwsjson10_serializeDocumentAddresses(v []types.Address, value smithyjson
return nil
}
+func awsAwsjson10_serializeDocumentAvailabilityZoneMapping(v *types.AvailabilityZoneMapping, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AvailabilityZone != nil {
+ ok := object.Key("AvailabilityZone")
+ ok.String(*v.AvailabilityZone)
+ }
+
+ return nil
+}
+
+func awsAwsjson10_serializeDocumentAvailabilityZoneMappings(v []types.AvailabilityZoneMapping, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsAwsjson10_serializeDocumentAvailabilityZoneMapping(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
func awsAwsjson10_serializeDocumentAzSubnets(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
@@ -4093,6 +4545,11 @@ func awsAwsjson10_serializeDocumentStatefulRuleGroupReference(v *types.StatefulR
object := value.Object()
defer object.Close()
+ if v.DeepThreatInspection != nil {
+ ok := object.Key("DeepThreatInspection")
+ ok.Boolean(*v.DeepThreatInspection)
+ }
+
if v.Override != nil {
ok := object.Key("Override")
if err := awsAwsjson10_serializeDocumentStatefulRuleGroupOverride(v.Override, ok); err != nil {
@@ -4275,6 +4732,31 @@ func awsAwsjson10_serializeDocumentSubnetMappings(v []types.SubnetMapping, value
return nil
}
+func awsAwsjson10_serializeDocumentSummaryConfiguration(v *types.SummaryConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.RuleOptions != nil {
+ ok := object.Key("RuleOptions")
+ if err := awsAwsjson10_serializeDocumentSummaryRuleOptions(v.RuleOptions, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsAwsjson10_serializeDocumentSummaryRuleOptions(v []types.SummaryRuleOption, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(string(v[i]))
+ }
+ return nil
+}
+
func awsAwsjson10_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -4397,6 +4879,47 @@ func awsAwsjson10_serializeDocumentVpcIds(v []string, value smithyjson.Value) er
return nil
}
+func awsAwsjson10_serializeOpDocumentAcceptNetworkFirewallTransitGatewayAttachmentInput(v *AcceptNetworkFirewallTransitGatewayAttachmentInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.TransitGatewayAttachmentId != nil {
+ ok := object.Key("TransitGatewayAttachmentId")
+ ok.String(*v.TransitGatewayAttachmentId)
+ }
+
+ return nil
+}
+
+func awsAwsjson10_serializeOpDocumentAssociateAvailabilityZonesInput(v *AssociateAvailabilityZonesInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AvailabilityZoneMappings != nil {
+ ok := object.Key("AvailabilityZoneMappings")
+ if err := awsAwsjson10_serializeDocumentAvailabilityZoneMappings(v.AvailabilityZoneMappings, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.FirewallArn != nil {
+ ok := object.Key("FirewallArn")
+ ok.String(*v.FirewallArn)
+ }
+
+ if v.FirewallName != nil {
+ ok := object.Key("FirewallName")
+ ok.String(*v.FirewallName)
+ }
+
+ if v.UpdateToken != nil {
+ ok := object.Key("UpdateToken")
+ ok.String(*v.UpdateToken)
+ }
+
+ return nil
+}
+
func awsAwsjson10_serializeOpDocumentAssociateFirewallPolicyInput(v *AssociateFirewallPolicyInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -4457,6 +4980,18 @@ func awsAwsjson10_serializeOpDocumentCreateFirewallInput(v *CreateFirewallInput,
object := value.Object()
defer object.Close()
+ if v.AvailabilityZoneChangeProtection {
+ ok := object.Key("AvailabilityZoneChangeProtection")
+ ok.Boolean(v.AvailabilityZoneChangeProtection)
+ }
+
+ if v.AvailabilityZoneMappings != nil {
+ ok := object.Key("AvailabilityZoneMappings")
+ if err := awsAwsjson10_serializeDocumentAvailabilityZoneMappings(v.AvailabilityZoneMappings, ok); err != nil {
+ return err
+ }
+ }
+
if v.DeleteProtection {
ok := object.Key("DeleteProtection")
ok.Boolean(v.DeleteProtection)
@@ -4515,6 +5050,11 @@ func awsAwsjson10_serializeOpDocumentCreateFirewallInput(v *CreateFirewallInput,
}
}
+ if v.TransitGatewayId != nil {
+ ok := object.Key("TransitGatewayId")
+ ok.String(*v.TransitGatewayId)
+ }
+
if v.VpcId != nil {
ok := object.Key("VpcId")
ok.String(*v.VpcId)
@@ -4621,6 +5161,13 @@ func awsAwsjson10_serializeOpDocumentCreateRuleGroupInput(v *CreateRuleGroupInpu
}
}
+ if v.SummaryConfiguration != nil {
+ ok := object.Key("SummaryConfiguration")
+ if err := awsAwsjson10_serializeDocumentSummaryConfiguration(v.SummaryConfiguration, ok); err != nil {
+ return err
+ }
+ }
+
if v.Tags != nil {
ok := object.Key("Tags")
if err := awsAwsjson10_serializeDocumentTagList(v.Tags, ok); err != nil {
@@ -4744,6 +5291,18 @@ func awsAwsjson10_serializeOpDocumentDeleteFirewallPolicyInput(v *DeleteFirewall
return nil
}
+func awsAwsjson10_serializeOpDocumentDeleteNetworkFirewallTransitGatewayAttachmentInput(v *DeleteNetworkFirewallTransitGatewayAttachmentInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.TransitGatewayAttachmentId != nil {
+ ok := object.Key("TransitGatewayAttachmentId")
+ ok.String(*v.TransitGatewayAttachmentId)
+ }
+
+ return nil
+}
+
func awsAwsjson10_serializeOpDocumentDeleteResourcePolicyInput(v *DeleteResourcePolicyInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -4963,6 +5522,28 @@ func awsAwsjson10_serializeOpDocumentDescribeRuleGroupMetadataInput(v *DescribeR
return nil
}
+func awsAwsjson10_serializeOpDocumentDescribeRuleGroupSummaryInput(v *DescribeRuleGroupSummaryInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.RuleGroupArn != nil {
+ ok := object.Key("RuleGroupArn")
+ ok.String(*v.RuleGroupArn)
+ }
+
+ if v.RuleGroupName != nil {
+ ok := object.Key("RuleGroupName")
+ ok.String(*v.RuleGroupName)
+ }
+
+ if len(v.Type) > 0 {
+ ok := object.Key("Type")
+ ok.String(string(v.Type))
+ }
+
+ return nil
+}
+
func awsAwsjson10_serializeOpDocumentDescribeTLSInspectionConfigurationInput(v *DescribeTLSInspectionConfigurationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -4992,6 +5573,35 @@ func awsAwsjson10_serializeOpDocumentDescribeVpcEndpointAssociationInput(v *Desc
return nil
}
+func awsAwsjson10_serializeOpDocumentDisassociateAvailabilityZonesInput(v *DisassociateAvailabilityZonesInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AvailabilityZoneMappings != nil {
+ ok := object.Key("AvailabilityZoneMappings")
+ if err := awsAwsjson10_serializeDocumentAvailabilityZoneMappings(v.AvailabilityZoneMappings, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.FirewallArn != nil {
+ ok := object.Key("FirewallArn")
+ ok.String(*v.FirewallArn)
+ }
+
+ if v.FirewallName != nil {
+ ok := object.Key("FirewallName")
+ ok.String(*v.FirewallName)
+ }
+
+ if v.UpdateToken != nil {
+ ok := object.Key("UpdateToken")
+ ok.String(*v.UpdateToken)
+ }
+
+ return nil
+}
+
func awsAwsjson10_serializeOpDocumentDisassociateSubnetsInput(v *DisassociateSubnetsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -5315,6 +5925,18 @@ func awsAwsjson10_serializeOpDocumentPutResourcePolicyInput(v *PutResourcePolicy
return nil
}
+func awsAwsjson10_serializeOpDocumentRejectNetworkFirewallTransitGatewayAttachmentInput(v *RejectNetworkFirewallTransitGatewayAttachmentInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.TransitGatewayAttachmentId != nil {
+ ok := object.Key("TransitGatewayAttachmentId")
+ ok.String(*v.TransitGatewayAttachmentId)
+ }
+
+ return nil
+}
+
func awsAwsjson10_serializeOpDocumentStartAnalysisReportInput(v *StartAnalysisReportInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -5453,6 +6075,33 @@ func awsAwsjson10_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, v
return nil
}
+func awsAwsjson10_serializeOpDocumentUpdateAvailabilityZoneChangeProtectionInput(v *UpdateAvailabilityZoneChangeProtectionInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ {
+ ok := object.Key("AvailabilityZoneChangeProtection")
+ ok.Boolean(v.AvailabilityZoneChangeProtection)
+ }
+
+ if v.FirewallArn != nil {
+ ok := object.Key("FirewallArn")
+ ok.String(*v.FirewallArn)
+ }
+
+ if v.FirewallName != nil {
+ ok := object.Key("FirewallName")
+ ok.String(*v.FirewallName)
+ }
+
+ if v.UpdateToken != nil {
+ ok := object.Key("UpdateToken")
+ ok.String(*v.UpdateToken)
+ }
+
+ return nil
+}
+
func awsAwsjson10_serializeOpDocumentUpdateFirewallAnalysisSettingsInput(v *UpdateFirewallAnalysisSettingsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -5722,6 +6371,13 @@ func awsAwsjson10_serializeOpDocumentUpdateRuleGroupInput(v *UpdateRuleGroupInpu
}
}
+ if v.SummaryConfiguration != nil {
+ ok := object.Key("SummaryConfiguration")
+ if err := awsAwsjson10_serializeDocumentSummaryConfiguration(v.SummaryConfiguration, ok); err != nil {
+ return err
+ }
+ }
+
if len(v.Type) > 0 {
ok := object.Key("Type")
ok.String(string(v.Type))
diff --git a/service/networkfirewall/snapshot/api_op_AcceptNetworkFirewallTransitGatewayAttachment.go.snap b/service/networkfirewall/snapshot/api_op_AcceptNetworkFirewallTransitGatewayAttachment.go.snap
new file mode 100644
index 00000000000..93c35a45bdf
--- /dev/null
+++ b/service/networkfirewall/snapshot/api_op_AcceptNetworkFirewallTransitGatewayAttachment.go.snap
@@ -0,0 +1,42 @@
+AcceptNetworkFirewallTransitGatewayAttachment
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/networkfirewall/snapshot/api_op_AssociateAvailabilityZones.go.snap b/service/networkfirewall/snapshot/api_op_AssociateAvailabilityZones.go.snap
new file mode 100644
index 00000000000..8df62398550
--- /dev/null
+++ b/service/networkfirewall/snapshot/api_op_AssociateAvailabilityZones.go.snap
@@ -0,0 +1,42 @@
+AssociateAvailabilityZones
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/networkfirewall/snapshot/api_op_DeleteNetworkFirewallTransitGatewayAttachment.go.snap b/service/networkfirewall/snapshot/api_op_DeleteNetworkFirewallTransitGatewayAttachment.go.snap
new file mode 100644
index 00000000000..52d3a8adc89
--- /dev/null
+++ b/service/networkfirewall/snapshot/api_op_DeleteNetworkFirewallTransitGatewayAttachment.go.snap
@@ -0,0 +1,42 @@
+DeleteNetworkFirewallTransitGatewayAttachment
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/networkfirewall/snapshot/api_op_DescribeRuleGroupSummary.go.snap b/service/networkfirewall/snapshot/api_op_DescribeRuleGroupSummary.go.snap
new file mode 100644
index 00000000000..035ef680bc9
--- /dev/null
+++ b/service/networkfirewall/snapshot/api_op_DescribeRuleGroupSummary.go.snap
@@ -0,0 +1,41 @@
+DescribeRuleGroupSummary
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/networkfirewall/snapshot/api_op_DisassociateAvailabilityZones.go.snap b/service/networkfirewall/snapshot/api_op_DisassociateAvailabilityZones.go.snap
new file mode 100644
index 00000000000..6917e9014e1
--- /dev/null
+++ b/service/networkfirewall/snapshot/api_op_DisassociateAvailabilityZones.go.snap
@@ -0,0 +1,42 @@
+DisassociateAvailabilityZones
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/networkfirewall/snapshot/api_op_RejectNetworkFirewallTransitGatewayAttachment.go.snap b/service/networkfirewall/snapshot/api_op_RejectNetworkFirewallTransitGatewayAttachment.go.snap
new file mode 100644
index 00000000000..a9f6afbab70
--- /dev/null
+++ b/service/networkfirewall/snapshot/api_op_RejectNetworkFirewallTransitGatewayAttachment.go.snap
@@ -0,0 +1,42 @@
+RejectNetworkFirewallTransitGatewayAttachment
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/networkfirewall/snapshot/api_op_UpdateAvailabilityZoneChangeProtection.go.snap b/service/networkfirewall/snapshot/api_op_UpdateAvailabilityZoneChangeProtection.go.snap
new file mode 100644
index 00000000000..016ca7d30cd
--- /dev/null
+++ b/service/networkfirewall/snapshot/api_op_UpdateAvailabilityZoneChangeProtection.go.snap
@@ -0,0 +1,42 @@
+UpdateAvailabilityZoneChangeProtection
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/networkfirewall/snapshot_test.go b/service/networkfirewall/snapshot_test.go
index 285548dd59e..808be608adf 100644
--- a/service/networkfirewall/snapshot_test.go
+++ b/service/networkfirewall/snapshot_test.go
@@ -62,6 +62,30 @@ func testSnapshot(stack *middleware.Stack, operation string) error {
}
return snapshotOK{}
}
+func TestCheckSnapshot_AcceptNetworkFirewallTransitGatewayAttachment(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.AcceptNetworkFirewallTransitGatewayAttachment(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "AcceptNetworkFirewallTransitGatewayAttachment")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_AssociateAvailabilityZones(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.AssociateAvailabilityZones(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "AssociateAvailabilityZones")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_AssociateFirewallPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.AssociateFirewallPolicy(context.Background(), nil, func(o *Options) {
@@ -170,6 +194,18 @@ func TestCheckSnapshot_DeleteFirewallPolicy(t *testing.T) {
}
}
+func TestCheckSnapshot_DeleteNetworkFirewallTransitGatewayAttachment(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteNetworkFirewallTransitGatewayAttachment(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DeleteNetworkFirewallTransitGatewayAttachment")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DeleteResourcePolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.DeleteResourcePolicy(context.Background(), nil, func(o *Options) {
@@ -314,6 +350,18 @@ func TestCheckSnapshot_DescribeRuleGroupMetadata(t *testing.T) {
}
}
+func TestCheckSnapshot_DescribeRuleGroupSummary(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DescribeRuleGroupSummary(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DescribeRuleGroupSummary")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DescribeTLSInspectionConfiguration(t *testing.T) {
svc := New(Options{})
_, err := svc.DescribeTLSInspectionConfiguration(context.Background(), nil, func(o *Options) {
@@ -338,6 +386,18 @@ func TestCheckSnapshot_DescribeVpcEndpointAssociation(t *testing.T) {
}
}
+func TestCheckSnapshot_DisassociateAvailabilityZones(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DisassociateAvailabilityZones(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DisassociateAvailabilityZones")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DisassociateSubnets(t *testing.T) {
svc := New(Options{})
_, err := svc.DisassociateSubnets(context.Background(), nil, func(o *Options) {
@@ -482,6 +542,18 @@ func TestCheckSnapshot_PutResourcePolicy(t *testing.T) {
}
}
+func TestCheckSnapshot_RejectNetworkFirewallTransitGatewayAttachment(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.RejectNetworkFirewallTransitGatewayAttachment(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "RejectNetworkFirewallTransitGatewayAttachment")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_StartAnalysisReport(t *testing.T) {
svc := New(Options{})
_, err := svc.StartAnalysisReport(context.Background(), nil, func(o *Options) {
@@ -542,6 +614,18 @@ func TestCheckSnapshot_UntagResource(t *testing.T) {
}
}
+func TestCheckSnapshot_UpdateAvailabilityZoneChangeProtection(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateAvailabilityZoneChangeProtection(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "UpdateAvailabilityZoneChangeProtection")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_UpdateFirewallAnalysisSettings(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateFirewallAnalysisSettings(context.Background(), nil, func(o *Options) {
@@ -661,6 +745,30 @@ func TestCheckSnapshot_UpdateTLSInspectionConfiguration(t *testing.T) {
t.Fatal(err)
}
}
+func TestUpdateSnapshot_AcceptNetworkFirewallTransitGatewayAttachment(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.AcceptNetworkFirewallTransitGatewayAttachment(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "AcceptNetworkFirewallTransitGatewayAttachment")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_AssociateAvailabilityZones(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.AssociateAvailabilityZones(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "AssociateAvailabilityZones")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_AssociateFirewallPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.AssociateFirewallPolicy(context.Background(), nil, func(o *Options) {
@@ -769,6 +877,18 @@ func TestUpdateSnapshot_DeleteFirewallPolicy(t *testing.T) {
}
}
+func TestUpdateSnapshot_DeleteNetworkFirewallTransitGatewayAttachment(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteNetworkFirewallTransitGatewayAttachment(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DeleteNetworkFirewallTransitGatewayAttachment")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DeleteResourcePolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.DeleteResourcePolicy(context.Background(), nil, func(o *Options) {
@@ -913,6 +1033,18 @@ func TestUpdateSnapshot_DescribeRuleGroupMetadata(t *testing.T) {
}
}
+func TestUpdateSnapshot_DescribeRuleGroupSummary(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DescribeRuleGroupSummary(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DescribeRuleGroupSummary")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DescribeTLSInspectionConfiguration(t *testing.T) {
svc := New(Options{})
_, err := svc.DescribeTLSInspectionConfiguration(context.Background(), nil, func(o *Options) {
@@ -937,6 +1069,18 @@ func TestUpdateSnapshot_DescribeVpcEndpointAssociation(t *testing.T) {
}
}
+func TestUpdateSnapshot_DisassociateAvailabilityZones(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DisassociateAvailabilityZones(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DisassociateAvailabilityZones")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DisassociateSubnets(t *testing.T) {
svc := New(Options{})
_, err := svc.DisassociateSubnets(context.Background(), nil, func(o *Options) {
@@ -1081,6 +1225,18 @@ func TestUpdateSnapshot_PutResourcePolicy(t *testing.T) {
}
}
+func TestUpdateSnapshot_RejectNetworkFirewallTransitGatewayAttachment(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.RejectNetworkFirewallTransitGatewayAttachment(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "RejectNetworkFirewallTransitGatewayAttachment")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_StartAnalysisReport(t *testing.T) {
svc := New(Options{})
_, err := svc.StartAnalysisReport(context.Background(), nil, func(o *Options) {
@@ -1141,6 +1297,18 @@ func TestUpdateSnapshot_UntagResource(t *testing.T) {
}
}
+func TestUpdateSnapshot_UpdateAvailabilityZoneChangeProtection(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateAvailabilityZoneChangeProtection(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "UpdateAvailabilityZoneChangeProtection")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_UpdateFirewallAnalysisSettings(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateFirewallAnalysisSettings(context.Background(), nil, func(o *Options) {
diff --git a/service/networkfirewall/sra_operation_order_test.go b/service/networkfirewall/sra_operation_order_test.go
index 378efce3dc3..d451a6ef2f3 100644
--- a/service/networkfirewall/sra_operation_order_test.go
+++ b/service/networkfirewall/sra_operation_order_test.go
@@ -19,6 +19,76 @@ func captureMiddlewareStack(stack *middleware.Stack) func(*middleware.Stack) err
return errTestReturnEarly
}
}
+func TestOpAcceptNetworkFirewallTransitGatewayAttachmentSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.AcceptNetworkFirewallTransitGatewayAttachment(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpAssociateAvailabilityZonesSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.AssociateAvailabilityZones(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpAssociateFirewallPolicySRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -334,6 +404,41 @@ func TestOpDeleteFirewallPolicySRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpDeleteNetworkFirewallTransitGatewayAttachmentSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteNetworkFirewallTransitGatewayAttachment(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpDeleteResourcePolicySRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -754,6 +859,41 @@ func TestOpDescribeRuleGroupMetadataSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpDescribeRuleGroupSummarySRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DescribeRuleGroupSummary(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpDescribeTLSInspectionConfigurationSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -824,6 +964,41 @@ func TestOpDescribeVpcEndpointAssociationSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpDisassociateAvailabilityZonesSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DisassociateAvailabilityZones(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpDisassociateSubnetsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -1244,6 +1419,41 @@ func TestOpPutResourcePolicySRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpRejectNetworkFirewallTransitGatewayAttachmentSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.RejectNetworkFirewallTransitGatewayAttachment(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpStartAnalysisReportSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -1419,6 +1629,41 @@ func TestOpUntagResourceSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpUpdateAvailabilityZoneChangeProtectionSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.UpdateAvailabilityZoneChangeProtection(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpUpdateFirewallAnalysisSettingsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
diff --git a/service/networkfirewall/types/enums.go b/service/networkfirewall/types/enums.go
index 689e01f7481..fb6550c7097 100644
--- a/service/networkfirewall/types/enums.go
+++ b/service/networkfirewall/types/enums.go
@@ -315,6 +315,7 @@ type ResourceManagedType string
const (
ResourceManagedTypeAwsManagedThreatSignatures ResourceManagedType = "AWS_MANAGED_THREAT_SIGNATURES"
ResourceManagedTypeAwsManagedDomainLists ResourceManagedType = "AWS_MANAGED_DOMAIN_LISTS"
+ ResourceManagedTypeActiveThreatDefense ResourceManagedType = "ACTIVE_THREAT_DEFENSE"
)
// Values returns all known values for ResourceManagedType. Note that this can be
@@ -325,6 +326,7 @@ func (ResourceManagedType) Values() []ResourceManagedType {
return []ResourceManagedType{
"AWS_MANAGED_THREAT_SIGNATURES",
"AWS_MANAGED_DOMAIN_LISTS",
+ "ACTIVE_THREAT_DEFENSE",
}
}
@@ -473,6 +475,8 @@ const (
StatefulRuleProtocolTftp StatefulRuleProtocol = "TFTP"
StatefulRuleProtocolNtp StatefulRuleProtocol = "NTP"
StatefulRuleProtocolDhcp StatefulRuleProtocol = "DHCP"
+ StatefulRuleProtocolHttp2 StatefulRuleProtocol = "HTTP2"
+ StatefulRuleProtocolQuic StatefulRuleProtocol = "QUIC"
)
// Values returns all known values for StatefulRuleProtocol. Note that this can be
@@ -500,6 +504,8 @@ func (StatefulRuleProtocol) Values() []StatefulRuleProtocol {
"TFTP",
"NTP",
"DHCP",
+ "HTTP2",
+ "QUIC",
}
}
@@ -524,6 +530,27 @@ func (StreamExceptionPolicy) Values() []StreamExceptionPolicy {
}
}
+type SummaryRuleOption string
+
+// Enum values for SummaryRuleOption
+const (
+ SummaryRuleOptionSid SummaryRuleOption = "SID"
+ SummaryRuleOptionMsg SummaryRuleOption = "MSG"
+ SummaryRuleOptionMetadata SummaryRuleOption = "METADATA"
+)
+
+// Values returns all known values for SummaryRuleOption. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (SummaryRuleOption) Values() []SummaryRuleOption {
+ return []SummaryRuleOption{
+ "SID",
+ "MSG",
+ "METADATA",
+ }
+}
+
type TargetType string
// Enum values for TargetType
@@ -573,3 +600,37 @@ func (TCPFlag) Values() []TCPFlag {
"CWR",
}
}
+
+type TransitGatewayAttachmentStatus string
+
+// Enum values for TransitGatewayAttachmentStatus
+const (
+ TransitGatewayAttachmentStatusCreating TransitGatewayAttachmentStatus = "CREATING"
+ TransitGatewayAttachmentStatusDeleting TransitGatewayAttachmentStatus = "DELETING"
+ TransitGatewayAttachmentStatusDeleted TransitGatewayAttachmentStatus = "DELETED"
+ TransitGatewayAttachmentStatusFailed TransitGatewayAttachmentStatus = "FAILED"
+ TransitGatewayAttachmentStatusError TransitGatewayAttachmentStatus = "ERROR"
+ TransitGatewayAttachmentStatusReady TransitGatewayAttachmentStatus = "READY"
+ TransitGatewayAttachmentStatusPendingAcceptance TransitGatewayAttachmentStatus = "PENDING_ACCEPTANCE"
+ TransitGatewayAttachmentStatusRejecting TransitGatewayAttachmentStatus = "REJECTING"
+ TransitGatewayAttachmentStatusRejected TransitGatewayAttachmentStatus = "REJECTED"
+)
+
+// Values returns all known values for TransitGatewayAttachmentStatus. Note that
+// this can be expanded in the future, and so it is only as up to date as the
+// client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (TransitGatewayAttachmentStatus) Values() []TransitGatewayAttachmentStatus {
+ return []TransitGatewayAttachmentStatus{
+ "CREATING",
+ "DELETING",
+ "DELETED",
+ "FAILED",
+ "ERROR",
+ "READY",
+ "PENDING_ACCEPTANCE",
+ "REJECTING",
+ "REJECTED",
+ }
+}
diff --git a/service/networkfirewall/types/types.go b/service/networkfirewall/types/types.go
index 4dbffc41cd2..1acd4b25c54 100644
--- a/service/networkfirewall/types/types.go
+++ b/service/networkfirewall/types/types.go
@@ -206,6 +206,23 @@ type Attachment struct {
noSmithyDocumentSerde
}
+// Defines the mapping between an Availability Zone and a firewall endpoint for a
+// transit gateway-attached firewall. Each mapping represents where the firewall
+// can process traffic. You use these mappings when calling CreateFirewall, AssociateAvailabilityZones, and DisassociateAvailabilityZones.
+//
+// To retrieve the current Availability Zone mappings for a firewall, use DescribeFirewall.
+type AvailabilityZoneMapping struct {
+
+ // The ID of the Availability Zone where the firewall endpoint is located. For
+ // example, us-east-2a . The Availability Zone must be in the same Region as the
+ // transit gateway.
+ //
+ // This member is required.
+ AvailabilityZone *string
+
+ noSmithyDocumentSerde
+}
+
// High-level information about an Availability Zone where the firewall has an
// endpoint defined.
type AvailabilityZoneMetadata struct {
@@ -440,6 +457,16 @@ type Firewall struct {
// This member is required.
VpcId *string
+ // A setting indicating whether the firewall is protected against changes to its
+ // Availability Zone configuration. When set to TRUE , you must first disable this
+ // protection before adding or removing Availability Zones.
+ AvailabilityZoneChangeProtection bool
+
+ // The Availability Zones where the firewall endpoints are created for a transit
+ // gateway-attached firewall. Each mapping specifies an Availability Zone where the
+ // firewall processes traffic.
+ AvailabilityZoneMappings []AvailabilityZoneMapping
+
// A flag indicating whether it is possible to delete the firewall. A setting of
// TRUE indicates that the firewall is protected against deletion. Use this setting
// to protect against accidentally deleting a firewall that is in use. When you
@@ -482,6 +509,15 @@ type Firewall struct {
//
Tags []Tag
+ // The unique identifier of the transit gateway associated with this firewall.
+ // This field is only present for transit gateway-attached firewalls.
+ TransitGatewayId *string
+
+ // The Amazon Web Services account ID that owns the transit gateway. This may be
+ // different from the firewall owner's account ID when using a shared transit
+ // gateway.
+ TransitGatewayOwnerAccountId *string
+
noSmithyDocumentSerde
}
@@ -497,6 +533,10 @@ type FirewallMetadata struct {
// after you create it.
FirewallName *string
+ // The unique identifier of the transit gateway attachment associated with this
+ // firewall. This field is only present for transit gateway-attached firewalls.
+ TransitGatewayAttachmentId *string
+
noSmithyDocumentSerde
}
@@ -703,6 +743,12 @@ type FirewallStatus struct {
// ConfigurationSyncStateSummary and Status .
SyncStates map[string]SyncState
+ // The synchronization state of the transit gateway attachment. This indicates
+ // whether the firewall's transit gateway configuration is properly synchronized
+ // and operational. Use this to verify that your transit gateway configuration
+ // changes have been applied.
+ TransitGatewayAttachmentSyncState *TransitGatewayAttachmentSyncState
+
noSmithyDocumentSerde
}
@@ -1352,7 +1398,7 @@ type RuleGroupResponse struct {
// Detailed information about the current status of a rule group.
RuleGroupStatus ResourceStatus
- // The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS
+ // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service SNS
// topic that's used to record changes to the managed rule group. You can subscribe
// to the SNS topic to receive notifications when the managed rule group is
// modified, such as for new versions and for version expiration. For more
@@ -1366,6 +1412,14 @@ type RuleGroupResponse struct {
// to the originating rule group.
SourceMetadata *SourceMetadata
+ // A complex type containing the currently selected rule option fields that will
+ // be displayed for rule summarization returned by DescribeRuleGroupSummary.
+ //
+ // - The RuleOptions specified in SummaryConfiguration
+ //
+ // - Rule metadata organization preferences
+ SummaryConfiguration *SummaryConfiguration
+
// The key:value pairs to associate with the resource.
Tags []Tag
@@ -1476,7 +1530,32 @@ type RulesSourceList struct {
noSmithyDocumentSerde
}
+// A complex type containing details about a Suricata rule. Contains:
+//
+// - SID
+//
+// - Msg
+//
+// - Metadata
+//
+// Summaries are available for rule groups you manage and for active threat
+// defense Amazon Web Services managed rule groups.
+type RuleSummary struct {
+
+ // The contents of the rule's metadata.
+ Metadata *string
+
+ // The contents taken from the rule's msg field.
+ Msg *string
+
+ // The unique identifier (Signature ID) of the Suricata rule.
+ SID *string
+
+ noSmithyDocumentSerde
+}
+
// Settings that are available for use in the rules in the RuleGroup where this is defined.
+// See CreateRuleGroupor UpdateRuleGroup for usage.
type RuleVariables struct {
// A list of IP addresses and address ranges, in CIDR notation.
@@ -1532,13 +1611,13 @@ type ServerCertificateConfiguration struct {
// - You can't use certificates issued by Private Certificate Authority.
//
// For more information about configuring certificates for outbound inspection,
- // see [Using SSL/TLS certificates with certificates with TLS inspection configurations]in the Network Firewall Developer Guide.
+ // see [Using SSL/TLS certificates with TLS inspection configurations]in the Network Firewall Developer Guide.
//
// For information about working with certificates in ACM, see [Importing certificates] in the Certificate
// Manager User Guide.
//
+ // [Using SSL/TLS certificates with TLS inspection configurations]: https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html
// [Importing certificates]: https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html
- // [Using SSL/TLS certificates with certificates with TLS inspection configurations]: https://docs.aws.amazon.com/network-firewall/latest/developerguide/tls-inspection-certificate-requirements.html
CertificateAuthorityArn *string
// When enabled, Network Firewall checks if the server certificate presented by
@@ -1625,14 +1704,15 @@ type StatefulEngineOptions struct {
FlowTimeouts *FlowTimeouts
// Indicates how to manage the order of stateful rule evaluation for the policy.
- // STRICT_ORDER is the default and recommended option. With STRICT_ORDER , provide
- // your rules in the order that you want them to be evaluated. You can then choose
- // one or more default actions for packets that don't match any rules. Choose
- // STRICT_ORDER to have the stateful rules engine determine the evaluation order of
- // your rules. The default action for this rule order is PASS , followed by DROP ,
- // REJECT , and ALERT actions. Stateful rules are provided to the rule engine as
- // Suricata compatible strings, and Suricata evaluates them based on your settings.
- // For more information, see [Evaluation order for stateful rules]in the Network Firewall Developer Guide.
+ // STRICT_ORDER is the recommended option, but DEFAULT_ACTION_ORDER is the default
+ // option. With STRICT_ORDER , provide your rules in the order that you want them
+ // to be evaluated. You can then choose one or more default actions for packets
+ // that don't match any rules. Choose STRICT_ORDER to have the stateful rules
+ // engine determine the evaluation order of your rules. The default action for this
+ // rule order is PASS , followed by DROP , REJECT , and ALERT actions. Stateful
+ // rules are provided to the rule engine as Suricata compatible strings, and
+ // Suricata evaluates them based on your settings. For more information, see [Evaluation order for stateful rules]in
+ // the Network Firewall Developer Guide.
//
// [Evaluation order for stateful rules]: https://docs.aws.amazon.com/network-firewall/latest/developerguide/suricata-rule-evaluation-order.html
RuleOrder RuleOrder
@@ -1731,6 +1811,20 @@ type StatefulRuleGroupReference struct {
// This member is required.
ResourceArn *string
+ // Network Firewall plans to augment the active threat defense managed rule group
+ // with an additional deep threat inspection capability. When this capability is
+ // released, Amazon Web Services will analyze service logs of network traffic
+ // processed by these rule groups to identify threat indicators across customers.
+ // Amazon Web Services will use these threat indicators to improve the active
+ // threat defense managed rule groups and protect the security of Amazon Web
+ // Services customers and services.
+ //
+ // Customers can opt-out of deep threat inspection at any time through the Network
+ // Firewall console or API. When customers opt out, Network Firewall will not use
+ // the network traffic processed by those customers' active threat defense rule
+ // groups for rule group improvement.
+ DeepThreatInspection *bool
+
// The action that allows the policy owner to override the behavior of the rule
// group within a policy.
Override *StatefulRuleGroupOverride
@@ -1853,6 +1947,36 @@ type SubnetMapping struct {
noSmithyDocumentSerde
}
+// A complex type containing summaries of security protections provided by a rule
+// group.
+//
+// Network Firewall extracts this information from selected fields in the rule
+// group's Suricata rules, based on your SummaryConfigurationsettings.
+type Summary struct {
+
+ // An array of RuleSummary objects containing individual rule details that had been
+ // configured by the rulegroup's SummaryConfiguration.
+ RuleSummaries []RuleSummary
+
+ noSmithyDocumentSerde
+}
+
+// A complex type that specifies which Suricata rule metadata fields to use when
+// displaying threat information. Contains:
+//
+// - RuleOptions - The Suricata rule options fields to extract and display
+//
+// These settings affect how threat information appears in both the console and
+// API responses. Summaries are available for rule groups you manage and for active
+// threat defense Amazon Web Services managed rule groups.
+type SummaryConfiguration struct {
+
+ // Specifies the selected rule options returned by DescribeRuleGroupSummary.
+ RuleOptions []SummaryRuleOption
+
+ noSmithyDocumentSerde
+}
+
// The status of the firewall endpoint and firewall policy configuration for a
// single VPC subnet. This is part of the FirewallStatus.
//
@@ -2046,6 +2170,71 @@ type TLSInspectionConfigurationResponse struct {
noSmithyDocumentSerde
}
+// Contains information about the synchronization state of a transit gateway
+// attachment, including its current status and any error messages. Network
+// Firewall uses this to track the state of your transit gateway configuration
+// changes.
+type TransitGatewayAttachmentSyncState struct {
+
+ // The unique identifier of the transit gateway attachment.
+ AttachmentId *string
+
+ // A message providing additional information about the current status,
+ // particularly useful when the transit gateway attachment is in a non- READY
+ // state.
+ //
+ // Valid values are:
+ //
+ // - CREATING - The attachment is being created
+ //
+ // - DELETING - The attachment is being deleted
+ //
+ // - DELETED - The attachment has been deleted
+ //
+ // - FAILED - The attachment creation has failed and cannot be recovered
+ //
+ // - ERROR - The attachment is in an error state that might be recoverable
+ //
+ // - READY - The attachment is active and processing traffic
+ //
+ // - PENDING_ACCEPTANCE - The attachment is waiting to be accepted
+ //
+ // - REJECTING - The attachment is in the process of being rejected
+ //
+ // - REJECTED - The attachment has been rejected
+ //
+ // For information about troubleshooting endpoint failures, see [Troubleshooting firewall endpoint failures] in the Network
+ // Firewall Developer Guide.
+ //
+ // [Troubleshooting firewall endpoint failures]: https://docs.aws.amazon.com/network-firewall/latest/developerguide/firewall-troubleshooting-endpoint-failures.html
+ StatusMessage *string
+
+ // The current status of the transit gateway attachment.
+ //
+ // Valid values are:
+ //
+ // - CREATING - The attachment is being created
+ //
+ // - DELETING - The attachment is being deleted
+ //
+ // - DELETED - The attachment has been deleted
+ //
+ // - FAILED - The attachment creation has failed and cannot be recovered
+ //
+ // - ERROR - The attachment is in an error state that might be recoverable
+ //
+ // - READY - The attachment is active and processing traffic
+ //
+ // - PENDING_ACCEPTANCE - The attachment is waiting to be accepted
+ //
+ // - REJECTING - The attachment is in the process of being rejected
+ //
+ // - REJECTED - The attachment has been rejected
+ TransitGatewayAttachmentStatus TransitGatewayAttachmentStatus
+
+ noSmithyDocumentSerde
+}
+
// A unique source IP address that connected to a domain.
type UniqueSources struct {
diff --git a/service/networkfirewall/validators.go b/service/networkfirewall/validators.go
index b59ddde198e..3a165e09fe9 100644
--- a/service/networkfirewall/validators.go
+++ b/service/networkfirewall/validators.go
@@ -10,6 +10,46 @@ import (
"github.com/aws/smithy-go/middleware"
)
+type validateOpAcceptNetworkFirewallTransitGatewayAttachment struct {
+}
+
+func (*validateOpAcceptNetworkFirewallTransitGatewayAttachment) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpAcceptNetworkFirewallTransitGatewayAttachment) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*AcceptNetworkFirewallTransitGatewayAttachmentInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpAcceptNetworkFirewallTransitGatewayAttachmentInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpAssociateAvailabilityZones struct {
+}
+
+func (*validateOpAssociateAvailabilityZones) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpAssociateAvailabilityZones) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*AssociateAvailabilityZonesInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpAssociateAvailabilityZonesInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpAssociateFirewallPolicy struct {
}
@@ -150,6 +190,26 @@ func (m *validateOpCreateVpcEndpointAssociation) HandleInitialize(ctx context.Co
return next.HandleInitialize(ctx, in)
}
+type validateOpDeleteNetworkFirewallTransitGatewayAttachment struct {
+}
+
+func (*validateOpDeleteNetworkFirewallTransitGatewayAttachment) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDeleteNetworkFirewallTransitGatewayAttachment) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DeleteNetworkFirewallTransitGatewayAttachmentInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDeleteNetworkFirewallTransitGatewayAttachmentInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpDeleteResourcePolicy struct {
}
@@ -250,6 +310,26 @@ func (m *validateOpDescribeVpcEndpointAssociation) HandleInitialize(ctx context.
return next.HandleInitialize(ctx, in)
}
+type validateOpDisassociateAvailabilityZones struct {
+}
+
+func (*validateOpDisassociateAvailabilityZones) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDisassociateAvailabilityZones) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DisassociateAvailabilityZonesInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDisassociateAvailabilityZonesInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpDisassociateSubnets struct {
}
@@ -370,6 +450,26 @@ func (m *validateOpPutResourcePolicy) HandleInitialize(ctx context.Context, in m
return next.HandleInitialize(ctx, in)
}
+type validateOpRejectNetworkFirewallTransitGatewayAttachment struct {
+}
+
+func (*validateOpRejectNetworkFirewallTransitGatewayAttachment) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpRejectNetworkFirewallTransitGatewayAttachment) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*RejectNetworkFirewallTransitGatewayAttachmentInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpRejectNetworkFirewallTransitGatewayAttachmentInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpStartAnalysisReport struct {
}
@@ -470,6 +570,26 @@ func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middl
return next.HandleInitialize(ctx, in)
}
+type validateOpUpdateAvailabilityZoneChangeProtection struct {
+}
+
+func (*validateOpUpdateAvailabilityZoneChangeProtection) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpUpdateAvailabilityZoneChangeProtection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*UpdateAvailabilityZoneChangeProtectionInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpUpdateAvailabilityZoneChangeProtectionInput(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpUpdateFirewallDeleteProtection struct {
}
@@ -630,6 +750,14 @@ func (m *validateOpUpdateTLSInspectionConfiguration) HandleInitialize(ctx contex
return next.HandleInitialize(ctx, in)
}
+func addOpAcceptNetworkFirewallTransitGatewayAttachmentValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpAcceptNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+}
+
+func addOpAssociateAvailabilityZonesValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpAssociateAvailabilityZones{}, middleware.After)
+}
+
func addOpAssociateFirewallPolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpAssociateFirewallPolicy{}, middleware.After)
}
@@ -658,6 +786,10 @@ func addOpCreateVpcEndpointAssociationValidationMiddleware(stack *middleware.Sta
return stack.Initialize.Add(&validateOpCreateVpcEndpointAssociation{}, middleware.After)
}
+func addOpDeleteNetworkFirewallTransitGatewayAttachmentValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDeleteNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+}
+
func addOpDeleteResourcePolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteResourcePolicy{}, middleware.After)
}
@@ -678,6 +810,10 @@ func addOpDescribeVpcEndpointAssociationValidationMiddleware(stack *middleware.S
return stack.Initialize.Add(&validateOpDescribeVpcEndpointAssociation{}, middleware.After)
}
+func addOpDisassociateAvailabilityZonesValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDisassociateAvailabilityZones{}, middleware.After)
+}
+
func addOpDisassociateSubnetsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDisassociateSubnets{}, middleware.After)
}
@@ -702,6 +838,10 @@ func addOpPutResourcePolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutResourcePolicy{}, middleware.After)
}
+func addOpRejectNetworkFirewallTransitGatewayAttachmentValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpRejectNetworkFirewallTransitGatewayAttachment{}, middleware.After)
+}
+
func addOpStartAnalysisReportValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartAnalysisReport{}, middleware.After)
}
@@ -722,6 +862,10 @@ func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After)
}
+func addOpUpdateAvailabilityZoneChangeProtectionValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpUpdateAvailabilityZoneChangeProtection{}, middleware.After)
+}
+
func addOpUpdateFirewallDeleteProtectionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateFirewallDeleteProtection{}, middleware.After)
}
@@ -803,6 +947,38 @@ func validateAddresses(v []types.Address) error {
}
}
+func validateAvailabilityZoneMapping(v *types.AvailabilityZoneMapping) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AvailabilityZoneMapping"}
+ if v.AvailabilityZone == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AvailabilityZone"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateAvailabilityZoneMappings(v []types.AvailabilityZoneMapping) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AvailabilityZoneMappings"}
+ for i := range v {
+ if err := validateAvailabilityZoneMapping(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateCustomAction(v *types.CustomAction) error {
if v == nil {
return nil
@@ -1706,6 +1882,40 @@ func validateTLSInspectionConfiguration(v *types.TLSInspectionConfiguration) err
}
}
+func validateOpAcceptNetworkFirewallTransitGatewayAttachmentInput(v *AcceptNetworkFirewallTransitGatewayAttachmentInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AcceptNetworkFirewallTransitGatewayAttachmentInput"}
+ if v.TransitGatewayAttachmentId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("TransitGatewayAttachmentId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpAssociateAvailabilityZonesInput(v *AssociateAvailabilityZonesInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AssociateAvailabilityZonesInput"}
+ if v.AvailabilityZoneMappings == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AvailabilityZoneMappings"))
+ } else if v.AvailabilityZoneMappings != nil {
+ if err := validateAvailabilityZoneMappings(v.AvailabilityZoneMappings); err != nil {
+ invalidParams.AddNested("AvailabilityZoneMappings", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpAssociateFirewallPolicyInput(v *AssociateFirewallPolicyInput) error {
if v == nil {
return nil
@@ -1766,6 +1976,11 @@ func validateOpCreateFirewallInput(v *CreateFirewallInput) error {
invalidParams.AddNested("EncryptionConfiguration", err.(smithy.InvalidParamsError))
}
}
+ if v.AvailabilityZoneMappings != nil {
+ if err := validateAvailabilityZoneMappings(v.AvailabilityZoneMappings); err != nil {
+ invalidParams.AddNested("AvailabilityZoneMappings", err.(smithy.InvalidParamsError))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
} else {
@@ -1903,6 +2118,21 @@ func validateOpCreateVpcEndpointAssociationInput(v *CreateVpcEndpointAssociation
}
}
+func validateOpDeleteNetworkFirewallTransitGatewayAttachmentInput(v *DeleteNetworkFirewallTransitGatewayAttachmentInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DeleteNetworkFirewallTransitGatewayAttachmentInput"}
+ if v.TransitGatewayAttachmentId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("TransitGatewayAttachmentId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpDeleteResourcePolicyInput(v *DeleteResourcePolicyInput) error {
if v == nil {
return nil
@@ -1981,6 +2211,25 @@ func validateOpDescribeVpcEndpointAssociationInput(v *DescribeVpcEndpointAssocia
}
}
+func validateOpDisassociateAvailabilityZonesInput(v *DisassociateAvailabilityZonesInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DisassociateAvailabilityZonesInput"}
+ if v.AvailabilityZoneMappings == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AvailabilityZoneMappings"))
+ } else if v.AvailabilityZoneMappings != nil {
+ if err := validateAvailabilityZoneMappings(v.AvailabilityZoneMappings); err != nil {
+ invalidParams.AddNested("AvailabilityZoneMappings", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpDisassociateSubnetsInput(v *DisassociateSubnetsInput) error {
if v == nil {
return nil
@@ -2077,6 +2326,21 @@ func validateOpPutResourcePolicyInput(v *PutResourcePolicyInput) error {
}
}
+func validateOpRejectNetworkFirewallTransitGatewayAttachmentInput(v *RejectNetworkFirewallTransitGatewayAttachmentInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "RejectNetworkFirewallTransitGatewayAttachmentInput"}
+ if v.TransitGatewayAttachmentId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("TransitGatewayAttachmentId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpStartAnalysisReportInput(v *StartAnalysisReportInput) error {
if v == nil {
return nil
@@ -2176,6 +2440,18 @@ func validateOpUntagResourceInput(v *UntagResourceInput) error {
}
}
+func validateOpUpdateAvailabilityZoneChangeProtectionInput(v *UpdateAvailabilityZoneChangeProtectionInput) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateAvailabilityZoneChangeProtectionInput"}
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpUpdateFirewallDeleteProtectionInput(v *UpdateFirewallDeleteProtectionInput) error {
if v == nil {
return nil
diff --git a/service/networkflowmonitor/CHANGELOG.md b/service/networkflowmonitor/CHANGELOG.md
index 3771bfef92c..aa77ebde315 100644
--- a/service/networkflowmonitor/CHANGELOG.md
+++ b/service/networkflowmonitor/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.2.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.2.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/networkflowmonitor/go.mod b/service/networkflowmonitor/go.mod
index 04bc9778f31..e3b06de0743 100644
--- a/service/networkflowmonitor/go.mod
+++ b/service/networkflowmonitor/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkflowmonitor
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/networkflowmonitor/go.sum b/service/networkflowmonitor/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/networkflowmonitor/go.sum
+++ b/service/networkflowmonitor/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/networkflowmonitor/go_module_metadata.go b/service/networkflowmonitor/go_module_metadata.go
index 8b570b5c713..cd3eda37475 100644
--- a/service/networkflowmonitor/go_module_metadata.go
+++ b/service/networkflowmonitor/go_module_metadata.go
@@ -3,4 +3,4 @@
package networkflowmonitor
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.2"
+const goModuleVersion = "1.2.3"
diff --git a/service/networkmanager/CHANGELOG.md b/service/networkmanager/CHANGELOG.md
index b80e73a8d17..7f2100691ac 100644
--- a/service/networkmanager/CHANGELOG.md
+++ b/service/networkmanager/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.35.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.35.0 (2025-06-11)
+
+* **Feature**: Add support for public DNS hostname resolution to private IP addresses across Cloud WAN-managed VPCs. Add support for security group referencing across Cloud WAN-managed VPCs.
+
# v1.34.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/networkmanager/deserializers.go b/service/networkmanager/deserializers.go
index 090d6ce65ca..9fc188831d2 100644
--- a/service/networkmanager/deserializers.go
+++ b/service/networkmanager/deserializers.go
@@ -16974,6 +16974,15 @@ func awsRestjson1_deserializeDocumentCoreNetworkChangeValues(v **types.CoreNetwo
sv.DestinationIdentifier = ptr.String(jtv)
}
+ case "DnsSupport":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.DnsSupport = jtv
+ }
+
case "EdgeLocations":
if err := awsRestjson1_deserializeDocumentExternalRegionCodeList(&sv.EdgeLocations, value); err != nil {
return err
@@ -16993,6 +17002,15 @@ func awsRestjson1_deserializeDocumentCoreNetworkChangeValues(v **types.CoreNetwo
sv.NetworkFunctionGroupName = ptr.String(jtv)
}
+ case "SecurityGroupReferencingSupport":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.SecurityGroupReferencingSupport = jtv
+ }
+
case "SegmentName":
if value != nil {
jtv, ok := value.(string)
@@ -17012,6 +17030,15 @@ func awsRestjson1_deserializeDocumentCoreNetworkChangeValues(v **types.CoreNetwo
return err
}
+ case "VpnEcmpSupport":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.VpnEcmpSupport = jtv
+ }
+
default:
_, _ = key, value
@@ -21893,6 +21920,15 @@ func awsRestjson1_deserializeDocumentVpcOptions(v **types.VpcOptions, value inte
sv.ApplianceModeSupport = jtv
}
+ case "DnsSupport":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.DnsSupport = jtv
+ }
+
case "Ipv6Support":
if value != nil {
jtv, ok := value.(bool)
@@ -21902,6 +21938,15 @@ func awsRestjson1_deserializeDocumentVpcOptions(v **types.VpcOptions, value inte
sv.Ipv6Support = jtv
}
+ case "SecurityGroupReferencingSupport":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.SecurityGroupReferencingSupport = jtv
+ }
+
default:
_, _ = key, value
diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod
index 3a724e852f9..f5e037898ad 100644
--- a/service/networkmanager/go.mod
+++ b/service/networkmanager/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkmanager
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/networkmanager/go.sum
+++ b/service/networkmanager/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/networkmanager/go_module_metadata.go b/service/networkmanager/go_module_metadata.go
index 59227f06317..0ac5ab35f0d 100644
--- a/service/networkmanager/go_module_metadata.go
+++ b/service/networkmanager/go_module_metadata.go
@@ -3,4 +3,4 @@
package networkmanager
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.2"
+const goModuleVersion = "1.35.1"
diff --git a/service/networkmanager/serializers.go b/service/networkmanager/serializers.go
index ab8bb4ca6e4..6439700d7c5 100644
--- a/service/networkmanager/serializers.go
+++ b/service/networkmanager/serializers.go
@@ -8247,10 +8247,20 @@ func awsRestjson1_serializeDocumentVpcOptions(v *types.VpcOptions, value smithyj
ok.Boolean(v.ApplianceModeSupport)
}
+ if v.DnsSupport {
+ ok := object.Key("DnsSupport")
+ ok.Boolean(v.DnsSupport)
+ }
+
if v.Ipv6Support {
ok := object.Key("Ipv6Support")
ok.Boolean(v.Ipv6Support)
}
+ if v.SecurityGroupReferencingSupport {
+ ok := object.Key("SecurityGroupReferencingSupport")
+ ok.Boolean(v.SecurityGroupReferencingSupport)
+ }
+
return nil
}
diff --git a/service/networkmanager/types/types.go b/service/networkmanager/types/types.go
index f2615b76293..ba2e5120b30 100644
--- a/service/networkmanager/types/types.go
+++ b/service/networkmanager/types/types.go
@@ -481,6 +481,9 @@ type CoreNetworkChangeValues struct {
// The ID of the destination.
DestinationIdentifier *string
+ // Indicates whether public DNS support is supported. The default is true .
+ DnsSupport bool
+
// The Regions where edges are located in a core network.
EdgeLocations []string
@@ -491,6 +494,9 @@ type CoreNetworkChangeValues struct {
// network function group.
NetworkFunctionGroupName *string
+ // Indicates whether security group referencing is enabled for the core network.
+ SecurityGroupReferencingSupport bool
+
// The names of the segments in a core network.
SegmentName *string
@@ -500,6 +506,9 @@ type CoreNetworkChangeValues struct {
// The shared segments for a core network change value.
SharedSegments []string
+ // Indicates whether Equal Cost Multipath (ECMP) is enabled for the core network.
+ VpnEcmpSupport bool
+
noSmithyDocumentSerde
}
@@ -1605,9 +1614,17 @@ type VpcOptions struct {
// for the lifetime of that flow. The default value is false .
ApplianceModeSupport bool
+ // Indicates whether DNS is supported.
+ DnsSupport bool
+
// Indicates whether IPv6 is supported.
Ipv6Support bool
+ // Indicates whether security group referencing is enabled for this VPC
+ // attachment. The default is true . However, at the core network policy-level the
+ // default is set to false .
+ SecurityGroupReferencingSupport bool
+
noSmithyDocumentSerde
}
diff --git a/service/networkmonitor/CHANGELOG.md b/service/networkmonitor/CHANGELOG.md
index a3a8e781163..1d922016980 100644
--- a/service/networkmonitor/CHANGELOG.md
+++ b/service/networkmonitor/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.8.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.8.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/networkmonitor/go.mod b/service/networkmonitor/go.mod
index d3e2563bd5c..800517994a9 100644
--- a/service/networkmonitor/go.mod
+++ b/service/networkmonitor/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkmonitor
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/networkmonitor/go.sum b/service/networkmonitor/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/networkmonitor/go.sum
+++ b/service/networkmonitor/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/networkmonitor/go_module_metadata.go b/service/networkmonitor/go_module_metadata.go
index 0b9dd04b345..e38e636ad23 100644
--- a/service/networkmonitor/go_module_metadata.go
+++ b/service/networkmonitor/go_module_metadata.go
@@ -3,4 +3,4 @@
package networkmonitor
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.8.3"
+const goModuleVersion = "1.8.4"
diff --git a/service/notifications/CHANGELOG.md b/service/notifications/CHANGELOG.md
index abc73040ae7..479f0bb538a 100644
--- a/service/notifications/CHANGELOG.md
+++ b/service/notifications/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.2.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.2.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/notifications/go.mod b/service/notifications/go.mod
index ab284b3d200..c4af92dbb14 100644
--- a/service/notifications/go.mod
+++ b/service/notifications/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/notifications
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/notifications/go.sum b/service/notifications/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/notifications/go.sum
+++ b/service/notifications/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/notifications/go_module_metadata.go b/service/notifications/go_module_metadata.go
index a0409bbd865..530a5c5cbb4 100644
--- a/service/notifications/go_module_metadata.go
+++ b/service/notifications/go_module_metadata.go
@@ -3,4 +3,4 @@
package notifications
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.4"
+const goModuleVersion = "1.2.5"
diff --git a/service/notificationscontacts/CHANGELOG.md b/service/notificationscontacts/CHANGELOG.md
index 4cc4ff639cd..edd5bc536b9 100644
--- a/service/notificationscontacts/CHANGELOG.md
+++ b/service/notificationscontacts/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.1.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.1.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/notificationscontacts/go.mod b/service/notificationscontacts/go.mod
index ef0819356c9..68d7fad8dc9 100644
--- a/service/notificationscontacts/go.mod
+++ b/service/notificationscontacts/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/notificationscontacts
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/notificationscontacts/go.sum b/service/notificationscontacts/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/notificationscontacts/go.sum
+++ b/service/notificationscontacts/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/notificationscontacts/go_module_metadata.go b/service/notificationscontacts/go_module_metadata.go
index eac7269da5e..2716619b7b5 100644
--- a/service/notificationscontacts/go_module_metadata.go
+++ b/service/notificationscontacts/go_module_metadata.go
@@ -3,4 +3,4 @@
package notificationscontacts
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.1.3"
+const goModuleVersion = "1.1.4"
diff --git a/service/oam/CHANGELOG.md b/service/oam/CHANGELOG.md
index 1bf6bdb2bc5..8ba39e7a9fe 100644
--- a/service/oam/CHANGELOG.md
+++ b/service/oam/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.18.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.18.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/oam/go.mod b/service/oam/go.mod
index 44bdaa5252f..281d9d1eef7 100644
--- a/service/oam/go.mod
+++ b/service/oam/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/oam
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/oam/go.sum b/service/oam/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/oam/go.sum
+++ b/service/oam/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/oam/go_module_metadata.go b/service/oam/go_module_metadata.go
index 15ff7d00323..278fa601d00 100644
--- a/service/oam/go_module_metadata.go
+++ b/service/oam/go_module_metadata.go
@@ -3,4 +3,4 @@
package oam
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.18.2"
+const goModuleVersion = "1.18.3"
diff --git a/service/observabilityadmin/CHANGELOG.md b/service/observabilityadmin/CHANGELOG.md
index 99d228aa2df..fe4758454be 100644
--- a/service/observabilityadmin/CHANGELOG.md
+++ b/service/observabilityadmin/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.1.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.1.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/observabilityadmin/go.mod b/service/observabilityadmin/go.mod
index d59e48f6801..cc9750a77ae 100644
--- a/service/observabilityadmin/go.mod
+++ b/service/observabilityadmin/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/observabilityadmin
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/observabilityadmin/go.sum b/service/observabilityadmin/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/observabilityadmin/go.sum
+++ b/service/observabilityadmin/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/observabilityadmin/go_module_metadata.go b/service/observabilityadmin/go_module_metadata.go
index 79fcdc52d63..da56f7c6404 100644
--- a/service/observabilityadmin/go_module_metadata.go
+++ b/service/observabilityadmin/go_module_metadata.go
@@ -3,4 +3,4 @@
package observabilityadmin
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.1.3"
+const goModuleVersion = "1.1.4"
diff --git a/service/omics/CHANGELOG.md b/service/omics/CHANGELOG.md
index b6e6e645570..c613216535e 100644
--- a/service/omics/CHANGELOG.md
+++ b/service/omics/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/omics/go.mod b/service/omics/go.mod
index 6538ddcfc77..3dfe1912938 100644
--- a/service/omics/go.mod
+++ b/service/omics/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/omics
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/omics/go.sum b/service/omics/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/omics/go.sum
+++ b/service/omics/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/omics/go_module_metadata.go b/service/omics/go_module_metadata.go
index fbe6f435b64..32d615fcb8c 100644
--- a/service/omics/go_module_metadata.go
+++ b/service/omics/go_module_metadata.go
@@ -3,4 +3,4 @@
package omics
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.1"
+const goModuleVersion = "1.30.2"
diff --git a/service/opensearch/CHANGELOG.md b/service/opensearch/CHANGELOG.md
index 6e200f5973e..5d851af5b16 100644
--- a/service/opensearch/CHANGELOG.md
+++ b/service/opensearch/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.46.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.46.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/opensearch/go.mod b/service/opensearch/go.mod
index 0d7e491d06c..c9d8e636985 100644
--- a/service/opensearch/go.mod
+++ b/service/opensearch/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opensearch
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/opensearch/go.sum b/service/opensearch/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/opensearch/go.sum
+++ b/service/opensearch/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/opensearch/go_module_metadata.go b/service/opensearch/go_module_metadata.go
index c72cefaa7b9..11f04bd828d 100644
--- a/service/opensearch/go_module_metadata.go
+++ b/service/opensearch/go_module_metadata.go
@@ -3,4 +3,4 @@
package opensearch
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.46.5"
+const goModuleVersion = "1.46.6"
diff --git a/service/opensearchserverless/CHANGELOG.md b/service/opensearchserverless/CHANGELOG.md
index 4f82aeb9aec..76e751bfde5 100644
--- a/service/opensearchserverless/CHANGELOG.md
+++ b/service/opensearchserverless/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.19.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.19.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/opensearchserverless/go.mod b/service/opensearchserverless/go.mod
index 0c4fc862fc5..eb686b27045 100644
--- a/service/opensearchserverless/go.mod
+++ b/service/opensearchserverless/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opensearchserverless
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/opensearchserverless/go.sum b/service/opensearchserverless/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/opensearchserverless/go.sum
+++ b/service/opensearchserverless/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/opensearchserverless/go_module_metadata.go b/service/opensearchserverless/go_module_metadata.go
index b0e47d00d11..15847c90aef 100644
--- a/service/opensearchserverless/go_module_metadata.go
+++ b/service/opensearchserverless/go_module_metadata.go
@@ -3,4 +3,4 @@
package opensearchserverless
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.19.5"
+const goModuleVersion = "1.19.6"
diff --git a/service/opsworks/CHANGELOG.md b/service/opsworks/CHANGELOG.md
index 09cd2c80f4c..972dbf7c12e 100644
--- a/service/opsworks/CHANGELOG.md
+++ b/service/opsworks/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod
index 50e95ea2d5f..7dad87728eb 100644
--- a/service/opsworks/go.mod
+++ b/service/opsworks/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opsworks
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/opsworks/go.sum
+++ b/service/opsworks/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/opsworks/go_module_metadata.go b/service/opsworks/go_module_metadata.go
index 095eb5ebcfe..f1533cfc853 100644
--- a/service/opsworks/go_module_metadata.go
+++ b/service/opsworks/go_module_metadata.go
@@ -3,4 +3,4 @@
package opsworks
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.4"
+const goModuleVersion = "1.27.5"
diff --git a/service/opsworkscm/CHANGELOG.md b/service/opsworkscm/CHANGELOG.md
index 61fbd95238d..41540a5172f 100644
--- a/service/opsworkscm/CHANGELOG.md
+++ b/service/opsworkscm/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod
index 5fe13febb0e..fb5b289303f 100644
--- a/service/opsworkscm/go.mod
+++ b/service/opsworkscm/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opsworkscm
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/opsworkscm/go.sum
+++ b/service/opsworkscm/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/opsworkscm/go_module_metadata.go b/service/opsworkscm/go_module_metadata.go
index 76b1644b3b1..7d8d2fc53b7 100644
--- a/service/opsworkscm/go_module_metadata.go
+++ b/service/opsworkscm/go_module_metadata.go
@@ -3,4 +3,4 @@
package opsworkscm
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/organizations/CHANGELOG.md b/service/organizations/CHANGELOG.md
index 81d1ae1fa04..45f22c3052e 100644
--- a/service/organizations/CHANGELOG.md
+++ b/service/organizations/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.39.0 (2025-06-17)
+
+* **Feature**: Add support for policy operations on the SECURITYHUB_POLICY policy type.
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.38.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/organizations/api_op_AttachPolicy.go b/service/organizations/api_op_AttachPolicy.go
index da6a353396c..83054c1a1fc 100644
--- a/service/organizations/api_op_AttachPolicy.go
+++ b/service/organizations/api_op_AttachPolicy.go
@@ -28,11 +28,13 @@ import (
//
// [AISERVICES_OPT_OUT_POLICY]
//
+// [SECURITYHUB_POLICY]
+//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
//
// [AISERVICES_OPT_OUT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
+// [SECURITYHUB_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
// [BACKUP_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
// [SERVICE_CONTROL_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
// [CHATBOT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
diff --git a/service/organizations/api_op_CreatePolicy.go b/service/organizations/api_op_CreatePolicy.go
index dc3a001a2ea..57a07483b33 100644
--- a/service/organizations/api_op_CreatePolicy.go
+++ b/service/organizations/api_op_CreatePolicy.go
@@ -20,8 +20,7 @@ import (
// organizations:TagResource permission.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
//
// [Managing Organizations policies]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html
func (c *Client) CreatePolicy(ctx context.Context, params *CreatePolicyInput, optFns ...func(*Options)) (*CreatePolicyOutput, error) {
@@ -83,7 +82,10 @@ type CreatePolicyInput struct {
//
// [AISERVICES_OPT_OUT_POLICY]
//
+ // [SECURITYHUB_POLICY]
+ //
// [AISERVICES_OPT_OUT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
+ // [SECURITYHUB_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
// [BACKUP_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
// [SERVICE_CONTROL_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
// [CHATBOT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
diff --git a/service/organizations/api_op_DeletePolicy.go b/service/organizations/api_op_DeletePolicy.go
index 49f935414c9..cdc2f7169ab 100644
--- a/service/organizations/api_op_DeletePolicy.go
+++ b/service/organizations/api_op_DeletePolicy.go
@@ -15,8 +15,7 @@ import (
// roots, and accounts.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) DeletePolicy(ctx context.Context, params *DeletePolicyInput, optFns ...func(*Options)) (*DeletePolicyOutput, error) {
if params == nil {
params = &DeletePolicyInput{}
diff --git a/service/organizations/api_op_DeleteResourcePolicy.go b/service/organizations/api_op_DeleteResourcePolicy.go
index 3a5d02fab49..b37e74d1583 100644
--- a/service/organizations/api_op_DeleteResourcePolicy.go
+++ b/service/organizations/api_op_DeleteResourcePolicy.go
@@ -12,7 +12,7 @@ import (
// Deletes the resource policy from your organization.
//
-// You can only call this operation from the organization's management account.
+// This operation can be called only from the organization's management account.
func (c *Client) DeleteResourcePolicy(ctx context.Context, params *DeleteResourcePolicyInput, optFns ...func(*Options)) (*DeleteResourcePolicyOutput, error) {
if params == nil {
params = &DeleteResourcePolicyInput{}
diff --git a/service/organizations/api_op_DescribeAccount.go b/service/organizations/api_op_DescribeAccount.go
index 8af37ea866d..4adc96f1866 100644
--- a/service/organizations/api_op_DescribeAccount.go
+++ b/service/organizations/api_op_DescribeAccount.go
@@ -14,8 +14,7 @@ import (
// Retrieves Organizations-related information about the specified account.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) DescribeAccount(ctx context.Context, params *DescribeAccountInput, optFns ...func(*Options)) (*DescribeAccountOutput, error) {
if params == nil {
params = &DescribeAccountInput{}
diff --git a/service/organizations/api_op_DescribeCreateAccountStatus.go b/service/organizations/api_op_DescribeCreateAccountStatus.go
index 6ac8d3bba82..41f693a003e 100644
--- a/service/organizations/api_op_DescribeCreateAccountStatus.go
+++ b/service/organizations/api_op_DescribeCreateAccountStatus.go
@@ -14,8 +14,7 @@ import (
// Retrieves the current status of an asynchronous request to create an account.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) DescribeCreateAccountStatus(ctx context.Context, params *DescribeCreateAccountStatusInput, optFns ...func(*Options)) (*DescribeCreateAccountStatusOutput, error) {
if params == nil {
params = &DescribeCreateAccountStatusInput{}
diff --git a/service/organizations/api_op_DescribeEffectivePolicy.go b/service/organizations/api_op_DescribeEffectivePolicy.go
index 04750e01635..259ce0dcb18 100644
--- a/service/organizations/api_op_DescribeEffectivePolicy.go
+++ b/service/organizations/api_op_DescribeEffectivePolicy.go
@@ -56,7 +56,10 @@ type DescribeEffectivePolicyInput struct {
//
// [AISERVICES_OPT_OUT_POLICY]
//
+ // [SECURITYHUB_POLICY]
+ //
// [AISERVICES_OPT_OUT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
+ // [SECURITYHUB_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
// [BACKUP_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
// [CHATBOT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
// [TAG_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html
diff --git a/service/organizations/api_op_DescribeOrganizationalUnit.go b/service/organizations/api_op_DescribeOrganizationalUnit.go
index 99ce6ed2a05..fbef0438cb3 100644
--- a/service/organizations/api_op_DescribeOrganizationalUnit.go
+++ b/service/organizations/api_op_DescribeOrganizationalUnit.go
@@ -14,8 +14,7 @@ import (
// Retrieves information about an organizational unit (OU).
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) DescribeOrganizationalUnit(ctx context.Context, params *DescribeOrganizationalUnitInput, optFns ...func(*Options)) (*DescribeOrganizationalUnitOutput, error) {
if params == nil {
params = &DescribeOrganizationalUnitInput{}
diff --git a/service/organizations/api_op_DescribePolicy.go b/service/organizations/api_op_DescribePolicy.go
index 6fc48c5c992..c7e72eb739f 100644
--- a/service/organizations/api_op_DescribePolicy.go
+++ b/service/organizations/api_op_DescribePolicy.go
@@ -14,8 +14,7 @@ import (
// Retrieves information about a policy.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) DescribePolicy(ctx context.Context, params *DescribePolicyInput, optFns ...func(*Options)) (*DescribePolicyOutput, error) {
if params == nil {
params = &DescribePolicyInput{}
diff --git a/service/organizations/api_op_DescribeResourcePolicy.go b/service/organizations/api_op_DescribeResourcePolicy.go
index 384e5d146de..32bf67bc153 100644
--- a/service/organizations/api_op_DescribeResourcePolicy.go
+++ b/service/organizations/api_op_DescribeResourcePolicy.go
@@ -14,8 +14,7 @@ import (
// Retrieves information about a resource policy.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) DescribeResourcePolicy(ctx context.Context, params *DescribeResourcePolicyInput, optFns ...func(*Options)) (*DescribeResourcePolicyOutput, error) {
if params == nil {
params = &DescribeResourcePolicyInput{}
diff --git a/service/organizations/api_op_DetachPolicy.go b/service/organizations/api_op_DetachPolicy.go
index 3e2a40fd724..c5e750386c0 100644
--- a/service/organizations/api_op_DetachPolicy.go
+++ b/service/organizations/api_op_DetachPolicy.go
@@ -26,8 +26,7 @@ import (
// authorization strategy of a "[deny list] ".
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
//
// [deny list]: https://docs.aws.amazon.com/organizations/latest/userguide/SCP_strategies.html#orgs_policies_denylist
// [allow list]: https://docs.aws.amazon.com/organizations/latest/userguide/SCP_strategies.html#orgs_policies_allowlist
diff --git a/service/organizations/api_op_DisablePolicyType.go b/service/organizations/api_op_DisablePolicyType.go
index 371313413da..617d25336cf 100644
--- a/service/organizations/api_op_DisablePolicyType.go
+++ b/service/organizations/api_op_DisablePolicyType.go
@@ -24,8 +24,7 @@ import (
// root, and then use this operation.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
//
// To view the status of available policy types in the organization, use DescribeOrganization.
//
@@ -64,7 +63,10 @@ type DisablePolicyTypeInput struct {
//
// [AISERVICES_OPT_OUT_POLICY]
//
+ // [SECURITYHUB_POLICY]
+ //
// [AISERVICES_OPT_OUT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
+ // [SECURITYHUB_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
// [BACKUP_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
// [SERVICE_CONTROL_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
// [CHATBOT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
diff --git a/service/organizations/api_op_EnableAWSServiceAccess.go b/service/organizations/api_op_EnableAWSServiceAccess.go
index 88628f42703..1466a88d450 100644
--- a/service/organizations/api_op_EnableAWSServiceAccess.go
+++ b/service/organizations/api_op_EnableAWSServiceAccess.go
@@ -28,10 +28,8 @@ import (
// For more information about enabling services to integrate with Organizations,
// see [Using Organizations with other Amazon Web Services services]in the Organizations User Guide.
//
-// You can only call this operation from the organization's management account and
-// only if the organization has [enabled all features].
+// This operation can be called only from the organization's management account.
//
-// [enabled all features]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
// [Using Organizations with other Amazon Web Services services]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
// [service-linked role]: https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html
func (c *Client) EnableAWSServiceAccess(ctx context.Context, params *EnableAWSServiceAccessInput, optFns ...func(*Options)) (*EnableAWSServiceAccessOutput, error) {
diff --git a/service/organizations/api_op_EnablePolicyType.go b/service/organizations/api_op_EnablePolicyType.go
index 0d32ab5102d..4b629ceccdc 100644
--- a/service/organizations/api_op_EnablePolicyType.go
+++ b/service/organizations/api_op_EnablePolicyType.go
@@ -20,8 +20,7 @@ import (
// of policy types for a specified root, and then use this operation.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
//
// You can enable a policy type in a root only if that policy type is available in
// the organization. To view the status of available policy types in the
@@ -60,7 +59,10 @@ type EnablePolicyTypeInput struct {
//
// [AISERVICES_OPT_OUT_POLICY]
//
+ // [SECURITYHUB_POLICY]
+ //
// [AISERVICES_OPT_OUT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
+ // [SECURITYHUB_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
// [BACKUP_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
// [SERVICE_CONTROL_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
// [CHATBOT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
diff --git a/service/organizations/api_op_InviteAccountToOrganization.go b/service/organizations/api_op_InviteAccountToOrganization.go
index 8b3c4f05f56..a54189f1241 100644
--- a/service/organizations/api_op_InviteAccountToOrganization.go
+++ b/service/organizations/api_op_InviteAccountToOrganization.go
@@ -16,17 +16,10 @@ import (
// associated with the other account's owner. The invitation is implemented as a Handshake
// whose details are in the response.
//
-// - You can invite Amazon Web Services accounts only from the same seller as
-// the management account. For example, if your organization's management account
-// was created by Amazon Internet Services Pvt. Ltd (AISPL), an Amazon Web Services
-// seller in India, you can invite only other AISPL accounts to your organization.
-// You can't combine accounts from AISPL and Amazon Web Services or from any other
-// Amazon Web Services seller. For more information, see [Consolidated billing in India].
-//
-// - If you receive an exception that indicates that you exceeded your account
-// limits for the organization or that the operation failed because your
-// organization is still initializing, wait one hour and then try again. If the
-// error persists after an hour, contact [Amazon Web Services Support].
+// If you receive an exception that indicates that you exceeded your account
+// limits for the organization or that the operation failed because your
+// organization is still initializing, wait one hour and then try again. If the
+// error persists after an hour, contact [Amazon Web Services Support].
//
// If the request includes tags, then the requester must have the
// organizations:TagResource permission.
@@ -34,7 +27,6 @@ import (
// This operation can be called only from the organization's management account.
//
// [Amazon Web Services Support]: https://console.aws.amazon.com/support/home#/
-// [Consolidated billing in India]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/useconsolidatedbilling-India.html
func (c *Client) InviteAccountToOrganization(ctx context.Context, params *InviteAccountToOrganizationInput, optFns ...func(*Options)) (*InviteAccountToOrganizationOutput, error) {
if params == nil {
params = &InviteAccountToOrganizationInput{}
diff --git a/service/organizations/api_op_LeaveOrganization.go b/service/organizations/api_op_LeaveOrganization.go
index 5b29bfc5e89..3f8d5a364a9 100644
--- a/service/organizations/api_op_LeaveOrganization.go
+++ b/service/organizations/api_op_LeaveOrganization.go
@@ -46,10 +46,6 @@ import (
// the account is a delegated administrator, you must first change the delegated
// administrator account to another account that is remaining in the organization.
//
-// - You can leave an organization only after you enable IAM user access to
-// billing in your account. For more information, see [About IAM access to the Billing and Cost Management console]in the Amazon Web Services
-// Billing and Cost Management User Guide.
-//
// - After the account leaves the organization, all tags that were attached to
// the account object in the organization are deleted. Amazon Web Services accounts
// outside of an organization do not support tags.
@@ -62,7 +58,6 @@ import (
// multiple accounts, you can only do this up to 5 accounts per second in a single
// organization.
//
-// [About IAM access to the Billing and Cost Management console]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.html#ControllingAccessWebsite-Activate
// [Considerations before removing an account from an organization]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_account-before-remove.html
func (c *Client) LeaveOrganization(ctx context.Context, params *LeaveOrganizationInput, optFns ...func(*Options)) (*LeaveOrganizationOutput, error) {
if params == nil {
diff --git a/service/organizations/api_op_ListAWSServiceAccessForOrganization.go b/service/organizations/api_op_ListAWSServiceAccessForOrganization.go
index c2bd2be09ab..7884c4c6f64 100644
--- a/service/organizations/api_op_ListAWSServiceAccessForOrganization.go
+++ b/service/organizations/api_op_ListAWSServiceAccessForOrganization.go
@@ -21,8 +21,7 @@ import (
// the Organizations User Guide.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
//
// [Using Organizations with other Amazon Web Services services]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html
func (c *Client) ListAWSServiceAccessForOrganization(ctx context.Context, params *ListAWSServiceAccessForOrganizationInput, optFns ...func(*Options)) (*ListAWSServiceAccessForOrganizationOutput, error) {
diff --git a/service/organizations/api_op_ListAccounts.go b/service/organizations/api_op_ListAccounts.go
index 139726c57f8..d12f5cf7a77 100644
--- a/service/organizations/api_op_ListAccounts.go
+++ b/service/organizations/api_op_ListAccounts.go
@@ -20,8 +20,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListAccounts(ctx context.Context, params *ListAccountsInput, optFns ...func(*Options)) (*ListAccountsOutput, error) {
if params == nil {
params = &ListAccountsInput{}
diff --git a/service/organizations/api_op_ListAccountsForParent.go b/service/organizations/api_op_ListAccountsForParent.go
index d798ee8efe2..d9284974b34 100644
--- a/service/organizations/api_op_ListAccountsForParent.go
+++ b/service/organizations/api_op_ListAccountsForParent.go
@@ -23,8 +23,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListAccountsForParent(ctx context.Context, params *ListAccountsForParentInput, optFns ...func(*Options)) (*ListAccountsForParentOutput, error) {
if params == nil {
params = &ListAccountsForParentInput{}
diff --git a/service/organizations/api_op_ListChildren.go b/service/organizations/api_op_ListChildren.go
index 87ca5764592..c8c7a10d753 100644
--- a/service/organizations/api_op_ListChildren.go
+++ b/service/organizations/api_op_ListChildren.go
@@ -21,8 +21,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListChildren(ctx context.Context, params *ListChildrenInput, optFns ...func(*Options)) (*ListChildrenOutput, error) {
if params == nil {
params = &ListChildrenInput{}
diff --git a/service/organizations/api_op_ListCreateAccountStatus.go b/service/organizations/api_op_ListCreateAccountStatus.go
index 0a7bd63f261..5f2f9dc678e 100644
--- a/service/organizations/api_op_ListCreateAccountStatus.go
+++ b/service/organizations/api_op_ListCreateAccountStatus.go
@@ -20,8 +20,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListCreateAccountStatus(ctx context.Context, params *ListCreateAccountStatusInput, optFns ...func(*Options)) (*ListCreateAccountStatusOutput, error) {
if params == nil {
params = &ListCreateAccountStatusInput{}
diff --git a/service/organizations/api_op_ListDelegatedAdministrators.go b/service/organizations/api_op_ListDelegatedAdministrators.go
index 8cd1cada48f..2ec374a36ba 100644
--- a/service/organizations/api_op_ListDelegatedAdministrators.go
+++ b/service/organizations/api_op_ListDelegatedAdministrators.go
@@ -15,8 +15,7 @@ import (
// administrators in this organization.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListDelegatedAdministrators(ctx context.Context, params *ListDelegatedAdministratorsInput, optFns ...func(*Options)) (*ListDelegatedAdministratorsOutput, error) {
if params == nil {
params = &ListDelegatedAdministratorsInput{}
diff --git a/service/organizations/api_op_ListDelegatedServicesForAccount.go b/service/organizations/api_op_ListDelegatedServicesForAccount.go
index 3b08dafdded..e28921baedd 100644
--- a/service/organizations/api_op_ListDelegatedServicesForAccount.go
+++ b/service/organizations/api_op_ListDelegatedServicesForAccount.go
@@ -15,8 +15,7 @@ import (
// delegated administrator.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListDelegatedServicesForAccount(ctx context.Context, params *ListDelegatedServicesForAccountInput, optFns ...func(*Options)) (*ListDelegatedServicesForAccountOutput, error) {
if params == nil {
params = &ListDelegatedServicesForAccountInput{}
diff --git a/service/organizations/api_op_ListHandshakesForOrganization.go b/service/organizations/api_op_ListHandshakesForOrganization.go
index 9c7788aaac1..5dc4e34dda5 100644
--- a/service/organizations/api_op_ListHandshakesForOrganization.go
+++ b/service/organizations/api_op_ListHandshakesForOrganization.go
@@ -26,8 +26,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListHandshakesForOrganization(ctx context.Context, params *ListHandshakesForOrganizationInput, optFns ...func(*Options)) (*ListHandshakesForOrganizationOutput, error) {
if params == nil {
params = &ListHandshakesForOrganizationInput{}
diff --git a/service/organizations/api_op_ListOrganizationalUnitsForParent.go b/service/organizations/api_op_ListOrganizationalUnitsForParent.go
index 77084001471..a7a0998e5c0 100644
--- a/service/organizations/api_op_ListOrganizationalUnitsForParent.go
+++ b/service/organizations/api_op_ListOrganizationalUnitsForParent.go
@@ -19,8 +19,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListOrganizationalUnitsForParent(ctx context.Context, params *ListOrganizationalUnitsForParentInput, optFns ...func(*Options)) (*ListOrganizationalUnitsForParentOutput, error) {
if params == nil {
params = &ListOrganizationalUnitsForParentInput{}
diff --git a/service/organizations/api_op_ListParents.go b/service/organizations/api_op_ListParents.go
index 041d1f0b74f..8f3abb3dd66 100644
--- a/service/organizations/api_op_ListParents.go
+++ b/service/organizations/api_op_ListParents.go
@@ -21,8 +21,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
//
// In the current release, a child can have only a single parent.
func (c *Client) ListParents(ctx context.Context, params *ListParentsInput, optFns ...func(*Options)) (*ListParentsOutput, error) {
diff --git a/service/organizations/api_op_ListPolicies.go b/service/organizations/api_op_ListPolicies.go
index 7b449dbd6ed..ebe2fe49548 100644
--- a/service/organizations/api_op_ListPolicies.go
+++ b/service/organizations/api_op_ListPolicies.go
@@ -19,8 +19,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListPolicies(ctx context.Context, params *ListPoliciesInput, optFns ...func(*Options)) (*ListPoliciesOutput, error) {
if params == nil {
params = &ListPoliciesInput{}
@@ -55,7 +54,10 @@ type ListPoliciesInput struct {
//
// [AISERVICES_OPT_OUT_POLICY]
//
+ // [SECURITYHUB_POLICY]
+ //
// [AISERVICES_OPT_OUT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
+ // [SECURITYHUB_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
// [BACKUP_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
// [SERVICE_CONTROL_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
// [CHATBOT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
diff --git a/service/organizations/api_op_ListPoliciesForTarget.go b/service/organizations/api_op_ListPoliciesForTarget.go
index a507cc53350..f16ac7da95b 100644
--- a/service/organizations/api_op_ListPoliciesForTarget.go
+++ b/service/organizations/api_op_ListPoliciesForTarget.go
@@ -21,8 +21,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListPoliciesForTarget(ctx context.Context, params *ListPoliciesForTargetInput, optFns ...func(*Options)) (*ListPoliciesForTargetOutput, error) {
if params == nil {
params = &ListPoliciesForTargetInput{}
@@ -57,7 +56,10 @@ type ListPoliciesForTargetInput struct {
//
// [AISERVICES_OPT_OUT_POLICY]
//
+ // [SECURITYHUB_POLICY]
+ //
// [AISERVICES_OPT_OUT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html
+ // [SECURITYHUB_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html
// [BACKUP_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html
// [SERVICE_CONTROL_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html
// [CHATBOT_POLICY]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html
diff --git a/service/organizations/api_op_ListRoots.go b/service/organizations/api_op_ListRoots.go
index 299d636f076..0d4e901f356 100644
--- a/service/organizations/api_op_ListRoots.go
+++ b/service/organizations/api_op_ListRoots.go
@@ -19,8 +19,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
//
// Policy types can be enabled and disabled in roots. This is distinct from
// whether they're available in the organization. When you enable all features, you
diff --git a/service/organizations/api_op_ListTagsForResource.go b/service/organizations/api_op_ListTagsForResource.go
index 1fe592a02d9..e2e96913ca2 100644
--- a/service/organizations/api_op_ListTagsForResource.go
+++ b/service/organizations/api_op_ListTagsForResource.go
@@ -24,8 +24,7 @@ import (
// - Policy (any type)
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) {
if params == nil {
params = &ListTagsForResourceInput{}
diff --git a/service/organizations/api_op_ListTargetsForPolicy.go b/service/organizations/api_op_ListTargetsForPolicy.go
index ab695f53e3c..d2b0104815b 100644
--- a/service/organizations/api_op_ListTargetsForPolicy.go
+++ b/service/organizations/api_op_ListTargetsForPolicy.go
@@ -20,8 +20,7 @@ import (
// parameter value is null only when there are no more results to display.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) ListTargetsForPolicy(ctx context.Context, params *ListTargetsForPolicyInput, optFns ...func(*Options)) (*ListTargetsForPolicyOutput, error) {
if params == nil {
params = &ListTargetsForPolicyInput{}
diff --git a/service/organizations/api_op_PutResourcePolicy.go b/service/organizations/api_op_PutResourcePolicy.go
index 7e0490e7a66..a4e22f7b3a9 100644
--- a/service/organizations/api_op_PutResourcePolicy.go
+++ b/service/organizations/api_op_PutResourcePolicy.go
@@ -13,7 +13,7 @@ import (
// Creates or updates a resource policy.
//
-// You can only call this operation from the organization's management account.
+// This operation can be called only from the organization's management account..
func (c *Client) PutResourcePolicy(ctx context.Context, params *PutResourcePolicyInput, optFns ...func(*Options)) (*PutResourcePolicyOutput, error) {
if params == nil {
params = &PutResourcePolicyInput{}
diff --git a/service/organizations/api_op_TagResource.go b/service/organizations/api_op_TagResource.go
index dd15df82c5e..7d6abb31a26 100644
--- a/service/organizations/api_op_TagResource.go
+++ b/service/organizations/api_op_TagResource.go
@@ -24,8 +24,7 @@ import (
// - Policy (any type)
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) {
if params == nil {
params = &TagResourceInput{}
diff --git a/service/organizations/api_op_UntagResource.go b/service/organizations/api_op_UntagResource.go
index 3f14af5546c..fbdf018e3b7 100644
--- a/service/organizations/api_op_UntagResource.go
+++ b/service/organizations/api_op_UntagResource.go
@@ -23,8 +23,7 @@ import (
// - Policy (any type)
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) {
if params == nil {
params = &UntagResourceInput{}
diff --git a/service/organizations/api_op_UpdatePolicy.go b/service/organizations/api_op_UpdatePolicy.go
index da434c0f6b4..0b66b69d59c 100644
--- a/service/organizations/api_op_UpdatePolicy.go
+++ b/service/organizations/api_op_UpdatePolicy.go
@@ -16,8 +16,7 @@ import (
// policy's type.
//
// This operation can be called only from the organization's management account or
-// by a member account that is a delegated administrator for an Amazon Web Services
-// service.
+// by a member account that is a delegated administrator.
func (c *Client) UpdatePolicy(ctx context.Context, params *UpdatePolicyInput, optFns ...func(*Options)) (*UpdatePolicyOutput, error) {
if params == nil {
params = &UpdatePolicyInput{}
diff --git a/service/organizations/go.mod b/service/organizations/go.mod
index ff9dbce9f22..bac1864cf87 100644
--- a/service/organizations/go.mod
+++ b/service/organizations/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/organizations
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/organizations/go.sum b/service/organizations/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/organizations/go.sum
+++ b/service/organizations/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/organizations/go_module_metadata.go b/service/organizations/go_module_metadata.go
index 3dd2e0764f2..1fb4444f5c9 100644
--- a/service/organizations/go_module_metadata.go
+++ b/service/organizations/go_module_metadata.go
@@ -3,4 +3,4 @@
package organizations
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.38.4"
+const goModuleVersion = "1.39.0"
diff --git a/service/organizations/types/enums.go b/service/organizations/types/enums.go
index d3ce557e900..dddbabe814d 100644
--- a/service/organizations/types/enums.go
+++ b/service/organizations/types/enums.go
@@ -133,6 +133,7 @@ const (
ConstraintViolationExceptionReasonCannotRegisterMasterAsDelegatedAdministrator ConstraintViolationExceptionReason = "CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR"
ConstraintViolationExceptionReasonCannotRemoveDelegatedAdministratorFromOrg ConstraintViolationExceptionReason = "CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG"
ConstraintViolationExceptionReasonDelegatedAdministratorExistsForThisService ConstraintViolationExceptionReason = "DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE"
+ ConstraintViolationExceptionReasonPolicyTypeEnabledForThisService ConstraintViolationExceptionReason = "POLICY_TYPE_ENABLED_FOR_THIS_SERVICE"
ConstraintViolationExceptionReasonMasterAccountMissingBusinessLicense ConstraintViolationExceptionReason = "MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE"
ConstraintViolationExceptionReasonCannotCloseManagementAccount ConstraintViolationExceptionReason = "CANNOT_CLOSE_MANAGEMENT_ACCOUNT"
ConstraintViolationExceptionReasonCloseAccountQuotaExceeded ConstraintViolationExceptionReason = "CLOSE_ACCOUNT_QUOTA_EXCEEDED"
@@ -178,6 +179,7 @@ func (ConstraintViolationExceptionReason) Values() []ConstraintViolationExceptio
"CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR",
"CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG",
"DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE",
+ "POLICY_TYPE_ENABLED_FOR_THIS_SERVICE",
"MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE",
"CANNOT_CLOSE_MANAGEMENT_ACCOUNT",
"CLOSE_ACCOUNT_QUOTA_EXCEEDED",
@@ -265,6 +267,7 @@ const (
EffectivePolicyTypeAiservicesOptOutPolicy EffectivePolicyType = "AISERVICES_OPT_OUT_POLICY"
EffectivePolicyTypeChatbotPolicy EffectivePolicyType = "CHATBOT_POLICY"
EffectivePolicyTypeDeclarativePolicyEc2 EffectivePolicyType = "DECLARATIVE_POLICY_EC2"
+ EffectivePolicyTypeSecurityhubPolicy EffectivePolicyType = "SECURITYHUB_POLICY"
)
// Values returns all known values for EffectivePolicyType. Note that this can be
@@ -278,6 +281,7 @@ func (EffectivePolicyType) Values() []EffectivePolicyType {
"AISERVICES_OPT_OUT_POLICY",
"CHATBOT_POLICY",
"DECLARATIVE_POLICY_EC2",
+ "SECURITYHUB_POLICY",
}
}
@@ -539,6 +543,7 @@ const (
PolicyTypeAiservicesOptOutPolicy PolicyType = "AISERVICES_OPT_OUT_POLICY"
PolicyTypeChatbotPolicy PolicyType = "CHATBOT_POLICY"
PolicyTypeDeclarativePolicyEc2 PolicyType = "DECLARATIVE_POLICY_EC2"
+ PolicyTypeSecurityhubPolicy PolicyType = "SECURITYHUB_POLICY"
)
// Values returns all known values for PolicyType. Note that this can be expanded
@@ -554,6 +559,7 @@ func (PolicyType) Values() []PolicyType {
"AISERVICES_OPT_OUT_POLICY",
"CHATBOT_POLICY",
"DECLARATIVE_POLICY_EC2",
+ "SECURITYHUB_POLICY",
}
}
diff --git a/service/organizations/types/errors.go b/service/organizations/types/errors.go
index f9936c9dc3c..9a6f96d7d4e 100644
--- a/service/organizations/types/errors.go
+++ b/service/organizations/types/errors.go
@@ -496,9 +496,17 @@ func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.Fault
// - POLICY_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of
// policies that you can have in an organization.
//
-// - SERVICE_ACCESS_NOT_ENABLED: You attempted to register a delegated
-// administrator before you enabled service access. Call the
-// EnableAWSServiceAccess API first.
+// - POLICY_TYPE_ENABLED_FOR_THIS_SERVICE: You attempted to disable service
+// access before you disabled the policy type (for example, SECURITYHUB_POLICY). To
+// complete this operation, you must first disable the policy type.
+//
+// - SERVICE_ACCESS_NOT_ENABLED:
+//
+// - You attempted to register a delegated administrator before you enabled
+// service access. Call the EnableAWSServiceAccess API first.
+//
+// - You attempted to enable a policy type before you enabled service access.
+// Call the EnableAWSServiceAccess API first.
//
// - TAG_POLICY_VIOLATION: You attempted to create or update a resource with
// tags that are not compliant with the tag policy requirements for this account.
@@ -857,9 +865,7 @@ func (e *HandshakeAlreadyInStateException) ErrorFault() smithy.ErrorFault { retu
//
// - ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because
// the account is from a different marketplace than the accounts in the
-// organization. For example, accounts with India addresses must be associated with
-// the AISPL marketplace. All accounts in an organization must be from the same
-// marketplace.
+// organization.
//
// - ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change
// the membership of an account too quickly after its previous change.
diff --git a/service/osis/CHANGELOG.md b/service/osis/CHANGELOG.md
index f8ffd28bca7..622907be124 100644
--- a/service/osis/CHANGELOG.md
+++ b/service/osis/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.15.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/osis/go.mod b/service/osis/go.mod
index 0ea89953380..d42d8db79be 100644
--- a/service/osis/go.mod
+++ b/service/osis/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/osis
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/osis/go.sum b/service/osis/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/osis/go.sum
+++ b/service/osis/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/osis/go_module_metadata.go b/service/osis/go_module_metadata.go
index c7c2440f909..1b2ce57cf36 100644
--- a/service/osis/go_module_metadata.go
+++ b/service/osis/go_module_metadata.go
@@ -3,4 +3,4 @@
package osis
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.15.4"
+const goModuleVersion = "1.15.5"
diff --git a/service/outposts/CHANGELOG.md b/service/outposts/CHANGELOG.md
index a0e6e5d5eab..556d101f3e4 100644
--- a/service/outposts/CHANGELOG.md
+++ b/service/outposts/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.50.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.50.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/outposts/go.mod b/service/outposts/go.mod
index 93eda2808a5..895a524e50b 100644
--- a/service/outposts/go.mod
+++ b/service/outposts/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/outposts
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/outposts/go.sum b/service/outposts/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/outposts/go.sum
+++ b/service/outposts/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/outposts/go_module_metadata.go b/service/outposts/go_module_metadata.go
index 5b9021578d7..a9d0b29f158 100644
--- a/service/outposts/go_module_metadata.go
+++ b/service/outposts/go_module_metadata.go
@@ -3,4 +3,4 @@
package outposts
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.50.2"
+const goModuleVersion = "1.50.3"
diff --git a/service/panorama/CHANGELOG.md b/service/panorama/CHANGELOG.md
index 57ce64dc8e2..e6d80cdc3b3 100644
--- a/service/panorama/CHANGELOG.md
+++ b/service/panorama/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.23.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.23.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/panorama/go.mod b/service/panorama/go.mod
index aabd4c1d1e1..424fe527534 100644
--- a/service/panorama/go.mod
+++ b/service/panorama/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/panorama
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/panorama/go.sum b/service/panorama/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/panorama/go.sum
+++ b/service/panorama/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/panorama/go_module_metadata.go b/service/panorama/go_module_metadata.go
index 6c1de406c7e..487e7b32b78 100644
--- a/service/panorama/go_module_metadata.go
+++ b/service/panorama/go_module_metadata.go
@@ -3,4 +3,4 @@
package panorama
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.23.3"
+const goModuleVersion = "1.23.4"
diff --git a/service/partnercentralselling/CHANGELOG.md b/service/partnercentralselling/CHANGELOG.md
index 38dd4bbb858..44cc2309640 100644
--- a/service/partnercentralselling/CHANGELOG.md
+++ b/service/partnercentralselling/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/partnercentralselling/go.mod b/service/partnercentralselling/go.mod
index 1b6aab9d2b8..a38223915f0 100644
--- a/service/partnercentralselling/go.mod
+++ b/service/partnercentralselling/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/partnercentralselling
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/partnercentralselling/go.sum b/service/partnercentralselling/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/partnercentralselling/go.sum
+++ b/service/partnercentralselling/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/partnercentralselling/go_module_metadata.go b/service/partnercentralselling/go_module_metadata.go
index aee66144672..2d63e47b343 100644
--- a/service/partnercentralselling/go_module_metadata.go
+++ b/service/partnercentralselling/go_module_metadata.go
@@ -3,4 +3,4 @@
package partnercentralselling
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.1"
+const goModuleVersion = "1.5.2"
diff --git a/service/paymentcryptography/CHANGELOG.md b/service/paymentcryptography/CHANGELOG.md
index aa256b9a23c..0e9141299bb 100644
--- a/service/paymentcryptography/CHANGELOG.md
+++ b/service/paymentcryptography/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.18.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.18.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/paymentcryptography/go.mod b/service/paymentcryptography/go.mod
index 55e4b4d600d..632739a9975 100644
--- a/service/paymentcryptography/go.mod
+++ b/service/paymentcryptography/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/paymentcryptography
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/paymentcryptography/go.sum b/service/paymentcryptography/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/paymentcryptography/go.sum
+++ b/service/paymentcryptography/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/paymentcryptography/go_module_metadata.go b/service/paymentcryptography/go_module_metadata.go
index 49e2c89b7e3..6c1bb7e2cf8 100644
--- a/service/paymentcryptography/go_module_metadata.go
+++ b/service/paymentcryptography/go_module_metadata.go
@@ -3,4 +3,4 @@
package paymentcryptography
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.18.2"
+const goModuleVersion = "1.18.3"
diff --git a/service/paymentcryptographydata/CHANGELOG.md b/service/paymentcryptographydata/CHANGELOG.md
index d73c61b4755..5d26b91f3b6 100644
--- a/service/paymentcryptographydata/CHANGELOG.md
+++ b/service/paymentcryptographydata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/paymentcryptographydata/go.mod b/service/paymentcryptographydata/go.mod
index 959b88a61b9..e9644909c3c 100644
--- a/service/paymentcryptographydata/go.mod
+++ b/service/paymentcryptographydata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/paymentcryptographydata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/paymentcryptographydata/go.sum b/service/paymentcryptographydata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/paymentcryptographydata/go.sum
+++ b/service/paymentcryptographydata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/paymentcryptographydata/go_module_metadata.go b/service/paymentcryptographydata/go_module_metadata.go
index 9c97957e301..6a19fc2214f 100644
--- a/service/paymentcryptographydata/go_module_metadata.go
+++ b/service/paymentcryptographydata/go_module_metadata.go
@@ -3,4 +3,4 @@
package paymentcryptographydata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.3"
+const goModuleVersion = "1.17.4"
diff --git a/service/pcaconnectorad/CHANGELOG.md b/service/pcaconnectorad/CHANGELOG.md
index bfd4d98d445..9de9fac77ce 100644
--- a/service/pcaconnectorad/CHANGELOG.md
+++ b/service/pcaconnectorad/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.11.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.11.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pcaconnectorad/go.mod b/service/pcaconnectorad/go.mod
index aedb6e70813..4078af1b166 100644
--- a/service/pcaconnectorad/go.mod
+++ b/service/pcaconnectorad/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pcaconnectorad
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pcaconnectorad/go.sum b/service/pcaconnectorad/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pcaconnectorad/go.sum
+++ b/service/pcaconnectorad/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pcaconnectorad/go_module_metadata.go b/service/pcaconnectorad/go_module_metadata.go
index b93ce4771a8..9ce420d5705 100644
--- a/service/pcaconnectorad/go_module_metadata.go
+++ b/service/pcaconnectorad/go_module_metadata.go
@@ -3,4 +3,4 @@
package pcaconnectorad
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.11.2"
+const goModuleVersion = "1.11.3"
diff --git a/service/pcaconnectorscep/CHANGELOG.md b/service/pcaconnectorscep/CHANGELOG.md
index 73191eae603..81e883f36d2 100644
--- a/service/pcaconnectorscep/CHANGELOG.md
+++ b/service/pcaconnectorscep/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pcaconnectorscep/go.mod b/service/pcaconnectorscep/go.mod
index 80d95a99db4..60cbc9d1503 100644
--- a/service/pcaconnectorscep/go.mod
+++ b/service/pcaconnectorscep/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pcaconnectorscep
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pcaconnectorscep/go.sum b/service/pcaconnectorscep/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pcaconnectorscep/go.sum
+++ b/service/pcaconnectorscep/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pcaconnectorscep/go_module_metadata.go b/service/pcaconnectorscep/go_module_metadata.go
index fa8532312cc..c3d08f4dcde 100644
--- a/service/pcaconnectorscep/go_module_metadata.go
+++ b/service/pcaconnectorscep/go_module_metadata.go
@@ -3,4 +3,4 @@
package pcaconnectorscep
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.3"
+const goModuleVersion = "1.5.4"
diff --git a/service/pcs/CHANGELOG.md b/service/pcs/CHANGELOG.md
index a3f246f2a2f..ae24ffb6eb5 100644
--- a/service/pcs/CHANGELOG.md
+++ b/service/pcs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.6.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.6.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pcs/go.mod b/service/pcs/go.mod
index 952a0d11c15..52f514548d4 100644
--- a/service/pcs/go.mod
+++ b/service/pcs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pcs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pcs/go.sum b/service/pcs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pcs/go.sum
+++ b/service/pcs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pcs/go_module_metadata.go b/service/pcs/go_module_metadata.go
index f39e1bb8014..d5449e37f4a 100644
--- a/service/pcs/go_module_metadata.go
+++ b/service/pcs/go_module_metadata.go
@@ -3,4 +3,4 @@
package pcs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.6.1"
+const goModuleVersion = "1.6.2"
diff --git a/service/personalize/CHANGELOG.md b/service/personalize/CHANGELOG.md
index af123b47ebe..faaec258fbe 100644
--- a/service/personalize/CHANGELOG.md
+++ b/service/personalize/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.41.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.41.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/personalize/go.mod b/service/personalize/go.mod
index 1cd3ad4ad70..d7727121d06 100644
--- a/service/personalize/go.mod
+++ b/service/personalize/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalize
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/personalize/go.sum b/service/personalize/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/personalize/go.sum
+++ b/service/personalize/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/personalize/go_module_metadata.go b/service/personalize/go_module_metadata.go
index f402ceb0c2b..8886b65423c 100644
--- a/service/personalize/go_module_metadata.go
+++ b/service/personalize/go_module_metadata.go
@@ -3,4 +3,4 @@
package personalize
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.41.1"
+const goModuleVersion = "1.41.2"
diff --git a/service/personalizeevents/CHANGELOG.md b/service/personalizeevents/CHANGELOG.md
index f1964f6637f..b89efa847dc 100644
--- a/service/personalizeevents/CHANGELOG.md
+++ b/service/personalizeevents/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod
index 56d8d741878..496636ce61f 100644
--- a/service/personalizeevents/go.mod
+++ b/service/personalizeevents/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalizeevents
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/personalizeevents/go.sum
+++ b/service/personalizeevents/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/personalizeevents/go_module_metadata.go b/service/personalizeevents/go_module_metadata.go
index a330030978f..a72107e7ff2 100644
--- a/service/personalizeevents/go_module_metadata.go
+++ b/service/personalizeevents/go_module_metadata.go
@@ -3,4 +3,4 @@
package personalizeevents
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/personalizeruntime/CHANGELOG.md b/service/personalizeruntime/CHANGELOG.md
index 8e471f50a4c..344586e97fc 100644
--- a/service/personalizeruntime/CHANGELOG.md
+++ b/service/personalizeruntime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod
index aaf8aad7c62..7bdd17eb7e8 100644
--- a/service/personalizeruntime/go.mod
+++ b/service/personalizeruntime/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalizeruntime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/personalizeruntime/go.sum
+++ b/service/personalizeruntime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/personalizeruntime/go_module_metadata.go b/service/personalizeruntime/go_module_metadata.go
index 60c8bceeff4..982f9ac272f 100644
--- a/service/personalizeruntime/go_module_metadata.go
+++ b/service/personalizeruntime/go_module_metadata.go
@@ -3,4 +3,4 @@
package personalizeruntime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/pi/CHANGELOG.md b/service/pi/CHANGELOG.md
index c01d56df644..7856cafd4ec 100644
--- a/service/pi/CHANGELOG.md
+++ b/service/pi/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.8 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.7 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pi/go.mod b/service/pi/go.mod
index f7a5cf4edb8..c395899af5b 100644
--- a/service/pi/go.mod
+++ b/service/pi/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pi
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pi/go.sum b/service/pi/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pi/go.sum
+++ b/service/pi/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pi/go_module_metadata.go b/service/pi/go_module_metadata.go
index 3d575d3423b..15f4960733e 100644
--- a/service/pi/go_module_metadata.go
+++ b/service/pi/go_module_metadata.go
@@ -3,4 +3,4 @@
package pi
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.7"
+const goModuleVersion = "1.31.8"
diff --git a/service/pinpoint/CHANGELOG.md b/service/pinpoint/CHANGELOG.md
index 294fe5e12cb..0204abc08cc 100644
--- a/service/pinpoint/CHANGELOG.md
+++ b/service/pinpoint/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod
index 6b37b9f98d8..3cfcb0ce720 100644
--- a/service/pinpoint/go.mod
+++ b/service/pinpoint/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpoint
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pinpoint/go.sum
+++ b/service/pinpoint/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pinpoint/go_module_metadata.go b/service/pinpoint/go_module_metadata.go
index 083fb0de688..83369038b83 100644
--- a/service/pinpoint/go_module_metadata.go
+++ b/service/pinpoint/go_module_metadata.go
@@ -3,4 +3,4 @@
package pinpoint
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.3"
+const goModuleVersion = "1.35.4"
diff --git a/service/pinpointemail/CHANGELOG.md b/service/pinpointemail/CHANGELOG.md
index a0b1c5ef1ff..3d752dae0fb 100644
--- a/service/pinpointemail/CHANGELOG.md
+++ b/service/pinpointemail/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod
index 51eb380dab3..b8ad3887fb5 100644
--- a/service/pinpointemail/go.mod
+++ b/service/pinpointemail/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointemail
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pinpointemail/go.sum
+++ b/service/pinpointemail/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pinpointemail/go_module_metadata.go b/service/pinpointemail/go_module_metadata.go
index f4bd721508c..bbf7d4c01b8 100644
--- a/service/pinpointemail/go_module_metadata.go
+++ b/service/pinpointemail/go_module_metadata.go
@@ -3,4 +3,4 @@
package pinpointemail
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/pinpointsmsvoice/CHANGELOG.md b/service/pinpointsmsvoice/CHANGELOG.md
index e5491cca6cb..386d9ac05e0 100644
--- a/service/pinpointsmsvoice/CHANGELOG.md
+++ b/service/pinpointsmsvoice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod
index d0984521866..c9730a6b953 100644
--- a/service/pinpointsmsvoice/go.mod
+++ b/service/pinpointsmsvoice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pinpointsmsvoice/go.sum
+++ b/service/pinpointsmsvoice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pinpointsmsvoice/go_module_metadata.go b/service/pinpointsmsvoice/go_module_metadata.go
index 718ce1a3834..54211abcaa1 100644
--- a/service/pinpointsmsvoice/go_module_metadata.go
+++ b/service/pinpointsmsvoice/go_module_metadata.go
@@ -3,4 +3,4 @@
package pinpointsmsvoice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/pinpointsmsvoicev2/CHANGELOG.md b/service/pinpointsmsvoicev2/CHANGELOG.md
index 295b79db0b5..e39a93295fd 100644
--- a/service/pinpointsmsvoicev2/CHANGELOG.md
+++ b/service/pinpointsmsvoicev2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.20.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.20.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pinpointsmsvoicev2/go.mod b/service/pinpointsmsvoicev2/go.mod
index 0928eeef0fd..712ee075c3e 100644
--- a/service/pinpointsmsvoicev2/go.mod
+++ b/service/pinpointsmsvoicev2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoicev2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pinpointsmsvoicev2/go.sum b/service/pinpointsmsvoicev2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pinpointsmsvoicev2/go.sum
+++ b/service/pinpointsmsvoicev2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pinpointsmsvoicev2/go_module_metadata.go b/service/pinpointsmsvoicev2/go_module_metadata.go
index 7820edb4fcb..93b784f9494 100644
--- a/service/pinpointsmsvoicev2/go_module_metadata.go
+++ b/service/pinpointsmsvoicev2/go_module_metadata.go
@@ -3,4 +3,4 @@
package pinpointsmsvoicev2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.20.2"
+const goModuleVersion = "1.20.3"
diff --git a/service/pipes/CHANGELOG.md b/service/pipes/CHANGELOG.md
index 7d92769e800..2e81bb4e63e 100644
--- a/service/pipes/CHANGELOG.md
+++ b/service/pipes/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.19.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.19.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pipes/go.mod b/service/pipes/go.mod
index 7dfbfa7d0c1..f8a3328a0ab 100644
--- a/service/pipes/go.mod
+++ b/service/pipes/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pipes
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pipes/go.sum b/service/pipes/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pipes/go.sum
+++ b/service/pipes/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pipes/go_module_metadata.go b/service/pipes/go_module_metadata.go
index d49261e25f8..52c262a50a8 100644
--- a/service/pipes/go_module_metadata.go
+++ b/service/pipes/go_module_metadata.go
@@ -3,4 +3,4 @@
package pipes
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.19.4"
+const goModuleVersion = "1.19.5"
diff --git a/service/polly/CHANGELOG.md b/service/polly/CHANGELOG.md
index 1ca9efc18f4..26235af3f83 100644
--- a/service/polly/CHANGELOG.md
+++ b/service/polly/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.48.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.48.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/polly/go.mod b/service/polly/go.mod
index 17c1d5a0193..16d18ce2282 100644
--- a/service/polly/go.mod
+++ b/service/polly/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/polly
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/polly/go.sum b/service/polly/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/polly/go.sum
+++ b/service/polly/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/polly/go_module_metadata.go b/service/polly/go_module_metadata.go
index dc2e2051e7f..e545eaf88fc 100644
--- a/service/polly/go_module_metadata.go
+++ b/service/polly/go_module_metadata.go
@@ -3,4 +3,4 @@
package polly
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.48.3"
+const goModuleVersion = "1.48.4"
diff --git a/service/pricing/CHANGELOG.md b/service/pricing/CHANGELOG.md
index f099ceae4a3..c7471c490ee 100644
--- a/service/pricing/CHANGELOG.md
+++ b/service/pricing/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.34.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.34.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/pricing/go.mod b/service/pricing/go.mod
index 38a72a3ea72..47e94fee227 100644
--- a/service/pricing/go.mod
+++ b/service/pricing/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pricing
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/pricing/go.sum b/service/pricing/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/pricing/go.sum
+++ b/service/pricing/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/pricing/go_module_metadata.go b/service/pricing/go_module_metadata.go
index e5a65e98aee..1aa87501f31 100644
--- a/service/pricing/go_module_metadata.go
+++ b/service/pricing/go_module_metadata.go
@@ -3,4 +3,4 @@
package pricing
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.4"
+const goModuleVersion = "1.34.5"
diff --git a/service/proton/CHANGELOG.md b/service/proton/CHANGELOG.md
index b2d0b10a694..be5ab9de53f 100644
--- a/service/proton/CHANGELOG.md
+++ b/service/proton/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.34.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.34.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/proton/go.mod b/service/proton/go.mod
index 348453f7e5d..14e96e505c2 100644
--- a/service/proton/go.mod
+++ b/service/proton/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/proton
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/proton/go.sum b/service/proton/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/proton/go.sum
+++ b/service/proton/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/proton/go_module_metadata.go b/service/proton/go_module_metadata.go
index fe134b245d1..93b380524b3 100644
--- a/service/proton/go_module_metadata.go
+++ b/service/proton/go_module_metadata.go
@@ -3,4 +3,4 @@
package proton
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.3"
+const goModuleVersion = "1.34.4"
diff --git a/service/qapps/CHANGELOG.md b/service/qapps/CHANGELOG.md
index 3b6e39f2b30..14807004df6 100644
--- a/service/qapps/CHANGELOG.md
+++ b/service/qapps/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.7.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.7.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/qapps/go.mod b/service/qapps/go.mod
index d4a9fd2e361..9d3475fd063 100644
--- a/service/qapps/go.mod
+++ b/service/qapps/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qapps
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/qapps/go.sum b/service/qapps/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/qapps/go.sum
+++ b/service/qapps/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/qapps/go_module_metadata.go b/service/qapps/go_module_metadata.go
index c0efe2f558e..9fcd8285929 100644
--- a/service/qapps/go_module_metadata.go
+++ b/service/qapps/go_module_metadata.go
@@ -3,4 +3,4 @@
package qapps
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.7.3"
+const goModuleVersion = "1.7.4"
diff --git a/service/qbusiness/CHANGELOG.md b/service/qbusiness/CHANGELOG.md
index 71770e8ae41..38cc9863751 100644
--- a/service/qbusiness/CHANGELOG.md
+++ b/service/qbusiness/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/qbusiness/go.mod b/service/qbusiness/go.mod
index 16167973f2b..d20918408ae 100644
--- a/service/qbusiness/go.mod
+++ b/service/qbusiness/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/qbusiness
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/qbusiness/go.sum b/service/qbusiness/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/qbusiness/go.sum
+++ b/service/qbusiness/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/qbusiness/go_module_metadata.go b/service/qbusiness/go_module_metadata.go
index f2c5bc12c08..d32911df0dc 100644
--- a/service/qbusiness/go_module_metadata.go
+++ b/service/qbusiness/go_module_metadata.go
@@ -3,4 +3,4 @@
package qbusiness
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.2"
+const goModuleVersion = "1.26.3"
diff --git a/service/qconnect/CHANGELOG.md b/service/qconnect/CHANGELOG.md
index 50f39a1f2ca..86bf66cc986 100644
--- a/service/qconnect/CHANGELOG.md
+++ b/service/qconnect/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/qconnect/go.mod b/service/qconnect/go.mod
index edba1aad0ce..f2f363aaee1 100644
--- a/service/qconnect/go.mod
+++ b/service/qconnect/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qconnect
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/qconnect/go.sum b/service/qconnect/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/qconnect/go.sum
+++ b/service/qconnect/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/qconnect/go_module_metadata.go b/service/qconnect/go_module_metadata.go
index 233d5ab257e..ce90f16f1bc 100644
--- a/service/qconnect/go_module_metadata.go
+++ b/service/qconnect/go_module_metadata.go
@@ -3,4 +3,4 @@
package qconnect
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.1"
+const goModuleVersion = "1.17.2"
diff --git a/service/qldb/CHANGELOG.md b/service/qldb/CHANGELOG.md
index 1b7f43ddc38..05036fbfbfa 100644
--- a/service/qldb/CHANGELOG.md
+++ b/service/qldb/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/qldb/go.mod b/service/qldb/go.mod
index e75ee1a379d..0841940b9c9 100644
--- a/service/qldb/go.mod
+++ b/service/qldb/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qldb
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/qldb/go.sum b/service/qldb/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/qldb/go.sum
+++ b/service/qldb/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/qldb/go_module_metadata.go b/service/qldb/go_module_metadata.go
index 955bfa89de4..119592a5da7 100644
--- a/service/qldb/go_module_metadata.go
+++ b/service/qldb/go_module_metadata.go
@@ -3,4 +3,4 @@
package qldb
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/qldbsession/CHANGELOG.md b/service/qldbsession/CHANGELOG.md
index d03b6127818..e359488a10c 100644
--- a/service/qldbsession/CHANGELOG.md
+++ b/service/qldbsession/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod
index 87249279ae6..d15a855b9ee 100644
--- a/service/qldbsession/go.mod
+++ b/service/qldbsession/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qldbsession
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/qldbsession/go.sum
+++ b/service/qldbsession/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/qldbsession/go_module_metadata.go b/service/qldbsession/go_module_metadata.go
index c18dfc7c2a2..270cba02036 100644
--- a/service/qldbsession/go_module_metadata.go
+++ b/service/qldbsession/go_module_metadata.go
@@ -3,4 +3,4 @@
package qldbsession
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/quicksight/CHANGELOG.md b/service/quicksight/CHANGELOG.md
index bbfd18ccd98..6948cc89424 100644
--- a/service/quicksight/CHANGELOG.md
+++ b/service/quicksight/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.86.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.86.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod
index 94a3fc72801..ffd8e28d561 100644
--- a/service/quicksight/go.mod
+++ b/service/quicksight/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/quicksight
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/quicksight/go.sum
+++ b/service/quicksight/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/quicksight/go_module_metadata.go b/service/quicksight/go_module_metadata.go
index 529d691e186..3687b96ed2d 100644
--- a/service/quicksight/go_module_metadata.go
+++ b/service/quicksight/go_module_metadata.go
@@ -3,4 +3,4 @@
package quicksight
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.86.1"
+const goModuleVersion = "1.86.2"
diff --git a/service/ram/CHANGELOG.md b/service/ram/CHANGELOG.md
index 4ffa7fd3fa3..46de356eb0a 100644
--- a/service/ram/CHANGELOG.md
+++ b/service/ram/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ram/go.mod b/service/ram/go.mod
index 34f2d0194d9..db3948f4810 100644
--- a/service/ram/go.mod
+++ b/service/ram/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ram
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ram/go.sum b/service/ram/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ram/go.sum
+++ b/service/ram/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ram/go_module_metadata.go b/service/ram/go_module_metadata.go
index 58bde0e3a7e..9252b84ef99 100644
--- a/service/ram/go_module_metadata.go
+++ b/service/ram/go_module_metadata.go
@@ -3,4 +3,4 @@
package ram
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.5"
+const goModuleVersion = "1.30.6"
diff --git a/service/rbin/CHANGELOG.md b/service/rbin/CHANGELOG.md
index a31a77658d9..0e8d3cde43d 100644
--- a/service/rbin/CHANGELOG.md
+++ b/service/rbin/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.22.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.22.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/rbin/go.mod b/service/rbin/go.mod
index 26afa9d8063..3e1248b9774 100644
--- a/service/rbin/go.mod
+++ b/service/rbin/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rbin
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/rbin/go.sum b/service/rbin/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/rbin/go.sum
+++ b/service/rbin/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/rbin/go_module_metadata.go b/service/rbin/go_module_metadata.go
index 6f467f4d508..f9b57c2488c 100644
--- a/service/rbin/go_module_metadata.go
+++ b/service/rbin/go_module_metadata.go
@@ -3,4 +3,4 @@
package rbin
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.22.5"
+const goModuleVersion = "1.22.6"
diff --git a/service/rds/CHANGELOG.md b/service/rds/CHANGELOG.md
index 55dfdef1ebc..8a6d38dbad8 100644
--- a/service/rds/CHANGELOG.md
+++ b/service/rds/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.97.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.97.2 (2025-06-11)
+
+* **Documentation**: Updates Amazon RDS documentation for Amazon RDS for Db2 cross-Region replicas in standby mode.
+
# v1.97.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/rds/api_op_CreateDBInstanceReadReplica.go b/service/rds/api_op_CreateDBInstanceReadReplica.go
index 216bdc50645..f7c1fb3d73e 100644
--- a/service/rds/api_op_CreateDBInstanceReadReplica.go
+++ b/service/rds/api_op_CreateDBInstanceReadReplica.go
@@ -15,16 +15,20 @@ import (
// Creates a new DB instance that acts as a read replica for an existing source DB
// instance or Multi-AZ DB cluster. You can create a read replica for a DB instance
-// running Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server. You can create a
-// read replica for a Multi-AZ DB cluster running MySQL or PostgreSQL. For more
+// running MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server. You can create a read
+// replica for a Multi-AZ DB cluster running MySQL or PostgreSQL. For more
// information, see [Working with read replicas]and [Migrating from a Multi-AZ DB cluster to a DB instance using a read replica] in the Amazon RDS User Guide.
//
+// Amazon RDS for Db2 supports this operation for standby replicas. To create a
+// standby replica for a DB instance running Db2, you must set ReplicaMode to
+// mounted .
+//
// Amazon Aurora doesn't support this operation. To create a DB instance for an
// Aurora DB cluster, use the CreateDBInstance operation.
//
-// All read replica DB instances are created with backups disabled. All other
-// attributes (including DB security groups and DB parameter groups) are inherited
-// from the source DB instance or cluster, except as specified.
+// RDS creates read replicas with backups disabled. All other attributes
+// (including DB security groups and DB parameter groups) are inherited from the
+// source DB instance or cluster, except as specified.
//
// Your source DB instance or cluster must have backup retention enabled.
//
@@ -131,6 +135,14 @@ type CreateDBInstanceReadReplicaInput struct {
// The name of the DB parameter group to associate with this read replica DB
// instance.
//
+ // For the Db2 DB engine, if your source DB instance uses the Bring Your Own
+ // License model, then a custom parameter group must be associated with the
+ // replica. For a same Amazon Web Services Region replica, if you don't specify a
+ // custom parameter group, Amazon RDS associates the custom parameter group
+ // associated with the source DB instance. For a cross-Region replica, you must
+ // specify a custom parameter group. This custom parameter group must include your
+ // IBM Site ID and IBM Customer ID. For more information, see [IBM IDs for Bring Your Own License for Db2].
+ //
// For Single-AZ or Multi-AZ DB instance read replica instances, if you don't
// specify a value for DBParameterGroupName , then Amazon RDS uses the
// DBParameterGroup of the source DB instance for a same Region read replica, or
@@ -143,8 +155,8 @@ type CreateDBInstanceReadReplicaInput struct {
//
// Specifying a parameter group for this operation is only supported for MySQL DB
// instances for cross-Region read replicas, for Multi-AZ DB cluster read replica
- // instances, and for Oracle DB instances. It isn't supported for MySQL DB
- // instances for same Region read replicas or for RDS Custom.
+ // instances, for Db2 DB instances, and for Oracle DB instances. It isn't supported
+ // for MySQL DB instances for same Region read replicas or for RDS Custom.
//
// Constraints:
//
@@ -153,6 +165,8 @@ type CreateDBInstanceReadReplicaInput struct {
// - First character must be a letter.
//
// - Can't end with a hyphen or contain two consecutive hyphens.
+ //
+ // [IBM IDs for Bring Your Own License for Db2]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-licensing.html#db2-prereqs-ibm-info
DBParameterGroupName *string
// A DB subnet group for the DB instance. The new DB instance is created in the
@@ -518,24 +532,35 @@ type CreateDBInstanceReadReplicaInput struct {
// For more information, see CreateDBInstance.
PubliclyAccessible *bool
- // The open mode of the replica database: mounted or read-only.
+ // The open mode of the replica database.
+ //
+ // This parameter is only supported for Db2 DB instances and Oracle DB instances.
+ //
+ // Db2 Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2
+ // Standard Edition (SE). The main use case for standby replicas is cross-Region
+ // disaster recovery. Because it doesn't accept user connections, a standby replica
+ // can't serve a read-only workload.
+ //
+ // You can create a combination of standby and read-only DB replicas for the same
+ // primary DB instance. For more information, see [Working with read replicas for Amazon RDS for Db2]in the Amazon RDS User Guide.
//
- // This parameter is only supported for Oracle DB instances.
+ // To create standby DB replicas for RDS for Db2, set this parameter to mounted .
//
- // Mounted DB replicas are included in Oracle Database Enterprise Edition. The
- // main use case for mounted replicas is cross-Region disaster recovery. The
+ // Oracle Mounted DB replicas are included in Oracle Database Enterprise Edition.
+ // The main use case for mounted replicas is cross-Region disaster recovery. The
// primary database doesn't use Active Data Guard to transmit information to the
// mounted replica. Because it doesn't accept user connections, a mounted replica
// can't serve a read-only workload.
//
// You can create a combination of mounted and read-only DB replicas for the same
- // primary DB instance. For more information, see [Working with Oracle Read Replicas for Amazon RDS]in the Amazon RDS User Guide.
+ // primary DB instance. For more information, see [Working with read replicas for Amazon RDS for Oracle]in the Amazon RDS User Guide.
//
// For RDS Custom, you must specify this parameter and set it to mounted . The
// value won't be set by default. After replica creation, you can manage the open
// mode manually.
//
- // [Working with Oracle Read Replicas for Amazon RDS]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html
+ // [Working with read replicas for Amazon RDS for Db2]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html
+ // [Working with read replicas for Amazon RDS for Oracle]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html
ReplicaMode types.ReplicaMode
// The identifier of the Multi-AZ DB cluster that will act as the source for the
@@ -556,8 +581,14 @@ type CreateDBInstanceReadReplicaInput struct {
SourceDBClusterIdentifier *string
// The identifier of the DB instance that will act as the source for the read
- // replica. Each DB instance can have up to 15 read replicas, with the exception of
- // Oracle and SQL Server, which can have up to five.
+ // replica. Each DB instance can have up to 15 read replicas, except for the
+ // following engines:
+ //
+ // - Db2 - Can have up to three replicas.
+ //
+ // - Oracle - Can have up to five read replicas.
+ //
+ // - SQL Server - Can have up to five read replicas.
//
// Constraints:
//
diff --git a/service/rds/api_op_ModifyDBInstance.go b/service/rds/api_op_ModifyDBInstance.go
index 0efab459eaa..40211feaab9 100644
--- a/service/rds/api_op_ModifyDBInstance.go
+++ b/service/rds/api_op_ModifyDBInstance.go
@@ -905,21 +905,35 @@ type ModifyDBInstanceInput struct {
// of the value of the ApplyImmediately parameter.
PubliclyAccessible *bool
- // A value that sets the open mode of a replica database to either mounted or
- // read-only.
+ // The open mode of a replica database.
//
- // Currently, this parameter is only supported for Oracle DB instances.
+ // This parameter is only supported for Db2 DB instances and Oracle DB instances.
//
- // Mounted DB replicas are included in Oracle Enterprise Edition. The main use
- // case for mounted replicas is cross-Region disaster recovery. The primary
- // database doesn't use Active Data Guard to transmit information to the mounted
- // replica. Because it doesn't accept user connections, a mounted replica can't
- // serve a read-only workload. For more information, see [Working with Oracle Read Replicas for Amazon RDS]in the Amazon RDS User
- // Guide.
+ // Db2 Standby DB replicas are included in Db2 Advanced Edition (AE) and Db2
+ // Standard Edition (SE). The main use case for standby replicas is cross-Region
+ // disaster recovery. Because it doesn't accept user connections, a standby replica
+ // can't serve a read-only workload.
//
- // This setting doesn't apply to RDS Custom DB instances.
+ // You can create a combination of standby and read-only DB replicas for the same
+ // primary DB instance. For more information, see [Working with read replicas for Amazon RDS for Db2]in the Amazon RDS User Guide.
+ //
+ // To create standby DB replicas for RDS for Db2, set this parameter to mounted .
+ //
+ // Oracle Mounted DB replicas are included in Oracle Database Enterprise Edition.
+ // The main use case for mounted replicas is cross-Region disaster recovery. The
+ // primary database doesn't use Active Data Guard to transmit information to the
+ // mounted replica. Because it doesn't accept user connections, a mounted replica
+ // can't serve a read-only workload.
+ //
+ // You can create a combination of mounted and read-only DB replicas for the same
+ // primary DB instance. For more information, see [Working with read replicas for Amazon RDS for Oracle]in the Amazon RDS User Guide.
+ //
+ // For RDS Custom, you must specify this parameter and set it to mounted . The
+ // value won't be set by default. After replica creation, you can manage the open
+ // mode manually.
//
- // [Working with Oracle Read Replicas for Amazon RDS]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html
+ // [Working with read replicas for Amazon RDS for Db2]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html
+ // [Working with read replicas for Amazon RDS for Oracle]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html
ReplicaMode types.ReplicaMode
// The number of minutes to pause the automation. When the time period ends, RDS
diff --git a/service/rds/go.mod b/service/rds/go.mod
index 96e3f6a9fa9..c2a58ae8f29 100644
--- a/service/rds/go.mod
+++ b/service/rds/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/rds
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/rds/go.sum b/service/rds/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/rds/go.sum
+++ b/service/rds/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/rds/go_module_metadata.go b/service/rds/go_module_metadata.go
index d4b81ec9eee..e72eab474f1 100644
--- a/service/rds/go_module_metadata.go
+++ b/service/rds/go_module_metadata.go
@@ -3,4 +3,4 @@
package rds
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.97.1"
+const goModuleVersion = "1.97.3"
diff --git a/service/rds/types/types.go b/service/rds/types/types.go
index 196c719a87e..1075ad35def 100644
--- a/service/rds/types/types.go
+++ b/service/rds/types/types.go
@@ -430,6 +430,12 @@ type ConnectionPoolConfiguration struct {
// For example: SET variable1=value1, variable2=value2
//
// Default: no initialization query
+ //
+ // Since you can access initialization query as part of target group
+ // configuration, it is not protected by authentication or cryptographic methods.
+ // Anyone with access to view or manage your proxy target group configuration can
+ // view the initialization query. You should not add sensitive data, such as
+ // passwords or long-lived encryption keys, to this option.
InitQuery *string
// The maximum size of the connection pool for each target in a target group. The
@@ -494,6 +500,12 @@ type ConnectionPoolConfigurationInfo struct {
// This is an optional field.
//
// For example: SET variable1=value1, variable2=value2
+ //
+ // Since you can access initialization query as part of target group
+ // configuration, it is not protected by authentication or cryptographic methods.
+ // Anyone with access to view or manage your proxy target group configuration can
+ // view the initialization query. You should not add sensitive data, such as
+ // passwords or long-lived encryption keys, to this option.
InitQuery *string
// The maximum size of the connection pool for each target in a target group. The
@@ -2045,12 +2057,14 @@ type DBInstance struct {
// The identifier of the source DB instance if this DB instance is a read replica.
ReadReplicaSourceDBInstanceIdentifier *string
- // The open mode of an Oracle read replica. The default is open-read-only . For
- // more information, see [Working with Oracle Read Replicas for Amazon RDS]in the Amazon RDS User Guide.
+ // The open mode of a Db2 or an Oracle read replica. The default is open-read-only
+ // . For more information, see [Working with read replicas for Amazon RDS for Db2]and [Working with read replicas for Amazon RDS for Oracle] in the Amazon RDS User Guide.
//
- // This attribute is only supported in RDS for Oracle.
+ // This attribute is only supported in RDS for Db2, RDS for Oracle, and RDS Custom
+ // for Oracle.
//
- // [Working with Oracle Read Replicas for Amazon RDS]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html
+ // [Working with read replicas for Amazon RDS for Db2]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/db2-replication.html
+ // [Working with read replicas for Amazon RDS for Oracle]: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html
ReplicaMode ReplicaMode
// The number of minutes to pause the automation. When the time period ends, RDS
diff --git a/service/rdsdata/CHANGELOG.md b/service/rdsdata/CHANGELOG.md
index 8ececc923d7..2b21207f7fd 100644
--- a/service/rdsdata/CHANGELOG.md
+++ b/service/rdsdata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod
index 39a28769811..dcea46e7a25 100644
--- a/service/rdsdata/go.mod
+++ b/service/rdsdata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rdsdata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/rdsdata/go.sum
+++ b/service/rdsdata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/rdsdata/go_module_metadata.go b/service/rdsdata/go_module_metadata.go
index f2ba080b43e..f21ab895138 100644
--- a/service/rdsdata/go_module_metadata.go
+++ b/service/rdsdata/go_module_metadata.go
@@ -3,4 +3,4 @@
package rdsdata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/redshift/CHANGELOG.md b/service/redshift/CHANGELOG.md
index 25dcf23226a..5810586e85a 100644
--- a/service/redshift/CHANGELOG.md
+++ b/service/redshift/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.54.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.54.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/redshift/go.mod b/service/redshift/go.mod
index 12f49505920..fa152d665e1 100644
--- a/service/redshift/go.mod
+++ b/service/redshift/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshift
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/redshift/go.sum b/service/redshift/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/redshift/go.sum
+++ b/service/redshift/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/redshift/go_module_metadata.go b/service/redshift/go_module_metadata.go
index d9ce4e2e6fb..8626f2d4057 100644
--- a/service/redshift/go_module_metadata.go
+++ b/service/redshift/go_module_metadata.go
@@ -3,4 +3,4 @@
package redshift
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.54.5"
+const goModuleVersion = "1.54.6"
diff --git a/service/redshiftdata/CHANGELOG.md b/service/redshiftdata/CHANGELOG.md
index 7009ccd8029..c7777eda745 100644
--- a/service/redshiftdata/CHANGELOG.md
+++ b/service/redshiftdata/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod
index 182eb7c9ca2..3de5522e3d5 100644
--- a/service/redshiftdata/go.mod
+++ b/service/redshiftdata/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshiftdata
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/redshiftdata/go.sum
+++ b/service/redshiftdata/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/redshiftdata/go_module_metadata.go b/service/redshiftdata/go_module_metadata.go
index d050d9569eb..7dc3ee4c3e5 100644
--- a/service/redshiftdata/go_module_metadata.go
+++ b/service/redshiftdata/go_module_metadata.go
@@ -3,4 +3,4 @@
package redshiftdata
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.2"
+const goModuleVersion = "1.33.3"
diff --git a/service/redshiftserverless/CHANGELOG.md b/service/redshiftserverless/CHANGELOG.md
index 84acf7c64fd..f5c22dfda9f 100644
--- a/service/redshiftserverless/CHANGELOG.md
+++ b/service/redshiftserverless/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/redshiftserverless/go.mod b/service/redshiftserverless/go.mod
index e07dd657dd2..abfa153d9c2 100644
--- a/service/redshiftserverless/go.mod
+++ b/service/redshiftserverless/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshiftserverless
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/redshiftserverless/go.sum b/service/redshiftserverless/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/redshiftserverless/go.sum
+++ b/service/redshiftserverless/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/redshiftserverless/go_module_metadata.go b/service/redshiftserverless/go_module_metadata.go
index c13cf6a1c94..0c324f3f12b 100644
--- a/service/redshiftserverless/go_module_metadata.go
+++ b/service/redshiftserverless/go_module_metadata.go
@@ -3,4 +3,4 @@
package redshiftserverless
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/rekognition/CHANGELOG.md b/service/rekognition/CHANGELOG.md
index a6312518a5c..540516523fc 100644
--- a/service/rekognition/CHANGELOG.md
+++ b/service/rekognition/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.47.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.47.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod
index 5f254a6ab02..63ec9ae727f 100644
--- a/service/rekognition/go.mod
+++ b/service/rekognition/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rekognition
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/rekognition/go.sum
+++ b/service/rekognition/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/rekognition/go_module_metadata.go b/service/rekognition/go_module_metadata.go
index 6316f82917f..5c0cee029ee 100644
--- a/service/rekognition/go_module_metadata.go
+++ b/service/rekognition/go_module_metadata.go
@@ -3,4 +3,4 @@
package rekognition
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.47.1"
+const goModuleVersion = "1.47.2"
diff --git a/service/repostspace/CHANGELOG.md b/service/repostspace/CHANGELOG.md
index 6c70a1f9052..55d42e34399 100644
--- a/service/repostspace/CHANGELOG.md
+++ b/service/repostspace/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.9.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.9.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/repostspace/go.mod b/service/repostspace/go.mod
index fff81444473..c2383a1493a 100644
--- a/service/repostspace/go.mod
+++ b/service/repostspace/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/repostspace
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/repostspace/go.sum b/service/repostspace/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/repostspace/go.sum
+++ b/service/repostspace/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/repostspace/go_module_metadata.go b/service/repostspace/go_module_metadata.go
index 67c6d21ca8f..42e96b14bb4 100644
--- a/service/repostspace/go_module_metadata.go
+++ b/service/repostspace/go_module_metadata.go
@@ -3,4 +3,4 @@
package repostspace
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.9.3"
+const goModuleVersion = "1.9.4"
diff --git a/service/resiliencehub/CHANGELOG.md b/service/resiliencehub/CHANGELOG.md
index 41cea4c3a3f..c0ee8550f8a 100644
--- a/service/resiliencehub/CHANGELOG.md
+++ b/service/resiliencehub/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/resiliencehub/go.mod b/service/resiliencehub/go.mod
index ac8e98af5b0..c90c609c361 100644
--- a/service/resiliencehub/go.mod
+++ b/service/resiliencehub/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resiliencehub
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/resiliencehub/go.sum b/service/resiliencehub/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/resiliencehub/go.sum
+++ b/service/resiliencehub/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/resiliencehub/go_module_metadata.go b/service/resiliencehub/go_module_metadata.go
index 048e9a7b476..7d1272f6fc1 100644
--- a/service/resiliencehub/go_module_metadata.go
+++ b/service/resiliencehub/go_module_metadata.go
@@ -3,4 +3,4 @@
package resiliencehub
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/resourceexplorer2/CHANGELOG.md b/service/resourceexplorer2/CHANGELOG.md
index 274b921c0cd..5802279889a 100644
--- a/service/resourceexplorer2/CHANGELOG.md
+++ b/service/resourceexplorer2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/resourceexplorer2/go.mod b/service/resourceexplorer2/go.mod
index 869b2b294ab..912a04890c4 100644
--- a/service/resourceexplorer2/go.mod
+++ b/service/resourceexplorer2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourceexplorer2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/resourceexplorer2/go.sum b/service/resourceexplorer2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/resourceexplorer2/go.sum
+++ b/service/resourceexplorer2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/resourceexplorer2/go_module_metadata.go b/service/resourceexplorer2/go_module_metadata.go
index 338172a8de1..3b702a4a3ad 100644
--- a/service/resourceexplorer2/go_module_metadata.go
+++ b/service/resourceexplorer2/go_module_metadata.go
@@ -3,4 +3,4 @@
package resourceexplorer2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.5"
+const goModuleVersion = "1.17.6"
diff --git a/service/resourcegroups/CHANGELOG.md b/service/resourcegroups/CHANGELOG.md
index c8b56acf422..5676f424a3b 100644
--- a/service/resourcegroups/CHANGELOG.md
+++ b/service/resourcegroups/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod
index 5541aa46b21..b70fb432742 100644
--- a/service/resourcegroups/go.mod
+++ b/service/resourcegroups/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourcegroups
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/resourcegroups/go.sum
+++ b/service/resourcegroups/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/resourcegroups/go_module_metadata.go b/service/resourcegroups/go_module_metadata.go
index ec1b0d79139..e591bd4603c 100644
--- a/service/resourcegroups/go_module_metadata.go
+++ b/service/resourcegroups/go_module_metadata.go
@@ -3,4 +3,4 @@
package resourcegroups
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.2"
+const goModuleVersion = "1.29.3"
diff --git a/service/resourcegroupstaggingapi/CHANGELOG.md b/service/resourcegroupstaggingapi/CHANGELOG.md
index bbcfc6be146..73607ff7385 100644
--- a/service/resourcegroupstaggingapi/CHANGELOG.md
+++ b/service/resourcegroupstaggingapi/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod
index 05a05d0342e..455545501d4 100644
--- a/service/resourcegroupstaggingapi/go.mod
+++ b/service/resourcegroupstaggingapi/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/resourcegroupstaggingapi/go.sum
+++ b/service/resourcegroupstaggingapi/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/resourcegroupstaggingapi/go_module_metadata.go b/service/resourcegroupstaggingapi/go_module_metadata.go
index 526f16dd5f2..443ef2fbb24 100644
--- a/service/resourcegroupstaggingapi/go_module_metadata.go
+++ b/service/resourcegroupstaggingapi/go_module_metadata.go
@@ -3,4 +3,4 @@
package resourcegroupstaggingapi
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.5"
+const goModuleVersion = "1.26.6"
diff --git a/service/robomaker/CHANGELOG.md b/service/robomaker/CHANGELOG.md
index 0f204f91fb8..a69b60aab8e 100644
--- a/service/robomaker/CHANGELOG.md
+++ b/service/robomaker/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod
index 95de4aafbe4..ed8907eb314 100644
--- a/service/robomaker/go.mod
+++ b/service/robomaker/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/robomaker
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/robomaker/go.sum
+++ b/service/robomaker/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/robomaker/go_module_metadata.go b/service/robomaker/go_module_metadata.go
index 32056fbe92b..36bbe6bd2a1 100644
--- a/service/robomaker/go_module_metadata.go
+++ b/service/robomaker/go_module_metadata.go
@@ -3,4 +3,4 @@
package robomaker
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.3"
+const goModuleVersion = "1.31.4"
diff --git a/service/rolesanywhere/CHANGELOG.md b/service/rolesanywhere/CHANGELOG.md
index 7b8516e31d0..321f7eeaca6 100644
--- a/service/rolesanywhere/CHANGELOG.md
+++ b/service/rolesanywhere/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.17.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.17.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/rolesanywhere/go.mod b/service/rolesanywhere/go.mod
index d365fb1d3b2..0a7764440f7 100644
--- a/service/rolesanywhere/go.mod
+++ b/service/rolesanywhere/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rolesanywhere
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/rolesanywhere/go.sum b/service/rolesanywhere/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/rolesanywhere/go.sum
+++ b/service/rolesanywhere/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/rolesanywhere/go_module_metadata.go b/service/rolesanywhere/go_module_metadata.go
index e200b4ee4b5..65046179c4e 100644
--- a/service/rolesanywhere/go_module_metadata.go
+++ b/service/rolesanywhere/go_module_metadata.go
@@ -3,4 +3,4 @@
package rolesanywhere
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.17.4"
+const goModuleVersion = "1.17.5"
diff --git a/service/route53/CHANGELOG.md b/service/route53/CHANGELOG.md
index f6369ddca43..76c2390d0be 100644
--- a/service/route53/CHANGELOG.md
+++ b/service/route53/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.52.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.52.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/route53/go.mod b/service/route53/go.mod
index cc0f32bf6fe..e2a2b259d9b 100644
--- a/service/route53/go.mod
+++ b/service/route53/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/route53/go.sum b/service/route53/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/route53/go.sum
+++ b/service/route53/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/route53/go_module_metadata.go b/service/route53/go_module_metadata.go
index 03844753f59..f492301cef3 100644
--- a/service/route53/go_module_metadata.go
+++ b/service/route53/go_module_metadata.go
@@ -3,4 +3,4 @@
package route53
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.52.1"
+const goModuleVersion = "1.52.2"
diff --git a/service/route53domains/CHANGELOG.md b/service/route53domains/CHANGELOG.md
index e56241fc86d..0d598d43dca 100644
--- a/service/route53domains/CHANGELOG.md
+++ b/service/route53domains/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod
index fc6270aa7c1..ec4ea0611bd 100644
--- a/service/route53domains/go.mod
+++ b/service/route53domains/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53domains
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/route53domains/go.sum
+++ b/service/route53domains/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/route53domains/go_module_metadata.go b/service/route53domains/go_module_metadata.go
index daf24bbaca9..5696c31a388 100644
--- a/service/route53domains/go_module_metadata.go
+++ b/service/route53domains/go_module_metadata.go
@@ -3,4 +3,4 @@
package route53domains
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/route53profiles/CHANGELOG.md b/service/route53profiles/CHANGELOG.md
index 59443835b19..a2b9afee14e 100644
--- a/service/route53profiles/CHANGELOG.md
+++ b/service/route53profiles/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.5.9 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.5.8 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/route53profiles/go.mod b/service/route53profiles/go.mod
index 0c023352294..08570b4367d 100644
--- a/service/route53profiles/go.mod
+++ b/service/route53profiles/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53profiles
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/route53profiles/go.sum b/service/route53profiles/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/route53profiles/go.sum
+++ b/service/route53profiles/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/route53profiles/go_module_metadata.go b/service/route53profiles/go_module_metadata.go
index 345b48f7a78..55bc25b2b11 100644
--- a/service/route53profiles/go_module_metadata.go
+++ b/service/route53profiles/go_module_metadata.go
@@ -3,4 +3,4 @@
package route53profiles
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.5.8"
+const goModuleVersion = "1.5.9"
diff --git a/service/route53recoverycluster/CHANGELOG.md b/service/route53recoverycluster/CHANGELOG.md
index f3494f703ca..86ab69f47a7 100644
--- a/service/route53recoverycluster/CHANGELOG.md
+++ b/service/route53recoverycluster/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/route53recoverycluster/go.mod b/service/route53recoverycluster/go.mod
index 26ff3a91592..1e1e69b88ba 100644
--- a/service/route53recoverycluster/go.mod
+++ b/service/route53recoverycluster/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoverycluster
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/route53recoverycluster/go.sum b/service/route53recoverycluster/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/route53recoverycluster/go.sum
+++ b/service/route53recoverycluster/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/route53recoverycluster/go_module_metadata.go b/service/route53recoverycluster/go_module_metadata.go
index f007cb455e8..781bca1d3a8 100644
--- a/service/route53recoverycluster/go_module_metadata.go
+++ b/service/route53recoverycluster/go_module_metadata.go
@@ -3,4 +3,4 @@
package route53recoverycluster
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/route53recoverycontrolconfig/CHANGELOG.md b/service/route53recoverycontrolconfig/CHANGELOG.md
index c087c0a221e..96820e8eda4 100644
--- a/service/route53recoverycontrolconfig/CHANGELOG.md
+++ b/service/route53recoverycontrolconfig/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/route53recoverycontrolconfig/go.mod b/service/route53recoverycontrolconfig/go.mod
index c09c9335122..8c48632a2f1 100644
--- a/service/route53recoverycontrolconfig/go.mod
+++ b/service/route53recoverycontrolconfig/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/route53recoverycontrolconfig/go.sum b/service/route53recoverycontrolconfig/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/route53recoverycontrolconfig/go.sum
+++ b/service/route53recoverycontrolconfig/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/route53recoverycontrolconfig/go_module_metadata.go b/service/route53recoverycontrolconfig/go_module_metadata.go
index 10c8ef495e9..acd458a174d 100644
--- a/service/route53recoverycontrolconfig/go_module_metadata.go
+++ b/service/route53recoverycontrolconfig/go_module_metadata.go
@@ -3,4 +3,4 @@
package route53recoverycontrolconfig
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.2"
+const goModuleVersion = "1.27.3"
diff --git a/service/route53recoveryreadiness/CHANGELOG.md b/service/route53recoveryreadiness/CHANGELOG.md
index 10b18fc9181..b66ccbafaa8 100644
--- a/service/route53recoveryreadiness/CHANGELOG.md
+++ b/service/route53recoveryreadiness/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.22.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.22.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/route53recoveryreadiness/go.mod b/service/route53recoveryreadiness/go.mod
index 7a6d4e07e91..4f644e5f288 100644
--- a/service/route53recoveryreadiness/go.mod
+++ b/service/route53recoveryreadiness/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/route53recoveryreadiness/go.sum b/service/route53recoveryreadiness/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/route53recoveryreadiness/go.sum
+++ b/service/route53recoveryreadiness/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/route53recoveryreadiness/go_module_metadata.go b/service/route53recoveryreadiness/go_module_metadata.go
index 255c8c60728..1065f1898c1 100644
--- a/service/route53recoveryreadiness/go_module_metadata.go
+++ b/service/route53recoveryreadiness/go_module_metadata.go
@@ -3,4 +3,4 @@
package route53recoveryreadiness
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.22.3"
+const goModuleVersion = "1.22.4"
diff --git a/service/route53resolver/CHANGELOG.md b/service/route53resolver/CHANGELOG.md
index 415dcb7328e..2f64bf2382d 100644
--- a/service/route53resolver/CHANGELOG.md
+++ b/service/route53resolver/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod
index 882cc3897f2..e621d8aca96 100644
--- a/service/route53resolver/go.mod
+++ b/service/route53resolver/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53resolver
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/route53resolver/go.sum
+++ b/service/route53resolver/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/route53resolver/go_module_metadata.go b/service/route53resolver/go_module_metadata.go
index c92abc42ecb..07428696f86 100644
--- a/service/route53resolver/go_module_metadata.go
+++ b/service/route53resolver/go_module_metadata.go
@@ -3,4 +3,4 @@
package route53resolver
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.5"
+const goModuleVersion = "1.35.6"
diff --git a/service/rum/CHANGELOG.md b/service/rum/CHANGELOG.md
index 6f5fbcdab98..4afcdfce5da 100644
--- a/service/rum/CHANGELOG.md
+++ b/service/rum/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/rum/go.mod b/service/rum/go.mod
index 0e6f488ce3d..c62c8c81808 100644
--- a/service/rum/go.mod
+++ b/service/rum/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rum
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/rum/go.sum b/service/rum/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/rum/go.sum
+++ b/service/rum/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/rum/go_module_metadata.go b/service/rum/go_module_metadata.go
index 5df8ce4cfee..e944c32e124 100644
--- a/service/rum/go_module_metadata.go
+++ b/service/rum/go_module_metadata.go
@@ -3,4 +3,4 @@
package rum
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/s3/CHANGELOG.md b/service/s3/CHANGELOG.md
index bb2e577c36f..52d1fc00e12 100644
--- a/service/s3/CHANGELOG.md
+++ b/service/s3/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.80.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.80.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/s3/go.mod b/service/s3/go.mod
index cd6e6b4b8f5..24acc1f6612 100644
--- a/service/s3/go.mod
+++ b/service/s3/go.mod
@@ -3,16 +3,16 @@ module github.com/aws/aws-sdk-go-v2/service/s3
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3
- github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4
+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.4
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/s3/go.sum b/service/s3/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/s3/go.sum
+++ b/service/s3/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/s3/go_module_metadata.go b/service/s3/go_module_metadata.go
index d97a1d15dcf..6a1d7c8e6f3 100644
--- a/service/s3/go_module_metadata.go
+++ b/service/s3/go_module_metadata.go
@@ -3,4 +3,4 @@
package s3
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.80.2"
+const goModuleVersion = "1.80.3"
diff --git a/service/s3/internal/configtesting/go.mod b/service/s3/internal/configtesting/go.mod
index 5e4ea3dec8d..a40931fb8af 100644
--- a/service/s3/internal/configtesting/go.mod
+++ b/service/s3/internal/configtesting/go.mod
@@ -3,23 +3,23 @@ module github.com/aws/aws-sdk-go-v2/service/s3/internal/configtesting
go 1.22
require (
- github.com/aws/aws-sdk-go-v2/config v1.29.16
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16
+ github.com/aws/aws-sdk-go-v2/config v1.29.17
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17
)
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4 // indirect
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2 v1.36.5 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 // indirect
- github.com/aws/smithy-go v1.22.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 // indirect
+ github.com/aws/smithy-go v1.22.4 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../../
diff --git a/service/s3/internal/configtesting/go.sum b/service/s3/internal/configtesting/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/s3/internal/configtesting/go.sum
+++ b/service/s3/internal/configtesting/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/s3control/CHANGELOG.md b/service/s3control/CHANGELOG.md
index bcf12f56b6c..befaea35614 100644
--- a/service/s3control/CHANGELOG.md
+++ b/service/s3control/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.58.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.58.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/s3control/go.mod b/service/s3control/go.mod
index eece443e49d..fcb665a48ab 100644
--- a/service/s3control/go.mod
+++ b/service/s3control/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/s3control
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/s3control/go.sum b/service/s3control/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/s3control/go.sum
+++ b/service/s3control/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/s3control/go_module_metadata.go b/service/s3control/go_module_metadata.go
index 26ddb999422..f441dee8845 100644
--- a/service/s3control/go_module_metadata.go
+++ b/service/s3control/go_module_metadata.go
@@ -3,4 +3,4 @@
package s3control
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.58.2"
+const goModuleVersion = "1.58.3"
diff --git a/service/s3outposts/CHANGELOG.md b/service/s3outposts/CHANGELOG.md
index 1de011c0261..36fd429cf51 100644
--- a/service/s3outposts/CHANGELOG.md
+++ b/service/s3outposts/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod
index c0b057ab630..da2d880d061 100644
--- a/service/s3outposts/go.mod
+++ b/service/s3outposts/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/s3outposts
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/s3outposts/go.sum
+++ b/service/s3outposts/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/s3outposts/go_module_metadata.go b/service/s3outposts/go_module_metadata.go
index c931aab5ba8..8253e178146 100644
--- a/service/s3outposts/go_module_metadata.go
+++ b/service/s3outposts/go_module_metadata.go
@@ -3,4 +3,4 @@
package s3outposts
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/s3tables/CHANGELOG.md b/service/s3tables/CHANGELOG.md
index bf8d519df06..52f7a27fa72 100644
--- a/service/s3tables/CHANGELOG.md
+++ b/service/s3tables/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.4.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.4.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/s3tables/go.mod b/service/s3tables/go.mod
index 2e4db428189..40c5638b963 100644
--- a/service/s3tables/go.mod
+++ b/service/s3tables/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/s3tables
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/s3tables/go.sum b/service/s3tables/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/s3tables/go.sum
+++ b/service/s3tables/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/s3tables/go_module_metadata.go b/service/s3tables/go_module_metadata.go
index 74c4cc097c6..f79905dec25 100644
--- a/service/s3tables/go_module_metadata.go
+++ b/service/s3tables/go_module_metadata.go
@@ -3,4 +3,4 @@
package s3tables
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.4.1"
+const goModuleVersion = "1.4.2"
diff --git a/service/sagemaker/CHANGELOG.md b/service/sagemaker/CHANGELOG.md
index 30a275886e0..1295a6fde8a 100644
--- a/service/sagemaker/CHANGELOG.md
+++ b/service/sagemaker/CHANGELOG.md
@@ -1,3 +1,12 @@
+# v1.196.1 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.196.0 (2025-06-16)
+
+* **Feature**: This release 1) adds a new S3DataType Converse for SageMaker training 2)adds C8g R7gd M8g C6in P6 P6e instance type for SageMaker endpoint 3) adds m7i, r7i, c7i instance type for SageMaker Training and Processing.
+
# v1.195.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod
index ce1878f5de5..85448daaeeb 100644
--- a/service/sagemaker/go.mod
+++ b/service/sagemaker/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemaker
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sagemaker/go.sum
+++ b/service/sagemaker/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sagemaker/go_module_metadata.go b/service/sagemaker/go_module_metadata.go
index cb28274a94f..267699c3aea 100644
--- a/service/sagemaker/go_module_metadata.go
+++ b/service/sagemaker/go_module_metadata.go
@@ -3,4 +3,4 @@
package sagemaker
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.195.1"
+const goModuleVersion = "1.196.1"
diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go
index 76c274b520c..c3574e465e4 100644
--- a/service/sagemaker/types/enums.go
+++ b/service/sagemaker/types/enums.go
@@ -5556,6 +5556,33 @@ const (
ProcessingInstanceTypeMlC6i16xlarge ProcessingInstanceType = "ml.c6i.16xlarge"
ProcessingInstanceTypeMlC6i24xlarge ProcessingInstanceType = "ml.c6i.24xlarge"
ProcessingInstanceTypeMlC6i32xlarge ProcessingInstanceType = "ml.c6i.32xlarge"
+ ProcessingInstanceTypeMlM7iLarge ProcessingInstanceType = "ml.m7i.large"
+ ProcessingInstanceTypeMlM7iXlarge ProcessingInstanceType = "ml.m7i.xlarge"
+ ProcessingInstanceTypeMlM7i2xlarge ProcessingInstanceType = "ml.m7i.2xlarge"
+ ProcessingInstanceTypeMlM7i4xlarge ProcessingInstanceType = "ml.m7i.4xlarge"
+ ProcessingInstanceTypeMlM7i8xlarge ProcessingInstanceType = "ml.m7i.8xlarge"
+ ProcessingInstanceTypeMlM7i12xlarge ProcessingInstanceType = "ml.m7i.12xlarge"
+ ProcessingInstanceTypeMlM7i16xlarge ProcessingInstanceType = "ml.m7i.16xlarge"
+ ProcessingInstanceTypeMlM7i24xlarge ProcessingInstanceType = "ml.m7i.24xlarge"
+ ProcessingInstanceTypeMlM7i48xlarge ProcessingInstanceType = "ml.m7i.48xlarge"
+ ProcessingInstanceTypeMlC7iLarge ProcessingInstanceType = "ml.c7i.large"
+ ProcessingInstanceTypeMlC7iXlarge ProcessingInstanceType = "ml.c7i.xlarge"
+ ProcessingInstanceTypeMlC7i2xlarge ProcessingInstanceType = "ml.c7i.2xlarge"
+ ProcessingInstanceTypeMlC7i4xlarge ProcessingInstanceType = "ml.c7i.4xlarge"
+ ProcessingInstanceTypeMlC7i8xlarge ProcessingInstanceType = "ml.c7i.8xlarge"
+ ProcessingInstanceTypeMlC7i12xlarge ProcessingInstanceType = "ml.c7i.12xlarge"
+ ProcessingInstanceTypeMlC7i16xlarge ProcessingInstanceType = "ml.c7i.16xlarge"
+ ProcessingInstanceTypeMlC7i24xlarge ProcessingInstanceType = "ml.c7i.24xlarge"
+ ProcessingInstanceTypeMlC7i48xlarge ProcessingInstanceType = "ml.c7i.48xlarge"
+ ProcessingInstanceTypeMlR7iLarge ProcessingInstanceType = "ml.r7i.large"
+ ProcessingInstanceTypeMlR7iXlarge ProcessingInstanceType = "ml.r7i.xlarge"
+ ProcessingInstanceTypeMlR7i2xlarge ProcessingInstanceType = "ml.r7i.2xlarge"
+ ProcessingInstanceTypeMlR7i4xlarge ProcessingInstanceType = "ml.r7i.4xlarge"
+ ProcessingInstanceTypeMlR7i8xlarge ProcessingInstanceType = "ml.r7i.8xlarge"
+ ProcessingInstanceTypeMlR7i12xlarge ProcessingInstanceType = "ml.r7i.12xlarge"
+ ProcessingInstanceTypeMlR7i16xlarge ProcessingInstanceType = "ml.r7i.16xlarge"
+ ProcessingInstanceTypeMlR7i24xlarge ProcessingInstanceType = "ml.r7i.24xlarge"
+ ProcessingInstanceTypeMlR7i48xlarge ProcessingInstanceType = "ml.r7i.48xlarge"
)
// Values returns all known values for ProcessingInstanceType. Note that this can
@@ -5657,6 +5684,33 @@ func (ProcessingInstanceType) Values() []ProcessingInstanceType {
"ml.c6i.16xlarge",
"ml.c6i.24xlarge",
"ml.c6i.32xlarge",
+ "ml.m7i.large",
+ "ml.m7i.xlarge",
+ "ml.m7i.2xlarge",
+ "ml.m7i.4xlarge",
+ "ml.m7i.8xlarge",
+ "ml.m7i.12xlarge",
+ "ml.m7i.16xlarge",
+ "ml.m7i.24xlarge",
+ "ml.m7i.48xlarge",
+ "ml.c7i.large",
+ "ml.c7i.xlarge",
+ "ml.c7i.2xlarge",
+ "ml.c7i.4xlarge",
+ "ml.c7i.8xlarge",
+ "ml.c7i.12xlarge",
+ "ml.c7i.16xlarge",
+ "ml.c7i.24xlarge",
+ "ml.c7i.48xlarge",
+ "ml.r7i.large",
+ "ml.r7i.xlarge",
+ "ml.r7i.2xlarge",
+ "ml.r7i.4xlarge",
+ "ml.r7i.8xlarge",
+ "ml.r7i.12xlarge",
+ "ml.r7i.16xlarge",
+ "ml.r7i.24xlarge",
+ "ml.r7i.48xlarge",
}
}
@@ -5856,230 +5910,269 @@ type ProductionVariantInstanceType string
// Enum values for ProductionVariantInstanceType
const (
- ProductionVariantInstanceTypeMlT2Medium ProductionVariantInstanceType = "ml.t2.medium"
- ProductionVariantInstanceTypeMlT2Large ProductionVariantInstanceType = "ml.t2.large"
- ProductionVariantInstanceTypeMlT2Xlarge ProductionVariantInstanceType = "ml.t2.xlarge"
- ProductionVariantInstanceTypeMlT22xlarge ProductionVariantInstanceType = "ml.t2.2xlarge"
- ProductionVariantInstanceTypeMlM4Xlarge ProductionVariantInstanceType = "ml.m4.xlarge"
- ProductionVariantInstanceTypeMlM42xlarge ProductionVariantInstanceType = "ml.m4.2xlarge"
- ProductionVariantInstanceTypeMlM44xlarge ProductionVariantInstanceType = "ml.m4.4xlarge"
- ProductionVariantInstanceTypeMlM410xlarge ProductionVariantInstanceType = "ml.m4.10xlarge"
- ProductionVariantInstanceTypeMlM416xlarge ProductionVariantInstanceType = "ml.m4.16xlarge"
- ProductionVariantInstanceTypeMlM5Large ProductionVariantInstanceType = "ml.m5.large"
- ProductionVariantInstanceTypeMlM5Xlarge ProductionVariantInstanceType = "ml.m5.xlarge"
- ProductionVariantInstanceTypeMlM52xlarge ProductionVariantInstanceType = "ml.m5.2xlarge"
- ProductionVariantInstanceTypeMlM54xlarge ProductionVariantInstanceType = "ml.m5.4xlarge"
- ProductionVariantInstanceTypeMlM512xlarge ProductionVariantInstanceType = "ml.m5.12xlarge"
- ProductionVariantInstanceTypeMlM524xlarge ProductionVariantInstanceType = "ml.m5.24xlarge"
- ProductionVariantInstanceTypeMlM5dLarge ProductionVariantInstanceType = "ml.m5d.large"
- ProductionVariantInstanceTypeMlM5dXlarge ProductionVariantInstanceType = "ml.m5d.xlarge"
- ProductionVariantInstanceTypeMlM5d2xlarge ProductionVariantInstanceType = "ml.m5d.2xlarge"
- ProductionVariantInstanceTypeMlM5d4xlarge ProductionVariantInstanceType = "ml.m5d.4xlarge"
- ProductionVariantInstanceTypeMlM5d12xlarge ProductionVariantInstanceType = "ml.m5d.12xlarge"
- ProductionVariantInstanceTypeMlM5d24xlarge ProductionVariantInstanceType = "ml.m5d.24xlarge"
- ProductionVariantInstanceTypeMlC4Large ProductionVariantInstanceType = "ml.c4.large"
- ProductionVariantInstanceTypeMlC4Xlarge ProductionVariantInstanceType = "ml.c4.xlarge"
- ProductionVariantInstanceTypeMlC42xlarge ProductionVariantInstanceType = "ml.c4.2xlarge"
- ProductionVariantInstanceTypeMlC44xlarge ProductionVariantInstanceType = "ml.c4.4xlarge"
- ProductionVariantInstanceTypeMlC48xlarge ProductionVariantInstanceType = "ml.c4.8xlarge"
- ProductionVariantInstanceTypeMlP2Xlarge ProductionVariantInstanceType = "ml.p2.xlarge"
- ProductionVariantInstanceTypeMlP28xlarge ProductionVariantInstanceType = "ml.p2.8xlarge"
- ProductionVariantInstanceTypeMlP216xlarge ProductionVariantInstanceType = "ml.p2.16xlarge"
- ProductionVariantInstanceTypeMlP32xlarge ProductionVariantInstanceType = "ml.p3.2xlarge"
- ProductionVariantInstanceTypeMlP38xlarge ProductionVariantInstanceType = "ml.p3.8xlarge"
- ProductionVariantInstanceTypeMlP316xlarge ProductionVariantInstanceType = "ml.p3.16xlarge"
- ProductionVariantInstanceTypeMlC5Large ProductionVariantInstanceType = "ml.c5.large"
- ProductionVariantInstanceTypeMlC5Xlarge ProductionVariantInstanceType = "ml.c5.xlarge"
- ProductionVariantInstanceTypeMlC52xlarge ProductionVariantInstanceType = "ml.c5.2xlarge"
- ProductionVariantInstanceTypeMlC54xlarge ProductionVariantInstanceType = "ml.c5.4xlarge"
- ProductionVariantInstanceTypeMlC59xlarge ProductionVariantInstanceType = "ml.c5.9xlarge"
- ProductionVariantInstanceTypeMlC518xlarge ProductionVariantInstanceType = "ml.c5.18xlarge"
- ProductionVariantInstanceTypeMlC5dLarge ProductionVariantInstanceType = "ml.c5d.large"
- ProductionVariantInstanceTypeMlC5dXlarge ProductionVariantInstanceType = "ml.c5d.xlarge"
- ProductionVariantInstanceTypeMlC5d2xlarge ProductionVariantInstanceType = "ml.c5d.2xlarge"
- ProductionVariantInstanceTypeMlC5d4xlarge ProductionVariantInstanceType = "ml.c5d.4xlarge"
- ProductionVariantInstanceTypeMlC5d9xlarge ProductionVariantInstanceType = "ml.c5d.9xlarge"
- ProductionVariantInstanceTypeMlC5d18xlarge ProductionVariantInstanceType = "ml.c5d.18xlarge"
- ProductionVariantInstanceTypeMlG4dnXlarge ProductionVariantInstanceType = "ml.g4dn.xlarge"
- ProductionVariantInstanceTypeMlG4dn2xlarge ProductionVariantInstanceType = "ml.g4dn.2xlarge"
- ProductionVariantInstanceTypeMlG4dn4xlarge ProductionVariantInstanceType = "ml.g4dn.4xlarge"
- ProductionVariantInstanceTypeMlG4dn8xlarge ProductionVariantInstanceType = "ml.g4dn.8xlarge"
- ProductionVariantInstanceTypeMlG4dn12xlarge ProductionVariantInstanceType = "ml.g4dn.12xlarge"
- ProductionVariantInstanceTypeMlG4dn16xlarge ProductionVariantInstanceType = "ml.g4dn.16xlarge"
- ProductionVariantInstanceTypeMlR5Large ProductionVariantInstanceType = "ml.r5.large"
- ProductionVariantInstanceTypeMlR5Xlarge ProductionVariantInstanceType = "ml.r5.xlarge"
- ProductionVariantInstanceTypeMlR52xlarge ProductionVariantInstanceType = "ml.r5.2xlarge"
- ProductionVariantInstanceTypeMlR54xlarge ProductionVariantInstanceType = "ml.r5.4xlarge"
- ProductionVariantInstanceTypeMlR512xlarge ProductionVariantInstanceType = "ml.r5.12xlarge"
- ProductionVariantInstanceTypeMlR524xlarge ProductionVariantInstanceType = "ml.r5.24xlarge"
- ProductionVariantInstanceTypeMlR5dLarge ProductionVariantInstanceType = "ml.r5d.large"
- ProductionVariantInstanceTypeMlR5dXlarge ProductionVariantInstanceType = "ml.r5d.xlarge"
- ProductionVariantInstanceTypeMlR5d2xlarge ProductionVariantInstanceType = "ml.r5d.2xlarge"
- ProductionVariantInstanceTypeMlR5d4xlarge ProductionVariantInstanceType = "ml.r5d.4xlarge"
- ProductionVariantInstanceTypeMlR5d12xlarge ProductionVariantInstanceType = "ml.r5d.12xlarge"
- ProductionVariantInstanceTypeMlR5d24xlarge ProductionVariantInstanceType = "ml.r5d.24xlarge"
- ProductionVariantInstanceTypeMlInf1Xlarge ProductionVariantInstanceType = "ml.inf1.xlarge"
- ProductionVariantInstanceTypeMlInf12xlarge ProductionVariantInstanceType = "ml.inf1.2xlarge"
- ProductionVariantInstanceTypeMlInf16xlarge ProductionVariantInstanceType = "ml.inf1.6xlarge"
- ProductionVariantInstanceTypeMlInf124xlarge ProductionVariantInstanceType = "ml.inf1.24xlarge"
- ProductionVariantInstanceTypeMlDl124xlarge ProductionVariantInstanceType = "ml.dl1.24xlarge"
- ProductionVariantInstanceTypeMlC6iLarge ProductionVariantInstanceType = "ml.c6i.large"
- ProductionVariantInstanceTypeMlC6iXlarge ProductionVariantInstanceType = "ml.c6i.xlarge"
- ProductionVariantInstanceTypeMlC6i2xlarge ProductionVariantInstanceType = "ml.c6i.2xlarge"
- ProductionVariantInstanceTypeMlC6i4xlarge ProductionVariantInstanceType = "ml.c6i.4xlarge"
- ProductionVariantInstanceTypeMlC6i8xlarge ProductionVariantInstanceType = "ml.c6i.8xlarge"
- ProductionVariantInstanceTypeMlC6i12xlarge ProductionVariantInstanceType = "ml.c6i.12xlarge"
- ProductionVariantInstanceTypeMlC6i16xlarge ProductionVariantInstanceType = "ml.c6i.16xlarge"
- ProductionVariantInstanceTypeMlC6i24xlarge ProductionVariantInstanceType = "ml.c6i.24xlarge"
- ProductionVariantInstanceTypeMlC6i32xlarge ProductionVariantInstanceType = "ml.c6i.32xlarge"
- ProductionVariantInstanceTypeMlM6iLarge ProductionVariantInstanceType = "ml.m6i.large"
- ProductionVariantInstanceTypeMlM6iXlarge ProductionVariantInstanceType = "ml.m6i.xlarge"
- ProductionVariantInstanceTypeMlM6i2xlarge ProductionVariantInstanceType = "ml.m6i.2xlarge"
- ProductionVariantInstanceTypeMlM6i4xlarge ProductionVariantInstanceType = "ml.m6i.4xlarge"
- ProductionVariantInstanceTypeMlM6i8xlarge ProductionVariantInstanceType = "ml.m6i.8xlarge"
- ProductionVariantInstanceTypeMlM6i12xlarge ProductionVariantInstanceType = "ml.m6i.12xlarge"
- ProductionVariantInstanceTypeMlM6i16xlarge ProductionVariantInstanceType = "ml.m6i.16xlarge"
- ProductionVariantInstanceTypeMlM6i24xlarge ProductionVariantInstanceType = "ml.m6i.24xlarge"
- ProductionVariantInstanceTypeMlM6i32xlarge ProductionVariantInstanceType = "ml.m6i.32xlarge"
- ProductionVariantInstanceTypeMlR6iLarge ProductionVariantInstanceType = "ml.r6i.large"
- ProductionVariantInstanceTypeMlR6iXlarge ProductionVariantInstanceType = "ml.r6i.xlarge"
- ProductionVariantInstanceTypeMlR6i2xlarge ProductionVariantInstanceType = "ml.r6i.2xlarge"
- ProductionVariantInstanceTypeMlR6i4xlarge ProductionVariantInstanceType = "ml.r6i.4xlarge"
- ProductionVariantInstanceTypeMlR6i8xlarge ProductionVariantInstanceType = "ml.r6i.8xlarge"
- ProductionVariantInstanceTypeMlR6i12xlarge ProductionVariantInstanceType = "ml.r6i.12xlarge"
- ProductionVariantInstanceTypeMlR6i16xlarge ProductionVariantInstanceType = "ml.r6i.16xlarge"
- ProductionVariantInstanceTypeMlR6i24xlarge ProductionVariantInstanceType = "ml.r6i.24xlarge"
- ProductionVariantInstanceTypeMlR6i32xlarge ProductionVariantInstanceType = "ml.r6i.32xlarge"
- ProductionVariantInstanceTypeMlG5Xlarge ProductionVariantInstanceType = "ml.g5.xlarge"
- ProductionVariantInstanceTypeMlG52xlarge ProductionVariantInstanceType = "ml.g5.2xlarge"
- ProductionVariantInstanceTypeMlG54xlarge ProductionVariantInstanceType = "ml.g5.4xlarge"
- ProductionVariantInstanceTypeMlG58xlarge ProductionVariantInstanceType = "ml.g5.8xlarge"
- ProductionVariantInstanceTypeMlG512xlarge ProductionVariantInstanceType = "ml.g5.12xlarge"
- ProductionVariantInstanceTypeMlG516xlarge ProductionVariantInstanceType = "ml.g5.16xlarge"
- ProductionVariantInstanceTypeMlG524xlarge ProductionVariantInstanceType = "ml.g5.24xlarge"
- ProductionVariantInstanceTypeMlG548xlarge ProductionVariantInstanceType = "ml.g5.48xlarge"
- ProductionVariantInstanceTypeMlG6Xlarge ProductionVariantInstanceType = "ml.g6.xlarge"
- ProductionVariantInstanceTypeMlG62xlarge ProductionVariantInstanceType = "ml.g6.2xlarge"
- ProductionVariantInstanceTypeMlG64xlarge ProductionVariantInstanceType = "ml.g6.4xlarge"
- ProductionVariantInstanceTypeMlG68xlarge ProductionVariantInstanceType = "ml.g6.8xlarge"
- ProductionVariantInstanceTypeMlG612xlarge ProductionVariantInstanceType = "ml.g6.12xlarge"
- ProductionVariantInstanceTypeMlG616xlarge ProductionVariantInstanceType = "ml.g6.16xlarge"
- ProductionVariantInstanceTypeMlG624xlarge ProductionVariantInstanceType = "ml.g6.24xlarge"
- ProductionVariantInstanceTypeMlG648xlarge ProductionVariantInstanceType = "ml.g6.48xlarge"
- ProductionVariantInstanceTypeMlR8gMedium ProductionVariantInstanceType = "ml.r8g.medium"
- ProductionVariantInstanceTypeMlR8gLarge ProductionVariantInstanceType = "ml.r8g.large"
- ProductionVariantInstanceTypeMlR8gXlarge ProductionVariantInstanceType = "ml.r8g.xlarge"
- ProductionVariantInstanceTypeMlR8g2xlarge ProductionVariantInstanceType = "ml.r8g.2xlarge"
- ProductionVariantInstanceTypeMlR8g4xlarge ProductionVariantInstanceType = "ml.r8g.4xlarge"
- ProductionVariantInstanceTypeMlR8g8xlarge ProductionVariantInstanceType = "ml.r8g.8xlarge"
- ProductionVariantInstanceTypeMlR8g12xlarge ProductionVariantInstanceType = "ml.r8g.12xlarge"
- ProductionVariantInstanceTypeMlR8g16xlarge ProductionVariantInstanceType = "ml.r8g.16xlarge"
- ProductionVariantInstanceTypeMlR8g24xlarge ProductionVariantInstanceType = "ml.r8g.24xlarge"
- ProductionVariantInstanceTypeMlR8g48xlarge ProductionVariantInstanceType = "ml.r8g.48xlarge"
- ProductionVariantInstanceTypeMlG6eXlarge ProductionVariantInstanceType = "ml.g6e.xlarge"
- ProductionVariantInstanceTypeMlG6e2xlarge ProductionVariantInstanceType = "ml.g6e.2xlarge"
- ProductionVariantInstanceTypeMlG6e4xlarge ProductionVariantInstanceType = "ml.g6e.4xlarge"
- ProductionVariantInstanceTypeMlG6e8xlarge ProductionVariantInstanceType = "ml.g6e.8xlarge"
- ProductionVariantInstanceTypeMlG6e12xlarge ProductionVariantInstanceType = "ml.g6e.12xlarge"
- ProductionVariantInstanceTypeMlG6e16xlarge ProductionVariantInstanceType = "ml.g6e.16xlarge"
- ProductionVariantInstanceTypeMlG6e24xlarge ProductionVariantInstanceType = "ml.g6e.24xlarge"
- ProductionVariantInstanceTypeMlG6e48xlarge ProductionVariantInstanceType = "ml.g6e.48xlarge"
- ProductionVariantInstanceTypeMlP4d24xlarge ProductionVariantInstanceType = "ml.p4d.24xlarge"
- ProductionVariantInstanceTypeMlC7gLarge ProductionVariantInstanceType = "ml.c7g.large"
- ProductionVariantInstanceTypeMlC7gXlarge ProductionVariantInstanceType = "ml.c7g.xlarge"
- ProductionVariantInstanceTypeMlC7g2xlarge ProductionVariantInstanceType = "ml.c7g.2xlarge"
- ProductionVariantInstanceTypeMlC7g4xlarge ProductionVariantInstanceType = "ml.c7g.4xlarge"
- ProductionVariantInstanceTypeMlC7g8xlarge ProductionVariantInstanceType = "ml.c7g.8xlarge"
- ProductionVariantInstanceTypeMlC7g12xlarge ProductionVariantInstanceType = "ml.c7g.12xlarge"
- ProductionVariantInstanceTypeMlC7g16xlarge ProductionVariantInstanceType = "ml.c7g.16xlarge"
- ProductionVariantInstanceTypeMlM6gLarge ProductionVariantInstanceType = "ml.m6g.large"
- ProductionVariantInstanceTypeMlM6gXlarge ProductionVariantInstanceType = "ml.m6g.xlarge"
- ProductionVariantInstanceTypeMlM6g2xlarge ProductionVariantInstanceType = "ml.m6g.2xlarge"
- ProductionVariantInstanceTypeMlM6g4xlarge ProductionVariantInstanceType = "ml.m6g.4xlarge"
- ProductionVariantInstanceTypeMlM6g8xlarge ProductionVariantInstanceType = "ml.m6g.8xlarge"
- ProductionVariantInstanceTypeMlM6g12xlarge ProductionVariantInstanceType = "ml.m6g.12xlarge"
- ProductionVariantInstanceTypeMlM6g16xlarge ProductionVariantInstanceType = "ml.m6g.16xlarge"
- ProductionVariantInstanceTypeMlM6gdLarge ProductionVariantInstanceType = "ml.m6gd.large"
- ProductionVariantInstanceTypeMlM6gdXlarge ProductionVariantInstanceType = "ml.m6gd.xlarge"
- ProductionVariantInstanceTypeMlM6gd2xlarge ProductionVariantInstanceType = "ml.m6gd.2xlarge"
- ProductionVariantInstanceTypeMlM6gd4xlarge ProductionVariantInstanceType = "ml.m6gd.4xlarge"
- ProductionVariantInstanceTypeMlM6gd8xlarge ProductionVariantInstanceType = "ml.m6gd.8xlarge"
- ProductionVariantInstanceTypeMlM6gd12xlarge ProductionVariantInstanceType = "ml.m6gd.12xlarge"
- ProductionVariantInstanceTypeMlM6gd16xlarge ProductionVariantInstanceType = "ml.m6gd.16xlarge"
- ProductionVariantInstanceTypeMlC6gLarge ProductionVariantInstanceType = "ml.c6g.large"
- ProductionVariantInstanceTypeMlC6gXlarge ProductionVariantInstanceType = "ml.c6g.xlarge"
- ProductionVariantInstanceTypeMlC6g2xlarge ProductionVariantInstanceType = "ml.c6g.2xlarge"
- ProductionVariantInstanceTypeMlC6g4xlarge ProductionVariantInstanceType = "ml.c6g.4xlarge"
- ProductionVariantInstanceTypeMlC6g8xlarge ProductionVariantInstanceType = "ml.c6g.8xlarge"
- ProductionVariantInstanceTypeMlC6g12xlarge ProductionVariantInstanceType = "ml.c6g.12xlarge"
- ProductionVariantInstanceTypeMlC6g16xlarge ProductionVariantInstanceType = "ml.c6g.16xlarge"
- ProductionVariantInstanceTypeMlC6gdLarge ProductionVariantInstanceType = "ml.c6gd.large"
- ProductionVariantInstanceTypeMlC6gdXlarge ProductionVariantInstanceType = "ml.c6gd.xlarge"
- ProductionVariantInstanceTypeMlC6gd2xlarge ProductionVariantInstanceType = "ml.c6gd.2xlarge"
- ProductionVariantInstanceTypeMlC6gd4xlarge ProductionVariantInstanceType = "ml.c6gd.4xlarge"
- ProductionVariantInstanceTypeMlC6gd8xlarge ProductionVariantInstanceType = "ml.c6gd.8xlarge"
- ProductionVariantInstanceTypeMlC6gd12xlarge ProductionVariantInstanceType = "ml.c6gd.12xlarge"
- ProductionVariantInstanceTypeMlC6gd16xlarge ProductionVariantInstanceType = "ml.c6gd.16xlarge"
- ProductionVariantInstanceTypeMlC6gnLarge ProductionVariantInstanceType = "ml.c6gn.large"
- ProductionVariantInstanceTypeMlC6gnXlarge ProductionVariantInstanceType = "ml.c6gn.xlarge"
- ProductionVariantInstanceTypeMlC6gn2xlarge ProductionVariantInstanceType = "ml.c6gn.2xlarge"
- ProductionVariantInstanceTypeMlC6gn4xlarge ProductionVariantInstanceType = "ml.c6gn.4xlarge"
- ProductionVariantInstanceTypeMlC6gn8xlarge ProductionVariantInstanceType = "ml.c6gn.8xlarge"
- ProductionVariantInstanceTypeMlC6gn12xlarge ProductionVariantInstanceType = "ml.c6gn.12xlarge"
- ProductionVariantInstanceTypeMlC6gn16xlarge ProductionVariantInstanceType = "ml.c6gn.16xlarge"
- ProductionVariantInstanceTypeMlR6gLarge ProductionVariantInstanceType = "ml.r6g.large"
- ProductionVariantInstanceTypeMlR6gXlarge ProductionVariantInstanceType = "ml.r6g.xlarge"
- ProductionVariantInstanceTypeMlR6g2xlarge ProductionVariantInstanceType = "ml.r6g.2xlarge"
- ProductionVariantInstanceTypeMlR6g4xlarge ProductionVariantInstanceType = "ml.r6g.4xlarge"
- ProductionVariantInstanceTypeMlR6g8xlarge ProductionVariantInstanceType = "ml.r6g.8xlarge"
- ProductionVariantInstanceTypeMlR6g12xlarge ProductionVariantInstanceType = "ml.r6g.12xlarge"
- ProductionVariantInstanceTypeMlR6g16xlarge ProductionVariantInstanceType = "ml.r6g.16xlarge"
- ProductionVariantInstanceTypeMlR6gdLarge ProductionVariantInstanceType = "ml.r6gd.large"
- ProductionVariantInstanceTypeMlR6gdXlarge ProductionVariantInstanceType = "ml.r6gd.xlarge"
- ProductionVariantInstanceTypeMlR6gd2xlarge ProductionVariantInstanceType = "ml.r6gd.2xlarge"
- ProductionVariantInstanceTypeMlR6gd4xlarge ProductionVariantInstanceType = "ml.r6gd.4xlarge"
- ProductionVariantInstanceTypeMlR6gd8xlarge ProductionVariantInstanceType = "ml.r6gd.8xlarge"
- ProductionVariantInstanceTypeMlR6gd12xlarge ProductionVariantInstanceType = "ml.r6gd.12xlarge"
- ProductionVariantInstanceTypeMlR6gd16xlarge ProductionVariantInstanceType = "ml.r6gd.16xlarge"
- ProductionVariantInstanceTypeMlP4de24xlarge ProductionVariantInstanceType = "ml.p4de.24xlarge"
- ProductionVariantInstanceTypeMlTrn12xlarge ProductionVariantInstanceType = "ml.trn1.2xlarge"
- ProductionVariantInstanceTypeMlTrn132xlarge ProductionVariantInstanceType = "ml.trn1.32xlarge"
- ProductionVariantInstanceTypeMlTrn1n32xlarge ProductionVariantInstanceType = "ml.trn1n.32xlarge"
- ProductionVariantInstanceTypeMlTrn248xlarge ProductionVariantInstanceType = "ml.trn2.48xlarge"
- ProductionVariantInstanceTypeMlInf2Xlarge ProductionVariantInstanceType = "ml.inf2.xlarge"
- ProductionVariantInstanceTypeMlInf28xlarge ProductionVariantInstanceType = "ml.inf2.8xlarge"
- ProductionVariantInstanceTypeMlInf224xlarge ProductionVariantInstanceType = "ml.inf2.24xlarge"
- ProductionVariantInstanceTypeMlInf248xlarge ProductionVariantInstanceType = "ml.inf2.48xlarge"
- ProductionVariantInstanceTypeMlP548xlarge ProductionVariantInstanceType = "ml.p5.48xlarge"
- ProductionVariantInstanceTypeMlP5e48xlarge ProductionVariantInstanceType = "ml.p5e.48xlarge"
- ProductionVariantInstanceTypeMlP5en48xlarge ProductionVariantInstanceType = "ml.p5en.48xlarge"
- ProductionVariantInstanceTypeMlM7iLarge ProductionVariantInstanceType = "ml.m7i.large"
- ProductionVariantInstanceTypeMlM7iXlarge ProductionVariantInstanceType = "ml.m7i.xlarge"
- ProductionVariantInstanceTypeMlM7i2xlarge ProductionVariantInstanceType = "ml.m7i.2xlarge"
- ProductionVariantInstanceTypeMlM7i4xlarge ProductionVariantInstanceType = "ml.m7i.4xlarge"
- ProductionVariantInstanceTypeMlM7i8xlarge ProductionVariantInstanceType = "ml.m7i.8xlarge"
- ProductionVariantInstanceTypeMlM7i12xlarge ProductionVariantInstanceType = "ml.m7i.12xlarge"
- ProductionVariantInstanceTypeMlM7i16xlarge ProductionVariantInstanceType = "ml.m7i.16xlarge"
- ProductionVariantInstanceTypeMlM7i24xlarge ProductionVariantInstanceType = "ml.m7i.24xlarge"
- ProductionVariantInstanceTypeMlM7i48xlarge ProductionVariantInstanceType = "ml.m7i.48xlarge"
- ProductionVariantInstanceTypeMlC7iLarge ProductionVariantInstanceType = "ml.c7i.large"
- ProductionVariantInstanceTypeMlC7iXlarge ProductionVariantInstanceType = "ml.c7i.xlarge"
- ProductionVariantInstanceTypeMlC7i2xlarge ProductionVariantInstanceType = "ml.c7i.2xlarge"
- ProductionVariantInstanceTypeMlC7i4xlarge ProductionVariantInstanceType = "ml.c7i.4xlarge"
- ProductionVariantInstanceTypeMlC7i8xlarge ProductionVariantInstanceType = "ml.c7i.8xlarge"
- ProductionVariantInstanceTypeMlC7i12xlarge ProductionVariantInstanceType = "ml.c7i.12xlarge"
- ProductionVariantInstanceTypeMlC7i16xlarge ProductionVariantInstanceType = "ml.c7i.16xlarge"
- ProductionVariantInstanceTypeMlC7i24xlarge ProductionVariantInstanceType = "ml.c7i.24xlarge"
- ProductionVariantInstanceTypeMlC7i48xlarge ProductionVariantInstanceType = "ml.c7i.48xlarge"
- ProductionVariantInstanceTypeMlR7iLarge ProductionVariantInstanceType = "ml.r7i.large"
- ProductionVariantInstanceTypeMlR7iXlarge ProductionVariantInstanceType = "ml.r7i.xlarge"
- ProductionVariantInstanceTypeMlR7i2xlarge ProductionVariantInstanceType = "ml.r7i.2xlarge"
- ProductionVariantInstanceTypeMlR7i4xlarge ProductionVariantInstanceType = "ml.r7i.4xlarge"
- ProductionVariantInstanceTypeMlR7i8xlarge ProductionVariantInstanceType = "ml.r7i.8xlarge"
- ProductionVariantInstanceTypeMlR7i12xlarge ProductionVariantInstanceType = "ml.r7i.12xlarge"
- ProductionVariantInstanceTypeMlR7i16xlarge ProductionVariantInstanceType = "ml.r7i.16xlarge"
- ProductionVariantInstanceTypeMlR7i24xlarge ProductionVariantInstanceType = "ml.r7i.24xlarge"
- ProductionVariantInstanceTypeMlR7i48xlarge ProductionVariantInstanceType = "ml.r7i.48xlarge"
+ ProductionVariantInstanceTypeMlT2Medium ProductionVariantInstanceType = "ml.t2.medium"
+ ProductionVariantInstanceTypeMlT2Large ProductionVariantInstanceType = "ml.t2.large"
+ ProductionVariantInstanceTypeMlT2Xlarge ProductionVariantInstanceType = "ml.t2.xlarge"
+ ProductionVariantInstanceTypeMlT22xlarge ProductionVariantInstanceType = "ml.t2.2xlarge"
+ ProductionVariantInstanceTypeMlM4Xlarge ProductionVariantInstanceType = "ml.m4.xlarge"
+ ProductionVariantInstanceTypeMlM42xlarge ProductionVariantInstanceType = "ml.m4.2xlarge"
+ ProductionVariantInstanceTypeMlM44xlarge ProductionVariantInstanceType = "ml.m4.4xlarge"
+ ProductionVariantInstanceTypeMlM410xlarge ProductionVariantInstanceType = "ml.m4.10xlarge"
+ ProductionVariantInstanceTypeMlM416xlarge ProductionVariantInstanceType = "ml.m4.16xlarge"
+ ProductionVariantInstanceTypeMlM5Large ProductionVariantInstanceType = "ml.m5.large"
+ ProductionVariantInstanceTypeMlM5Xlarge ProductionVariantInstanceType = "ml.m5.xlarge"
+ ProductionVariantInstanceTypeMlM52xlarge ProductionVariantInstanceType = "ml.m5.2xlarge"
+ ProductionVariantInstanceTypeMlM54xlarge ProductionVariantInstanceType = "ml.m5.4xlarge"
+ ProductionVariantInstanceTypeMlM512xlarge ProductionVariantInstanceType = "ml.m5.12xlarge"
+ ProductionVariantInstanceTypeMlM524xlarge ProductionVariantInstanceType = "ml.m5.24xlarge"
+ ProductionVariantInstanceTypeMlM5dLarge ProductionVariantInstanceType = "ml.m5d.large"
+ ProductionVariantInstanceTypeMlM5dXlarge ProductionVariantInstanceType = "ml.m5d.xlarge"
+ ProductionVariantInstanceTypeMlM5d2xlarge ProductionVariantInstanceType = "ml.m5d.2xlarge"
+ ProductionVariantInstanceTypeMlM5d4xlarge ProductionVariantInstanceType = "ml.m5d.4xlarge"
+ ProductionVariantInstanceTypeMlM5d12xlarge ProductionVariantInstanceType = "ml.m5d.12xlarge"
+ ProductionVariantInstanceTypeMlM5d24xlarge ProductionVariantInstanceType = "ml.m5d.24xlarge"
+ ProductionVariantInstanceTypeMlC4Large ProductionVariantInstanceType = "ml.c4.large"
+ ProductionVariantInstanceTypeMlC4Xlarge ProductionVariantInstanceType = "ml.c4.xlarge"
+ ProductionVariantInstanceTypeMlC42xlarge ProductionVariantInstanceType = "ml.c4.2xlarge"
+ ProductionVariantInstanceTypeMlC44xlarge ProductionVariantInstanceType = "ml.c4.4xlarge"
+ ProductionVariantInstanceTypeMlC48xlarge ProductionVariantInstanceType = "ml.c4.8xlarge"
+ ProductionVariantInstanceTypeMlP2Xlarge ProductionVariantInstanceType = "ml.p2.xlarge"
+ ProductionVariantInstanceTypeMlP28xlarge ProductionVariantInstanceType = "ml.p2.8xlarge"
+ ProductionVariantInstanceTypeMlP216xlarge ProductionVariantInstanceType = "ml.p2.16xlarge"
+ ProductionVariantInstanceTypeMlP32xlarge ProductionVariantInstanceType = "ml.p3.2xlarge"
+ ProductionVariantInstanceTypeMlP38xlarge ProductionVariantInstanceType = "ml.p3.8xlarge"
+ ProductionVariantInstanceTypeMlP316xlarge ProductionVariantInstanceType = "ml.p3.16xlarge"
+ ProductionVariantInstanceTypeMlC5Large ProductionVariantInstanceType = "ml.c5.large"
+ ProductionVariantInstanceTypeMlC5Xlarge ProductionVariantInstanceType = "ml.c5.xlarge"
+ ProductionVariantInstanceTypeMlC52xlarge ProductionVariantInstanceType = "ml.c5.2xlarge"
+ ProductionVariantInstanceTypeMlC54xlarge ProductionVariantInstanceType = "ml.c5.4xlarge"
+ ProductionVariantInstanceTypeMlC59xlarge ProductionVariantInstanceType = "ml.c5.9xlarge"
+ ProductionVariantInstanceTypeMlC518xlarge ProductionVariantInstanceType = "ml.c5.18xlarge"
+ ProductionVariantInstanceTypeMlC5dLarge ProductionVariantInstanceType = "ml.c5d.large"
+ ProductionVariantInstanceTypeMlC5dXlarge ProductionVariantInstanceType = "ml.c5d.xlarge"
+ ProductionVariantInstanceTypeMlC5d2xlarge ProductionVariantInstanceType = "ml.c5d.2xlarge"
+ ProductionVariantInstanceTypeMlC5d4xlarge ProductionVariantInstanceType = "ml.c5d.4xlarge"
+ ProductionVariantInstanceTypeMlC5d9xlarge ProductionVariantInstanceType = "ml.c5d.9xlarge"
+ ProductionVariantInstanceTypeMlC5d18xlarge ProductionVariantInstanceType = "ml.c5d.18xlarge"
+ ProductionVariantInstanceTypeMlG4dnXlarge ProductionVariantInstanceType = "ml.g4dn.xlarge"
+ ProductionVariantInstanceTypeMlG4dn2xlarge ProductionVariantInstanceType = "ml.g4dn.2xlarge"
+ ProductionVariantInstanceTypeMlG4dn4xlarge ProductionVariantInstanceType = "ml.g4dn.4xlarge"
+ ProductionVariantInstanceTypeMlG4dn8xlarge ProductionVariantInstanceType = "ml.g4dn.8xlarge"
+ ProductionVariantInstanceTypeMlG4dn12xlarge ProductionVariantInstanceType = "ml.g4dn.12xlarge"
+ ProductionVariantInstanceTypeMlG4dn16xlarge ProductionVariantInstanceType = "ml.g4dn.16xlarge"
+ ProductionVariantInstanceTypeMlR5Large ProductionVariantInstanceType = "ml.r5.large"
+ ProductionVariantInstanceTypeMlR5Xlarge ProductionVariantInstanceType = "ml.r5.xlarge"
+ ProductionVariantInstanceTypeMlR52xlarge ProductionVariantInstanceType = "ml.r5.2xlarge"
+ ProductionVariantInstanceTypeMlR54xlarge ProductionVariantInstanceType = "ml.r5.4xlarge"
+ ProductionVariantInstanceTypeMlR512xlarge ProductionVariantInstanceType = "ml.r5.12xlarge"
+ ProductionVariantInstanceTypeMlR524xlarge ProductionVariantInstanceType = "ml.r5.24xlarge"
+ ProductionVariantInstanceTypeMlR5dLarge ProductionVariantInstanceType = "ml.r5d.large"
+ ProductionVariantInstanceTypeMlR5dXlarge ProductionVariantInstanceType = "ml.r5d.xlarge"
+ ProductionVariantInstanceTypeMlR5d2xlarge ProductionVariantInstanceType = "ml.r5d.2xlarge"
+ ProductionVariantInstanceTypeMlR5d4xlarge ProductionVariantInstanceType = "ml.r5d.4xlarge"
+ ProductionVariantInstanceTypeMlR5d12xlarge ProductionVariantInstanceType = "ml.r5d.12xlarge"
+ ProductionVariantInstanceTypeMlR5d24xlarge ProductionVariantInstanceType = "ml.r5d.24xlarge"
+ ProductionVariantInstanceTypeMlInf1Xlarge ProductionVariantInstanceType = "ml.inf1.xlarge"
+ ProductionVariantInstanceTypeMlInf12xlarge ProductionVariantInstanceType = "ml.inf1.2xlarge"
+ ProductionVariantInstanceTypeMlInf16xlarge ProductionVariantInstanceType = "ml.inf1.6xlarge"
+ ProductionVariantInstanceTypeMlInf124xlarge ProductionVariantInstanceType = "ml.inf1.24xlarge"
+ ProductionVariantInstanceTypeMlDl124xlarge ProductionVariantInstanceType = "ml.dl1.24xlarge"
+ ProductionVariantInstanceTypeMlC6iLarge ProductionVariantInstanceType = "ml.c6i.large"
+ ProductionVariantInstanceTypeMlC6iXlarge ProductionVariantInstanceType = "ml.c6i.xlarge"
+ ProductionVariantInstanceTypeMlC6i2xlarge ProductionVariantInstanceType = "ml.c6i.2xlarge"
+ ProductionVariantInstanceTypeMlC6i4xlarge ProductionVariantInstanceType = "ml.c6i.4xlarge"
+ ProductionVariantInstanceTypeMlC6i8xlarge ProductionVariantInstanceType = "ml.c6i.8xlarge"
+ ProductionVariantInstanceTypeMlC6i12xlarge ProductionVariantInstanceType = "ml.c6i.12xlarge"
+ ProductionVariantInstanceTypeMlC6i16xlarge ProductionVariantInstanceType = "ml.c6i.16xlarge"
+ ProductionVariantInstanceTypeMlC6i24xlarge ProductionVariantInstanceType = "ml.c6i.24xlarge"
+ ProductionVariantInstanceTypeMlC6i32xlarge ProductionVariantInstanceType = "ml.c6i.32xlarge"
+ ProductionVariantInstanceTypeMlM6iLarge ProductionVariantInstanceType = "ml.m6i.large"
+ ProductionVariantInstanceTypeMlM6iXlarge ProductionVariantInstanceType = "ml.m6i.xlarge"
+ ProductionVariantInstanceTypeMlM6i2xlarge ProductionVariantInstanceType = "ml.m6i.2xlarge"
+ ProductionVariantInstanceTypeMlM6i4xlarge ProductionVariantInstanceType = "ml.m6i.4xlarge"
+ ProductionVariantInstanceTypeMlM6i8xlarge ProductionVariantInstanceType = "ml.m6i.8xlarge"
+ ProductionVariantInstanceTypeMlM6i12xlarge ProductionVariantInstanceType = "ml.m6i.12xlarge"
+ ProductionVariantInstanceTypeMlM6i16xlarge ProductionVariantInstanceType = "ml.m6i.16xlarge"
+ ProductionVariantInstanceTypeMlM6i24xlarge ProductionVariantInstanceType = "ml.m6i.24xlarge"
+ ProductionVariantInstanceTypeMlM6i32xlarge ProductionVariantInstanceType = "ml.m6i.32xlarge"
+ ProductionVariantInstanceTypeMlR6iLarge ProductionVariantInstanceType = "ml.r6i.large"
+ ProductionVariantInstanceTypeMlR6iXlarge ProductionVariantInstanceType = "ml.r6i.xlarge"
+ ProductionVariantInstanceTypeMlR6i2xlarge ProductionVariantInstanceType = "ml.r6i.2xlarge"
+ ProductionVariantInstanceTypeMlR6i4xlarge ProductionVariantInstanceType = "ml.r6i.4xlarge"
+ ProductionVariantInstanceTypeMlR6i8xlarge ProductionVariantInstanceType = "ml.r6i.8xlarge"
+ ProductionVariantInstanceTypeMlR6i12xlarge ProductionVariantInstanceType = "ml.r6i.12xlarge"
+ ProductionVariantInstanceTypeMlR6i16xlarge ProductionVariantInstanceType = "ml.r6i.16xlarge"
+ ProductionVariantInstanceTypeMlR6i24xlarge ProductionVariantInstanceType = "ml.r6i.24xlarge"
+ ProductionVariantInstanceTypeMlR6i32xlarge ProductionVariantInstanceType = "ml.r6i.32xlarge"
+ ProductionVariantInstanceTypeMlG5Xlarge ProductionVariantInstanceType = "ml.g5.xlarge"
+ ProductionVariantInstanceTypeMlG52xlarge ProductionVariantInstanceType = "ml.g5.2xlarge"
+ ProductionVariantInstanceTypeMlG54xlarge ProductionVariantInstanceType = "ml.g5.4xlarge"
+ ProductionVariantInstanceTypeMlG58xlarge ProductionVariantInstanceType = "ml.g5.8xlarge"
+ ProductionVariantInstanceTypeMlG512xlarge ProductionVariantInstanceType = "ml.g5.12xlarge"
+ ProductionVariantInstanceTypeMlG516xlarge ProductionVariantInstanceType = "ml.g5.16xlarge"
+ ProductionVariantInstanceTypeMlG524xlarge ProductionVariantInstanceType = "ml.g5.24xlarge"
+ ProductionVariantInstanceTypeMlG548xlarge ProductionVariantInstanceType = "ml.g5.48xlarge"
+ ProductionVariantInstanceTypeMlG6Xlarge ProductionVariantInstanceType = "ml.g6.xlarge"
+ ProductionVariantInstanceTypeMlG62xlarge ProductionVariantInstanceType = "ml.g6.2xlarge"
+ ProductionVariantInstanceTypeMlG64xlarge ProductionVariantInstanceType = "ml.g6.4xlarge"
+ ProductionVariantInstanceTypeMlG68xlarge ProductionVariantInstanceType = "ml.g6.8xlarge"
+ ProductionVariantInstanceTypeMlG612xlarge ProductionVariantInstanceType = "ml.g6.12xlarge"
+ ProductionVariantInstanceTypeMlG616xlarge ProductionVariantInstanceType = "ml.g6.16xlarge"
+ ProductionVariantInstanceTypeMlG624xlarge ProductionVariantInstanceType = "ml.g6.24xlarge"
+ ProductionVariantInstanceTypeMlG648xlarge ProductionVariantInstanceType = "ml.g6.48xlarge"
+ ProductionVariantInstanceTypeMlR8gMedium ProductionVariantInstanceType = "ml.r8g.medium"
+ ProductionVariantInstanceTypeMlR8gLarge ProductionVariantInstanceType = "ml.r8g.large"
+ ProductionVariantInstanceTypeMlR8gXlarge ProductionVariantInstanceType = "ml.r8g.xlarge"
+ ProductionVariantInstanceTypeMlR8g2xlarge ProductionVariantInstanceType = "ml.r8g.2xlarge"
+ ProductionVariantInstanceTypeMlR8g4xlarge ProductionVariantInstanceType = "ml.r8g.4xlarge"
+ ProductionVariantInstanceTypeMlR8g8xlarge ProductionVariantInstanceType = "ml.r8g.8xlarge"
+ ProductionVariantInstanceTypeMlR8g12xlarge ProductionVariantInstanceType = "ml.r8g.12xlarge"
+ ProductionVariantInstanceTypeMlR8g16xlarge ProductionVariantInstanceType = "ml.r8g.16xlarge"
+ ProductionVariantInstanceTypeMlR8g24xlarge ProductionVariantInstanceType = "ml.r8g.24xlarge"
+ ProductionVariantInstanceTypeMlR8g48xlarge ProductionVariantInstanceType = "ml.r8g.48xlarge"
+ ProductionVariantInstanceTypeMlG6eXlarge ProductionVariantInstanceType = "ml.g6e.xlarge"
+ ProductionVariantInstanceTypeMlG6e2xlarge ProductionVariantInstanceType = "ml.g6e.2xlarge"
+ ProductionVariantInstanceTypeMlG6e4xlarge ProductionVariantInstanceType = "ml.g6e.4xlarge"
+ ProductionVariantInstanceTypeMlG6e8xlarge ProductionVariantInstanceType = "ml.g6e.8xlarge"
+ ProductionVariantInstanceTypeMlG6e12xlarge ProductionVariantInstanceType = "ml.g6e.12xlarge"
+ ProductionVariantInstanceTypeMlG6e16xlarge ProductionVariantInstanceType = "ml.g6e.16xlarge"
+ ProductionVariantInstanceTypeMlG6e24xlarge ProductionVariantInstanceType = "ml.g6e.24xlarge"
+ ProductionVariantInstanceTypeMlG6e48xlarge ProductionVariantInstanceType = "ml.g6e.48xlarge"
+ ProductionVariantInstanceTypeMlP4d24xlarge ProductionVariantInstanceType = "ml.p4d.24xlarge"
+ ProductionVariantInstanceTypeMlC7gLarge ProductionVariantInstanceType = "ml.c7g.large"
+ ProductionVariantInstanceTypeMlC7gXlarge ProductionVariantInstanceType = "ml.c7g.xlarge"
+ ProductionVariantInstanceTypeMlC7g2xlarge ProductionVariantInstanceType = "ml.c7g.2xlarge"
+ ProductionVariantInstanceTypeMlC7g4xlarge ProductionVariantInstanceType = "ml.c7g.4xlarge"
+ ProductionVariantInstanceTypeMlC7g8xlarge ProductionVariantInstanceType = "ml.c7g.8xlarge"
+ ProductionVariantInstanceTypeMlC7g12xlarge ProductionVariantInstanceType = "ml.c7g.12xlarge"
+ ProductionVariantInstanceTypeMlC7g16xlarge ProductionVariantInstanceType = "ml.c7g.16xlarge"
+ ProductionVariantInstanceTypeMlM6gLarge ProductionVariantInstanceType = "ml.m6g.large"
+ ProductionVariantInstanceTypeMlM6gXlarge ProductionVariantInstanceType = "ml.m6g.xlarge"
+ ProductionVariantInstanceTypeMlM6g2xlarge ProductionVariantInstanceType = "ml.m6g.2xlarge"
+ ProductionVariantInstanceTypeMlM6g4xlarge ProductionVariantInstanceType = "ml.m6g.4xlarge"
+ ProductionVariantInstanceTypeMlM6g8xlarge ProductionVariantInstanceType = "ml.m6g.8xlarge"
+ ProductionVariantInstanceTypeMlM6g12xlarge ProductionVariantInstanceType = "ml.m6g.12xlarge"
+ ProductionVariantInstanceTypeMlM6g16xlarge ProductionVariantInstanceType = "ml.m6g.16xlarge"
+ ProductionVariantInstanceTypeMlM6gdLarge ProductionVariantInstanceType = "ml.m6gd.large"
+ ProductionVariantInstanceTypeMlM6gdXlarge ProductionVariantInstanceType = "ml.m6gd.xlarge"
+ ProductionVariantInstanceTypeMlM6gd2xlarge ProductionVariantInstanceType = "ml.m6gd.2xlarge"
+ ProductionVariantInstanceTypeMlM6gd4xlarge ProductionVariantInstanceType = "ml.m6gd.4xlarge"
+ ProductionVariantInstanceTypeMlM6gd8xlarge ProductionVariantInstanceType = "ml.m6gd.8xlarge"
+ ProductionVariantInstanceTypeMlM6gd12xlarge ProductionVariantInstanceType = "ml.m6gd.12xlarge"
+ ProductionVariantInstanceTypeMlM6gd16xlarge ProductionVariantInstanceType = "ml.m6gd.16xlarge"
+ ProductionVariantInstanceTypeMlC6gLarge ProductionVariantInstanceType = "ml.c6g.large"
+ ProductionVariantInstanceTypeMlC6gXlarge ProductionVariantInstanceType = "ml.c6g.xlarge"
+ ProductionVariantInstanceTypeMlC6g2xlarge ProductionVariantInstanceType = "ml.c6g.2xlarge"
+ ProductionVariantInstanceTypeMlC6g4xlarge ProductionVariantInstanceType = "ml.c6g.4xlarge"
+ ProductionVariantInstanceTypeMlC6g8xlarge ProductionVariantInstanceType = "ml.c6g.8xlarge"
+ ProductionVariantInstanceTypeMlC6g12xlarge ProductionVariantInstanceType = "ml.c6g.12xlarge"
+ ProductionVariantInstanceTypeMlC6g16xlarge ProductionVariantInstanceType = "ml.c6g.16xlarge"
+ ProductionVariantInstanceTypeMlC6gdLarge ProductionVariantInstanceType = "ml.c6gd.large"
+ ProductionVariantInstanceTypeMlC6gdXlarge ProductionVariantInstanceType = "ml.c6gd.xlarge"
+ ProductionVariantInstanceTypeMlC6gd2xlarge ProductionVariantInstanceType = "ml.c6gd.2xlarge"
+ ProductionVariantInstanceTypeMlC6gd4xlarge ProductionVariantInstanceType = "ml.c6gd.4xlarge"
+ ProductionVariantInstanceTypeMlC6gd8xlarge ProductionVariantInstanceType = "ml.c6gd.8xlarge"
+ ProductionVariantInstanceTypeMlC6gd12xlarge ProductionVariantInstanceType = "ml.c6gd.12xlarge"
+ ProductionVariantInstanceTypeMlC6gd16xlarge ProductionVariantInstanceType = "ml.c6gd.16xlarge"
+ ProductionVariantInstanceTypeMlC6gnLarge ProductionVariantInstanceType = "ml.c6gn.large"
+ ProductionVariantInstanceTypeMlC6gnXlarge ProductionVariantInstanceType = "ml.c6gn.xlarge"
+ ProductionVariantInstanceTypeMlC6gn2xlarge ProductionVariantInstanceType = "ml.c6gn.2xlarge"
+ ProductionVariantInstanceTypeMlC6gn4xlarge ProductionVariantInstanceType = "ml.c6gn.4xlarge"
+ ProductionVariantInstanceTypeMlC6gn8xlarge ProductionVariantInstanceType = "ml.c6gn.8xlarge"
+ ProductionVariantInstanceTypeMlC6gn12xlarge ProductionVariantInstanceType = "ml.c6gn.12xlarge"
+ ProductionVariantInstanceTypeMlC6gn16xlarge ProductionVariantInstanceType = "ml.c6gn.16xlarge"
+ ProductionVariantInstanceTypeMlR6gLarge ProductionVariantInstanceType = "ml.r6g.large"
+ ProductionVariantInstanceTypeMlR6gXlarge ProductionVariantInstanceType = "ml.r6g.xlarge"
+ ProductionVariantInstanceTypeMlR6g2xlarge ProductionVariantInstanceType = "ml.r6g.2xlarge"
+ ProductionVariantInstanceTypeMlR6g4xlarge ProductionVariantInstanceType = "ml.r6g.4xlarge"
+ ProductionVariantInstanceTypeMlR6g8xlarge ProductionVariantInstanceType = "ml.r6g.8xlarge"
+ ProductionVariantInstanceTypeMlR6g12xlarge ProductionVariantInstanceType = "ml.r6g.12xlarge"
+ ProductionVariantInstanceTypeMlR6g16xlarge ProductionVariantInstanceType = "ml.r6g.16xlarge"
+ ProductionVariantInstanceTypeMlR6gdLarge ProductionVariantInstanceType = "ml.r6gd.large"
+ ProductionVariantInstanceTypeMlR6gdXlarge ProductionVariantInstanceType = "ml.r6gd.xlarge"
+ ProductionVariantInstanceTypeMlR6gd2xlarge ProductionVariantInstanceType = "ml.r6gd.2xlarge"
+ ProductionVariantInstanceTypeMlR6gd4xlarge ProductionVariantInstanceType = "ml.r6gd.4xlarge"
+ ProductionVariantInstanceTypeMlR6gd8xlarge ProductionVariantInstanceType = "ml.r6gd.8xlarge"
+ ProductionVariantInstanceTypeMlR6gd12xlarge ProductionVariantInstanceType = "ml.r6gd.12xlarge"
+ ProductionVariantInstanceTypeMlR6gd16xlarge ProductionVariantInstanceType = "ml.r6gd.16xlarge"
+ ProductionVariantInstanceTypeMlP4de24xlarge ProductionVariantInstanceType = "ml.p4de.24xlarge"
+ ProductionVariantInstanceTypeMlTrn12xlarge ProductionVariantInstanceType = "ml.trn1.2xlarge"
+ ProductionVariantInstanceTypeMlTrn132xlarge ProductionVariantInstanceType = "ml.trn1.32xlarge"
+ ProductionVariantInstanceTypeMlTrn1n32xlarge ProductionVariantInstanceType = "ml.trn1n.32xlarge"
+ ProductionVariantInstanceTypeMlTrn248xlarge ProductionVariantInstanceType = "ml.trn2.48xlarge"
+ ProductionVariantInstanceTypeMlInf2Xlarge ProductionVariantInstanceType = "ml.inf2.xlarge"
+ ProductionVariantInstanceTypeMlInf28xlarge ProductionVariantInstanceType = "ml.inf2.8xlarge"
+ ProductionVariantInstanceTypeMlInf224xlarge ProductionVariantInstanceType = "ml.inf2.24xlarge"
+ ProductionVariantInstanceTypeMlInf248xlarge ProductionVariantInstanceType = "ml.inf2.48xlarge"
+ ProductionVariantInstanceTypeMlP548xlarge ProductionVariantInstanceType = "ml.p5.48xlarge"
+ ProductionVariantInstanceTypeMlP5e48xlarge ProductionVariantInstanceType = "ml.p5e.48xlarge"
+ ProductionVariantInstanceTypeMlP5en48xlarge ProductionVariantInstanceType = "ml.p5en.48xlarge"
+ ProductionVariantInstanceTypeMlM7iLarge ProductionVariantInstanceType = "ml.m7i.large"
+ ProductionVariantInstanceTypeMlM7iXlarge ProductionVariantInstanceType = "ml.m7i.xlarge"
+ ProductionVariantInstanceTypeMlM7i2xlarge ProductionVariantInstanceType = "ml.m7i.2xlarge"
+ ProductionVariantInstanceTypeMlM7i4xlarge ProductionVariantInstanceType = "ml.m7i.4xlarge"
+ ProductionVariantInstanceTypeMlM7i8xlarge ProductionVariantInstanceType = "ml.m7i.8xlarge"
+ ProductionVariantInstanceTypeMlM7i12xlarge ProductionVariantInstanceType = "ml.m7i.12xlarge"
+ ProductionVariantInstanceTypeMlM7i16xlarge ProductionVariantInstanceType = "ml.m7i.16xlarge"
+ ProductionVariantInstanceTypeMlM7i24xlarge ProductionVariantInstanceType = "ml.m7i.24xlarge"
+ ProductionVariantInstanceTypeMlM7i48xlarge ProductionVariantInstanceType = "ml.m7i.48xlarge"
+ ProductionVariantInstanceTypeMlC7iLarge ProductionVariantInstanceType = "ml.c7i.large"
+ ProductionVariantInstanceTypeMlC7iXlarge ProductionVariantInstanceType = "ml.c7i.xlarge"
+ ProductionVariantInstanceTypeMlC7i2xlarge ProductionVariantInstanceType = "ml.c7i.2xlarge"
+ ProductionVariantInstanceTypeMlC7i4xlarge ProductionVariantInstanceType = "ml.c7i.4xlarge"
+ ProductionVariantInstanceTypeMlC7i8xlarge ProductionVariantInstanceType = "ml.c7i.8xlarge"
+ ProductionVariantInstanceTypeMlC7i12xlarge ProductionVariantInstanceType = "ml.c7i.12xlarge"
+ ProductionVariantInstanceTypeMlC7i16xlarge ProductionVariantInstanceType = "ml.c7i.16xlarge"
+ ProductionVariantInstanceTypeMlC7i24xlarge ProductionVariantInstanceType = "ml.c7i.24xlarge"
+ ProductionVariantInstanceTypeMlC7i48xlarge ProductionVariantInstanceType = "ml.c7i.48xlarge"
+ ProductionVariantInstanceTypeMlR7iLarge ProductionVariantInstanceType = "ml.r7i.large"
+ ProductionVariantInstanceTypeMlR7iXlarge ProductionVariantInstanceType = "ml.r7i.xlarge"
+ ProductionVariantInstanceTypeMlR7i2xlarge ProductionVariantInstanceType = "ml.r7i.2xlarge"
+ ProductionVariantInstanceTypeMlR7i4xlarge ProductionVariantInstanceType = "ml.r7i.4xlarge"
+ ProductionVariantInstanceTypeMlR7i8xlarge ProductionVariantInstanceType = "ml.r7i.8xlarge"
+ ProductionVariantInstanceTypeMlR7i12xlarge ProductionVariantInstanceType = "ml.r7i.12xlarge"
+ ProductionVariantInstanceTypeMlR7i16xlarge ProductionVariantInstanceType = "ml.r7i.16xlarge"
+ ProductionVariantInstanceTypeMlR7i24xlarge ProductionVariantInstanceType = "ml.r7i.24xlarge"
+ ProductionVariantInstanceTypeMlR7i48xlarge ProductionVariantInstanceType = "ml.r7i.48xlarge"
+ ProductionVariantInstanceTypeMlC8gMedium ProductionVariantInstanceType = "ml.c8g.medium"
+ ProductionVariantInstanceTypeMlC8gLarge ProductionVariantInstanceType = "ml.c8g.large"
+ ProductionVariantInstanceTypeMlC8gXlarge ProductionVariantInstanceType = "ml.c8g.xlarge"
+ ProductionVariantInstanceTypeMlC8g2xlarge ProductionVariantInstanceType = "ml.c8g.2xlarge"
+ ProductionVariantInstanceTypeMlC8g4xlarge ProductionVariantInstanceType = "ml.c8g.4xlarge"
+ ProductionVariantInstanceTypeMlC8g8xlarge ProductionVariantInstanceType = "ml.c8g.8xlarge"
+ ProductionVariantInstanceTypeMlC8g12xlarge ProductionVariantInstanceType = "ml.c8g.12xlarge"
+ ProductionVariantInstanceTypeMlC8g16xlarge ProductionVariantInstanceType = "ml.c8g.16xlarge"
+ ProductionVariantInstanceTypeMlC8g24xlarge ProductionVariantInstanceType = "ml.c8g.24xlarge"
+ ProductionVariantInstanceTypeMlC8g48xlarge ProductionVariantInstanceType = "ml.c8g.48xlarge"
+ ProductionVariantInstanceTypeMlR7gdMedium ProductionVariantInstanceType = "ml.r7gd.medium"
+ ProductionVariantInstanceTypeMlR7gdLarge ProductionVariantInstanceType = "ml.r7gd.large"
+ ProductionVariantInstanceTypeMlR7gdXlarge ProductionVariantInstanceType = "ml.r7gd.xlarge"
+ ProductionVariantInstanceTypeMlR7gd2xlarge ProductionVariantInstanceType = "ml.r7gd.2xlarge"
+ ProductionVariantInstanceTypeMlR7gd4xlarge ProductionVariantInstanceType = "ml.r7gd.4xlarge"
+ ProductionVariantInstanceTypeMlR7gd8xlarge ProductionVariantInstanceType = "ml.r7gd.8xlarge"
+ ProductionVariantInstanceTypeMlR7gd12xlarge ProductionVariantInstanceType = "ml.r7gd.12xlarge"
+ ProductionVariantInstanceTypeMlR7gd16xlarge ProductionVariantInstanceType = "ml.r7gd.16xlarge"
+ ProductionVariantInstanceTypeMlM8gMedium ProductionVariantInstanceType = "ml.m8g.medium"
+ ProductionVariantInstanceTypeMlM8gLarge ProductionVariantInstanceType = "ml.m8g.large"
+ ProductionVariantInstanceTypeMlM8gXlarge ProductionVariantInstanceType = "ml.m8g.xlarge"
+ ProductionVariantInstanceTypeMlM8g2xlarge ProductionVariantInstanceType = "ml.m8g.2xlarge"
+ ProductionVariantInstanceTypeMlM8g4xlarge ProductionVariantInstanceType = "ml.m8g.4xlarge"
+ ProductionVariantInstanceTypeMlM8g8xlarge ProductionVariantInstanceType = "ml.m8g.8xlarge"
+ ProductionVariantInstanceTypeMlM8g12xlarge ProductionVariantInstanceType = "ml.m8g.12xlarge"
+ ProductionVariantInstanceTypeMlM8g16xlarge ProductionVariantInstanceType = "ml.m8g.16xlarge"
+ ProductionVariantInstanceTypeMlM8g24xlarge ProductionVariantInstanceType = "ml.m8g.24xlarge"
+ ProductionVariantInstanceTypeMlM8g48xlarge ProductionVariantInstanceType = "ml.m8g.48xlarge"
+ ProductionVariantInstanceTypeMlC6inLarge ProductionVariantInstanceType = "ml.c6in.large"
+ ProductionVariantInstanceTypeMlC6inXlarge ProductionVariantInstanceType = "ml.c6in.xlarge"
+ ProductionVariantInstanceTypeMlC6in2xlarge ProductionVariantInstanceType = "ml.c6in.2xlarge"
+ ProductionVariantInstanceTypeMlC6in4xlarge ProductionVariantInstanceType = "ml.c6in.4xlarge"
+ ProductionVariantInstanceTypeMlC6in8xlarge ProductionVariantInstanceType = "ml.c6in.8xlarge"
+ ProductionVariantInstanceTypeMlC6in12xlarge ProductionVariantInstanceType = "ml.c6in.12xlarge"
+ ProductionVariantInstanceTypeMlC6in16xlarge ProductionVariantInstanceType = "ml.c6in.16xlarge"
+ ProductionVariantInstanceTypeMlC6in24xlarge ProductionVariantInstanceType = "ml.c6in.24xlarge"
+ ProductionVariantInstanceTypeMlC6in32xlarge ProductionVariantInstanceType = "ml.c6in.32xlarge"
+ ProductionVariantInstanceTypeMlP6B20048xlarge ProductionVariantInstanceType = "ml.p6-b200.48xlarge"
+ ProductionVariantInstanceTypeMlP6eGb20036xlarge ProductionVariantInstanceType = "ml.p6e-gb200.36xlarge"
)
// Values returns all known values for ProductionVariantInstanceType. Note that
@@ -6313,6 +6406,45 @@ func (ProductionVariantInstanceType) Values() []ProductionVariantInstanceType {
"ml.r7i.16xlarge",
"ml.r7i.24xlarge",
"ml.r7i.48xlarge",
+ "ml.c8g.medium",
+ "ml.c8g.large",
+ "ml.c8g.xlarge",
+ "ml.c8g.2xlarge",
+ "ml.c8g.4xlarge",
+ "ml.c8g.8xlarge",
+ "ml.c8g.12xlarge",
+ "ml.c8g.16xlarge",
+ "ml.c8g.24xlarge",
+ "ml.c8g.48xlarge",
+ "ml.r7gd.medium",
+ "ml.r7gd.large",
+ "ml.r7gd.xlarge",
+ "ml.r7gd.2xlarge",
+ "ml.r7gd.4xlarge",
+ "ml.r7gd.8xlarge",
+ "ml.r7gd.12xlarge",
+ "ml.r7gd.16xlarge",
+ "ml.m8g.medium",
+ "ml.m8g.large",
+ "ml.m8g.xlarge",
+ "ml.m8g.2xlarge",
+ "ml.m8g.4xlarge",
+ "ml.m8g.8xlarge",
+ "ml.m8g.12xlarge",
+ "ml.m8g.16xlarge",
+ "ml.m8g.24xlarge",
+ "ml.m8g.48xlarge",
+ "ml.c6in.large",
+ "ml.c6in.xlarge",
+ "ml.c6in.2xlarge",
+ "ml.c6in.4xlarge",
+ "ml.c6in.8xlarge",
+ "ml.c6in.12xlarge",
+ "ml.c6in.16xlarge",
+ "ml.c6in.24xlarge",
+ "ml.c6in.32xlarge",
+ "ml.p6-b200.48xlarge",
+ "ml.p6e-gb200.36xlarge",
}
}
@@ -6930,6 +7062,7 @@ const (
S3DataTypeManifestFile S3DataType = "ManifestFile"
S3DataTypeS3Prefix S3DataType = "S3Prefix"
S3DataTypeAugmentedManifestFile S3DataType = "AugmentedManifestFile"
+ S3DataTypeConverse S3DataType = "Converse"
)
// Values returns all known values for S3DataType. Note that this can be expanded
@@ -6941,6 +7074,7 @@ func (S3DataType) Values() []S3DataType {
"ManifestFile",
"S3Prefix",
"AugmentedManifestFile",
+ "Converse",
}
}
@@ -8227,6 +8361,33 @@ const (
TrainingInstanceTypeMlR516xlarge TrainingInstanceType = "ml.r5.16xlarge"
TrainingInstanceTypeMlR524xlarge TrainingInstanceType = "ml.r5.24xlarge"
TrainingInstanceTypeMlP6B20048xlarge TrainingInstanceType = "ml.p6-b200.48xlarge"
+ TrainingInstanceTypeMlM7iLarge TrainingInstanceType = "ml.m7i.large"
+ TrainingInstanceTypeMlM7iXlarge TrainingInstanceType = "ml.m7i.xlarge"
+ TrainingInstanceTypeMlM7i2xlarge TrainingInstanceType = "ml.m7i.2xlarge"
+ TrainingInstanceTypeMlM7i4xlarge TrainingInstanceType = "ml.m7i.4xlarge"
+ TrainingInstanceTypeMlM7i8xlarge TrainingInstanceType = "ml.m7i.8xlarge"
+ TrainingInstanceTypeMlM7i12xlarge TrainingInstanceType = "ml.m7i.12xlarge"
+ TrainingInstanceTypeMlM7i16xlarge TrainingInstanceType = "ml.m7i.16xlarge"
+ TrainingInstanceTypeMlM7i24xlarge TrainingInstanceType = "ml.m7i.24xlarge"
+ TrainingInstanceTypeMlM7i48xlarge TrainingInstanceType = "ml.m7i.48xlarge"
+ TrainingInstanceTypeMlC7iLarge TrainingInstanceType = "ml.c7i.large"
+ TrainingInstanceTypeMlC7iXlarge TrainingInstanceType = "ml.c7i.xlarge"
+ TrainingInstanceTypeMlC7i2xlarge TrainingInstanceType = "ml.c7i.2xlarge"
+ TrainingInstanceTypeMlC7i4xlarge TrainingInstanceType = "ml.c7i.4xlarge"
+ TrainingInstanceTypeMlC7i8xlarge TrainingInstanceType = "ml.c7i.8xlarge"
+ TrainingInstanceTypeMlC7i12xlarge TrainingInstanceType = "ml.c7i.12xlarge"
+ TrainingInstanceTypeMlC7i16xlarge TrainingInstanceType = "ml.c7i.16xlarge"
+ TrainingInstanceTypeMlC7i24xlarge TrainingInstanceType = "ml.c7i.24xlarge"
+ TrainingInstanceTypeMlC7i48xlarge TrainingInstanceType = "ml.c7i.48xlarge"
+ TrainingInstanceTypeMlR7iLarge TrainingInstanceType = "ml.r7i.large"
+ TrainingInstanceTypeMlR7iXlarge TrainingInstanceType = "ml.r7i.xlarge"
+ TrainingInstanceTypeMlR7i2xlarge TrainingInstanceType = "ml.r7i.2xlarge"
+ TrainingInstanceTypeMlR7i4xlarge TrainingInstanceType = "ml.r7i.4xlarge"
+ TrainingInstanceTypeMlR7i8xlarge TrainingInstanceType = "ml.r7i.8xlarge"
+ TrainingInstanceTypeMlR7i12xlarge TrainingInstanceType = "ml.r7i.12xlarge"
+ TrainingInstanceTypeMlR7i16xlarge TrainingInstanceType = "ml.r7i.16xlarge"
+ TrainingInstanceTypeMlR7i24xlarge TrainingInstanceType = "ml.r7i.24xlarge"
+ TrainingInstanceTypeMlR7i48xlarge TrainingInstanceType = "ml.r7i.48xlarge"
)
// Values returns all known values for TrainingInstanceType. Note that this can be
@@ -8344,6 +8505,33 @@ func (TrainingInstanceType) Values() []TrainingInstanceType {
"ml.r5.16xlarge",
"ml.r5.24xlarge",
"ml.p6-b200.48xlarge",
+ "ml.m7i.large",
+ "ml.m7i.xlarge",
+ "ml.m7i.2xlarge",
+ "ml.m7i.4xlarge",
+ "ml.m7i.8xlarge",
+ "ml.m7i.12xlarge",
+ "ml.m7i.16xlarge",
+ "ml.m7i.24xlarge",
+ "ml.m7i.48xlarge",
+ "ml.c7i.large",
+ "ml.c7i.xlarge",
+ "ml.c7i.2xlarge",
+ "ml.c7i.4xlarge",
+ "ml.c7i.8xlarge",
+ "ml.c7i.12xlarge",
+ "ml.c7i.16xlarge",
+ "ml.c7i.24xlarge",
+ "ml.c7i.48xlarge",
+ "ml.r7i.large",
+ "ml.r7i.xlarge",
+ "ml.r7i.2xlarge",
+ "ml.r7i.4xlarge",
+ "ml.r7i.8xlarge",
+ "ml.r7i.12xlarge",
+ "ml.r7i.16xlarge",
+ "ml.r7i.24xlarge",
+ "ml.r7i.48xlarge",
}
}
diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go
index 7674baec55a..43afdb806de 100644
--- a/service/sagemaker/types/types.go
+++ b/service/sagemaker/types/types.go
@@ -16753,6 +16753,11 @@ type S3DataSource struct {
// want to use for model training. AugmentedManifestFile can only be used if the
// Channel's input mode is Pipe .
//
+ // If you choose Converse , S3Uri identifies an Amazon S3 location that contains
+ // data formatted according to Converse format. This format structures
+ // conversational messages with specific roles and content types used for training
+ // and fine-tuning foundational models.
+ //
// This member is required.
S3DataType S3DataType
diff --git a/service/sagemakera2iruntime/CHANGELOG.md b/service/sagemakera2iruntime/CHANGELOG.md
index 855bd44d2e5..96e5c3b46cc 100644
--- a/service/sagemakera2iruntime/CHANGELOG.md
+++ b/service/sagemakera2iruntime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod
index c770484b571..19d02e6600e 100644
--- a/service/sagemakera2iruntime/go.mod
+++ b/service/sagemakera2iruntime/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sagemakera2iruntime/go.sum
+++ b/service/sagemakera2iruntime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sagemakera2iruntime/go_module_metadata.go b/service/sagemakera2iruntime/go_module_metadata.go
index 3312744dfd6..f2bc8146749 100644
--- a/service/sagemakera2iruntime/go_module_metadata.go
+++ b/service/sagemakera2iruntime/go_module_metadata.go
@@ -3,4 +3,4 @@
package sagemakera2iruntime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/sagemakeredge/CHANGELOG.md b/service/sagemakeredge/CHANGELOG.md
index 96d48180230..14300f70861 100644
--- a/service/sagemakeredge/CHANGELOG.md
+++ b/service/sagemakeredge/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sagemakeredge/go.mod b/service/sagemakeredge/go.mod
index 7c95f2609d5..e0fb9333d55 100644
--- a/service/sagemakeredge/go.mod
+++ b/service/sagemakeredge/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakeredge
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sagemakeredge/go.sum b/service/sagemakeredge/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sagemakeredge/go.sum
+++ b/service/sagemakeredge/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sagemakeredge/go_module_metadata.go b/service/sagemakeredge/go_module_metadata.go
index 5417993000f..4e7642ba786 100644
--- a/service/sagemakeredge/go_module_metadata.go
+++ b/service/sagemakeredge/go_module_metadata.go
@@ -3,4 +3,4 @@
package sagemakeredge
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/sagemakerfeaturestoreruntime/CHANGELOG.md b/service/sagemakerfeaturestoreruntime/CHANGELOG.md
index f88c299d069..cb376debb54 100644
--- a/service/sagemakerfeaturestoreruntime/CHANGELOG.md
+++ b/service/sagemakerfeaturestoreruntime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sagemakerfeaturestoreruntime/go.mod b/service/sagemakerfeaturestoreruntime/go.mod
index 5a22d05c23a..c221f596a34 100644
--- a/service/sagemakerfeaturestoreruntime/go.mod
+++ b/service/sagemakerfeaturestoreruntime/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakerfeaturestoreruntime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sagemakerfeaturestoreruntime/go.sum b/service/sagemakerfeaturestoreruntime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sagemakerfeaturestoreruntime/go.sum
+++ b/service/sagemakerfeaturestoreruntime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sagemakerfeaturestoreruntime/go_module_metadata.go b/service/sagemakerfeaturestoreruntime/go_module_metadata.go
index 6ee47d0f6f7..7c368fb8510 100644
--- a/service/sagemakerfeaturestoreruntime/go_module_metadata.go
+++ b/service/sagemakerfeaturestoreruntime/go_module_metadata.go
@@ -3,4 +3,4 @@
package sagemakerfeaturestoreruntime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/sagemakergeospatial/CHANGELOG.md b/service/sagemakergeospatial/CHANGELOG.md
index a2647bd5ac2..6e931833938 100644
--- a/service/sagemakergeospatial/CHANGELOG.md
+++ b/service/sagemakergeospatial/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.15.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sagemakergeospatial/go.mod b/service/sagemakergeospatial/go.mod
index f07e587a599..5913768df1d 100644
--- a/service/sagemakergeospatial/go.mod
+++ b/service/sagemakergeospatial/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakergeospatial
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sagemakergeospatial/go.sum b/service/sagemakergeospatial/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sagemakergeospatial/go.sum
+++ b/service/sagemakergeospatial/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sagemakergeospatial/go_module_metadata.go b/service/sagemakergeospatial/go_module_metadata.go
index cb901f4ab72..debd2037d66 100644
--- a/service/sagemakergeospatial/go_module_metadata.go
+++ b/service/sagemakergeospatial/go_module_metadata.go
@@ -3,4 +3,4 @@
package sagemakergeospatial
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.15.3"
+const goModuleVersion = "1.15.4"
diff --git a/service/sagemakermetrics/CHANGELOG.md b/service/sagemakermetrics/CHANGELOG.md
index 301e15e626a..32870765c7c 100644
--- a/service/sagemakermetrics/CHANGELOG.md
+++ b/service/sagemakermetrics/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.14.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.14.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sagemakermetrics/go.mod b/service/sagemakermetrics/go.mod
index 4a13a6dd4f6..abd9c2a3f7d 100644
--- a/service/sagemakermetrics/go.mod
+++ b/service/sagemakermetrics/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakermetrics
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sagemakermetrics/go.sum b/service/sagemakermetrics/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sagemakermetrics/go.sum
+++ b/service/sagemakermetrics/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sagemakermetrics/go_module_metadata.go b/service/sagemakermetrics/go_module_metadata.go
index a8cfc4d23ea..5a994b331ea 100644
--- a/service/sagemakermetrics/go_module_metadata.go
+++ b/service/sagemakermetrics/go_module_metadata.go
@@ -3,4 +3,4 @@
package sagemakermetrics
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.14.2"
+const goModuleVersion = "1.14.3"
diff --git a/service/sagemakerruntime/CHANGELOG.md b/service/sagemakerruntime/CHANGELOG.md
index f4cd7f0ed01..468adc99a77 100644
--- a/service/sagemakerruntime/CHANGELOG.md
+++ b/service/sagemakerruntime/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.33.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod
index 8a5429d6c29..3ea99c3ff22 100644
--- a/service/sagemakerruntime/go.mod
+++ b/service/sagemakerruntime/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakerruntime
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sagemakerruntime/go.sum
+++ b/service/sagemakerruntime/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sagemakerruntime/go_module_metadata.go b/service/sagemakerruntime/go_module_metadata.go
index d4dba5445ee..d8a24d25b8e 100644
--- a/service/sagemakerruntime/go_module_metadata.go
+++ b/service/sagemakerruntime/go_module_metadata.go
@@ -3,4 +3,4 @@
package sagemakerruntime
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.5"
+const goModuleVersion = "1.33.6"
diff --git a/service/savingsplans/CHANGELOG.md b/service/savingsplans/CHANGELOG.md
index 835c431adee..51d1d181f6c 100644
--- a/service/savingsplans/CHANGELOG.md
+++ b/service/savingsplans/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod
index 0ff97d31c62..03fbf1aca64 100644
--- a/service/savingsplans/go.mod
+++ b/service/savingsplans/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/savingsplans
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/savingsplans/go.sum
+++ b/service/savingsplans/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/savingsplans/go_module_metadata.go b/service/savingsplans/go_module_metadata.go
index e627278b81e..3ba4c921ef1 100644
--- a/service/savingsplans/go_module_metadata.go
+++ b/service/savingsplans/go_module_metadata.go
@@ -3,4 +3,4 @@
package savingsplans
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.4"
+const goModuleVersion = "1.24.5"
diff --git a/service/scheduler/CHANGELOG.md b/service/scheduler/CHANGELOG.md
index dad9995a886..877fcf00f39 100644
--- a/service/scheduler/CHANGELOG.md
+++ b/service/scheduler/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.13.8 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.13.7 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/scheduler/go.mod b/service/scheduler/go.mod
index 3df9e136f74..36510ae7604 100644
--- a/service/scheduler/go.mod
+++ b/service/scheduler/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/scheduler
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/scheduler/go.sum b/service/scheduler/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/scheduler/go.sum
+++ b/service/scheduler/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/scheduler/go_module_metadata.go b/service/scheduler/go_module_metadata.go
index 3e1ce168d47..96f34e76907 100644
--- a/service/scheduler/go_module_metadata.go
+++ b/service/scheduler/go_module_metadata.go
@@ -3,4 +3,4 @@
package scheduler
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.13.7"
+const goModuleVersion = "1.13.8"
diff --git a/service/schemas/CHANGELOG.md b/service/schemas/CHANGELOG.md
index 92ee28a2954..ff8e7b8aacb 100644
--- a/service/schemas/CHANGELOG.md
+++ b/service/schemas/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/schemas/go.mod b/service/schemas/go.mod
index e9cfa8c1ab5..c8ef629b0e9 100644
--- a/service/schemas/go.mod
+++ b/service/schemas/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/schemas
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/schemas/go.sum b/service/schemas/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/schemas/go.sum
+++ b/service/schemas/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/schemas/go_module_metadata.go b/service/schemas/go_module_metadata.go
index b74c55fe8ae..fda3cab5f24 100644
--- a/service/schemas/go_module_metadata.go
+++ b/service/schemas/go_module_metadata.go
@@ -3,4 +3,4 @@
package schemas
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/secretsmanager/CHANGELOG.md b/service/secretsmanager/CHANGELOG.md
index 0a6e30ff170..3349c27bb4a 100644
--- a/service/secretsmanager/CHANGELOG.md
+++ b/service/secretsmanager/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod
index 69befb9897d..88e2477508f 100644
--- a/service/secretsmanager/go.mod
+++ b/service/secretsmanager/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/secretsmanager
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/secretsmanager/go.sum
+++ b/service/secretsmanager/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/secretsmanager/go_module_metadata.go b/service/secretsmanager/go_module_metadata.go
index 0a09f3aff1c..8c675a2503e 100644
--- a/service/secretsmanager/go_module_metadata.go
+++ b/service/secretsmanager/go_module_metadata.go
@@ -3,4 +3,4 @@
package secretsmanager
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.6"
+const goModuleVersion = "1.35.7"
diff --git a/service/securityhub/CHANGELOG.md b/service/securityhub/CHANGELOG.md
index 1ffddf90431..db64f6c2432 100644
--- a/service/securityhub/CHANGELOG.md
+++ b/service/securityhub/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.58.0 (2025-06-17)
+
+* **Feature**: Adds operations, structures, and exceptions required for public preview release of Security Hub V2.
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.57.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/securityhub/api_client.go b/service/securityhub/api_client.go
index 3b2db0728c6..63f769cd7a3 100644
--- a/service/securityhub/api_client.go
+++ b/service/securityhub/api_client.go
@@ -4,6 +4,7 @@ package securityhub
import (
"context"
+ cryptorand "crypto/rand"
"errors"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
@@ -22,6 +23,7 @@ import (
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/metrics"
"github.com/aws/smithy-go/middleware"
+ smithyrand "github.com/aws/smithy-go/rand"
"github.com/aws/smithy-go/tracing"
smithyhttp "github.com/aws/smithy-go/transport/http"
"net"
@@ -184,6 +186,8 @@ func New(options Options, optFns ...func(*Options)) *Client {
resolveHTTPSignerV4(&options)
+ resolveIdempotencyTokenProvider(&options)
+
resolveEndpointResolverV2(&options)
resolveTracerProvider(&options)
@@ -679,6 +683,13 @@ func addIsPaginatorUserAgent(o *Options) {
})
}
+func resolveIdempotencyTokenProvider(o *Options) {
+ if o.IdempotencyTokenProvider != nil {
+ return
+ }
+ o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader)
+}
+
func addRetry(stack *middleware.Stack, o Options) error {
attempt := retry.NewAttemptMiddleware(o.Retryer, smithyhttp.RequestCloner, func(m *retry.Attempt) {
m.LogAttempts = o.ClientLogMode.IsRetries()
@@ -804,6 +815,11 @@ func resolveMeterProvider(options *Options) {
}
}
+// IdempotencyTokenProvider interface for providing idempotency token
+type IdempotencyTokenProvider interface {
+ GetIdempotencyToken() (string, error)
+}
+
func addRecursionDetection(stack *middleware.Stack) error {
return stack.Build.Add(&awsmiddleware.RecursionDetection{}, middleware.After)
}
diff --git a/service/securityhub/api_op_BatchUpdateFindings.go b/service/securityhub/api_op_BatchUpdateFindings.go
index a1ea161675b..17ad894657c 100644
--- a/service/securityhub/api_op_BatchUpdateFindings.go
+++ b/service/securityhub/api_op_BatchUpdateFindings.go
@@ -11,16 +11,13 @@ import (
smithyhttp "github.com/aws/smithy-go/transport/http"
)
-// Used by Security Hub customers to update information about their investigation
-// into a finding. Requested by administrator accounts or member accounts.
-// Administrator accounts can update findings for their account and their member
-// accounts. Member accounts can update findings for their account.
+// Used by Security Hub customers to update information about their investigation
//
-// Updates from BatchUpdateFindings don't affect the value of UpdatedAt for a
-// finding.
-//
-// Administrator and member accounts can use BatchUpdateFindings to update the
-// following finding fields and objects.
+// into one or more findings. Requested by administrator accounts or member
+// accounts. Administrator accounts can update findings for their account and their
+// member accounts. A member account can update findings only for their own
+// account. Administrator and member accounts can use this operation to update the
+// following fields and objects for one or more findings:
//
// - Confidence
//
@@ -40,9 +37,15 @@ import (
//
// - Workflow
//
+// If you use this operation to update a finding, your updates don’t affect the
+// value for the UpdatedAt field of the finding. Also note that it can take
+// several minutes for Security Hub to process your request and update each finding
+// specified in the request.
+//
// You can configure IAM policies to restrict access to fields and field values.
// For example, you might not want member accounts to be able to suppress findings
-// or change the finding severity. See [Configuring access to BatchUpdateFindings]in the Security Hub User Guide.
+// or change the finding severity. For more information see [Configuring access to BatchUpdateFindings]in the Security Hub
+// User Guide.
//
// [Configuring access to BatchUpdateFindings]: https://docs.aws.amazon.com/securityhub/latest/userguide/finding-update-batchupdatefindings.html#batchupdatefindings-configure-access
func (c *Client) BatchUpdateFindings(ctx context.Context, params *BatchUpdateFindingsInput, optFns ...func(*Options)) (*BatchUpdateFindingsOutput, error) {
diff --git a/service/securityhub/api_op_BatchUpdateFindingsV2.go b/service/securityhub/api_op_BatchUpdateFindingsV2.go
new file mode 100644
index 00000000000..d5ff86ced86
--- /dev/null
+++ b/service/securityhub/api_op_BatchUpdateFindingsV2.go
@@ -0,0 +1,196 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Used by customers to update information about their investigation into a
+// finding. Requested by delegated administrator accounts or member accounts.
+// Delegated administrator accounts can update findings for their account and their
+// member accounts. Member accounts can update findings for their account.
+// BatchUpdateFindings and BatchUpdateFindingV2 both use
+// securityhub:BatchUpdateFindings in the Action element of an IAM policy
+// statement. You must have permission to perform the
+// securityhub:BatchUpdateFindings action. Updates from BatchUpdateFindingsV2
+// don't affect the value of f inding_info.modified_time ,
+// finding_info.modified_time_dt , time , time_dt for a finding . This API is in
+// private preview and subject to change.
+func (c *Client) BatchUpdateFindingsV2(ctx context.Context, params *BatchUpdateFindingsV2Input, optFns ...func(*Options)) (*BatchUpdateFindingsV2Output, error) {
+ if params == nil {
+ params = &BatchUpdateFindingsV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "BatchUpdateFindingsV2", params, optFns, c.addOperationBatchUpdateFindingsV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*BatchUpdateFindingsV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type BatchUpdateFindingsV2Input struct {
+
+ // The updated value for a user provided comment about the finding. Minimum
+ // character length 1. Maximum character length 512.
+ Comment *string
+
+ // Provides information to identify a specific V2 finding.
+ FindingIdentifiers []types.OcsfFindingIdentifier
+
+ // The list of finding metadata.uid to indicate findings to update. Finding
+ // metadata.uid is a globally unique identifier associated with the finding.
+ // Customers cannot use MetadataUids together with FindingIdentifiers .
+ MetadataUids []string
+
+ // The updated value for the normalized severity identifier. The severity ID is an
+ // integer with the allowed enum values [0, 1, 2, 3, 4, 5, 99]. When customer
+ // provides the updated severity ID, the string sibling severity will automatically
+ // be updated in the finding.
+ SeverityId *int32
+
+ // The updated value for the normalized status identifier. The status ID is an
+ // integer with the allowed enum values [0, 1, 2, 3, 4, 5, 6, 99]. When customer
+ // provides the updated status ID, the string sibling status will automatically be
+ // updated in the finding.
+ StatusId *int32
+
+ noSmithyDocumentSerde
+}
+
+type BatchUpdateFindingsV2Output struct {
+
+ // The list of findings that were updated successfully.
+ //
+ // This member is required.
+ ProcessedFindings []types.BatchUpdateFindingsV2ProcessedFinding
+
+ // The list of V2 findings that were not updated.
+ //
+ // This member is required.
+ UnprocessedFindings []types.BatchUpdateFindingsV2UnprocessedFinding
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationBatchUpdateFindingsV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpBatchUpdateFindingsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpBatchUpdateFindingsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "BatchUpdateFindingsV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpBatchUpdateFindingsV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opBatchUpdateFindingsV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opBatchUpdateFindingsV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "BatchUpdateFindingsV2",
+ }
+}
diff --git a/service/securityhub/api_op_ConnectorRegistrationsV2.go b/service/securityhub/api_op_ConnectorRegistrationsV2.go
new file mode 100644
index 00000000000..7687f2390a6
--- /dev/null
+++ b/service/securityhub/api_op_ConnectorRegistrationsV2.go
@@ -0,0 +1,172 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Grants permission to complete the authorization based on input parameters. This
+// API is in preview release and subject to change.
+func (c *Client) ConnectorRegistrationsV2(ctx context.Context, params *ConnectorRegistrationsV2Input, optFns ...func(*Options)) (*ConnectorRegistrationsV2Output, error) {
+ if params == nil {
+ params = &ConnectorRegistrationsV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ConnectorRegistrationsV2", params, optFns, c.addOperationConnectorRegistrationsV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ConnectorRegistrationsV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ConnectorRegistrationsV2Input struct {
+
+ // The authCode retrieved from authUrl to complete the OAuth 2.0 authorization
+ // code flow.
+ //
+ // This member is required.
+ AuthCode *string
+
+ // The authState retrieved from authUrl to complete the OAuth 2.0 authorization
+ // code flow.
+ //
+ // This member is required.
+ AuthState *string
+
+ noSmithyDocumentSerde
+}
+
+type ConnectorRegistrationsV2Output struct {
+
+ // The UUID of the connectorV2 to identify connectorV2 resource.
+ //
+ // This member is required.
+ ConnectorId *string
+
+ // The Amazon Resource Name (ARN) of the connectorV2.
+ ConnectorArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationConnectorRegistrationsV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpConnectorRegistrationsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpConnectorRegistrationsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ConnectorRegistrationsV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpConnectorRegistrationsV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opConnectorRegistrationsV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opConnectorRegistrationsV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ConnectorRegistrationsV2",
+ }
+}
diff --git a/service/securityhub/api_op_CreateAggregatorV2.go b/service/securityhub/api_op_CreateAggregatorV2.go
new file mode 100644
index 00000000000..fa61116055b
--- /dev/null
+++ b/service/securityhub/api_op_CreateAggregatorV2.go
@@ -0,0 +1,214 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Enables aggregation across Amazon Web Services Regions. This API is in private
+// preview and subject to change.
+func (c *Client) CreateAggregatorV2(ctx context.Context, params *CreateAggregatorV2Input, optFns ...func(*Options)) (*CreateAggregatorV2Output, error) {
+ if params == nil {
+ params = &CreateAggregatorV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateAggregatorV2", params, optFns, c.addOperationCreateAggregatorV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateAggregatorV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateAggregatorV2Input struct {
+
+ // Determines how Regions are linked to an Aggregator V2.
+ //
+ // This member is required.
+ RegionLinkingMode *string
+
+ // A unique identifier used to ensure idempotency.
+ ClientToken *string
+
+ // The list of Regions that are linked to the aggregation Region.
+ LinkedRegions []string
+
+ // A list of key-value pairs to be applied to the AggregatorV2.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type CreateAggregatorV2Output struct {
+
+ // The Amazon Web Services Region where data is aggregated.
+ AggregationRegion *string
+
+ // The ARN of the AggregatorV2.
+ AggregatorV2Arn *string
+
+ // The list of Regions that are linked to the aggregation Region.
+ LinkedRegions []string
+
+ // Determines how Regions are linked to an Aggregator V2.
+ RegionLinkingMode *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateAggregatorV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateAggregatorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateAggregatorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateAggregatorV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opCreateAggregatorV2Middleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateAggregatorV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAggregatorV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpCreateAggregatorV2 struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateAggregatorV2) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateAggregatorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateAggregatorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateAggregatorV2Input ")
+ }
+
+ if input.ClientToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.ClientToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateAggregatorV2Middleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateAggregatorV2{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opCreateAggregatorV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateAggregatorV2",
+ }
+}
diff --git a/service/securityhub/api_op_CreateAutomationRuleV2.go b/service/securityhub/api_op_CreateAutomationRuleV2.go
new file mode 100644
index 00000000000..0efec889764
--- /dev/null
+++ b/service/securityhub/api_op_CreateAutomationRuleV2.go
@@ -0,0 +1,229 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Creates a V2 automation rule. This API is in private preview and subject to
+// change.
+func (c *Client) CreateAutomationRuleV2(ctx context.Context, params *CreateAutomationRuleV2Input, optFns ...func(*Options)) (*CreateAutomationRuleV2Output, error) {
+ if params == nil {
+ params = &CreateAutomationRuleV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateAutomationRuleV2", params, optFns, c.addOperationCreateAutomationRuleV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateAutomationRuleV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateAutomationRuleV2Input struct {
+
+ // A list of actions to be performed when the rule criteria is met.
+ //
+ // This member is required.
+ Actions []types.AutomationRulesActionV2
+
+ // The filtering type and configuration of the automation rule.
+ //
+ // This member is required.
+ Criteria types.Criteria
+
+ // A description of the V2 automation rule.
+ //
+ // This member is required.
+ Description *string
+
+ // The name of the V2 automation rule.
+ //
+ // This member is required.
+ RuleName *string
+
+ // The value for the rule priority.
+ //
+ // This member is required.
+ RuleOrder *float32
+
+ // A unique identifier used to ensure idempotency.
+ ClientToken *string
+
+ // The status of the V2 automation rule.
+ RuleStatus types.RuleStatusV2
+
+ // A list of key-value pairs associated with the V2 automation rule.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type CreateAutomationRuleV2Output struct {
+
+ // The ARN of the V2 automation rule.
+ RuleArn *string
+
+ // The ID of the V2 automation rule.
+ RuleId *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateAutomationRuleV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateAutomationRuleV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateAutomationRuleV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateAutomationRuleV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opCreateAutomationRuleV2Middleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateAutomationRuleV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAutomationRuleV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpCreateAutomationRuleV2 struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateAutomationRuleV2) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateAutomationRuleV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateAutomationRuleV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateAutomationRuleV2Input ")
+ }
+
+ if input.ClientToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.ClientToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateAutomationRuleV2Middleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateAutomationRuleV2{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opCreateAutomationRuleV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateAutomationRuleV2",
+ }
+}
diff --git a/service/securityhub/api_op_CreateConnectorV2.go b/service/securityhub/api_op_CreateConnectorV2.go
new file mode 100644
index 00000000000..433dbddf4f2
--- /dev/null
+++ b/service/securityhub/api_op_CreateConnectorV2.go
@@ -0,0 +1,223 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Grants permission to create a connectorV2 based on input parameters. This API
+// is in preview release and subject to change.
+func (c *Client) CreateConnectorV2(ctx context.Context, params *CreateConnectorV2Input, optFns ...func(*Options)) (*CreateConnectorV2Output, error) {
+ if params == nil {
+ params = &CreateConnectorV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateConnectorV2", params, optFns, c.addOperationCreateConnectorV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateConnectorV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateConnectorV2Input struct {
+
+ // The unique name of the connectorV2.
+ //
+ // This member is required.
+ Name *string
+
+ // The third-party provider’s service configuration.
+ //
+ // This member is required.
+ Provider types.ProviderConfiguration
+
+ // A unique identifier used to ensure idempotency.
+ ClientToken *string
+
+ // The description of the connectorV2.
+ Description *string
+
+ // The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the
+ // connectorV2.
+ KmsKeyArn *string
+
+ // The tags to add to the connectorV2 when you create.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type CreateConnectorV2Output struct {
+
+ // The UUID of the connectorV2 to identify connectorV2 resource.
+ //
+ // This member is required.
+ ConnectorId *string
+
+ // The Url provide to customers for OAuth auth code flow.
+ AuthUrl *string
+
+ // The Amazon Resource Name (ARN) of the connectorV2.
+ ConnectorArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateConnectorV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateConnectorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateConnectorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateConnectorV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opCreateConnectorV2Middleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateConnectorV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateConnectorV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpCreateConnectorV2 struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateConnectorV2) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateConnectorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateConnectorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateConnectorV2Input ")
+ }
+
+ if input.ClientToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.ClientToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateConnectorV2Middleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateConnectorV2{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opCreateConnectorV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateConnectorV2",
+ }
+}
diff --git a/service/securityhub/api_op_CreateTicketV2.go b/service/securityhub/api_op_CreateTicketV2.go
new file mode 100644
index 00000000000..b38b03593ed
--- /dev/null
+++ b/service/securityhub/api_op_CreateTicketV2.go
@@ -0,0 +1,210 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Grants permission to create a ticket in the chosen ITSM based on finding
+// information for the provided finding metadata UID. This API is in preview
+// release and subject to change.
+func (c *Client) CreateTicketV2(ctx context.Context, params *CreateTicketV2Input, optFns ...func(*Options)) (*CreateTicketV2Output, error) {
+ if params == nil {
+ params = &CreateTicketV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "CreateTicketV2", params, optFns, c.addOperationCreateTicketV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*CreateTicketV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type CreateTicketV2Input struct {
+
+ // The UUID of the connectorV2 to identify connectorV2 resource.
+ //
+ // This member is required.
+ ConnectorId *string
+
+ // The the unique ID for the finding.
+ //
+ // This member is required.
+ FindingMetadataUid *string
+
+ // The client idempotency token.
+ ClientToken *string
+
+ noSmithyDocumentSerde
+}
+
+type CreateTicketV2Output struct {
+
+ // The ID for the ticketv2.
+ //
+ // This member is required.
+ TicketId *string
+
+ // The url to the created ticket.
+ TicketSrcUrl *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationCreateTicketV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateTicketV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateTicketV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTicketV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addIdempotencyToken_opCreateTicketV2Middleware(stack, options); err != nil {
+ return err
+ }
+ if err = addOpCreateTicketV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTicketV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+type idempotencyToken_initializeOpCreateTicketV2 struct {
+ tokenProvider IdempotencyTokenProvider
+}
+
+func (*idempotencyToken_initializeOpCreateTicketV2) ID() string {
+ return "OperationIdempotencyTokenAutoFill"
+}
+
+func (m *idempotencyToken_initializeOpCreateTicketV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*CreateTicketV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateTicketV2Input ")
+ }
+
+ if input.ClientToken == nil {
+ t, err := m.tokenProvider.GetIdempotencyToken()
+ if err != nil {
+ return out, metadata, err
+ }
+ input.ClientToken = &t
+ }
+ return next.HandleInitialize(ctx, in)
+}
+func addIdempotencyToken_opCreateTicketV2Middleware(stack *middleware.Stack, cfg Options) error {
+ return stack.Initialize.Add(&idempotencyToken_initializeOpCreateTicketV2{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
+}
+
+func newServiceMetadataMiddleware_opCreateTicketV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "CreateTicketV2",
+ }
+}
diff --git a/service/securityhub/api_op_DeleteAggregatorV2.go b/service/securityhub/api_op_DeleteAggregatorV2.go
new file mode 100644
index 00000000000..fbc6be69020
--- /dev/null
+++ b/service/securityhub/api_op_DeleteAggregatorV2.go
@@ -0,0 +1,155 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Deletes the Aggregator V2. This API is in private preview and subject to change.
+func (c *Client) DeleteAggregatorV2(ctx context.Context, params *DeleteAggregatorV2Input, optFns ...func(*Options)) (*DeleteAggregatorV2Output, error) {
+ if params == nil {
+ params = &DeleteAggregatorV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DeleteAggregatorV2", params, optFns, c.addOperationDeleteAggregatorV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DeleteAggregatorV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteAggregatorV2Input struct {
+
+ // The ARN of the Aggregator V2.
+ //
+ // This member is required.
+ AggregatorV2Arn *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteAggregatorV2Output struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDeleteAggregatorV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteAggregatorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteAggregatorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteAggregatorV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDeleteAggregatorV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAggregatorV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDeleteAggregatorV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DeleteAggregatorV2",
+ }
+}
diff --git a/service/securityhub/api_op_DeleteAutomationRuleV2.go b/service/securityhub/api_op_DeleteAutomationRuleV2.go
new file mode 100644
index 00000000000..718813f0cf3
--- /dev/null
+++ b/service/securityhub/api_op_DeleteAutomationRuleV2.go
@@ -0,0 +1,156 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Deletes a V2 automation rule. This API is in private preview and subject to
+// change.
+func (c *Client) DeleteAutomationRuleV2(ctx context.Context, params *DeleteAutomationRuleV2Input, optFns ...func(*Options)) (*DeleteAutomationRuleV2Output, error) {
+ if params == nil {
+ params = &DeleteAutomationRuleV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DeleteAutomationRuleV2", params, optFns, c.addOperationDeleteAutomationRuleV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DeleteAutomationRuleV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteAutomationRuleV2Input struct {
+
+ // The ARN of the V2 automation rule.
+ //
+ // This member is required.
+ Identifier *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteAutomationRuleV2Output struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDeleteAutomationRuleV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteAutomationRuleV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteAutomationRuleV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteAutomationRuleV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDeleteAutomationRuleV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAutomationRuleV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDeleteAutomationRuleV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DeleteAutomationRuleV2",
+ }
+}
diff --git a/service/securityhub/api_op_DeleteConnectorV2.go b/service/securityhub/api_op_DeleteConnectorV2.go
new file mode 100644
index 00000000000..f3c2fc5f31b
--- /dev/null
+++ b/service/securityhub/api_op_DeleteConnectorV2.go
@@ -0,0 +1,156 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Grants permission to delete a connectorV2. This API is in preview release and
+// subject to change.
+func (c *Client) DeleteConnectorV2(ctx context.Context, params *DeleteConnectorV2Input, optFns ...func(*Options)) (*DeleteConnectorV2Output, error) {
+ if params == nil {
+ params = &DeleteConnectorV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DeleteConnectorV2", params, optFns, c.addOperationDeleteConnectorV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DeleteConnectorV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteConnectorV2Input struct {
+
+ // The UUID of the connectorV2 to identify connectorV2 resource.
+ //
+ // This member is required.
+ ConnectorId *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteConnectorV2Output struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDeleteConnectorV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteConnectorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteConnectorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteConnectorV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpDeleteConnectorV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteConnectorV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDeleteConnectorV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DeleteConnectorV2",
+ }
+}
diff --git a/service/securityhub/api_op_DescribeProductsV2.go b/service/securityhub/api_op_DescribeProductsV2.go
new file mode 100644
index 00000000000..9abe617d275
--- /dev/null
+++ b/service/securityhub/api_op_DescribeProductsV2.go
@@ -0,0 +1,261 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Gets information about the product integration. This API is in private preview
+// and subject to change.
+func (c *Client) DescribeProductsV2(ctx context.Context, params *DescribeProductsV2Input, optFns ...func(*Options)) (*DescribeProductsV2Output, error) {
+ if params == nil {
+ params = &DescribeProductsV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DescribeProductsV2", params, optFns, c.addOperationDescribeProductsV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DescribeProductsV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DescribeProductsV2Input struct {
+
+ // The maximum number of results to return.
+ MaxResults *int32
+
+ // The token required for pagination. On your first call, set the value of this
+ // parameter to NULL . For subsequent calls, to continue listing data, set the
+ // value of this parameter to the value returned in the previous response.
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type DescribeProductsV2Output struct {
+
+ // Gets information about the product integration.
+ //
+ // This member is required.
+ ProductsV2 []types.ProductV2
+
+ // The pagination token to use to request the next page of results. Otherwise,
+ // this parameter is null.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDescribeProductsV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeProductsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeProductsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeProductsV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeProductsV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// DescribeProductsV2PaginatorOptions is the paginator options for
+// DescribeProductsV2
+type DescribeProductsV2PaginatorOptions struct {
+ // The maximum number of results to return.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// DescribeProductsV2Paginator is a paginator for DescribeProductsV2
+type DescribeProductsV2Paginator struct {
+ options DescribeProductsV2PaginatorOptions
+ client DescribeProductsV2APIClient
+ params *DescribeProductsV2Input
+ nextToken *string
+ firstPage bool
+}
+
+// NewDescribeProductsV2Paginator returns a new DescribeProductsV2Paginator
+func NewDescribeProductsV2Paginator(client DescribeProductsV2APIClient, params *DescribeProductsV2Input, optFns ...func(*DescribeProductsV2PaginatorOptions)) *DescribeProductsV2Paginator {
+ if params == nil {
+ params = &DescribeProductsV2Input{}
+ }
+
+ options := DescribeProductsV2PaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &DescribeProductsV2Paginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *DescribeProductsV2Paginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next DescribeProductsV2 page.
+func (p *DescribeProductsV2Paginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeProductsV2Output, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.DescribeProductsV2(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// DescribeProductsV2APIClient is a client that implements the DescribeProductsV2
+// operation.
+type DescribeProductsV2APIClient interface {
+ DescribeProductsV2(context.Context, *DescribeProductsV2Input, ...func(*Options)) (*DescribeProductsV2Output, error)
+}
+
+var _ DescribeProductsV2APIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opDescribeProductsV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DescribeProductsV2",
+ }
+}
diff --git a/service/securityhub/api_op_DescribeSecurityHubV2.go b/service/securityhub/api_op_DescribeSecurityHubV2.go
new file mode 100644
index 00000000000..ad212fa9623
--- /dev/null
+++ b/service/securityhub/api_op_DescribeSecurityHubV2.go
@@ -0,0 +1,154 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns details about the service resource in your account. This API is in
+// private preview and subject to change.
+func (c *Client) DescribeSecurityHubV2(ctx context.Context, params *DescribeSecurityHubV2Input, optFns ...func(*Options)) (*DescribeSecurityHubV2Output, error) {
+ if params == nil {
+ params = &DescribeSecurityHubV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityHubV2", params, optFns, c.addOperationDescribeSecurityHubV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DescribeSecurityHubV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DescribeSecurityHubV2Input struct {
+ noSmithyDocumentSerde
+}
+
+type DescribeSecurityHubV2Output struct {
+
+ // The ARN of the service resource.
+ HubV2Arn *string
+
+ // The date and time when the service was enabled in the account.
+ SubscribedAt *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDescribeSecurityHubV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeSecurityHubV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeSecurityHubV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeSecurityHubV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeSecurityHubV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDescribeSecurityHubV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DescribeSecurityHubV2",
+ }
+}
diff --git a/service/securityhub/api_op_DisableOrganizationAdminAccount.go b/service/securityhub/api_op_DisableOrganizationAdminAccount.go
index e7a53a9cf50..12f334f1c3d 100644
--- a/service/securityhub/api_op_DisableOrganizationAdminAccount.go
+++ b/service/securityhub/api_op_DisableOrganizationAdminAccount.go
@@ -6,6 +6,7 @@ import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
@@ -35,6 +36,10 @@ type DisableOrganizationAdminAccountInput struct {
// This member is required.
AdminAccountId *string
+ // The feature for which the delegated admin account is disabled. Defaults to
+ // Security Hub if not specified.
+ Feature types.SecurityHubFeature
+
noSmithyDocumentSerde
}
diff --git a/service/securityhub/api_op_DisableSecurityHubV2.go b/service/securityhub/api_op_DisableSecurityHubV2.go
new file mode 100644
index 00000000000..eee0362e82a
--- /dev/null
+++ b/service/securityhub/api_op_DisableSecurityHubV2.go
@@ -0,0 +1,148 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Disable the service for the current Amazon Web Services Region or specified
+// Amazon Web Services Region. This API is in private preview and subject to
+// change.
+func (c *Client) DisableSecurityHubV2(ctx context.Context, params *DisableSecurityHubV2Input, optFns ...func(*Options)) (*DisableSecurityHubV2Output, error) {
+ if params == nil {
+ params = &DisableSecurityHubV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "DisableSecurityHubV2", params, optFns, c.addOperationDisableSecurityHubV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*DisableSecurityHubV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DisableSecurityHubV2Input struct {
+ noSmithyDocumentSerde
+}
+
+type DisableSecurityHubV2Output struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationDisableSecurityHubV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpDisableSecurityHubV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisableSecurityHubV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "DisableSecurityHubV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableSecurityHubV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opDisableSecurityHubV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "DisableSecurityHubV2",
+ }
+}
diff --git a/service/securityhub/api_op_EnableOrganizationAdminAccount.go b/service/securityhub/api_op_EnableOrganizationAdminAccount.go
index a28ef7c06bd..87128120ac2 100644
--- a/service/securityhub/api_op_EnableOrganizationAdminAccount.go
+++ b/service/securityhub/api_op_EnableOrganizationAdminAccount.go
@@ -6,6 +6,7 @@ import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
@@ -35,10 +36,23 @@ type EnableOrganizationAdminAccountInput struct {
// This member is required.
AdminAccountId *string
+ // The feature for which the delegated admin account is enabled. Defaults to
+ // Security Hub if not specified.
+ Feature types.SecurityHubFeature
+
noSmithyDocumentSerde
}
type EnableOrganizationAdminAccountOutput struct {
+
+ // The Amazon Web Services account identifier of the account to designate as the
+ // Security Hub administrator account.
+ AdminAccountId *string
+
+ // The feature where the delegated administrator is enabled. The default is
+ // Security Hub CSPM if no delegated administrator is specified in the request.
+ Feature types.SecurityHubFeature
+
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
diff --git a/service/securityhub/api_op_EnableSecurityHubV2.go b/service/securityhub/api_op_EnableSecurityHubV2.go
new file mode 100644
index 00000000000..eb830617884
--- /dev/null
+++ b/service/securityhub/api_op_EnableSecurityHubV2.go
@@ -0,0 +1,156 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Enables the service in account for the current Amazon Web Services Region or
+// specified Amazon Web Services Region. This API is in private preview and subject
+// to change.
+func (c *Client) EnableSecurityHubV2(ctx context.Context, params *EnableSecurityHubV2Input, optFns ...func(*Options)) (*EnableSecurityHubV2Output, error) {
+ if params == nil {
+ params = &EnableSecurityHubV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "EnableSecurityHubV2", params, optFns, c.addOperationEnableSecurityHubV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*EnableSecurityHubV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type EnableSecurityHubV2Input struct {
+
+ // The tags to add to the hub V2 resource when you enable Security Hub.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type EnableSecurityHubV2Output struct {
+
+ // The ARN of the V2 resource that was created.
+ HubV2Arn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationEnableSecurityHubV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpEnableSecurityHubV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpEnableSecurityHubV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "EnableSecurityHubV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableSecurityHubV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opEnableSecurityHubV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "EnableSecurityHubV2",
+ }
+}
diff --git a/service/securityhub/api_op_GetAggregatorV2.go b/service/securityhub/api_op_GetAggregatorV2.go
new file mode 100644
index 00000000000..e228070ee32
--- /dev/null
+++ b/service/securityhub/api_op_GetAggregatorV2.go
@@ -0,0 +1,169 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns the configuration of the specified Aggregator V2. This API is in
+// private preview and subject to change.
+func (c *Client) GetAggregatorV2(ctx context.Context, params *GetAggregatorV2Input, optFns ...func(*Options)) (*GetAggregatorV2Output, error) {
+ if params == nil {
+ params = &GetAggregatorV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetAggregatorV2", params, optFns, c.addOperationGetAggregatorV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetAggregatorV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetAggregatorV2Input struct {
+
+ // The ARN of the Aggregator V2.
+ //
+ // This member is required.
+ AggregatorV2Arn *string
+
+ noSmithyDocumentSerde
+}
+
+type GetAggregatorV2Output struct {
+
+ // The Amazon Web Services Region where data is aggregated.
+ AggregationRegion *string
+
+ // The ARN of the Aggregator V2.
+ AggregatorV2Arn *string
+
+ // The list of Regions that are linked to the aggregation Region.
+ LinkedRegions []string
+
+ // Determines how Regions are linked to an Aggregator V2.
+ RegionLinkingMode *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetAggregatorV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetAggregatorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetAggregatorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetAggregatorV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetAggregatorV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAggregatorV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetAggregatorV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetAggregatorV2",
+ }
+}
diff --git a/service/securityhub/api_op_GetAutomationRuleV2.go b/service/securityhub/api_op_GetAutomationRuleV2.go
new file mode 100644
index 00000000000..04978df66d8
--- /dev/null
+++ b/service/securityhub/api_op_GetAutomationRuleV2.go
@@ -0,0 +1,189 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Returns an automation rule for the V2 service. This API is in private preview
+// and subject to change.
+func (c *Client) GetAutomationRuleV2(ctx context.Context, params *GetAutomationRuleV2Input, optFns ...func(*Options)) (*GetAutomationRuleV2Output, error) {
+ if params == nil {
+ params = &GetAutomationRuleV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetAutomationRuleV2", params, optFns, c.addOperationGetAutomationRuleV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetAutomationRuleV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetAutomationRuleV2Input struct {
+
+ // The ARN of the V2 automation rule.
+ //
+ // This member is required.
+ Identifier *string
+
+ noSmithyDocumentSerde
+}
+
+type GetAutomationRuleV2Output struct {
+
+ // A list of actions performed when the rule criteria is met.
+ Actions []types.AutomationRulesActionV2
+
+ // The timestamp when the V2 automation rule was created.
+ CreatedAt *time.Time
+
+ // The filtering type and configuration of the V2 automation rule.
+ Criteria types.Criteria
+
+ // A description of the automation rule.
+ Description *string
+
+ // The ARN of the V2 automation rule.
+ RuleArn *string
+
+ // The ID of the V2 automation rule.
+ RuleId *string
+
+ // The name of the V2 automation rule.
+ RuleName *string
+
+ // The value for the rule priority.
+ RuleOrder *float32
+
+ // The status of the V2 automation automation rule.
+ RuleStatus types.RuleStatusV2
+
+ // The timestamp when the V2 automation rule was updated.
+ UpdatedAt *time.Time
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetAutomationRuleV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetAutomationRuleV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetAutomationRuleV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetAutomationRuleV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetAutomationRuleV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAutomationRuleV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetAutomationRuleV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetAutomationRuleV2",
+ }
+}
diff --git a/service/securityhub/api_op_GetConnectorV2.go b/service/securityhub/api_op_GetConnectorV2.go
new file mode 100644
index 00000000000..6052b567b7b
--- /dev/null
+++ b/service/securityhub/api_op_GetConnectorV2.go
@@ -0,0 +1,198 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+ "time"
+)
+
+// Grants permission to retrieve details for a connectorV2 based on connector id.
+// This API is in preview release and subject to change.
+func (c *Client) GetConnectorV2(ctx context.Context, params *GetConnectorV2Input, optFns ...func(*Options)) (*GetConnectorV2Output, error) {
+ if params == nil {
+ params = &GetConnectorV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetConnectorV2", params, optFns, c.addOperationGetConnectorV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetConnectorV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetConnectorV2Input struct {
+
+ // The UUID of the connectorV2 to identify connectorV2 resource.
+ //
+ // This member is required.
+ ConnectorId *string
+
+ noSmithyDocumentSerde
+}
+
+type GetConnectorV2Output struct {
+
+ // The UUID of the connectorV2 to identify connectorV2 resource.
+ //
+ // This member is required.
+ ConnectorId *string
+
+ // ISO 8601 UTC timestamp for the time create the connectorV2.
+ //
+ // This member is required.
+ CreatedAt *time.Time
+
+ // The current health status for connectorV2
+ //
+ // This member is required.
+ Health *types.HealthCheck
+
+ // ISO 8601 UTC timestamp for the time update the connectorV2 connectorStatus.
+ //
+ // This member is required.
+ LastUpdatedAt *time.Time
+
+ // The name of the connectorV2.
+ //
+ // This member is required.
+ Name *string
+
+ // The third-party provider detail for a service configuration.
+ //
+ // This member is required.
+ ProviderDetail types.ProviderDetail
+
+ // The Amazon Resource Name (ARN) of the connectorV2.
+ ConnectorArn *string
+
+ // The description of the connectorV2.
+ Description *string
+
+ // The Amazon Resource Name (ARN) of KMS key used for the connectorV2.
+ KmsKeyArn *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetConnectorV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetConnectorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetConnectorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetConnectorV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetConnectorV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetConnectorV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetConnectorV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetConnectorV2",
+ }
+}
diff --git a/service/securityhub/api_op_GetFindingHistory.go b/service/securityhub/api_op_GetFindingHistory.go
index cf2c91aef40..db2ed2cc3a8 100644
--- a/service/securityhub/api_op_GetFindingHistory.go
+++ b/service/securityhub/api_op_GetFindingHistory.go
@@ -12,10 +12,19 @@ import (
"time"
)
-// Returns history for a Security Hub finding in the last 90 days. The history
+// Returns the history of a Security Hub finding for the past 90 days. The
//
-// includes changes made to any fields in the Amazon Web Services Security Finding
-// Format (ASFF).
+// history includes changes made to any fields in the Amazon Web Services Security
+// Finding Format (ASFF) except top-level timestamp fields, such as the CreatedAt
+// and UpdatedAt fields.
+//
+// This operation might return fewer results than the maximum number of results (
+// MaxResults ) specified in a request, even when more results are available. If
+// this occurs, the response includes a NextToken value, which you should use to
+// retrieve the next set of results in the response. The presence of a NextToken
+// value in a response doesn't necessarily indicate that the results are
+// incomplete. However, you should continue to specify a NextToken value until you
+// receive a response that doesn't include this value.
func (c *Client) GetFindingHistory(ctx context.Context, params *GetFindingHistoryInput, optFns ...func(*Options)) (*GetFindingHistoryOutput, error) {
if params == nil {
params = &GetFindingHistoryInput{}
diff --git a/service/securityhub/api_op_GetFindingStatisticsV2.go b/service/securityhub/api_op_GetFindingStatisticsV2.go
new file mode 100644
index 00000000000..bcae03b475d
--- /dev/null
+++ b/service/securityhub/api_op_GetFindingStatisticsV2.go
@@ -0,0 +1,172 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns aggregated statistical data about findings. GetFindingStatisticsV2 use
+// securityhub:GetAdhocInsightResults in the Action element of an IAM policy
+// statement. You must have permission to perform the s action. This API is in
+// private preview and subject to change.
+func (c *Client) GetFindingStatisticsV2(ctx context.Context, params *GetFindingStatisticsV2Input, optFns ...func(*Options)) (*GetFindingStatisticsV2Output, error) {
+ if params == nil {
+ params = &GetFindingStatisticsV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetFindingStatisticsV2", params, optFns, c.addOperationGetFindingStatisticsV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetFindingStatisticsV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetFindingStatisticsV2Input struct {
+
+ // Specifies how security findings should be aggregated and organized in the
+ // statistical analysis. It can accept up to 5 groupBy fields in a single call.
+ //
+ // This member is required.
+ GroupByRules []types.GroupByRule
+
+ // The maximum number of results to be returned.
+ MaxStatisticResults *int32
+
+ // Orders the aggregation count in descending or ascending order. Descending order
+ // is the default.
+ SortOrder types.SortOrder
+
+ noSmithyDocumentSerde
+}
+
+type GetFindingStatisticsV2Output struct {
+
+ // Aggregated statistics about security findings based on specified grouping
+ // criteria.
+ GroupByResults []types.GroupByResult
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetFindingStatisticsV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetFindingStatisticsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetFindingStatisticsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetFindingStatisticsV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetFindingStatisticsV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetFindingStatisticsV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetFindingStatisticsV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetFindingStatisticsV2",
+ }
+}
diff --git a/service/securityhub/api_op_GetFindingsV2.go b/service/securityhub/api_op_GetFindingsV2.go
new file mode 100644
index 00000000000..b35d06f72d4
--- /dev/null
+++ b/service/securityhub/api_op_GetFindingsV2.go
@@ -0,0 +1,269 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/document"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Return a list of findings that match the specified criteria. GetFindings and
+// GetFindingsV2 both use securityhub:GetFindings in the Action element of an IAM
+// policy statement. You must have permission to perform the
+// securityhub:GetFindings action. This API is in private preview and subject to
+// change.
+func (c *Client) GetFindingsV2(ctx context.Context, params *GetFindingsV2Input, optFns ...func(*Options)) (*GetFindingsV2Output, error) {
+ if params == nil {
+ params = &GetFindingsV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetFindingsV2", params, optFns, c.addOperationGetFindingsV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetFindingsV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetFindingsV2Input struct {
+
+ // The finding attributes used to define a condition to filter the returned OCSF
+ // findings. You can filter up to 10 composite filters. For each filter type inside
+ // of a composite filter, you can provide up to 20 filters.
+ Filters *types.OcsfFindingFilters
+
+ // The maximum number of results to return.
+ MaxResults *int32
+
+ // The token required for pagination. On your first call, set the value of this
+ // parameter to NULL . For subsequent calls, to continue listing data, set the
+ // value of this parameter to the value returned in the previous response.
+ NextToken *string
+
+ // The finding attributes used to sort the list of returned findings.
+ SortCriteria []types.SortCriterion
+
+ noSmithyDocumentSerde
+}
+
+type GetFindingsV2Output struct {
+
+ // An array of security findings returned by the operation.
+ Findings []document.Interface
+
+ // The pagination token to use to request the next page of results. Otherwise,
+ // this parameter is null.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetFindingsV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetFindingsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetFindingsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetFindingsV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetFindingsV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// GetFindingsV2PaginatorOptions is the paginator options for GetFindingsV2
+type GetFindingsV2PaginatorOptions struct {
+ // The maximum number of results to return.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// GetFindingsV2Paginator is a paginator for GetFindingsV2
+type GetFindingsV2Paginator struct {
+ options GetFindingsV2PaginatorOptions
+ client GetFindingsV2APIClient
+ params *GetFindingsV2Input
+ nextToken *string
+ firstPage bool
+}
+
+// NewGetFindingsV2Paginator returns a new GetFindingsV2Paginator
+func NewGetFindingsV2Paginator(client GetFindingsV2APIClient, params *GetFindingsV2Input, optFns ...func(*GetFindingsV2PaginatorOptions)) *GetFindingsV2Paginator {
+ if params == nil {
+ params = &GetFindingsV2Input{}
+ }
+
+ options := GetFindingsV2PaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &GetFindingsV2Paginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *GetFindingsV2Paginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next GetFindingsV2 page.
+func (p *GetFindingsV2Paginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetFindingsV2Output, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.GetFindingsV2(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// GetFindingsV2APIClient is a client that implements the GetFindingsV2 operation.
+type GetFindingsV2APIClient interface {
+ GetFindingsV2(context.Context, *GetFindingsV2Input, ...func(*Options)) (*GetFindingsV2Output, error)
+}
+
+var _ GetFindingsV2APIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opGetFindingsV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetFindingsV2",
+ }
+}
diff --git a/service/securityhub/api_op_GetResourcesStatisticsV2.go b/service/securityhub/api_op_GetResourcesStatisticsV2.go
new file mode 100644
index 00000000000..2a6f9a797b9
--- /dev/null
+++ b/service/securityhub/api_op_GetResourcesStatisticsV2.go
@@ -0,0 +1,170 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Retrieves statistical information about Amazon Web Services resources and their
+// associated security findings. This API is in private preview and subject to
+// change.
+func (c *Client) GetResourcesStatisticsV2(ctx context.Context, params *GetResourcesStatisticsV2Input, optFns ...func(*Options)) (*GetResourcesStatisticsV2Output, error) {
+ if params == nil {
+ params = &GetResourcesStatisticsV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetResourcesStatisticsV2", params, optFns, c.addOperationGetResourcesStatisticsV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetResourcesStatisticsV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetResourcesStatisticsV2Input struct {
+
+ // How resource statistics should be aggregated and organized in the response.
+ //
+ // This member is required.
+ GroupByRules []types.ResourceGroupByRule
+
+ // The maximum number of results to be returned.
+ MaxStatisticResults *int32
+
+ // Sorts aggregated statistics.
+ SortOrder types.SortOrder
+
+ noSmithyDocumentSerde
+}
+
+type GetResourcesStatisticsV2Output struct {
+
+ // The aggregated statistics about resources based on the specified grouping rule.
+ //
+ // This member is required.
+ GroupByResults []types.GroupByResult
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetResourcesStatisticsV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetResourcesStatisticsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetResourcesStatisticsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetResourcesStatisticsV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpGetResourcesStatisticsV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetResourcesStatisticsV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opGetResourcesStatisticsV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetResourcesStatisticsV2",
+ }
+}
diff --git a/service/securityhub/api_op_GetResourcesV2.go b/service/securityhub/api_op_GetResourcesV2.go
new file mode 100644
index 00000000000..058abdd0146
--- /dev/null
+++ b/service/securityhub/api_op_GetResourcesV2.go
@@ -0,0 +1,266 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of resources. This API is in private preview and subject to
+// change.
+func (c *Client) GetResourcesV2(ctx context.Context, params *GetResourcesV2Input, optFns ...func(*Options)) (*GetResourcesV2Output, error) {
+ if params == nil {
+ params = &GetResourcesV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "GetResourcesV2", params, optFns, c.addOperationGetResourcesV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*GetResourcesV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type GetResourcesV2Input struct {
+
+ // Filters resources based on a set of criteria.
+ Filters *types.ResourcesFilters
+
+ // The maximum number of results to return.
+ MaxResults *int32
+
+ // The token required for pagination. On your first call, set the value of this
+ // parameter to NULL . For subsequent calls, to continue listing data, set the
+ // value of this parameter to the value returned in the previous response.
+ NextToken *string
+
+ // The finding attributes used to sort the list of returned findings.
+ SortCriteria []types.SortCriterion
+
+ noSmithyDocumentSerde
+}
+
+type GetResourcesV2Output struct {
+
+ // Filters resources based on a set of criteria.
+ //
+ // This member is required.
+ Resources []types.ResourceResult
+
+ // The pagination token to use to request the next page of results. Otherwise,
+ // this parameter is null.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationGetResourcesV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpGetResourcesV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetResourcesV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "GetResourcesV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetResourcesV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// GetResourcesV2PaginatorOptions is the paginator options for GetResourcesV2
+type GetResourcesV2PaginatorOptions struct {
+ // The maximum number of results to return.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// GetResourcesV2Paginator is a paginator for GetResourcesV2
+type GetResourcesV2Paginator struct {
+ options GetResourcesV2PaginatorOptions
+ client GetResourcesV2APIClient
+ params *GetResourcesV2Input
+ nextToken *string
+ firstPage bool
+}
+
+// NewGetResourcesV2Paginator returns a new GetResourcesV2Paginator
+func NewGetResourcesV2Paginator(client GetResourcesV2APIClient, params *GetResourcesV2Input, optFns ...func(*GetResourcesV2PaginatorOptions)) *GetResourcesV2Paginator {
+ if params == nil {
+ params = &GetResourcesV2Input{}
+ }
+
+ options := GetResourcesV2PaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &GetResourcesV2Paginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *GetResourcesV2Paginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next GetResourcesV2 page.
+func (p *GetResourcesV2Paginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetResourcesV2Output, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.GetResourcesV2(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// GetResourcesV2APIClient is a client that implements the GetResourcesV2
+// operation.
+type GetResourcesV2APIClient interface {
+ GetResourcesV2(context.Context, *GetResourcesV2Input, ...func(*Options)) (*GetResourcesV2Output, error)
+}
+
+var _ GetResourcesV2APIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opGetResourcesV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "GetResourcesV2",
+ }
+}
diff --git a/service/securityhub/api_op_ListAggregatorsV2.go b/service/securityhub/api_op_ListAggregatorsV2.go
new file mode 100644
index 00000000000..4a40ce914c6
--- /dev/null
+++ b/service/securityhub/api_op_ListAggregatorsV2.go
@@ -0,0 +1,258 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Retrieves a list of V2 aggregators. This API is in private preview and subject
+// to change.
+func (c *Client) ListAggregatorsV2(ctx context.Context, params *ListAggregatorsV2Input, optFns ...func(*Options)) (*ListAggregatorsV2Output, error) {
+ if params == nil {
+ params = &ListAggregatorsV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListAggregatorsV2", params, optFns, c.addOperationListAggregatorsV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListAggregatorsV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListAggregatorsV2Input struct {
+
+ // The maximum number of results to return.
+ MaxResults *int32
+
+ // The token required for pagination. On your first call, set the value of this
+ // parameter to NULL . For subsequent calls, to continue listing data, set the
+ // value of this parameter to the value returned in the previous response.
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListAggregatorsV2Output struct {
+
+ // An array of aggregators.
+ AggregatorsV2 []types.AggregatorV2
+
+ // The pagination token to use to request the next page of results. Otherwise,
+ // this parameter is null.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListAggregatorsV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListAggregatorsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAggregatorsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListAggregatorsV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAggregatorsV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+// ListAggregatorsV2PaginatorOptions is the paginator options for ListAggregatorsV2
+type ListAggregatorsV2PaginatorOptions struct {
+ // The maximum number of results to return.
+ Limit int32
+
+ // Set to true if pagination should stop if the service returns a pagination token
+ // that matches the most recent token provided to the service.
+ StopOnDuplicateToken bool
+}
+
+// ListAggregatorsV2Paginator is a paginator for ListAggregatorsV2
+type ListAggregatorsV2Paginator struct {
+ options ListAggregatorsV2PaginatorOptions
+ client ListAggregatorsV2APIClient
+ params *ListAggregatorsV2Input
+ nextToken *string
+ firstPage bool
+}
+
+// NewListAggregatorsV2Paginator returns a new ListAggregatorsV2Paginator
+func NewListAggregatorsV2Paginator(client ListAggregatorsV2APIClient, params *ListAggregatorsV2Input, optFns ...func(*ListAggregatorsV2PaginatorOptions)) *ListAggregatorsV2Paginator {
+ if params == nil {
+ params = &ListAggregatorsV2Input{}
+ }
+
+ options := ListAggregatorsV2PaginatorOptions{}
+ if params.MaxResults != nil {
+ options.Limit = *params.MaxResults
+ }
+
+ for _, fn := range optFns {
+ fn(&options)
+ }
+
+ return &ListAggregatorsV2Paginator{
+ options: options,
+ client: client,
+ params: params,
+ firstPage: true,
+ nextToken: params.NextToken,
+ }
+}
+
+// HasMorePages returns a boolean indicating whether more pages are available
+func (p *ListAggregatorsV2Paginator) HasMorePages() bool {
+ return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
+}
+
+// NextPage retrieves the next ListAggregatorsV2 page.
+func (p *ListAggregatorsV2Paginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAggregatorsV2Output, error) {
+ if !p.HasMorePages() {
+ return nil, fmt.Errorf("no more pages available")
+ }
+
+ params := *p.params
+ params.NextToken = p.nextToken
+
+ var limit *int32
+ if p.options.Limit > 0 {
+ limit = &p.options.Limit
+ }
+ params.MaxResults = limit
+
+ optFns = append([]func(*Options){
+ addIsPaginatorUserAgent,
+ }, optFns...)
+ result, err := p.client.ListAggregatorsV2(ctx, ¶ms, optFns...)
+ if err != nil {
+ return nil, err
+ }
+ p.firstPage = false
+
+ prevToken := p.nextToken
+ p.nextToken = result.NextToken
+
+ if p.options.StopOnDuplicateToken &&
+ prevToken != nil &&
+ p.nextToken != nil &&
+ *prevToken == *p.nextToken {
+ p.nextToken = nil
+ }
+
+ return result, nil
+}
+
+// ListAggregatorsV2APIClient is a client that implements the ListAggregatorsV2
+// operation.
+type ListAggregatorsV2APIClient interface {
+ ListAggregatorsV2(context.Context, *ListAggregatorsV2Input, ...func(*Options)) (*ListAggregatorsV2Output, error)
+}
+
+var _ ListAggregatorsV2APIClient = (*Client)(nil)
+
+func newServiceMetadataMiddleware_opListAggregatorsV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListAggregatorsV2",
+ }
+}
diff --git a/service/securityhub/api_op_ListAutomationRulesV2.go b/service/securityhub/api_op_ListAutomationRulesV2.go
new file mode 100644
index 00000000000..b9bf6072d82
--- /dev/null
+++ b/service/securityhub/api_op_ListAutomationRulesV2.go
@@ -0,0 +1,165 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Returns a list of automation rules and metadata for the calling account. This
+// API is in private preview and subject to change.
+func (c *Client) ListAutomationRulesV2(ctx context.Context, params *ListAutomationRulesV2Input, optFns ...func(*Options)) (*ListAutomationRulesV2Output, error) {
+ if params == nil {
+ params = &ListAutomationRulesV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListAutomationRulesV2", params, optFns, c.addOperationListAutomationRulesV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListAutomationRulesV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListAutomationRulesV2Input struct {
+
+ // The maximum number of results to return.
+ MaxResults *int32
+
+ // The token required for pagination. On your first call, set the value of this
+ // parameter to NULL . For subsequent calls, to continue listing data, set the
+ // value of this parameter to the value returned in the previous response.
+ NextToken *string
+
+ noSmithyDocumentSerde
+}
+
+type ListAutomationRulesV2Output struct {
+
+ // The pagination token to use to request the next page of results. Otherwise,
+ // this parameter is null.
+ NextToken *string
+
+ // An array of automation rules.
+ Rules []types.AutomationRulesMetadataV2
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListAutomationRulesV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListAutomationRulesV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAutomationRulesV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListAutomationRulesV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAutomationRulesV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opListAutomationRulesV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListAutomationRulesV2",
+ }
+}
diff --git a/service/securityhub/api_op_ListConnectorsV2.go b/service/securityhub/api_op_ListConnectorsV2.go
new file mode 100644
index 00000000000..0b7b76cef86
--- /dev/null
+++ b/service/securityhub/api_op_ListConnectorsV2.go
@@ -0,0 +1,171 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Grants permission to retrieve a list of connectorsV2 and their metadata for the
+// calling account. This API is in preview release and subject to change.
+func (c *Client) ListConnectorsV2(ctx context.Context, params *ListConnectorsV2Input, optFns ...func(*Options)) (*ListConnectorsV2Output, error) {
+ if params == nil {
+ params = &ListConnectorsV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "ListConnectorsV2", params, optFns, c.addOperationListConnectorsV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*ListConnectorsV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type ListConnectorsV2Input struct {
+
+ // The status for the connectorV2.
+ ConnectorStatus types.ConnectorStatus
+
+ // The maximum number of results to be returned.
+ MaxResults *int32
+
+ // The pagination token per the Amazon Web Services Pagination standard
+ NextToken *string
+
+ // The name of the third-party provider.
+ ProviderName types.ConnectorProviderName
+
+ noSmithyDocumentSerde
+}
+
+type ListConnectorsV2Output struct {
+
+ // An array of connectorV2 summaries.
+ //
+ // This member is required.
+ Connectors []types.ConnectorSummary
+
+ // The pagination token to use to request the next page of results. Otherwise,
+ // this parameter is null.
+ NextToken *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationListConnectorsV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpListConnectorsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListConnectorsV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "ListConnectorsV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListConnectorsV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opListConnectorsV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "ListConnectorsV2",
+ }
+}
diff --git a/service/securityhub/api_op_ListOrganizationAdminAccounts.go b/service/securityhub/api_op_ListOrganizationAdminAccounts.go
index ad0a6aee1c0..d908f9c8337 100644
--- a/service/securityhub/api_op_ListOrganizationAdminAccounts.go
+++ b/service/securityhub/api_op_ListOrganizationAdminAccounts.go
@@ -30,6 +30,10 @@ func (c *Client) ListOrganizationAdminAccounts(ctx context.Context, params *List
type ListOrganizationAdminAccountsInput struct {
+ // The feature where the delegated administrator account is listed. Defaults to
+ // Security Hub if not specified.
+ Feature types.SecurityHubFeature
+
// The maximum number of items to return in the response.
MaxResults *int32
@@ -47,6 +51,10 @@ type ListOrganizationAdminAccountsOutput struct {
// The list of Security Hub administrator accounts.
AdminAccounts []types.AdminAccount
+ // The feature where the delegated administrator account is listed. Defaults to
+ // Security Hub CSPM if not specified.
+ Feature types.SecurityHubFeature
+
// The pagination token to use to request the next page of results.
NextToken *string
diff --git a/service/securityhub/api_op_UpdateAggregatorV2.go b/service/securityhub/api_op_UpdateAggregatorV2.go
new file mode 100644
index 00000000000..a317e06df2a
--- /dev/null
+++ b/service/securityhub/api_op_UpdateAggregatorV2.go
@@ -0,0 +1,179 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Udpates the configuration for the Aggregator V2. This API is in private preview
+// and subject to change.
+func (c *Client) UpdateAggregatorV2(ctx context.Context, params *UpdateAggregatorV2Input, optFns ...func(*Options)) (*UpdateAggregatorV2Output, error) {
+ if params == nil {
+ params = &UpdateAggregatorV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "UpdateAggregatorV2", params, optFns, c.addOperationUpdateAggregatorV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*UpdateAggregatorV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type UpdateAggregatorV2Input struct {
+
+ // The ARN of the Aggregator V2.
+ //
+ // This member is required.
+ AggregatorV2Arn *string
+
+ // Determines how Amazon Web Services Regions should be linked to the Aggregator
+ // V2.
+ //
+ // This member is required.
+ RegionLinkingMode *string
+
+ // A list of Amazon Web Services Regions linked to the aggegation Region.
+ LinkedRegions []string
+
+ noSmithyDocumentSerde
+}
+
+type UpdateAggregatorV2Output struct {
+
+ // The Amazon Web Services Region where data is aggregated.
+ AggregationRegion *string
+
+ // The ARN of the Aggregator V2.
+ AggregatorV2Arn *string
+
+ // A list of Amazon Web Services Regions linked to the aggegation Region.
+ LinkedRegions []string
+
+ // Determines how Amazon Web Services Regions should be linked to the Aggregator
+ // V2.
+ RegionLinkingMode *string
+
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationUpdateAggregatorV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateAggregatorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateAggregatorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateAggregatorV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpUpdateAggregatorV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAggregatorV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opUpdateAggregatorV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "UpdateAggregatorV2",
+ }
+}
diff --git a/service/securityhub/api_op_UpdateAutomationRuleV2.go b/service/securityhub/api_op_UpdateAutomationRuleV2.go
new file mode 100644
index 00000000000..a0c93a6df70
--- /dev/null
+++ b/service/securityhub/api_op_UpdateAutomationRuleV2.go
@@ -0,0 +1,175 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Updates a V2 automation rule. This API is in private preview and subject to
+// change.
+func (c *Client) UpdateAutomationRuleV2(ctx context.Context, params *UpdateAutomationRuleV2Input, optFns ...func(*Options)) (*UpdateAutomationRuleV2Output, error) {
+ if params == nil {
+ params = &UpdateAutomationRuleV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "UpdateAutomationRuleV2", params, optFns, c.addOperationUpdateAutomationRuleV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*UpdateAutomationRuleV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type UpdateAutomationRuleV2Input struct {
+
+ // The ARN of the automation rule.
+ //
+ // This member is required.
+ Identifier *string
+
+ // A list of actions to be performed when the rule criteria is met.
+ Actions []types.AutomationRulesActionV2
+
+ // The filtering type and configuration of the automation rule.
+ Criteria types.Criteria
+
+ // A description of the automation rule.
+ Description *string
+
+ // The name of the automation rule.
+ RuleName *string
+
+ // Represents a value for the rule priority.
+ RuleOrder *float32
+
+ // The status of the automation rule.
+ RuleStatus types.RuleStatusV2
+
+ noSmithyDocumentSerde
+}
+
+type UpdateAutomationRuleV2Output struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationUpdateAutomationRuleV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateAutomationRuleV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateAutomationRuleV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateAutomationRuleV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpUpdateAutomationRuleV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateAutomationRuleV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opUpdateAutomationRuleV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "UpdateAutomationRuleV2",
+ }
+}
diff --git a/service/securityhub/api_op_UpdateConnectorV2.go b/service/securityhub/api_op_UpdateConnectorV2.go
new file mode 100644
index 00000000000..61697728637
--- /dev/null
+++ b/service/securityhub/api_op_UpdateConnectorV2.go
@@ -0,0 +1,166 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package securityhub
+
+import (
+ "context"
+ "fmt"
+ awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/aws/smithy-go/middleware"
+ smithyhttp "github.com/aws/smithy-go/transport/http"
+)
+
+// Grants permission to update a connectorV2 based on its id and input parameters.
+// This API is in preview release and subject to change.
+func (c *Client) UpdateConnectorV2(ctx context.Context, params *UpdateConnectorV2Input, optFns ...func(*Options)) (*UpdateConnectorV2Output, error) {
+ if params == nil {
+ params = &UpdateConnectorV2Input{}
+ }
+
+ result, metadata, err := c.invokeOperation(ctx, "UpdateConnectorV2", params, optFns, c.addOperationUpdateConnectorV2Middlewares)
+ if err != nil {
+ return nil, err
+ }
+
+ out := result.(*UpdateConnectorV2Output)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type UpdateConnectorV2Input struct {
+
+ // The UUID of the connectorV2 to identify connectorV2 resource.
+ //
+ // This member is required.
+ ConnectorId *string
+
+ // The clientSecret of ServiceNow.
+ ClientSecret *string
+
+ // The description of the connectorV2.
+ Description *string
+
+ // The third-party provider’s service configuration.
+ Provider types.ProviderUpdateConfiguration
+
+ noSmithyDocumentSerde
+}
+
+type UpdateConnectorV2Output struct {
+ // Metadata pertaining to the operation's result.
+ ResultMetadata middleware.Metadata
+
+ noSmithyDocumentSerde
+}
+
+func (c *Client) addOperationUpdateConnectorV2Middlewares(stack *middleware.Stack, options Options) (err error) {
+ if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
+ return err
+ }
+ err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateConnectorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateConnectorV2{}, middleware.After)
+ if err != nil {
+ return err
+ }
+ if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateConnectorV2"); err != nil {
+ return fmt.Errorf("add protocol finalizers: %v", err)
+ }
+
+ if err = addlegacyEndpointContextSetter(stack, options); err != nil {
+ return err
+ }
+ if err = addSetLoggerMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addClientRequestID(stack); err != nil {
+ return err
+ }
+ if err = addComputeContentLength(stack); err != nil {
+ return err
+ }
+ if err = addResolveEndpointMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addComputePayloadSHA256(stack); err != nil {
+ return err
+ }
+ if err = addRetry(stack, options); err != nil {
+ return err
+ }
+ if err = addRawResponseToMetadata(stack); err != nil {
+ return err
+ }
+ if err = addRecordResponseTiming(stack); err != nil {
+ return err
+ }
+ if err = addSpanRetryLoop(stack, options); err != nil {
+ return err
+ }
+ if err = addClientUserAgent(stack, options); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addTimeOffsetBuild(stack, c); err != nil {
+ return err
+ }
+ if err = addUserAgentRetryMode(stack, options); err != nil {
+ return err
+ }
+ if err = addCredentialSource(stack, options); err != nil {
+ return err
+ }
+ if err = addOpUpdateConnectorV2ValidationMiddleware(stack); err != nil {
+ return err
+ }
+ if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateConnectorV2(options.Region), middleware.Before); err != nil {
+ return err
+ }
+ if err = addRecursionDetection(stack); err != nil {
+ return err
+ }
+ if err = addRequestIDRetrieverMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addResponseErrorMiddleware(stack); err != nil {
+ return err
+ }
+ if err = addRequestResponseLogging(stack, options); err != nil {
+ return err
+ }
+ if err = addDisableHTTPSMiddleware(stack, options); err != nil {
+ return err
+ }
+ if err = addSpanInitializeStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanInitializeEnd(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestStart(stack); err != nil {
+ return err
+ }
+ if err = addSpanBuildRequestEnd(stack); err != nil {
+ return err
+ }
+ return nil
+}
+
+func newServiceMetadataMiddleware_opUpdateConnectorV2(region string) *awsmiddleware.RegisterServiceMetadata {
+ return &awsmiddleware.RegisterServiceMetadata{
+ Region: region,
+ ServiceID: ServiceID,
+ OperationName: "UpdateConnectorV2",
+ }
+}
diff --git a/service/securityhub/deserializers.go b/service/securityhub/deserializers.go
index 65ca5119f4a..6bc32a6c7fe 100644
--- a/service/securityhub/deserializers.go
+++ b/service/securityhub/deserializers.go
@@ -8,6 +8,8 @@ import (
"encoding/json"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws/protocol/restjson"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/document"
+ internaldocument "github.com/aws/aws-sdk-go-v2/service/securityhub/internal/document"
"github.com/aws/aws-sdk-go-v2/service/securityhub/types"
smithy "github.com/aws/smithy-go"
smithyio "github.com/aws/smithy-go/io"
@@ -1925,14 +1927,14 @@ func awsRestjson1_deserializeOpDocumentBatchUpdateFindingsOutput(v **BatchUpdate
return nil
}
-type awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations struct {
+type awsRestjson1_deserializeOpBatchUpdateFindingsV2 struct {
}
-func (*awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations) ID() string {
+func (*awsRestjson1_deserializeOpBatchUpdateFindingsV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchUpdateFindingsV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -1950,9 +1952,9 @@ func (m *awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations) Hand
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorBatchUpdateStandardsControlAssociations(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchUpdateFindingsV2(response, &metadata)
}
- output := &BatchUpdateStandardsControlAssociationsOutput{}
+ output := &BatchUpdateFindingsV2Output{}
out.Result = output
var buff [1024]byte
@@ -1973,7 +1975,7 @@ func (m *awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations) Hand
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentBatchUpdateStandardsControlAssociationsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchUpdateFindingsV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -1987,7 +1989,7 @@ func (m *awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations) Hand
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorBatchUpdateStandardsControlAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchUpdateFindingsV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2031,17 +2033,17 @@ func awsRestjson1_deserializeOpErrorBatchUpdateStandardsControlAssociations(resp
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -2053,7 +2055,7 @@ func awsRestjson1_deserializeOpErrorBatchUpdateStandardsControlAssociations(resp
}
}
-func awsRestjson1_deserializeOpDocumentBatchUpdateStandardsControlAssociationsOutput(v **BatchUpdateStandardsControlAssociationsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchUpdateFindingsV2Output(v **BatchUpdateFindingsV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2066,17 +2068,22 @@ func awsRestjson1_deserializeOpDocumentBatchUpdateStandardsControlAssociationsOu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *BatchUpdateStandardsControlAssociationsOutput
+ var sv *BatchUpdateFindingsV2Output
if *v == nil {
- sv = &BatchUpdateStandardsControlAssociationsOutput{}
+ sv = &BatchUpdateFindingsV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "UnprocessedAssociationUpdates":
- if err := awsRestjson1_deserializeDocumentUnprocessedStandardsControlAssociationUpdates(&sv.UnprocessedAssociationUpdates, value); err != nil {
+ case "ProcessedFindings":
+ if err := awsRestjson1_deserializeDocumentBatchUpdateFindingsV2ProcessedFindingsList(&sv.ProcessedFindings, value); err != nil {
+ return err
+ }
+
+ case "UnprocessedFindings":
+ if err := awsRestjson1_deserializeDocumentBatchUpdateFindingsV2UnprocessedFindingsList(&sv.UnprocessedFindings, value); err != nil {
return err
}
@@ -2089,14 +2096,14 @@ func awsRestjson1_deserializeOpDocumentBatchUpdateStandardsControlAssociationsOu
return nil
}
-type awsRestjson1_deserializeOpCreateActionTarget struct {
+type awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations struct {
}
-func (*awsRestjson1_deserializeOpCreateActionTarget) ID() string {
+func (*awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateActionTarget) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpBatchUpdateStandardsControlAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2114,9 +2121,9 @@ func (m *awsRestjson1_deserializeOpCreateActionTarget) HandleDeserialize(ctx con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateActionTarget(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorBatchUpdateStandardsControlAssociations(response, &metadata)
}
- output := &CreateActionTargetOutput{}
+ output := &BatchUpdateStandardsControlAssociationsOutput{}
out.Result = output
var buff [1024]byte
@@ -2137,7 +2144,7 @@ func (m *awsRestjson1_deserializeOpCreateActionTarget) HandleDeserialize(ctx con
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateActionTargetOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentBatchUpdateStandardsControlAssociationsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2151,7 +2158,7 @@ func (m *awsRestjson1_deserializeOpCreateActionTarget) HandleDeserialize(ctx con
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateActionTarget(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorBatchUpdateStandardsControlAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2192,6 +2199,9 @@ func awsRestjson1_deserializeOpErrorCreateActionTarget(response *smithyhttp.Resp
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -2204,9 +2214,6 @@ func awsRestjson1_deserializeOpErrorCreateActionTarget(response *smithyhttp.Resp
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceConflictException", errorCode):
- return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -2217,7 +2224,7 @@ func awsRestjson1_deserializeOpErrorCreateActionTarget(response *smithyhttp.Resp
}
}
-func awsRestjson1_deserializeOpDocumentCreateActionTargetOutput(v **CreateActionTargetOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentBatchUpdateStandardsControlAssociationsOutput(v **BatchUpdateStandardsControlAssociationsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2230,22 +2237,18 @@ func awsRestjson1_deserializeOpDocumentCreateActionTargetOutput(v **CreateAction
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateActionTargetOutput
+ var sv *BatchUpdateStandardsControlAssociationsOutput
if *v == nil {
- sv = &CreateActionTargetOutput{}
+ sv = &BatchUpdateStandardsControlAssociationsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ActionTargetArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ActionTargetArn = ptr.String(jtv)
+ case "UnprocessedAssociationUpdates":
+ if err := awsRestjson1_deserializeDocumentUnprocessedStandardsControlAssociationUpdates(&sv.UnprocessedAssociationUpdates, value); err != nil {
+ return err
}
default:
@@ -2257,14 +2260,14 @@ func awsRestjson1_deserializeOpDocumentCreateActionTargetOutput(v **CreateAction
return nil
}
-type awsRestjson1_deserializeOpCreateAutomationRule struct {
+type awsRestjson1_deserializeOpConnectorRegistrationsV2 struct {
}
-func (*awsRestjson1_deserializeOpCreateAutomationRule) ID() string {
+func (*awsRestjson1_deserializeOpConnectorRegistrationsV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateAutomationRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpConnectorRegistrationsV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2282,9 +2285,9 @@ func (m *awsRestjson1_deserializeOpCreateAutomationRule) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateAutomationRule(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorConnectorRegistrationsV2(response, &metadata)
}
- output := &CreateAutomationRuleOutput{}
+ output := &ConnectorRegistrationsV2Output{}
out.Result = output
var buff [1024]byte
@@ -2305,7 +2308,7 @@ func (m *awsRestjson1_deserializeOpCreateAutomationRule) HandleDeserialize(ctx c
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateAutomationRuleOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentConnectorRegistrationsV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2319,7 +2322,7 @@ func (m *awsRestjson1_deserializeOpCreateAutomationRule) HandleDeserialize(ctx c
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateAutomationRule(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorConnectorRegistrationsV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2363,17 +2366,20 @@ func awsRestjson1_deserializeOpErrorCreateAutomationRule(response *smithyhttp.Re
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -2385,7 +2391,7 @@ func awsRestjson1_deserializeOpErrorCreateAutomationRule(response *smithyhttp.Re
}
}
-func awsRestjson1_deserializeOpDocumentCreateAutomationRuleOutput(v **CreateAutomationRuleOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentConnectorRegistrationsV2Output(v **ConnectorRegistrationsV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2398,22 +2404,31 @@ func awsRestjson1_deserializeOpDocumentCreateAutomationRuleOutput(v **CreateAuto
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateAutomationRuleOutput
+ var sv *ConnectorRegistrationsV2Output
if *v == nil {
- sv = &CreateAutomationRuleOutput{}
+ sv = &ConnectorRegistrationsV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "RuleArn":
+ case "ConnectorArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.RuleArn = ptr.String(jtv)
+ sv.ConnectorArn = ptr.String(jtv)
+ }
+
+ case "ConnectorId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConnectorId = ptr.String(jtv)
}
default:
@@ -2425,14 +2440,14 @@ func awsRestjson1_deserializeOpDocumentCreateAutomationRuleOutput(v **CreateAuto
return nil
}
-type awsRestjson1_deserializeOpCreateConfigurationPolicy struct {
+type awsRestjson1_deserializeOpCreateActionTarget struct {
}
-func (*awsRestjson1_deserializeOpCreateConfigurationPolicy) ID() string {
+func (*awsRestjson1_deserializeOpCreateActionTarget) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateConfigurationPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateActionTarget) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2450,9 +2465,9 @@ func (m *awsRestjson1_deserializeOpCreateConfigurationPolicy) HandleDeserialize(
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateConfigurationPolicy(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateActionTarget(response, &metadata)
}
- output := &CreateConfigurationPolicyOutput{}
+ output := &CreateActionTargetOutput{}
out.Result = output
var buff [1024]byte
@@ -2473,7 +2488,7 @@ func (m *awsRestjson1_deserializeOpCreateConfigurationPolicy) HandleDeserialize(
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateConfigurationPolicyOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateActionTargetOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2487,7 +2502,7 @@ func (m *awsRestjson1_deserializeOpCreateConfigurationPolicy) HandleDeserialize(
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateConfigurationPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateActionTarget(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2528,9 +2543,6 @@ func awsRestjson1_deserializeOpErrorCreateConfigurationPolicy(response *smithyht
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -2556,7 +2568,7 @@ func awsRestjson1_deserializeOpErrorCreateConfigurationPolicy(response *smithyht
}
}
-func awsRestjson1_deserializeOpDocumentCreateConfigurationPolicyOutput(v **CreateConfigurationPolicyOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateActionTargetOutput(v **CreateActionTargetOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2569,80 +2581,22 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationPolicyOutput(v **Creat
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateConfigurationPolicyOutput
+ var sv *CreateActionTargetOutput
if *v == nil {
- sv = &CreateConfigurationPolicyOutput{}
+ sv = &CreateActionTargetOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Arn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Arn = ptr.String(jtv)
- }
-
- case "ConfigurationPolicy":
- if err := awsRestjson1_deserializeDocumentPolicy(&sv.ConfigurationPolicy, value); err != nil {
- return err
- }
-
- case "CreatedAt":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
- }
- t, err := smithytime.ParseDateTime(jtv)
- if err != nil {
- return err
- }
- sv.CreatedAt = ptr.Time(t)
- }
-
- case "Description":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Description = ptr.String(jtv)
- }
-
- case "Id":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Id = ptr.String(jtv)
- }
-
- case "Name":
+ case "ActionTargetArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Name = ptr.String(jtv)
- }
-
- case "UpdatedAt":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
- }
- t, err := smithytime.ParseDateTime(jtv)
- if err != nil {
- return err
- }
- sv.UpdatedAt = ptr.Time(t)
+ sv.ActionTargetArn = ptr.String(jtv)
}
default:
@@ -2654,14 +2608,14 @@ func awsRestjson1_deserializeOpDocumentCreateConfigurationPolicyOutput(v **Creat
return nil
}
-type awsRestjson1_deserializeOpCreateFindingAggregator struct {
+type awsRestjson1_deserializeOpCreateAggregatorV2 struct {
}
-func (*awsRestjson1_deserializeOpCreateFindingAggregator) ID() string {
+func (*awsRestjson1_deserializeOpCreateAggregatorV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateFindingAggregator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateAggregatorV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2679,9 +2633,9 @@ func (m *awsRestjson1_deserializeOpCreateFindingAggregator) HandleDeserialize(ct
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateFindingAggregator(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateAggregatorV2(response, &metadata)
}
- output := &CreateFindingAggregatorOutput{}
+ output := &CreateAggregatorV2Output{}
out.Result = output
var buff [1024]byte
@@ -2702,7 +2656,7 @@ func (m *awsRestjson1_deserializeOpCreateFindingAggregator) HandleDeserialize(ct
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateFindingAggregatorOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateAggregatorV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2716,7 +2670,7 @@ func (m *awsRestjson1_deserializeOpCreateFindingAggregator) HandleDeserialize(ct
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateFindingAggregator(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateAggregatorV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2760,17 +2714,20 @@ func awsRestjson1_deserializeOpErrorCreateFindingAggregator(response *smithyhttp
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -2782,7 +2739,7 @@ func awsRestjson1_deserializeOpErrorCreateFindingAggregator(response *smithyhttp
}
}
-func awsRestjson1_deserializeOpDocumentCreateFindingAggregatorOutput(v **CreateFindingAggregatorOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateAggregatorV2Output(v **CreateAggregatorV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2795,31 +2752,36 @@ func awsRestjson1_deserializeOpDocumentCreateFindingAggregatorOutput(v **CreateF
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateFindingAggregatorOutput
+ var sv *CreateAggregatorV2Output
if *v == nil {
- sv = &CreateFindingAggregatorOutput{}
+ sv = &CreateAggregatorV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "FindingAggregationRegion":
+ case "AggregationRegion":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.FindingAggregationRegion = ptr.String(jtv)
+ sv.AggregationRegion = ptr.String(jtv)
}
- case "FindingAggregatorArn":
+ case "AggregatorV2Arn":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.FindingAggregatorArn = ptr.String(jtv)
+ sv.AggregatorV2Arn = ptr.String(jtv)
+ }
+
+ case "LinkedRegions":
+ if err := awsRestjson1_deserializeDocumentStringList(&sv.LinkedRegions, value); err != nil {
+ return err
}
case "RegionLinkingMode":
@@ -2831,11 +2793,6 @@ func awsRestjson1_deserializeOpDocumentCreateFindingAggregatorOutput(v **CreateF
sv.RegionLinkingMode = ptr.String(jtv)
}
- case "Regions":
- if err := awsRestjson1_deserializeDocumentStringList(&sv.Regions, value); err != nil {
- return err
- }
-
default:
_, _ = key, value
@@ -2845,14 +2802,14 @@ func awsRestjson1_deserializeOpDocumentCreateFindingAggregatorOutput(v **CreateF
return nil
}
-type awsRestjson1_deserializeOpCreateInsight struct {
+type awsRestjson1_deserializeOpCreateAutomationRule struct {
}
-func (*awsRestjson1_deserializeOpCreateInsight) ID() string {
+func (*awsRestjson1_deserializeOpCreateAutomationRule) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateInsight) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateAutomationRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -2870,9 +2827,9 @@ func (m *awsRestjson1_deserializeOpCreateInsight) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateInsight(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateAutomationRule(response, &metadata)
}
- output := &CreateInsightOutput{}
+ output := &CreateAutomationRuleOutput{}
out.Result = output
var buff [1024]byte
@@ -2893,7 +2850,7 @@ func (m *awsRestjson1_deserializeOpCreateInsight) HandleDeserialize(ctx context.
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateInsightOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateAutomationRuleOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -2907,7 +2864,7 @@ func (m *awsRestjson1_deserializeOpCreateInsight) HandleDeserialize(ctx context.
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateInsight(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateAutomationRule(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -2948,6 +2905,9 @@ func awsRestjson1_deserializeOpErrorCreateInsight(response *smithyhttp.Response,
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -2960,9 +2920,6 @@ func awsRestjson1_deserializeOpErrorCreateInsight(response *smithyhttp.Response,
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceConflictException", errorCode):
- return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -2973,7 +2930,7 @@ func awsRestjson1_deserializeOpErrorCreateInsight(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentCreateInsightOutput(v **CreateInsightOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateAutomationRuleOutput(v **CreateAutomationRuleOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -2986,22 +2943,22 @@ func awsRestjson1_deserializeOpDocumentCreateInsightOutput(v **CreateInsightOutp
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateInsightOutput
+ var sv *CreateAutomationRuleOutput
if *v == nil {
- sv = &CreateInsightOutput{}
+ sv = &CreateAutomationRuleOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "InsightArn":
+ case "RuleArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.InsightArn = ptr.String(jtv)
+ sv.RuleArn = ptr.String(jtv)
}
default:
@@ -3013,14 +2970,14 @@ func awsRestjson1_deserializeOpDocumentCreateInsightOutput(v **CreateInsightOutp
return nil
}
-type awsRestjson1_deserializeOpCreateMembers struct {
+type awsRestjson1_deserializeOpCreateAutomationRuleV2 struct {
}
-func (*awsRestjson1_deserializeOpCreateMembers) ID() string {
+func (*awsRestjson1_deserializeOpCreateAutomationRuleV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpCreateMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateAutomationRuleV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3038,9 +2995,9 @@ func (m *awsRestjson1_deserializeOpCreateMembers) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorCreateMembers(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateAutomationRuleV2(response, &metadata)
}
- output := &CreateMembersOutput{}
+ output := &CreateAutomationRuleV2Output{}
out.Result = output
var buff [1024]byte
@@ -3061,7 +3018,7 @@ func (m *awsRestjson1_deserializeOpCreateMembers) HandleDeserialize(ctx context.
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentCreateMembersOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateAutomationRuleV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3075,7 +3032,7 @@ func (m *awsRestjson1_deserializeOpCreateMembers) HandleDeserialize(ctx context.
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorCreateMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateAutomationRuleV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3119,20 +3076,17 @@ func awsRestjson1_deserializeOpErrorCreateMembers(response *smithyhttp.Response,
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("ResourceConflictException", errorCode):
- return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -3144,7 +3098,7 @@ func awsRestjson1_deserializeOpErrorCreateMembers(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentCreateMembersOutput(v **CreateMembersOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateAutomationRuleV2Output(v **CreateAutomationRuleV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3157,18 +3111,31 @@ func awsRestjson1_deserializeOpDocumentCreateMembersOutput(v **CreateMembersOutp
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *CreateMembersOutput
+ var sv *CreateAutomationRuleV2Output
if *v == nil {
- sv = &CreateMembersOutput{}
+ sv = &CreateAutomationRuleV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "UnprocessedAccounts":
- if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
- return err
+ case "RuleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RuleArn = ptr.String(jtv)
+ }
+
+ case "RuleId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RuleId = ptr.String(jtv)
}
default:
@@ -3180,14 +3147,14 @@ func awsRestjson1_deserializeOpDocumentCreateMembersOutput(v **CreateMembersOutp
return nil
}
-type awsRestjson1_deserializeOpDeclineInvitations struct {
+type awsRestjson1_deserializeOpCreateConfigurationPolicy struct {
}
-func (*awsRestjson1_deserializeOpDeclineInvitations) ID() string {
+func (*awsRestjson1_deserializeOpCreateConfigurationPolicy) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDeclineInvitations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateConfigurationPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3205,9 +3172,9 @@ func (m *awsRestjson1_deserializeOpDeclineInvitations) HandleDeserialize(ctx con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeclineInvitations(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateConfigurationPolicy(response, &metadata)
}
- output := &DeclineInvitationsOutput{}
+ output := &CreateConfigurationPolicyOutput{}
out.Result = output
var buff [1024]byte
@@ -3228,7 +3195,7 @@ func (m *awsRestjson1_deserializeOpDeclineInvitations) HandleDeserialize(ctx con
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDeclineInvitationsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateConfigurationPolicyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3242,7 +3209,7 @@ func (m *awsRestjson1_deserializeOpDeclineInvitations) HandleDeserialize(ctx con
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDeclineInvitations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateConfigurationPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3283,6 +3250,9 @@ func awsRestjson1_deserializeOpErrorDeclineInvitations(response *smithyhttp.Resp
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -3292,8 +3262,11 @@ func awsRestjson1_deserializeOpErrorDeclineInvitations(response *smithyhttp.Resp
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceConflictException", errorCode):
+ return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -3305,7 +3278,7 @@ func awsRestjson1_deserializeOpErrorDeclineInvitations(response *smithyhttp.Resp
}
}
-func awsRestjson1_deserializeOpDocumentDeclineInvitationsOutput(v **DeclineInvitationsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateConfigurationPolicyOutput(v **CreateConfigurationPolicyOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3318,20 +3291,82 @@ func awsRestjson1_deserializeOpDocumentDeclineInvitationsOutput(v **DeclineInvit
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DeclineInvitationsOutput
+ var sv *CreateConfigurationPolicyOutput
if *v == nil {
- sv = &DeclineInvitationsOutput{}
+ sv = &CreateConfigurationPolicyOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "UnprocessedAccounts":
- if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "ConfigurationPolicy":
+ if err := awsRestjson1_deserializeDocumentPolicy(&sv.ConfigurationPolicy, value); err != nil {
return err
}
+ case "CreatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "Id":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Id = ptr.String(jtv)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "UpdatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(t)
+ }
+
default:
_, _ = key, value
@@ -3341,14 +3376,14 @@ func awsRestjson1_deserializeOpDocumentDeclineInvitationsOutput(v **DeclineInvit
return nil
}
-type awsRestjson1_deserializeOpDeleteActionTarget struct {
+type awsRestjson1_deserializeOpCreateConnectorV2 struct {
}
-func (*awsRestjson1_deserializeOpDeleteActionTarget) ID() string {
+func (*awsRestjson1_deserializeOpCreateConnectorV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDeleteActionTarget) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateConnectorV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3366,9 +3401,9 @@ func (m *awsRestjson1_deserializeOpDeleteActionTarget) HandleDeserialize(ctx con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeleteActionTarget(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateConnectorV2(response, &metadata)
}
- output := &DeleteActionTargetOutput{}
+ output := &CreateConnectorV2Output{}
out.Result = output
var buff [1024]byte
@@ -3389,7 +3424,7 @@ func (m *awsRestjson1_deserializeOpDeleteActionTarget) HandleDeserialize(ctx con
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDeleteActionTargetOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateConnectorV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3403,7 +3438,7 @@ func (m *awsRestjson1_deserializeOpDeleteActionTarget) HandleDeserialize(ctx con
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDeleteActionTarget(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateConnectorV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3444,18 +3479,24 @@ func awsRestjson1_deserializeOpErrorDeleteActionTarget(response *smithyhttp.Resp
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -3466,7 +3507,7 @@ func awsRestjson1_deserializeOpErrorDeleteActionTarget(response *smithyhttp.Resp
}
}
-func awsRestjson1_deserializeOpDocumentDeleteActionTargetOutput(v **DeleteActionTargetOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateConnectorV2Output(v **CreateConnectorV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3479,22 +3520,40 @@ func awsRestjson1_deserializeOpDocumentDeleteActionTargetOutput(v **DeleteAction
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DeleteActionTargetOutput
+ var sv *CreateConnectorV2Output
if *v == nil {
- sv = &DeleteActionTargetOutput{}
+ sv = &CreateConnectorV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ActionTargetArn":
+ case "AuthUrl":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.ActionTargetArn = ptr.String(jtv)
+ sv.AuthUrl = ptr.String(jtv)
+ }
+
+ case "ConnectorArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConnectorArn = ptr.String(jtv)
+ }
+
+ case "ConnectorId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConnectorId = ptr.String(jtv)
}
default:
@@ -3506,14 +3565,14 @@ func awsRestjson1_deserializeOpDocumentDeleteActionTargetOutput(v **DeleteAction
return nil
}
-type awsRestjson1_deserializeOpDeleteConfigurationPolicy struct {
+type awsRestjson1_deserializeOpCreateFindingAggregator struct {
}
-func (*awsRestjson1_deserializeOpDeleteConfigurationPolicy) ID() string {
+func (*awsRestjson1_deserializeOpCreateFindingAggregator) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDeleteConfigurationPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateFindingAggregator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3531,122 +3590,44 @@ func (m *awsRestjson1_deserializeOpDeleteConfigurationPolicy) HandleDeserialize(
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfigurationPolicy(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateFindingAggregator(response, &metadata)
}
- output := &DeleteConfigurationPolicyOutput{}
+ output := &CreateFindingAggregatorOutput{}
out.Result = output
- span.End()
- return out, metadata, err
-}
-
-func awsRestjson1_deserializeOpErrorDeleteConfigurationPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
- var errorBuffer bytes.Buffer
- if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
- }
- errorBody := bytes.NewReader(errorBuffer.Bytes())
-
- errorCode := "UnknownError"
- errorMessage := errorCode
-
- headerCode := response.Header.Get("X-Amzn-ErrorType")
- if len(headerCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(headerCode)
- }
-
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
- body := io.TeeReader(errorBody, ringBuffer)
+ body := io.TeeReader(response.Body, ringBuffer)
+
decoder := json.NewDecoder(body)
decoder.UseNumber()
- jsonCode, message, err := restjson.GetErrorInfo(decoder)
- if err != nil {
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
- return err
- }
-
- errorBody.Seek(0, io.SeekStart)
- if len(headerCode) == 0 && len(jsonCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(jsonCode)
- }
- if len(message) != 0 {
- errorMessage = message
- }
-
- switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
-
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
-
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
- case strings.EqualFold("ResourceConflictException", errorCode):
- return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
-
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
- default:
- genericError := &smithy.GenericAPIError{
- Code: errorCode,
- Message: errorMessage,
- }
- return genericError
-
- }
-}
-
-type awsRestjson1_deserializeOpDeleteFindingAggregator struct {
-}
-
-func (*awsRestjson1_deserializeOpDeleteFindingAggregator) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsRestjson1_deserializeOpDeleteFindingAggregator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, in)
- if err != nil {
return out, metadata, err
}
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeleteFindingAggregator(response, &metadata)
+ err = awsRestjson1_deserializeOpDocumentCreateFindingAggregatorOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
}
- output := &DeleteFindingAggregatorOutput{}
- out.Result = output
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDeleteFindingAggregator(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateFindingAggregator(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3702,9 +3683,6 @@ func awsRestjson1_deserializeOpErrorDeleteFindingAggregator(response *smithyhttp
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -3715,14 +3693,77 @@ func awsRestjson1_deserializeOpErrorDeleteFindingAggregator(response *smithyhttp
}
}
-type awsRestjson1_deserializeOpDeleteInsight struct {
+func awsRestjson1_deserializeOpDocumentCreateFindingAggregatorOutput(v **CreateFindingAggregatorOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *CreateFindingAggregatorOutput
+ if *v == nil {
+ sv = &CreateFindingAggregatorOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "FindingAggregationRegion":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.FindingAggregationRegion = ptr.String(jtv)
+ }
+
+ case "FindingAggregatorArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.FindingAggregatorArn = ptr.String(jtv)
+ }
+
+ case "RegionLinkingMode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RegionLinkingMode = ptr.String(jtv)
+ }
+
+ case "Regions":
+ if err := awsRestjson1_deserializeDocumentStringList(&sv.Regions, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpDeleteInsight) ID() string {
+type awsRestjson1_deserializeOpCreateInsight struct {
+}
+
+func (*awsRestjson1_deserializeOpCreateInsight) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDeleteInsight) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateInsight) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3740,9 +3781,9 @@ func (m *awsRestjson1_deserializeOpDeleteInsight) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeleteInsight(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateInsight(response, &metadata)
}
- output := &DeleteInsightOutput{}
+ output := &CreateInsightOutput{}
out.Result = output
var buff [1024]byte
@@ -3763,7 +3804,7 @@ func (m *awsRestjson1_deserializeOpDeleteInsight) HandleDeserialize(ctx context.
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDeleteInsightOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateInsightOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3777,7 +3818,7 @@ func (m *awsRestjson1_deserializeOpDeleteInsight) HandleDeserialize(ctx context.
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDeleteInsight(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateInsight(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3830,8 +3871,8 @@ func awsRestjson1_deserializeOpErrorDeleteInsight(response *smithyhttp.Response,
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ResourceConflictException", errorCode):
+ return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -3843,7 +3884,7 @@ func awsRestjson1_deserializeOpErrorDeleteInsight(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentDeleteInsightOutput(v **DeleteInsightOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateInsightOutput(v **CreateInsightOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -3856,9 +3897,9 @@ func awsRestjson1_deserializeOpDocumentDeleteInsightOutput(v **DeleteInsightOutp
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DeleteInsightOutput
+ var sv *CreateInsightOutput
if *v == nil {
- sv = &DeleteInsightOutput{}
+ sv = &CreateInsightOutput{}
} else {
sv = *v
}
@@ -3883,14 +3924,14 @@ func awsRestjson1_deserializeOpDocumentDeleteInsightOutput(v **DeleteInsightOutp
return nil
}
-type awsRestjson1_deserializeOpDeleteInvitations struct {
+type awsRestjson1_deserializeOpCreateMembers struct {
}
-func (*awsRestjson1_deserializeOpDeleteInvitations) ID() string {
+func (*awsRestjson1_deserializeOpCreateMembers) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDeleteInvitations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -3908,9 +3949,9 @@ func (m *awsRestjson1_deserializeOpDeleteInvitations) HandleDeserialize(ctx cont
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeleteInvitations(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateMembers(response, &metadata)
}
- output := &DeleteInvitationsOutput{}
+ output := &CreateMembersOutput{}
out.Result = output
var buff [1024]byte
@@ -3931,7 +3972,7 @@ func (m *awsRestjson1_deserializeOpDeleteInvitations) HandleDeserialize(ctx cont
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDeleteInvitationsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateMembersOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -3945,7 +3986,7 @@ func (m *awsRestjson1_deserializeOpDeleteInvitations) HandleDeserialize(ctx cont
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDeleteInvitations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -3986,6 +4027,9 @@ func awsRestjson1_deserializeOpErrorDeleteInvitations(response *smithyhttp.Respo
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -3998,8 +4042,8 @@ func awsRestjson1_deserializeOpErrorDeleteInvitations(response *smithyhttp.Respo
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ResourceConflictException", errorCode):
+ return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -4011,7 +4055,7 @@ func awsRestjson1_deserializeOpErrorDeleteInvitations(response *smithyhttp.Respo
}
}
-func awsRestjson1_deserializeOpDocumentDeleteInvitationsOutput(v **DeleteInvitationsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateMembersOutput(v **CreateMembersOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4024,9 +4068,9 @@ func awsRestjson1_deserializeOpDocumentDeleteInvitationsOutput(v **DeleteInvitat
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DeleteInvitationsOutput
+ var sv *CreateMembersOutput
if *v == nil {
- sv = &DeleteInvitationsOutput{}
+ sv = &CreateMembersOutput{}
} else {
sv = *v
}
@@ -4047,14 +4091,14 @@ func awsRestjson1_deserializeOpDocumentDeleteInvitationsOutput(v **DeleteInvitat
return nil
}
-type awsRestjson1_deserializeOpDeleteMembers struct {
+type awsRestjson1_deserializeOpCreateTicketV2 struct {
}
-func (*awsRestjson1_deserializeOpDeleteMembers) ID() string {
+func (*awsRestjson1_deserializeOpCreateTicketV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDeleteMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpCreateTicketV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4072,9 +4116,9 @@ func (m *awsRestjson1_deserializeOpDeleteMembers) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDeleteMembers(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorCreateTicketV2(response, &metadata)
}
- output := &DeleteMembersOutput{}
+ output := &CreateTicketV2Output{}
out.Result = output
var buff [1024]byte
@@ -4095,7 +4139,7 @@ func (m *awsRestjson1_deserializeOpDeleteMembers) HandleDeserialize(ctx context.
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDeleteMembersOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentCreateTicketV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4109,7 +4153,7 @@ func (m *awsRestjson1_deserializeOpDeleteMembers) HandleDeserialize(ctx context.
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDeleteMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorCreateTicketV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4150,21 +4194,24 @@ func awsRestjson1_deserializeOpErrorDeleteMembers(response *smithyhttp.Response,
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -4175,7 +4222,7 @@ func awsRestjson1_deserializeOpErrorDeleteMembers(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentDeleteMembersOutput(v **DeleteMembersOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentCreateTicketV2Output(v **CreateTicketV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4188,18 +4235,31 @@ func awsRestjson1_deserializeOpDocumentDeleteMembersOutput(v **DeleteMembersOutp
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DeleteMembersOutput
+ var sv *CreateTicketV2Output
if *v == nil {
- sv = &DeleteMembersOutput{}
+ sv = &CreateTicketV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "UnprocessedAccounts":
- if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
- return err
+ case "TicketId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.TicketId = ptr.String(jtv)
+ }
+
+ case "TicketSrcUrl":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.TicketSrcUrl = ptr.String(jtv)
}
default:
@@ -4211,14 +4271,14 @@ func awsRestjson1_deserializeOpDocumentDeleteMembersOutput(v **DeleteMembersOutp
return nil
}
-type awsRestjson1_deserializeOpDescribeActionTargets struct {
+type awsRestjson1_deserializeOpDeclineInvitations struct {
}
-func (*awsRestjson1_deserializeOpDescribeActionTargets) ID() string {
+func (*awsRestjson1_deserializeOpDeclineInvitations) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDescribeActionTargets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeclineInvitations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4236,9 +4296,9 @@ func (m *awsRestjson1_deserializeOpDescribeActionTargets) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDescribeActionTargets(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeclineInvitations(response, &metadata)
}
- output := &DescribeActionTargetsOutput{}
+ output := &DeclineInvitationsOutput{}
out.Result = output
var buff [1024]byte
@@ -4259,7 +4319,7 @@ func (m *awsRestjson1_deserializeOpDescribeActionTargets) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDescribeActionTargetsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDeclineInvitationsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4273,7 +4333,7 @@ func (m *awsRestjson1_deserializeOpDescribeActionTargets) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDescribeActionTargets(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeclineInvitations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4336,7 +4396,7 @@ func awsRestjson1_deserializeOpErrorDescribeActionTargets(response *smithyhttp.R
}
}
-func awsRestjson1_deserializeOpDocumentDescribeActionTargetsOutput(v **DescribeActionTargetsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDeclineInvitationsOutput(v **DeclineInvitationsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4349,29 +4409,20 @@ func awsRestjson1_deserializeOpDocumentDescribeActionTargetsOutput(v **DescribeA
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DescribeActionTargetsOutput
+ var sv *DeclineInvitationsOutput
if *v == nil {
- sv = &DescribeActionTargetsOutput{}
+ sv = &DeclineInvitationsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ActionTargets":
- if err := awsRestjson1_deserializeDocumentActionTargetList(&sv.ActionTargets, value); err != nil {
+ case "UnprocessedAccounts":
+ if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
return err
}
- case "NextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
default:
_, _ = key, value
@@ -4381,14 +4432,14 @@ func awsRestjson1_deserializeOpDocumentDescribeActionTargetsOutput(v **DescribeA
return nil
}
-type awsRestjson1_deserializeOpDescribeHub struct {
+type awsRestjson1_deserializeOpDeleteActionTarget struct {
}
-func (*awsRestjson1_deserializeOpDescribeHub) ID() string {
+func (*awsRestjson1_deserializeOpDeleteActionTarget) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDescribeHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteActionTarget) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4406,9 +4457,9 @@ func (m *awsRestjson1_deserializeOpDescribeHub) HandleDeserialize(ctx context.Co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDescribeHub(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteActionTarget(response, &metadata)
}
- output := &DescribeHubOutput{}
+ output := &DeleteActionTargetOutput{}
out.Result = output
var buff [1024]byte
@@ -4429,7 +4480,7 @@ func (m *awsRestjson1_deserializeOpDescribeHub) HandleDeserialize(ctx context.Co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentDescribeHubOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDeleteActionTargetOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -4443,7 +4494,7 @@ func (m *awsRestjson1_deserializeOpDescribeHub) HandleDeserialize(ctx context.Co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDescribeHub(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteActionTarget(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4493,9 +4544,6 @@ func awsRestjson1_deserializeOpErrorDescribeHub(response *smithyhttp.Response, m
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -4509,7 +4557,7 @@ func awsRestjson1_deserializeOpErrorDescribeHub(response *smithyhttp.Response, m
}
}
-func awsRestjson1_deserializeOpDocumentDescribeHubOutput(v **DescribeHubOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDeleteActionTargetOutput(v **DeleteActionTargetOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -4522,49 +4570,22 @@ func awsRestjson1_deserializeOpDocumentDescribeHubOutput(v **DescribeHubOutput,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *DescribeHubOutput
+ var sv *DeleteActionTargetOutput
if *v == nil {
- sv = &DescribeHubOutput{}
+ sv = &DeleteActionTargetOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "AutoEnableControls":
- if value != nil {
- jtv, ok := value.(bool)
- if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
- }
- sv.AutoEnableControls = ptr.Bool(jtv)
- }
-
- case "ControlFindingGenerator":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ControlFindingGenerator to be of type string, got %T instead", value)
- }
- sv.ControlFindingGenerator = types.ControlFindingGenerator(jtv)
- }
-
- case "HubArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.HubArn = ptr.String(jtv)
- }
-
- case "SubscribedAt":
+ case "ActionTargetArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.SubscribedAt = ptr.String(jtv)
+ sv.ActionTargetArn = ptr.String(jtv)
}
default:
@@ -4576,14 +4597,14 @@ func awsRestjson1_deserializeOpDocumentDescribeHubOutput(v **DescribeHubOutput,
return nil
}
-type awsRestjson1_deserializeOpDescribeOrganizationConfiguration struct {
+type awsRestjson1_deserializeOpDeleteAggregatorV2 struct {
}
-func (*awsRestjson1_deserializeOpDescribeOrganizationConfiguration) ID() string {
+func (*awsRestjson1_deserializeOpDeleteAggregatorV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDescribeOrganizationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteAggregatorV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4601,44 +4622,16 @@ func (m *awsRestjson1_deserializeOpDescribeOrganizationConfiguration) HandleDese
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteAggregatorV2(response, &metadata)
}
- output := &DescribeOrganizationConfigurationOutput{}
+ output := &DeleteAggregatorV2Output{}
out.Result = output
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteAggregatorV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4679,17 +4672,23 @@ func awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response *
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -4701,77 +4700,14 @@ func awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response *
}
}
-func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v **DescribeOrganizationConfigurationOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *DescribeOrganizationConfigurationOutput
- if *v == nil {
- sv = &DescribeOrganizationConfigurationOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "AutoEnable":
- if value != nil {
- jtv, ok := value.(bool)
- if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
- }
- sv.AutoEnable = ptr.Bool(jtv)
- }
-
- case "AutoEnableStandards":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AutoEnableStandards to be of type string, got %T instead", value)
- }
- sv.AutoEnableStandards = types.AutoEnableStandards(jtv)
- }
-
- case "MemberAccountLimitReached":
- if value != nil {
- jtv, ok := value.(bool)
- if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
- }
- sv.MemberAccountLimitReached = ptr.Bool(jtv)
- }
-
- case "OrganizationConfiguration":
- if err := awsRestjson1_deserializeDocumentOrganizationConfiguration(&sv.OrganizationConfiguration, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpDescribeProducts struct {
+type awsRestjson1_deserializeOpDeleteAutomationRuleV2 struct {
}
-func (*awsRestjson1_deserializeOpDescribeProducts) ID() string {
+func (*awsRestjson1_deserializeOpDeleteAutomationRuleV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDescribeProducts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteAutomationRuleV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4789,44 +4725,16 @@ func (m *awsRestjson1_deserializeOpDescribeProducts) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDescribeProducts(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteAutomationRuleV2(response, &metadata)
}
- output := &DescribeProductsOutput{}
+ output := &DeleteAutomationRuleV2Output{}
out.Result = output
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentDescribeProductsOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDescribeProducts(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteAutomationRuleV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -4867,17 +4775,23 @@ func awsRestjson1_deserializeOpErrorDescribeProducts(response *smithyhttp.Respon
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -4889,59 +4803,14 @@ func awsRestjson1_deserializeOpErrorDescribeProducts(response *smithyhttp.Respon
}
}
-func awsRestjson1_deserializeOpDocumentDescribeProductsOutput(v **DescribeProductsOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *DescribeProductsOutput
- if *v == nil {
- sv = &DescribeProductsOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "NextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
- case "Products":
- if err := awsRestjson1_deserializeDocumentProductsList(&sv.Products, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpDescribeStandards struct {
+type awsRestjson1_deserializeOpDeleteConfigurationPolicy struct {
}
-func (*awsRestjson1_deserializeOpDescribeStandards) ID() string {
+func (*awsRestjson1_deserializeOpDeleteConfigurationPolicy) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDescribeStandards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteConfigurationPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -4959,44 +4828,16 @@ func (m *awsRestjson1_deserializeOpDescribeStandards) HandleDeserialize(ctx cont
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDescribeStandards(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteConfigurationPolicy(response, &metadata)
}
- output := &DescribeStandardsOutput{}
+ output := &DeleteConfigurationPolicyOutput{}
out.Result = output
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentDescribeStandardsOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDescribeStandards(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteConfigurationPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5037,6 +4878,9 @@ func awsRestjson1_deserializeOpErrorDescribeStandards(response *smithyhttp.Respo
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -5046,6 +4890,15 @@ func awsRestjson1_deserializeOpErrorDescribeStandards(response *smithyhttp.Respo
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceConflictException", errorCode):
+ return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -5056,59 +4909,14 @@ func awsRestjson1_deserializeOpErrorDescribeStandards(response *smithyhttp.Respo
}
}
-func awsRestjson1_deserializeOpDocumentDescribeStandardsOutput(v **DescribeStandardsOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *DescribeStandardsOutput
- if *v == nil {
- sv = &DescribeStandardsOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "NextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
- case "Standards":
- if err := awsRestjson1_deserializeDocumentStandards(&sv.Standards, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpDescribeStandardsControls struct {
+type awsRestjson1_deserializeOpDeleteConnectorV2 struct {
}
-func (*awsRestjson1_deserializeOpDescribeStandardsControls) ID() string {
+func (*awsRestjson1_deserializeOpDeleteConnectorV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDescribeStandardsControls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteConnectorV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5126,44 +4934,16 @@ func (m *awsRestjson1_deserializeOpDescribeStandardsControls) HandleDeserialize(
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDescribeStandardsControls(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteConnectorV2(response, &metadata)
}
- output := &DescribeStandardsControlsOutput{}
+ output := &DeleteConnectorV2Output{}
out.Result = output
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentDescribeStandardsControlsOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDescribeStandardsControls(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteConnectorV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5204,18 +4984,24 @@ func awsRestjson1_deserializeOpErrorDescribeStandardsControls(response *smithyht
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -5226,59 +5012,14 @@ func awsRestjson1_deserializeOpErrorDescribeStandardsControls(response *smithyht
}
}
-func awsRestjson1_deserializeOpDocumentDescribeStandardsControlsOutput(v **DescribeStandardsControlsOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *DescribeStandardsControlsOutput
- if *v == nil {
- sv = &DescribeStandardsControlsOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "Controls":
- if err := awsRestjson1_deserializeDocumentStandardsControls(&sv.Controls, value); err != nil {
- return err
- }
-
- case "NextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpDisableImportFindingsForProduct struct {
+type awsRestjson1_deserializeOpDeleteFindingAggregator struct {
}
-func (*awsRestjson1_deserializeOpDisableImportFindingsForProduct) ID() string {
+func (*awsRestjson1_deserializeOpDeleteFindingAggregator) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisableImportFindingsForProduct) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteFindingAggregator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5296,16 +5037,16 @@ func (m *awsRestjson1_deserializeOpDisableImportFindingsForProduct) HandleDeseri
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisableImportFindingsForProduct(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteFindingAggregator(response, &metadata)
}
- output := &DisableImportFindingsForProductOutput{}
+ output := &DeleteFindingAggregatorOutput{}
out.Result = output
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisableImportFindingsForProduct(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteFindingAggregator(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5346,6 +5087,9 @@ func awsRestjson1_deserializeOpErrorDisableImportFindingsForProduct(response *sm
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -5371,14 +5115,14 @@ func awsRestjson1_deserializeOpErrorDisableImportFindingsForProduct(response *sm
}
}
-type awsRestjson1_deserializeOpDisableOrganizationAdminAccount struct {
+type awsRestjson1_deserializeOpDeleteInsight struct {
}
-func (*awsRestjson1_deserializeOpDisableOrganizationAdminAccount) ID() string {
+func (*awsRestjson1_deserializeOpDeleteInsight) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisableOrganizationAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteInsight) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5396,16 +5140,44 @@ func (m *awsRestjson1_deserializeOpDisableOrganizationAdminAccount) HandleDeseri
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisableOrganizationAdminAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteInsight(response, &metadata)
}
- output := &DisableOrganizationAdminAccountOutput{}
+ output := &DeleteInsightOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentDeleteInsightOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisableOrganizationAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteInsight(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5446,9 +5218,6 @@ func awsRestjson1_deserializeOpErrorDisableOrganizationAdminAccount(response *sm
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -5461,6 +5230,9 @@ func awsRestjson1_deserializeOpErrorDisableOrganizationAdminAccount(response *sm
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -5471,14 +5243,54 @@ func awsRestjson1_deserializeOpErrorDisableOrganizationAdminAccount(response *sm
}
}
-type awsRestjson1_deserializeOpDisableSecurityHub struct {
+func awsRestjson1_deserializeOpDocumentDeleteInsightOutput(v **DeleteInsightOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DeleteInsightOutput
+ if *v == nil {
+ sv = &DeleteInsightOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "InsightArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.InsightArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpDisableSecurityHub) ID() string {
+type awsRestjson1_deserializeOpDeleteInvitations struct {
+}
+
+func (*awsRestjson1_deserializeOpDeleteInvitations) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisableSecurityHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteInvitations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5496,16 +5308,44 @@ func (m *awsRestjson1_deserializeOpDisableSecurityHub) HandleDeserialize(ctx con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisableSecurityHub(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteInvitations(response, &metadata)
}
- output := &DisableSecurityHubOutput{}
+ output := &DeleteInvitationsOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentDeleteInvitationsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisableSecurityHub(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteInvitations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5546,15 +5386,15 @@ func awsRestjson1_deserializeOpErrorDisableSecurityHub(response *smithyhttp.Resp
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
case strings.EqualFold("InvalidAccessException", errorCode):
return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
@@ -5571,14 +5411,50 @@ func awsRestjson1_deserializeOpErrorDisableSecurityHub(response *smithyhttp.Resp
}
}
-type awsRestjson1_deserializeOpDisassociateFromAdministratorAccount struct {
+func awsRestjson1_deserializeOpDocumentDeleteInvitationsOutput(v **DeleteInvitationsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DeleteInvitationsOutput
+ if *v == nil {
+ sv = &DeleteInvitationsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "UnprocessedAccounts":
+ if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpDisassociateFromAdministratorAccount) ID() string {
+type awsRestjson1_deserializeOpDeleteMembers struct {
+}
+
+func (*awsRestjson1_deserializeOpDeleteMembers) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisassociateFromAdministratorAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDeleteMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5596,16 +5472,44 @@ func (m *awsRestjson1_deserializeOpDisassociateFromAdministratorAccount) HandleD
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisassociateFromAdministratorAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDeleteMembers(response, &metadata)
}
- output := &DisassociateFromAdministratorAccountOutput{}
+ output := &DeleteMembersOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentDeleteMembersOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisassociateFromAdministratorAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDeleteMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5671,14 +5575,50 @@ func awsRestjson1_deserializeOpErrorDisassociateFromAdministratorAccount(respons
}
}
-type awsRestjson1_deserializeOpDisassociateFromMasterAccount struct {
+func awsRestjson1_deserializeOpDocumentDeleteMembersOutput(v **DeleteMembersOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DeleteMembersOutput
+ if *v == nil {
+ sv = &DeleteMembersOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "UnprocessedAccounts":
+ if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpDisassociateFromMasterAccount) ID() string {
+type awsRestjson1_deserializeOpDescribeActionTargets struct {
+}
+
+func (*awsRestjson1_deserializeOpDescribeActionTargets) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisassociateFromMasterAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeActionTargets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5696,16 +5636,44 @@ func (m *awsRestjson1_deserializeOpDisassociateFromMasterAccount) HandleDeserial
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisassociateFromMasterAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeActionTargets(response, &metadata)
}
- output := &DisassociateFromMasterAccountOutput{}
+ output := &DescribeActionTargetsOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentDescribeActionTargetsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisassociateFromMasterAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeActionTargets(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5755,9 +5723,6 @@ func awsRestjson1_deserializeOpErrorDisassociateFromMasterAccount(response *smit
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -5771,14 +5736,59 @@ func awsRestjson1_deserializeOpErrorDisassociateFromMasterAccount(response *smit
}
}
-type awsRestjson1_deserializeOpDisassociateMembers struct {
+func awsRestjson1_deserializeOpDocumentDescribeActionTargetsOutput(v **DescribeActionTargetsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DescribeActionTargetsOutput
+ if *v == nil {
+ sv = &DescribeActionTargetsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ActionTargets":
+ if err := awsRestjson1_deserializeDocumentActionTargetList(&sv.ActionTargets, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpDisassociateMembers) ID() string {
+type awsRestjson1_deserializeOpDescribeHub struct {
+}
+
+func (*awsRestjson1_deserializeOpDescribeHub) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpDisassociateMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5796,16 +5806,44 @@ func (m *awsRestjson1_deserializeOpDisassociateMembers) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorDisassociateMembers(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeHub(response, &metadata)
}
- output := &DisassociateMembersOutput{}
+ output := &DescribeHubOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentDescribeHubOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorDisassociateMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeHub(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5846,9 +5884,6 @@ func awsRestjson1_deserializeOpErrorDisassociateMembers(response *smithyhttp.Res
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -5874,14 +5909,81 @@ func awsRestjson1_deserializeOpErrorDisassociateMembers(response *smithyhttp.Res
}
}
-type awsRestjson1_deserializeOpEnableImportFindingsForProduct struct {
+func awsRestjson1_deserializeOpDocumentDescribeHubOutput(v **DescribeHubOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DescribeHubOutput
+ if *v == nil {
+ sv = &DescribeHubOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AutoEnableControls":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.AutoEnableControls = ptr.Bool(jtv)
+ }
+
+ case "ControlFindingGenerator":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ControlFindingGenerator to be of type string, got %T instead", value)
+ }
+ sv.ControlFindingGenerator = types.ControlFindingGenerator(jtv)
+ }
+
+ case "HubArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.HubArn = ptr.String(jtv)
+ }
+
+ case "SubscribedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.SubscribedAt = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpEnableImportFindingsForProduct) ID() string {
+type awsRestjson1_deserializeOpDescribeOrganizationConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpDescribeOrganizationConfiguration) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpEnableImportFindingsForProduct) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeOrganizationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -5899,9 +6001,9 @@ func (m *awsRestjson1_deserializeOpEnableImportFindingsForProduct) HandleDeseria
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorEnableImportFindingsForProduct(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response, &metadata)
}
- output := &EnableImportFindingsForProductOutput{}
+ output := &DescribeOrganizationConfigurationOutput{}
out.Result = output
var buff [1024]byte
@@ -5922,7 +6024,7 @@ func (m *awsRestjson1_deserializeOpEnableImportFindingsForProduct) HandleDeseria
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentEnableImportFindingsForProductOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -5936,7 +6038,7 @@ func (m *awsRestjson1_deserializeOpEnableImportFindingsForProduct) HandleDeseria
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorEnableImportFindingsForProduct(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeOrganizationConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -5989,9 +6091,6 @@ func awsRestjson1_deserializeOpErrorEnableImportFindingsForProduct(response *smi
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceConflictException", errorCode):
- return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -6002,7 +6101,7 @@ func awsRestjson1_deserializeOpErrorEnableImportFindingsForProduct(response *smi
}
}
-func awsRestjson1_deserializeOpDocumentEnableImportFindingsForProductOutput(v **EnableImportFindingsForProductOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v **DescribeOrganizationConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6015,22 +6114,45 @@ func awsRestjson1_deserializeOpDocumentEnableImportFindingsForProductOutput(v **
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *EnableImportFindingsForProductOutput
+ var sv *DescribeOrganizationConfigurationOutput
if *v == nil {
- sv = &EnableImportFindingsForProductOutput{}
+ sv = &DescribeOrganizationConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ProductSubscriptionArn":
+ case "AutoEnable":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.AutoEnable = ptr.Bool(jtv)
+ }
+
+ case "AutoEnableStandards":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected AutoEnableStandards to be of type string, got %T instead", value)
}
- sv.ProductSubscriptionArn = ptr.String(jtv)
+ sv.AutoEnableStandards = types.AutoEnableStandards(jtv)
+ }
+
+ case "MemberAccountLimitReached":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.MemberAccountLimitReached = ptr.Bool(jtv)
+ }
+
+ case "OrganizationConfiguration":
+ if err := awsRestjson1_deserializeDocumentOrganizationConfiguration(&sv.OrganizationConfiguration, value); err != nil {
+ return err
}
default:
@@ -6042,14 +6164,14 @@ func awsRestjson1_deserializeOpDocumentEnableImportFindingsForProductOutput(v **
return nil
}
-type awsRestjson1_deserializeOpEnableOrganizationAdminAccount struct {
+type awsRestjson1_deserializeOpDescribeProducts struct {
}
-func (*awsRestjson1_deserializeOpEnableOrganizationAdminAccount) ID() string {
+func (*awsRestjson1_deserializeOpDescribeProducts) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpEnableOrganizationAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeProducts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6067,16 +6189,44 @@ func (m *awsRestjson1_deserializeOpEnableOrganizationAdminAccount) HandleDeseria
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorEnableOrganizationAdminAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeProducts(response, &metadata)
}
- output := &EnableOrganizationAdminAccountOutput{}
+ output := &DescribeProductsOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentDescribeProductsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorEnableOrganizationAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeProducts(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6117,9 +6267,6 @@ func awsRestjson1_deserializeOpErrorEnableOrganizationAdminAccount(response *smi
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -6142,14 +6289,59 @@ func awsRestjson1_deserializeOpErrorEnableOrganizationAdminAccount(response *smi
}
}
-type awsRestjson1_deserializeOpEnableSecurityHub struct {
+func awsRestjson1_deserializeOpDocumentDescribeProductsOutput(v **DescribeProductsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DescribeProductsOutput
+ if *v == nil {
+ sv = &DescribeProductsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "Products":
+ if err := awsRestjson1_deserializeDocumentProductsList(&sv.Products, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpEnableSecurityHub) ID() string {
+type awsRestjson1_deserializeOpDescribeProductsV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpDescribeProductsV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpEnableSecurityHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeProductsV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6167,16 +6359,44 @@ func (m *awsRestjson1_deserializeOpEnableSecurityHub) HandleDeserialize(ctx cont
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorEnableSecurityHub(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeProductsV2(response, &metadata)
}
- output := &EnableSecurityHubOutput{}
+ output := &DescribeProductsV2Output{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentDescribeProductsV2Output(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorEnableSecurityHub(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeProductsV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6220,17 +6440,17 @@ func awsRestjson1_deserializeOpErrorEnableSecurityHub(response *smithyhttp.Respo
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("ResourceConflictException", errorCode):
- return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -6242,14 +6462,59 @@ func awsRestjson1_deserializeOpErrorEnableSecurityHub(response *smithyhttp.Respo
}
}
-type awsRestjson1_deserializeOpGetAdministratorAccount struct {
+func awsRestjson1_deserializeOpDocumentDescribeProductsV2Output(v **DescribeProductsV2Output, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *DescribeProductsV2Output
+ if *v == nil {
+ sv = &DescribeProductsV2Output{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "ProductsV2":
+ if err := awsRestjson1_deserializeDocumentProductsV2List(&sv.ProductsV2, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpGetAdministratorAccount) ID() string {
+type awsRestjson1_deserializeOpDescribeSecurityHubV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpDescribeSecurityHubV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetAdministratorAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeSecurityHubV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6267,9 +6532,9 @@ func (m *awsRestjson1_deserializeOpGetAdministratorAccount) HandleDeserialize(ct
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetAdministratorAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeSecurityHubV2(response, &metadata)
}
- output := &GetAdministratorAccountOutput{}
+ output := &DescribeSecurityHubV2Output{}
out.Result = output
var buff [1024]byte
@@ -6290,7 +6555,7 @@ func (m *awsRestjson1_deserializeOpGetAdministratorAccount) HandleDeserialize(ct
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetAdministratorAccountOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDescribeSecurityHubV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6304,7 +6569,7 @@ func (m *awsRestjson1_deserializeOpGetAdministratorAccount) HandleDeserialize(ct
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetAdministratorAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeSecurityHubV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6345,21 +6610,18 @@ func awsRestjson1_deserializeOpErrorGetAdministratorAccount(response *smithyhttp
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
-
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
-
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -6370,7 +6632,7 @@ func awsRestjson1_deserializeOpErrorGetAdministratorAccount(response *smithyhttp
}
}
-func awsRestjson1_deserializeOpDocumentGetAdministratorAccountOutput(v **GetAdministratorAccountOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDescribeSecurityHubV2Output(v **DescribeSecurityHubV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6383,18 +6645,31 @@ func awsRestjson1_deserializeOpDocumentGetAdministratorAccountOutput(v **GetAdmi
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetAdministratorAccountOutput
+ var sv *DescribeSecurityHubV2Output
if *v == nil {
- sv = &GetAdministratorAccountOutput{}
+ sv = &DescribeSecurityHubV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Administrator":
- if err := awsRestjson1_deserializeDocumentInvitation(&sv.Administrator, value); err != nil {
- return err
+ case "HubV2Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.HubV2Arn = ptr.String(jtv)
+ }
+
+ case "SubscribedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.SubscribedAt = ptr.String(jtv)
}
default:
@@ -6406,14 +6681,14 @@ func awsRestjson1_deserializeOpDocumentGetAdministratorAccountOutput(v **GetAdmi
return nil
}
-type awsRestjson1_deserializeOpGetConfigurationPolicy struct {
+type awsRestjson1_deserializeOpDescribeStandards struct {
}
-func (*awsRestjson1_deserializeOpGetConfigurationPolicy) ID() string {
+func (*awsRestjson1_deserializeOpDescribeStandards) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetConfigurationPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeStandards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6431,9 +6706,9 @@ func (m *awsRestjson1_deserializeOpGetConfigurationPolicy) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetConfigurationPolicy(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeStandards(response, &metadata)
}
- output := &GetConfigurationPolicyOutput{}
+ output := &DescribeStandardsOutput{}
out.Result = output
var buff [1024]byte
@@ -6454,7 +6729,7 @@ func (m *awsRestjson1_deserializeOpGetConfigurationPolicy) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetConfigurationPolicyOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDescribeStandardsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6468,7 +6743,7 @@ func (m *awsRestjson1_deserializeOpGetConfigurationPolicy) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetConfigurationPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeStandards(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6509,9 +6784,6 @@ func awsRestjson1_deserializeOpErrorGetConfigurationPolicy(response *smithyhttp.
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -6521,12 +6793,6 @@ func awsRestjson1_deserializeOpErrorGetConfigurationPolicy(response *smithyhttp.
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -6537,7 +6803,7 @@ func awsRestjson1_deserializeOpErrorGetConfigurationPolicy(response *smithyhttp.
}
}
-func awsRestjson1_deserializeOpDocumentGetConfigurationPolicyOutput(v **GetConfigurationPolicyOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDescribeStandardsOutput(v **DescribeStandardsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6550,84 +6816,31 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationPolicyOutput(v **GetConfi
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetConfigurationPolicyOutput
+ var sv *DescribeStandardsOutput
if *v == nil {
- sv = &GetConfigurationPolicyOutput{}
+ sv = &DescribeStandardsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Arn":
+ case "NextToken":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
}
- sv.Arn = ptr.String(jtv)
+ sv.NextToken = ptr.String(jtv)
}
- case "ConfigurationPolicy":
- if err := awsRestjson1_deserializeDocumentPolicy(&sv.ConfigurationPolicy, value); err != nil {
+ case "Standards":
+ if err := awsRestjson1_deserializeDocumentStandards(&sv.Standards, value); err != nil {
return err
}
- case "CreatedAt":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
- }
- t, err := smithytime.ParseDateTime(jtv)
- if err != nil {
- return err
- }
- sv.CreatedAt = ptr.Time(t)
- }
-
- case "Description":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Description = ptr.String(jtv)
- }
-
- case "Id":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Id = ptr.String(jtv)
- }
-
- case "Name":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Name = ptr.String(jtv)
- }
-
- case "UpdatedAt":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
- }
- t, err := smithytime.ParseDateTime(jtv)
- if err != nil {
- return err
- }
- sv.UpdatedAt = ptr.Time(t)
- }
-
- default:
- _, _ = key, value
+ default:
+ _, _ = key, value
}
}
@@ -6635,14 +6848,14 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationPolicyOutput(v **GetConfi
return nil
}
-type awsRestjson1_deserializeOpGetConfigurationPolicyAssociation struct {
+type awsRestjson1_deserializeOpDescribeStandardsControls struct {
}
-func (*awsRestjson1_deserializeOpGetConfigurationPolicyAssociation) ID() string {
+func (*awsRestjson1_deserializeOpDescribeStandardsControls) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetConfigurationPolicyAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDescribeStandardsControls) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6660,9 +6873,9 @@ func (m *awsRestjson1_deserializeOpGetConfigurationPolicyAssociation) HandleDese
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetConfigurationPolicyAssociation(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDescribeStandardsControls(response, &metadata)
}
- output := &GetConfigurationPolicyAssociationOutput{}
+ output := &DescribeStandardsControlsOutput{}
out.Result = output
var buff [1024]byte
@@ -6683,7 +6896,7 @@ func (m *awsRestjson1_deserializeOpGetConfigurationPolicyAssociation) HandleDese
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetConfigurationPolicyAssociationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentDescribeStandardsControlsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -6697,7 +6910,7 @@ func (m *awsRestjson1_deserializeOpGetConfigurationPolicyAssociation) HandleDese
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetConfigurationPolicyAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDescribeStandardsControls(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6738,9 +6951,6 @@ func awsRestjson1_deserializeOpErrorGetConfigurationPolicyAssociation(response *
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -6750,9 +6960,6 @@ func awsRestjson1_deserializeOpErrorGetConfigurationPolicyAssociation(response *
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -6766,7 +6973,7 @@ func awsRestjson1_deserializeOpErrorGetConfigurationPolicyAssociation(response *
}
}
-func awsRestjson1_deserializeOpDocumentGetConfigurationPolicyAssociationOutput(v **GetConfigurationPolicyAssociationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentDescribeStandardsControlsOutput(v **DescribeStandardsControlsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -6779,80 +6986,27 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationPolicyAssociationOutput(v
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetConfigurationPolicyAssociationOutput
+ var sv *DescribeStandardsControlsOutput
if *v == nil {
- sv = &GetConfigurationPolicyAssociationOutput{}
+ sv = &DescribeStandardsControlsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "AssociationStatus":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ConfigurationPolicyAssociationStatus to be of type string, got %T instead", value)
- }
- sv.AssociationStatus = types.ConfigurationPolicyAssociationStatus(jtv)
- }
-
- case "AssociationStatusMessage":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.AssociationStatusMessage = ptr.String(jtv)
- }
-
- case "AssociationType":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value)
- }
- sv.AssociationType = types.AssociationType(jtv)
- }
-
- case "ConfigurationPolicyId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ConfigurationPolicyId = ptr.String(jtv)
- }
-
- case "TargetId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.TargetId = ptr.String(jtv)
- }
-
- case "TargetType":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected TargetType to be of type string, got %T instead", value)
- }
- sv.TargetType = types.TargetType(jtv)
+ case "Controls":
+ if err := awsRestjson1_deserializeDocumentStandardsControls(&sv.Controls, value); err != nil {
+ return err
}
- case "UpdatedAt":
+ case "NextToken":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
- }
- t, err := smithytime.ParseDateTime(jtv)
- if err != nil {
- return err
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
}
- sv.UpdatedAt = ptr.Time(t)
+ sv.NextToken = ptr.String(jtv)
}
default:
@@ -6864,14 +7018,14 @@ func awsRestjson1_deserializeOpDocumentGetConfigurationPolicyAssociationOutput(v
return nil
}
-type awsRestjson1_deserializeOpGetEnabledStandards struct {
+type awsRestjson1_deserializeOpDisableImportFindingsForProduct struct {
}
-func (*awsRestjson1_deserializeOpGetEnabledStandards) ID() string {
+func (*awsRestjson1_deserializeOpDisableImportFindingsForProduct) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetEnabledStandards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDisableImportFindingsForProduct) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -6889,44 +7043,16 @@ func (m *awsRestjson1_deserializeOpGetEnabledStandards) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetEnabledStandards(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDisableImportFindingsForProduct(response, &metadata)
}
- output := &GetEnabledStandardsOutput{}
+ output := &DisableImportFindingsForProductOutput{}
out.Result = output
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentGetEnabledStandardsOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetEnabledStandards(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDisableImportFindingsForProduct(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -6979,6 +7105,9 @@ func awsRestjson1_deserializeOpErrorGetEnabledStandards(response *smithyhttp.Res
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -6989,59 +7118,14 @@ func awsRestjson1_deserializeOpErrorGetEnabledStandards(response *smithyhttp.Res
}
}
-func awsRestjson1_deserializeOpDocumentGetEnabledStandardsOutput(v **GetEnabledStandardsOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *GetEnabledStandardsOutput
- if *v == nil {
- sv = &GetEnabledStandardsOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "NextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
- case "StandardsSubscriptions":
- if err := awsRestjson1_deserializeDocumentStandardsSubscriptions(&sv.StandardsSubscriptions, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpGetFindingAggregator struct {
+type awsRestjson1_deserializeOpDisableOrganizationAdminAccount struct {
}
-func (*awsRestjson1_deserializeOpGetFindingAggregator) ID() string {
+func (*awsRestjson1_deserializeOpDisableOrganizationAdminAccount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetFindingAggregator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDisableOrganizationAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7059,44 +7143,16 @@ func (m *awsRestjson1_deserializeOpGetFindingAggregator) HandleDeserialize(ctx c
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetFindingAggregator(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDisableOrganizationAdminAccount(response, &metadata)
}
- output := &GetFindingAggregatorOutput{}
+ output := &DisableOrganizationAdminAccountOutput{}
out.Result = output
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentGetFindingAggregatorOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetFindingAggregator(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDisableOrganizationAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7152,9 +7208,6 @@ func awsRestjson1_deserializeOpErrorGetFindingAggregator(response *smithyhttp.Re
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -7165,77 +7218,14 @@ func awsRestjson1_deserializeOpErrorGetFindingAggregator(response *smithyhttp.Re
}
}
-func awsRestjson1_deserializeOpDocumentGetFindingAggregatorOutput(v **GetFindingAggregatorOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *GetFindingAggregatorOutput
- if *v == nil {
- sv = &GetFindingAggregatorOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "FindingAggregationRegion":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.FindingAggregationRegion = ptr.String(jtv)
- }
-
- case "FindingAggregatorArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.FindingAggregatorArn = ptr.String(jtv)
- }
-
- case "RegionLinkingMode":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.RegionLinkingMode = ptr.String(jtv)
- }
-
- case "Regions":
- if err := awsRestjson1_deserializeDocumentStringList(&sv.Regions, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpGetFindingHistory struct {
+type awsRestjson1_deserializeOpDisableSecurityHub struct {
}
-func (*awsRestjson1_deserializeOpGetFindingHistory) ID() string {
+func (*awsRestjson1_deserializeOpDisableSecurityHub) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetFindingHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDisableSecurityHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7253,44 +7243,16 @@ func (m *awsRestjson1_deserializeOpGetFindingHistory) HandleDeserialize(ctx cont
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetFindingHistory(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDisableSecurityHub(response, &metadata)
}
- output := &GetFindingHistoryOutput{}
+ output := &DisableSecurityHubOutput{}
out.Result = output
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentGetFindingHistoryOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetFindingHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDisableSecurityHub(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7331,18 +7293,21 @@ func awsRestjson1_deserializeOpErrorGetFindingHistory(response *smithyhttp.Respo
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
case strings.EqualFold("InvalidAccessException", errorCode):
return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
-
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -7353,59 +7318,14 @@ func awsRestjson1_deserializeOpErrorGetFindingHistory(response *smithyhttp.Respo
}
}
-func awsRestjson1_deserializeOpDocumentGetFindingHistoryOutput(v **GetFindingHistoryOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *GetFindingHistoryOutput
- if *v == nil {
- sv = &GetFindingHistoryOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "NextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
- case "Records":
- if err := awsRestjson1_deserializeDocumentFindingHistoryRecordList(&sv.Records, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpGetFindings struct {
+type awsRestjson1_deserializeOpDisableSecurityHubV2 struct {
}
-func (*awsRestjson1_deserializeOpGetFindings) ID() string {
+func (*awsRestjson1_deserializeOpDisableSecurityHubV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetFindings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDisableSecurityHubV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7423,44 +7343,113 @@ func (m *awsRestjson1_deserializeOpGetFindings) HandleDeserialize(ctx context.Co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetFindings(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDisableSecurityHubV2(response, &metadata)
}
- output := &GetFindingsOutput{}
+ output := &DisableSecurityHubV2Output{}
out.Result = output
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorDisableSecurityHubV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
- body := io.TeeReader(response.Body, ringBuffer)
-
+ body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
- return out, metadata, err
+ return err
}
- err = awsRestjson1_deserializeOpDocumentGetFindingsOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
}
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpDisassociateFromAdministratorAccount struct {
+}
+
+func (*awsRestjson1_deserializeOpDisassociateFromAdministratorAccount) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpDisassociateFromAdministratorAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorDisassociateFromAdministratorAccount(response, &metadata)
}
+ output := &DisassociateFromAdministratorAccountOutput{}
+ out.Result = output
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetFindings(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDisassociateFromAdministratorAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7513,6 +7502,9 @@ func awsRestjson1_deserializeOpErrorGetFindings(response *smithyhttp.Response, m
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -7523,59 +7515,14 @@ func awsRestjson1_deserializeOpErrorGetFindings(response *smithyhttp.Response, m
}
}
-func awsRestjson1_deserializeOpDocumentGetFindingsOutput(v **GetFindingsOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *GetFindingsOutput
- if *v == nil {
- sv = &GetFindingsOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "Findings":
- if err := awsRestjson1_deserializeDocumentAwsSecurityFindingList(&sv.Findings, value); err != nil {
- return err
- }
-
- case "NextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpGetInsightResults struct {
+type awsRestjson1_deserializeOpDisassociateFromMasterAccount struct {
}
-func (*awsRestjson1_deserializeOpGetInsightResults) ID() string {
+func (*awsRestjson1_deserializeOpDisassociateFromMasterAccount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetInsightResults) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpDisassociateFromMasterAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7593,44 +7540,116 @@ func (m *awsRestjson1_deserializeOpGetInsightResults) HandleDeserialize(ctx cont
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetInsightResults(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorDisassociateFromMasterAccount(response, &metadata)
}
- output := &GetInsightResultsOutput{}
+ output := &DisassociateFromMasterAccountOutput{}
out.Result = output
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorDisassociateFromMasterAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
- body := io.TeeReader(response.Body, ringBuffer)
-
+ body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
- return out, metadata, err
+ return err
}
- err = awsRestjson1_deserializeOpDocumentGetInsightResultsOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
}
+ return genericError
+
}
+}
+
+type awsRestjson1_deserializeOpDisassociateMembers struct {
+}
+
+func (*awsRestjson1_deserializeOpDisassociateMembers) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpDisassociateMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorDisassociateMembers(response, &metadata)
+ }
+ output := &DisassociateMembersOutput{}
+ out.Result = output
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetInsightResults(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorDisassociateMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7671,6 +7690,9 @@ func awsRestjson1_deserializeOpErrorGetInsightResults(response *smithyhttp.Respo
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -7696,50 +7718,14 @@ func awsRestjson1_deserializeOpErrorGetInsightResults(response *smithyhttp.Respo
}
}
-func awsRestjson1_deserializeOpDocumentGetInsightResultsOutput(v **GetInsightResultsOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *GetInsightResultsOutput
- if *v == nil {
- sv = &GetInsightResultsOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "InsightResults":
- if err := awsRestjson1_deserializeDocumentInsightResults(&sv.InsightResults, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpGetInsights struct {
+type awsRestjson1_deserializeOpEnableImportFindingsForProduct struct {
}
-func (*awsRestjson1_deserializeOpGetInsights) ID() string {
+func (*awsRestjson1_deserializeOpEnableImportFindingsForProduct) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetInsights) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpEnableImportFindingsForProduct) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7757,9 +7743,9 @@ func (m *awsRestjson1_deserializeOpGetInsights) HandleDeserialize(ctx context.Co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetInsights(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorEnableImportFindingsForProduct(response, &metadata)
}
- output := &GetInsightsOutput{}
+ output := &EnableImportFindingsForProductOutput{}
out.Result = output
var buff [1024]byte
@@ -7780,7 +7766,7 @@ func (m *awsRestjson1_deserializeOpGetInsights) HandleDeserialize(ctx context.Co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetInsightsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentEnableImportFindingsForProductOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -7794,7 +7780,7 @@ func (m *awsRestjson1_deserializeOpGetInsights) HandleDeserialize(ctx context.Co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetInsights(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorEnableImportFindingsForProduct(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -7847,8 +7833,8 @@ func awsRestjson1_deserializeOpErrorGetInsights(response *smithyhttp.Response, m
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ResourceConflictException", errorCode):
+ return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -7860,7 +7846,7 @@ func awsRestjson1_deserializeOpErrorGetInsights(response *smithyhttp.Response, m
}
}
-func awsRestjson1_deserializeOpDocumentGetInsightsOutput(v **GetInsightsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentEnableImportFindingsForProductOutput(v **EnableImportFindingsForProductOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -7873,27 +7859,22 @@ func awsRestjson1_deserializeOpDocumentGetInsightsOutput(v **GetInsightsOutput,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetInsightsOutput
+ var sv *EnableImportFindingsForProductOutput
if *v == nil {
- sv = &GetInsightsOutput{}
+ sv = &EnableImportFindingsForProductOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Insights":
- if err := awsRestjson1_deserializeDocumentInsightList(&sv.Insights, value); err != nil {
- return err
- }
-
- case "NextToken":
+ case "ProductSubscriptionArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.ProductSubscriptionArn = ptr.String(jtv)
}
default:
@@ -7905,14 +7886,14 @@ func awsRestjson1_deserializeOpDocumentGetInsightsOutput(v **GetInsightsOutput,
return nil
}
-type awsRestjson1_deserializeOpGetInvitationsCount struct {
+type awsRestjson1_deserializeOpEnableOrganizationAdminAccount struct {
}
-func (*awsRestjson1_deserializeOpGetInvitationsCount) ID() string {
+func (*awsRestjson1_deserializeOpEnableOrganizationAdminAccount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetInvitationsCount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpEnableOrganizationAdminAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -7930,9 +7911,9 @@ func (m *awsRestjson1_deserializeOpGetInvitationsCount) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetInvitationsCount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorEnableOrganizationAdminAccount(response, &metadata)
}
- output := &GetInvitationsCountOutput{}
+ output := &EnableOrganizationAdminAccountOutput{}
out.Result = output
var buff [1024]byte
@@ -7953,7 +7934,7 @@ func (m *awsRestjson1_deserializeOpGetInvitationsCount) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentEnableOrganizationAdminAccountOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -7967,7 +7948,7 @@ func (m *awsRestjson1_deserializeOpGetInvitationsCount) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetInvitationsCount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorEnableOrganizationAdminAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8008,6 +7989,9 @@ func awsRestjson1_deserializeOpErrorGetInvitationsCount(response *smithyhttp.Res
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -8030,7 +8014,7 @@ func awsRestjson1_deserializeOpErrorGetInvitationsCount(response *smithyhttp.Res
}
}
-func awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(v **GetInvitationsCountOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentEnableOrganizationAdminAccountOutput(v **EnableOrganizationAdminAccountOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -8043,26 +8027,31 @@ func awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(v **GetInvitati
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetInvitationsCountOutput
+ var sv *EnableOrganizationAdminAccountOutput
if *v == nil {
- sv = &GetInvitationsCountOutput{}
+ sv = &EnableOrganizationAdminAccountOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "InvitationsCount":
+ case "AdminAccountId":
if value != nil {
- jtv, ok := value.(json.Number)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- i64, err := jtv.Int64()
- if err != nil {
- return err
+ sv.AdminAccountId = ptr.String(jtv)
+ }
+
+ case "Feature":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SecurityHubFeature to be of type string, got %T instead", value)
}
- sv.InvitationsCount = ptr.Int32(int32(i64))
+ sv.Feature = types.SecurityHubFeature(jtv)
}
default:
@@ -8074,14 +8063,14 @@ func awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(v **GetInvitati
return nil
}
-type awsRestjson1_deserializeOpGetMasterAccount struct {
+type awsRestjson1_deserializeOpEnableSecurityHub struct {
}
-func (*awsRestjson1_deserializeOpGetMasterAccount) ID() string {
+func (*awsRestjson1_deserializeOpEnableSecurityHub) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetMasterAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpEnableSecurityHub) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8099,44 +8088,16 @@ func (m *awsRestjson1_deserializeOpGetMasterAccount) HandleDeserialize(ctx conte
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetMasterAccount(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorEnableSecurityHub(response, &metadata)
}
- output := &GetMasterAccountOutput{}
+ output := &EnableSecurityHubOutput{}
out.Result = output
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentGetMasterAccountOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetMasterAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorEnableSecurityHub(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8177,20 +8138,20 @@ func awsRestjson1_deserializeOpErrorGetMasterAccount(response *smithyhttp.Respon
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
case strings.EqualFold("InvalidAccessException", errorCode):
return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
-
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ResourceConflictException", errorCode):
+ return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -8202,50 +8163,14 @@ func awsRestjson1_deserializeOpErrorGetMasterAccount(response *smithyhttp.Respon
}
}
-func awsRestjson1_deserializeOpDocumentGetMasterAccountOutput(v **GetMasterAccountOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *GetMasterAccountOutput
- if *v == nil {
- sv = &GetMasterAccountOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "Master":
- if err := awsRestjson1_deserializeDocumentInvitation(&sv.Master, value); err != nil {
- return err
- }
-
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpGetMembers struct {
+type awsRestjson1_deserializeOpEnableSecurityHubV2 struct {
}
-func (*awsRestjson1_deserializeOpGetMembers) ID() string {
+func (*awsRestjson1_deserializeOpEnableSecurityHubV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpEnableSecurityHubV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8263,9 +8188,9 @@ func (m *awsRestjson1_deserializeOpGetMembers) HandleDeserialize(ctx context.Con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetMembers(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorEnableSecurityHubV2(response, &metadata)
}
- output := &GetMembersOutput{}
+ output := &EnableSecurityHubV2Output{}
out.Result = output
var buff [1024]byte
@@ -8286,7 +8211,7 @@ func (m *awsRestjson1_deserializeOpGetMembers) HandleDeserialize(ctx context.Con
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetMembersOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentEnableSecurityHubV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -8300,7 +8225,7 @@ func (m *awsRestjson1_deserializeOpGetMembers) HandleDeserialize(ctx context.Con
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorEnableSecurityHubV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8341,20 +8266,17 @@ func awsRestjson1_deserializeOpErrorGetMembers(response *smithyhttp.Response, me
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -8366,7 +8288,7 @@ func awsRestjson1_deserializeOpErrorGetMembers(response *smithyhttp.Response, me
}
}
-func awsRestjson1_deserializeOpDocumentGetMembersOutput(v **GetMembersOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentEnableSecurityHubV2Output(v **EnableSecurityHubV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -8379,23 +8301,22 @@ func awsRestjson1_deserializeOpDocumentGetMembersOutput(v **GetMembersOutput, va
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetMembersOutput
+ var sv *EnableSecurityHubV2Output
if *v == nil {
- sv = &GetMembersOutput{}
+ sv = &EnableSecurityHubV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Members":
- if err := awsRestjson1_deserializeDocumentMemberList(&sv.Members, value); err != nil {
- return err
- }
-
- case "UnprocessedAccounts":
- if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
- return err
+ case "HubV2Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.HubV2Arn = ptr.String(jtv)
}
default:
@@ -8407,14 +8328,14 @@ func awsRestjson1_deserializeOpDocumentGetMembersOutput(v **GetMembersOutput, va
return nil
}
-type awsRestjson1_deserializeOpGetSecurityControlDefinition struct {
+type awsRestjson1_deserializeOpGetAdministratorAccount struct {
}
-func (*awsRestjson1_deserializeOpGetSecurityControlDefinition) ID() string {
+func (*awsRestjson1_deserializeOpGetAdministratorAccount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpGetSecurityControlDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetAdministratorAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8432,9 +8353,9 @@ func (m *awsRestjson1_deserializeOpGetSecurityControlDefinition) HandleDeseriali
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorGetSecurityControlDefinition(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetAdministratorAccount(response, &metadata)
}
- output := &GetSecurityControlDefinitionOutput{}
+ output := &GetAdministratorAccountOutput{}
out.Result = output
var buff [1024]byte
@@ -8455,7 +8376,7 @@ func (m *awsRestjson1_deserializeOpGetSecurityControlDefinition) HandleDeseriali
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentGetSecurityControlDefinitionOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetAdministratorAccountOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -8469,7 +8390,7 @@ func (m *awsRestjson1_deserializeOpGetSecurityControlDefinition) HandleDeseriali
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorGetSecurityControlDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetAdministratorAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8535,7 +8456,7 @@ func awsRestjson1_deserializeOpErrorGetSecurityControlDefinition(response *smith
}
}
-func awsRestjson1_deserializeOpDocumentGetSecurityControlDefinitionOutput(v **GetSecurityControlDefinitionOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetAdministratorAccountOutput(v **GetAdministratorAccountOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -8548,17 +8469,17 @@ func awsRestjson1_deserializeOpDocumentGetSecurityControlDefinitionOutput(v **Ge
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *GetSecurityControlDefinitionOutput
+ var sv *GetAdministratorAccountOutput
if *v == nil {
- sv = &GetSecurityControlDefinitionOutput{}
+ sv = &GetAdministratorAccountOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "SecurityControlDefinition":
- if err := awsRestjson1_deserializeDocumentSecurityControlDefinition(&sv.SecurityControlDefinition, value); err != nil {
+ case "Administrator":
+ if err := awsRestjson1_deserializeDocumentInvitation(&sv.Administrator, value); err != nil {
return err
}
@@ -8571,14 +8492,14 @@ func awsRestjson1_deserializeOpDocumentGetSecurityControlDefinitionOutput(v **Ge
return nil
}
-type awsRestjson1_deserializeOpInviteMembers struct {
+type awsRestjson1_deserializeOpGetAggregatorV2 struct {
}
-func (*awsRestjson1_deserializeOpInviteMembers) ID() string {
+func (*awsRestjson1_deserializeOpGetAggregatorV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpInviteMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetAggregatorV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8596,9 +8517,9 @@ func (m *awsRestjson1_deserializeOpInviteMembers) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorInviteMembers(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetAggregatorV2(response, &metadata)
}
- output := &InviteMembersOutput{}
+ output := &GetAggregatorV2Output{}
out.Result = output
var buff [1024]byte
@@ -8619,7 +8540,7 @@ func (m *awsRestjson1_deserializeOpInviteMembers) HandleDeserialize(ctx context.
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentInviteMembersOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetAggregatorV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -8633,7 +8554,7 @@ func (m *awsRestjson1_deserializeOpInviteMembers) HandleDeserialize(ctx context.
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorInviteMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetAggregatorV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8674,21 +8595,24 @@ func awsRestjson1_deserializeOpErrorInviteMembers(response *smithyhttp.Response,
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -8699,7 +8623,7 @@ func awsRestjson1_deserializeOpErrorInviteMembers(response *smithyhttp.Response,
}
}
-func awsRestjson1_deserializeOpDocumentInviteMembersOutput(v **InviteMembersOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetAggregatorV2Output(v **GetAggregatorV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -8712,20 +8636,47 @@ func awsRestjson1_deserializeOpDocumentInviteMembersOutput(v **InviteMembersOutp
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *InviteMembersOutput
+ var sv *GetAggregatorV2Output
if *v == nil {
- sv = &InviteMembersOutput{}
+ sv = &GetAggregatorV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "UnprocessedAccounts":
- if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
+ case "AggregationRegion":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.AggregationRegion = ptr.String(jtv)
+ }
+
+ case "AggregatorV2Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.AggregatorV2Arn = ptr.String(jtv)
+ }
+
+ case "LinkedRegions":
+ if err := awsRestjson1_deserializeDocumentStringList(&sv.LinkedRegions, value); err != nil {
return err
}
+ case "RegionLinkingMode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RegionLinkingMode = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
@@ -8735,14 +8686,14 @@ func awsRestjson1_deserializeOpDocumentInviteMembersOutput(v **InviteMembersOutp
return nil
}
-type awsRestjson1_deserializeOpListAutomationRules struct {
+type awsRestjson1_deserializeOpGetAutomationRuleV2 struct {
}
-func (*awsRestjson1_deserializeOpListAutomationRules) ID() string {
+func (*awsRestjson1_deserializeOpGetAutomationRuleV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListAutomationRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetAutomationRuleV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8760,9 +8711,9 @@ func (m *awsRestjson1_deserializeOpListAutomationRules) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListAutomationRules(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetAutomationRuleV2(response, &metadata)
}
- output := &ListAutomationRulesOutput{}
+ output := &GetAutomationRuleV2Output{}
out.Result = output
var buff [1024]byte
@@ -8783,7 +8734,7 @@ func (m *awsRestjson1_deserializeOpListAutomationRules) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListAutomationRulesOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetAutomationRuleV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -8797,7 +8748,7 @@ func (m *awsRestjson1_deserializeOpListAutomationRules) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListAutomationRules(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetAutomationRuleV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -8841,17 +8792,20 @@ func awsRestjson1_deserializeOpErrorListAutomationRules(response *smithyhttp.Res
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -8863,7 +8817,7 @@ func awsRestjson1_deserializeOpErrorListAutomationRules(response *smithyhttp.Res
}
}
-func awsRestjson1_deserializeOpDocumentListAutomationRulesOutput(v **ListAutomationRulesOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetAutomationRuleV2Output(v **GetAutomationRuleV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -8876,27 +8830,128 @@ func awsRestjson1_deserializeOpDocumentListAutomationRulesOutput(v **ListAutomat
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListAutomationRulesOutput
+ var sv *GetAutomationRuleV2Output
if *v == nil {
- sv = &ListAutomationRulesOutput{}
+ sv = &GetAutomationRuleV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "AutomationRulesMetadata":
- if err := awsRestjson1_deserializeDocumentAutomationRulesMetadataList(&sv.AutomationRulesMetadata, value); err != nil {
+ case "Actions":
+ if err := awsRestjson1_deserializeDocumentAutomationRulesActionListV2(&sv.Actions, value); err != nil {
return err
}
- case "NextToken":
+ case "CreatedAt":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(t)
+ }
+
+ case "Criteria":
+ if err := awsRestjson1_deserializeDocumentCriteria(&sv.Criteria, value); err != nil {
+ return err
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "RuleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RuleArn = ptr.String(jtv)
+ }
+
+ case "RuleId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RuleId = ptr.String(jtv)
+ }
+
+ case "RuleName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RuleName = ptr.String(jtv)
+ }
+
+ case "RuleOrder":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.RuleOrder = ptr.Float32(float32(f64))
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.RuleOrder = ptr.Float32(float32(f64))
+
+ default:
+ return fmt.Errorf("expected RuleOrderValueV2 to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "RuleStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected RuleStatusV2 to be of type string, got %T instead", value)
+ }
+ sv.RuleStatus = types.RuleStatusV2(jtv)
+ }
+
+ case "UpdatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(t)
}
default:
@@ -8908,14 +8963,14 @@ func awsRestjson1_deserializeOpDocumentListAutomationRulesOutput(v **ListAutomat
return nil
}
-type awsRestjson1_deserializeOpListConfigurationPolicies struct {
+type awsRestjson1_deserializeOpGetConfigurationPolicy struct {
}
-func (*awsRestjson1_deserializeOpListConfigurationPolicies) ID() string {
+func (*awsRestjson1_deserializeOpGetConfigurationPolicy) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListConfigurationPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetConfigurationPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -8933,9 +8988,9 @@ func (m *awsRestjson1_deserializeOpListConfigurationPolicies) HandleDeserialize(
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListConfigurationPolicies(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetConfigurationPolicy(response, &metadata)
}
- output := &ListConfigurationPoliciesOutput{}
+ output := &GetConfigurationPolicyOutput{}
out.Result = output
var buff [1024]byte
@@ -8956,7 +9011,7 @@ func (m *awsRestjson1_deserializeOpListConfigurationPolicies) HandleDeserialize(
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListConfigurationPoliciesOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetConfigurationPolicyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -8970,7 +9025,7 @@ func (m *awsRestjson1_deserializeOpListConfigurationPolicies) HandleDeserialize(
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListConfigurationPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetConfigurationPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -9026,6 +9081,9 @@ func awsRestjson1_deserializeOpErrorListConfigurationPolicies(response *smithyht
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -9036,7 +9094,7 @@ func awsRestjson1_deserializeOpErrorListConfigurationPolicies(response *smithyht
}
}
-func awsRestjson1_deserializeOpDocumentListConfigurationPoliciesOutput(v **ListConfigurationPoliciesOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetConfigurationPolicyOutput(v **GetConfigurationPolicyOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9049,27 +9107,80 @@ func awsRestjson1_deserializeOpDocumentListConfigurationPoliciesOutput(v **ListC
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListConfigurationPoliciesOutput
+ var sv *GetConfigurationPolicyOutput
if *v == nil {
- sv = &ListConfigurationPoliciesOutput{}
+ sv = &GetConfigurationPolicyOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ConfigurationPolicySummaries":
- if err := awsRestjson1_deserializeDocumentConfigurationPolicySummaryList(&sv.ConfigurationPolicySummaries, value); err != nil {
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "ConfigurationPolicy":
+ if err := awsRestjson1_deserializeDocumentPolicy(&sv.ConfigurationPolicy, value); err != nil {
return err
}
- case "NextToken":
+ case "CreatedAt":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "Id":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Id = ptr.String(jtv)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "UpdatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(t)
}
default:
@@ -9081,14 +9192,14 @@ func awsRestjson1_deserializeOpDocumentListConfigurationPoliciesOutput(v **ListC
return nil
}
-type awsRestjson1_deserializeOpListConfigurationPolicyAssociations struct {
+type awsRestjson1_deserializeOpGetConfigurationPolicyAssociation struct {
}
-func (*awsRestjson1_deserializeOpListConfigurationPolicyAssociations) ID() string {
+func (*awsRestjson1_deserializeOpGetConfigurationPolicyAssociation) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListConfigurationPolicyAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetConfigurationPolicyAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -9106,9 +9217,9 @@ func (m *awsRestjson1_deserializeOpListConfigurationPolicyAssociations) HandleDe
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListConfigurationPolicyAssociations(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetConfigurationPolicyAssociation(response, &metadata)
}
- output := &ListConfigurationPolicyAssociationsOutput{}
+ output := &GetConfigurationPolicyAssociationOutput{}
out.Result = output
var buff [1024]byte
@@ -9129,7 +9240,7 @@ func (m *awsRestjson1_deserializeOpListConfigurationPolicyAssociations) HandleDe
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListConfigurationPolicyAssociationsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetConfigurationPolicyAssociationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9143,7 +9254,7 @@ func (m *awsRestjson1_deserializeOpListConfigurationPolicyAssociations) HandleDe
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListConfigurationPolicyAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetConfigurationPolicyAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -9199,6 +9310,9 @@ func awsRestjson1_deserializeOpErrorListConfigurationPolicyAssociations(response
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -9209,7 +9323,7 @@ func awsRestjson1_deserializeOpErrorListConfigurationPolicyAssociations(response
}
}
-func awsRestjson1_deserializeOpDocumentListConfigurationPolicyAssociationsOutput(v **ListConfigurationPolicyAssociationsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetConfigurationPolicyAssociationOutput(v **GetConfigurationPolicyAssociationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9222,27 +9336,80 @@ func awsRestjson1_deserializeOpDocumentListConfigurationPolicyAssociationsOutput
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListConfigurationPolicyAssociationsOutput
+ var sv *GetConfigurationPolicyAssociationOutput
if *v == nil {
- sv = &ListConfigurationPolicyAssociationsOutput{}
+ sv = &GetConfigurationPolicyAssociationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ConfigurationPolicyAssociationSummaries":
- if err := awsRestjson1_deserializeDocumentConfigurationPolicyAssociationSummaryList(&sv.ConfigurationPolicyAssociationSummaries, value); err != nil {
- return err
+ case "AssociationStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ConfigurationPolicyAssociationStatus to be of type string, got %T instead", value)
+ }
+ sv.AssociationStatus = types.ConfigurationPolicyAssociationStatus(jtv)
}
- case "NextToken":
+ case "AssociationStatusMessage":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.AssociationStatusMessage = ptr.String(jtv)
+ }
+
+ case "AssociationType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value)
+ }
+ sv.AssociationType = types.AssociationType(jtv)
+ }
+
+ case "ConfigurationPolicyId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConfigurationPolicyId = ptr.String(jtv)
+ }
+
+ case "TargetId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.TargetId = ptr.String(jtv)
+ }
+
+ case "TargetType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TargetType to be of type string, got %T instead", value)
+ }
+ sv.TargetType = types.TargetType(jtv)
+ }
+
+ case "UpdatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(t)
}
default:
@@ -9254,14 +9421,14 @@ func awsRestjson1_deserializeOpDocumentListConfigurationPolicyAssociationsOutput
return nil
}
-type awsRestjson1_deserializeOpListEnabledProductsForImport struct {
+type awsRestjson1_deserializeOpGetConnectorV2 struct {
}
-func (*awsRestjson1_deserializeOpListEnabledProductsForImport) ID() string {
+func (*awsRestjson1_deserializeOpGetConnectorV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListEnabledProductsForImport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetConnectorV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -9279,9 +9446,9 @@ func (m *awsRestjson1_deserializeOpListEnabledProductsForImport) HandleDeseriali
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListEnabledProductsForImport(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetConnectorV2(response, &metadata)
}
- output := &ListEnabledProductsForImportOutput{}
+ output := &GetConnectorV2Output{}
out.Result = output
var buff [1024]byte
@@ -9302,7 +9469,7 @@ func (m *awsRestjson1_deserializeOpListEnabledProductsForImport) HandleDeseriali
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListEnabledProductsForImportOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetConnectorV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9316,7 +9483,7 @@ func (m *awsRestjson1_deserializeOpListEnabledProductsForImport) HandleDeseriali
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListEnabledProductsForImport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetConnectorV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -9357,14 +9524,23 @@ func awsRestjson1_deserializeOpErrorListEnabledProductsForImport(response *smith
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -9376,7 +9552,7 @@ func awsRestjson1_deserializeOpErrorListEnabledProductsForImport(response *smith
}
}
-func awsRestjson1_deserializeOpDocumentListEnabledProductsForImportOutput(v **ListEnabledProductsForImportOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetConnectorV2Output(v **GetConnectorV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9389,26 +9565,93 @@ func awsRestjson1_deserializeOpDocumentListEnabledProductsForImportOutput(v **Li
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListEnabledProductsForImportOutput
+ var sv *GetConnectorV2Output
if *v == nil {
- sv = &ListEnabledProductsForImportOutput{}
+ sv = &GetConnectorV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "NextToken":
+ case "ConnectorArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.ConnectorArn = ptr.String(jtv)
}
- case "ProductSubscriptions":
- if err := awsRestjson1_deserializeDocumentProductSubscriptionArnList(&sv.ProductSubscriptions, value); err != nil {
+ case "ConnectorId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConnectorId = ptr.String(jtv)
+ }
+
+ case "CreatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "Health":
+ if err := awsRestjson1_deserializeDocumentHealthCheck(&sv.Health, value); err != nil {
+ return err
+ }
+
+ case "KmsKeyArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.KmsKeyArn = ptr.String(jtv)
+ }
+
+ case "LastUpdatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.LastUpdatedAt = ptr.Time(t)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "ProviderDetail":
+ if err := awsRestjson1_deserializeDocumentProviderDetail(&sv.ProviderDetail, value); err != nil {
return err
}
@@ -9421,14 +9664,14 @@ func awsRestjson1_deserializeOpDocumentListEnabledProductsForImportOutput(v **Li
return nil
}
-type awsRestjson1_deserializeOpListFindingAggregators struct {
+type awsRestjson1_deserializeOpGetEnabledStandards struct {
}
-func (*awsRestjson1_deserializeOpListFindingAggregators) ID() string {
+func (*awsRestjson1_deserializeOpGetEnabledStandards) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListFindingAggregators) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetEnabledStandards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -9446,9 +9689,9 @@ func (m *awsRestjson1_deserializeOpListFindingAggregators) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListFindingAggregators(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetEnabledStandards(response, &metadata)
}
- output := &ListFindingAggregatorsOutput{}
+ output := &GetEnabledStandardsOutput{}
out.Result = output
var buff [1024]byte
@@ -9469,7 +9712,7 @@ func (m *awsRestjson1_deserializeOpListFindingAggregators) HandleDeserialize(ctx
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListFindingAggregatorsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetEnabledStandardsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9483,7 +9726,7 @@ func (m *awsRestjson1_deserializeOpListFindingAggregators) HandleDeserialize(ctx
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListFindingAggregators(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetEnabledStandards(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -9524,9 +9767,6 @@ func awsRestjson1_deserializeOpErrorListFindingAggregators(response *smithyhttp.
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -9549,7 +9789,7 @@ func awsRestjson1_deserializeOpErrorListFindingAggregators(response *smithyhttp.
}
}
-func awsRestjson1_deserializeOpDocumentListFindingAggregatorsOutput(v **ListFindingAggregatorsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetEnabledStandardsOutput(v **GetEnabledStandardsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9562,20 +9802,15 @@ func awsRestjson1_deserializeOpDocumentListFindingAggregatorsOutput(v **ListFind
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListFindingAggregatorsOutput
+ var sv *GetEnabledStandardsOutput
if *v == nil {
- sv = &ListFindingAggregatorsOutput{}
+ sv = &GetEnabledStandardsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "FindingAggregators":
- if err := awsRestjson1_deserializeDocumentFindingAggregatorList(&sv.FindingAggregators, value); err != nil {
- return err
- }
-
case "NextToken":
if value != nil {
jtv, ok := value.(string)
@@ -9585,6 +9820,11 @@ func awsRestjson1_deserializeOpDocumentListFindingAggregatorsOutput(v **ListFind
sv.NextToken = ptr.String(jtv)
}
+ case "StandardsSubscriptions":
+ if err := awsRestjson1_deserializeDocumentStandardsSubscriptions(&sv.StandardsSubscriptions, value); err != nil {
+ return err
+ }
+
default:
_, _ = key, value
@@ -9594,14 +9834,14 @@ func awsRestjson1_deserializeOpDocumentListFindingAggregatorsOutput(v **ListFind
return nil
}
-type awsRestjson1_deserializeOpListInvitations struct {
+type awsRestjson1_deserializeOpGetFindingAggregator struct {
}
-func (*awsRestjson1_deserializeOpListInvitations) ID() string {
+func (*awsRestjson1_deserializeOpGetFindingAggregator) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListInvitations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetFindingAggregator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -9619,9 +9859,9 @@ func (m *awsRestjson1_deserializeOpListInvitations) HandleDeserialize(ctx contex
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListInvitations(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetFindingAggregator(response, &metadata)
}
- output := &ListInvitationsOutput{}
+ output := &GetFindingAggregatorOutput{}
out.Result = output
var buff [1024]byte
@@ -9642,7 +9882,7 @@ func (m *awsRestjson1_deserializeOpListInvitations) HandleDeserialize(ctx contex
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListInvitationsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetFindingAggregatorOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9656,7 +9896,7 @@ func (m *awsRestjson1_deserializeOpListInvitations) HandleDeserialize(ctx contex
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListInvitations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetFindingAggregator(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -9697,6 +9937,9 @@ func awsRestjson1_deserializeOpErrorListInvitations(response *smithyhttp.Respons
}
switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -9709,6 +9952,9 @@ func awsRestjson1_deserializeOpErrorListInvitations(response *smithyhttp.Respons
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -9719,7 +9965,7 @@ func awsRestjson1_deserializeOpErrorListInvitations(response *smithyhttp.Respons
}
}
-func awsRestjson1_deserializeOpDocumentListInvitationsOutput(v **ListInvitationsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetFindingAggregatorOutput(v **GetFindingAggregatorOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -9732,197 +9978,45 @@ func awsRestjson1_deserializeOpDocumentListInvitationsOutput(v **ListInvitations
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListInvitationsOutput
+ var sv *GetFindingAggregatorOutput
if *v == nil {
- sv = &ListInvitationsOutput{}
+ sv = &GetFindingAggregatorOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Invitations":
- if err := awsRestjson1_deserializeDocumentInvitationList(&sv.Invitations, value); err != nil {
- return err
- }
-
- case "NextToken":
+ case "FindingAggregationRegion":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.FindingAggregationRegion = ptr.String(jtv)
}
- default:
- _, _ = key, value
-
- }
- }
- *v = sv
- return nil
-}
-
-type awsRestjson1_deserializeOpListMembers struct {
-}
-
-func (*awsRestjson1_deserializeOpListMembers) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, in)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListMembers(response, &metadata)
- }
- output := &ListMembersOutput{}
- out.Result = output
-
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(response.Body, ringBuffer)
-
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- var shape interface{}
- if err := decoder.Decode(&shape); err != nil && err != io.EOF {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return out, metadata, err
- }
-
- err = awsRestjson1_deserializeOpDocumentListMembersOutput(&output, shape)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- return out, metadata, &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- }
-
- span.End()
- return out, metadata, err
-}
-
-func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
- var errorBuffer bytes.Buffer
- if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
- }
- errorBody := bytes.NewReader(errorBuffer.Bytes())
-
- errorCode := "UnknownError"
- errorMessage := errorCode
-
- headerCode := response.Header.Get("X-Amzn-ErrorType")
- if len(headerCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(headerCode)
- }
-
- var buff [1024]byte
- ringBuffer := smithyio.NewRingBuffer(buff[:])
-
- body := io.TeeReader(errorBody, ringBuffer)
- decoder := json.NewDecoder(body)
- decoder.UseNumber()
- jsonCode, message, err := restjson.GetErrorInfo(decoder)
- if err != nil {
- var snapshot bytes.Buffer
- io.Copy(&snapshot, ringBuffer)
- err = &smithy.DeserializationError{
- Err: fmt.Errorf("failed to decode response body, %w", err),
- Snapshot: snapshot.Bytes(),
- }
- return err
- }
-
- errorBody.Seek(0, io.SeekStart)
- if len(headerCode) == 0 && len(jsonCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(jsonCode)
- }
- if len(message) != 0 {
- errorMessage = message
- }
-
- switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
-
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
-
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
- default:
- genericError := &smithy.GenericAPIError{
- Code: errorCode,
- Message: errorMessage,
- }
- return genericError
-
- }
-}
-
-func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
-
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
-
- var sv *ListMembersOutput
- if *v == nil {
- sv = &ListMembersOutput{}
- } else {
- sv = *v
- }
-
- for key, value := range shape {
- switch key {
- case "Members":
- if err := awsRestjson1_deserializeDocumentMemberList(&sv.Members, value); err != nil {
- return err
+ case "FindingAggregatorArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.FindingAggregatorArn = ptr.String(jtv)
}
- case "NextToken":
+ case "RegionLinkingMode":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.NextToken = ptr.String(jtv)
+ sv.RegionLinkingMode = ptr.String(jtv)
+ }
+
+ case "Regions":
+ if err := awsRestjson1_deserializeDocumentStringList(&sv.Regions, value); err != nil {
+ return err
}
default:
@@ -9934,14 +10028,14 @@ func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput,
return nil
}
-type awsRestjson1_deserializeOpListOrganizationAdminAccounts struct {
+type awsRestjson1_deserializeOpGetFindingHistory struct {
}
-func (*awsRestjson1_deserializeOpListOrganizationAdminAccounts) ID() string {
+func (*awsRestjson1_deserializeOpGetFindingHistory) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListOrganizationAdminAccounts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetFindingHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -9959,9 +10053,9 @@ func (m *awsRestjson1_deserializeOpListOrganizationAdminAccounts) HandleDeserial
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListOrganizationAdminAccounts(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetFindingHistory(response, &metadata)
}
- output := &ListOrganizationAdminAccountsOutput{}
+ output := &GetFindingHistoryOutput{}
out.Result = output
var buff [1024]byte
@@ -9982,7 +10076,7 @@ func (m *awsRestjson1_deserializeOpListOrganizationAdminAccounts) HandleDeserial
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetFindingHistoryOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -9996,7 +10090,7 @@ func (m *awsRestjson1_deserializeOpListOrganizationAdminAccounts) HandleDeserial
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListOrganizationAdminAccounts(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetFindingHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -10059,7 +10153,7 @@ func awsRestjson1_deserializeOpErrorListOrganizationAdminAccounts(response *smit
}
}
-func awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(v **ListOrganizationAdminAccountsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetFindingHistoryOutput(v **GetFindingHistoryOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10072,20 +10166,15 @@ func awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(v **L
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListOrganizationAdminAccountsOutput
+ var sv *GetFindingHistoryOutput
if *v == nil {
- sv = &ListOrganizationAdminAccountsOutput{}
+ sv = &GetFindingHistoryOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "AdminAccounts":
- if err := awsRestjson1_deserializeDocumentAdminAccounts(&sv.AdminAccounts, value); err != nil {
- return err
- }
-
case "NextToken":
if value != nil {
jtv, ok := value.(string)
@@ -10095,6 +10184,11 @@ func awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(v **L
sv.NextToken = ptr.String(jtv)
}
+ case "Records":
+ if err := awsRestjson1_deserializeDocumentFindingHistoryRecordList(&sv.Records, value); err != nil {
+ return err
+ }
+
default:
_, _ = key, value
@@ -10104,14 +10198,14 @@ func awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(v **L
return nil
}
-type awsRestjson1_deserializeOpListSecurityControlDefinitions struct {
+type awsRestjson1_deserializeOpGetFindings struct {
}
-func (*awsRestjson1_deserializeOpListSecurityControlDefinitions) ID() string {
+func (*awsRestjson1_deserializeOpGetFindings) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListSecurityControlDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetFindings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -10129,9 +10223,9 @@ func (m *awsRestjson1_deserializeOpListSecurityControlDefinitions) HandleDeseria
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListSecurityControlDefinitions(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetFindings(response, &metadata)
}
- output := &ListSecurityControlDefinitionsOutput{}
+ output := &GetFindingsOutput{}
out.Result = output
var buff [1024]byte
@@ -10152,7 +10246,7 @@ func (m *awsRestjson1_deserializeOpListSecurityControlDefinitions) HandleDeseria
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListSecurityControlDefinitionsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetFindingsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -10166,7 +10260,7 @@ func (m *awsRestjson1_deserializeOpListSecurityControlDefinitions) HandleDeseria
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListSecurityControlDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetFindings(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -10229,7 +10323,7 @@ func awsRestjson1_deserializeOpErrorListSecurityControlDefinitions(response *smi
}
}
-func awsRestjson1_deserializeOpDocumentListSecurityControlDefinitionsOutput(v **ListSecurityControlDefinitionsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetFindingsOutput(v **GetFindingsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10242,15 +10336,20 @@ func awsRestjson1_deserializeOpDocumentListSecurityControlDefinitionsOutput(v **
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListSecurityControlDefinitionsOutput
+ var sv *GetFindingsOutput
if *v == nil {
- sv = &ListSecurityControlDefinitionsOutput{}
+ sv = &GetFindingsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
+ case "Findings":
+ if err := awsRestjson1_deserializeDocumentAwsSecurityFindingList(&sv.Findings, value); err != nil {
+ return err
+ }
+
case "NextToken":
if value != nil {
jtv, ok := value.(string)
@@ -10260,11 +10359,6 @@ func awsRestjson1_deserializeOpDocumentListSecurityControlDefinitionsOutput(v **
sv.NextToken = ptr.String(jtv)
}
- case "SecurityControlDefinitions":
- if err := awsRestjson1_deserializeDocumentSecurityControlDefinitions(&sv.SecurityControlDefinitions, value); err != nil {
- return err
- }
-
default:
_, _ = key, value
@@ -10274,14 +10368,14 @@ func awsRestjson1_deserializeOpDocumentListSecurityControlDefinitionsOutput(v **
return nil
}
-type awsRestjson1_deserializeOpListStandardsControlAssociations struct {
+type awsRestjson1_deserializeOpGetFindingStatisticsV2 struct {
}
-func (*awsRestjson1_deserializeOpListStandardsControlAssociations) ID() string {
+func (*awsRestjson1_deserializeOpGetFindingStatisticsV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListStandardsControlAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetFindingStatisticsV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -10299,9 +10393,9 @@ func (m *awsRestjson1_deserializeOpListStandardsControlAssociations) HandleDeser
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListStandardsControlAssociations(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetFindingStatisticsV2(response, &metadata)
}
- output := &ListStandardsControlAssociationsOutput{}
+ output := &GetFindingStatisticsV2Output{}
out.Result = output
var buff [1024]byte
@@ -10322,7 +10416,7 @@ func (m *awsRestjson1_deserializeOpListStandardsControlAssociations) HandleDeser
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListStandardsControlAssociationsOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetFindingStatisticsV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -10336,7 +10430,7 @@ func (m *awsRestjson1_deserializeOpListStandardsControlAssociations) HandleDeser
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListStandardsControlAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetFindingStatisticsV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -10377,17 +10471,20 @@ func awsRestjson1_deserializeOpErrorListStandardsControlAssociations(response *s
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -10399,7 +10496,7 @@ func awsRestjson1_deserializeOpErrorListStandardsControlAssociations(response *s
}
}
-func awsRestjson1_deserializeOpDocumentListStandardsControlAssociationsOutput(v **ListStandardsControlAssociationsOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetFindingStatisticsV2Output(v **GetFindingStatisticsV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10412,26 +10509,17 @@ func awsRestjson1_deserializeOpDocumentListStandardsControlAssociationsOutput(v
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListStandardsControlAssociationsOutput
+ var sv *GetFindingStatisticsV2Output
if *v == nil {
- sv = &ListStandardsControlAssociationsOutput{}
+ sv = &GetFindingStatisticsV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "NextToken":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
- }
- sv.NextToken = ptr.String(jtv)
- }
-
- case "StandardsControlAssociationSummaries":
- if err := awsRestjson1_deserializeDocumentStandardsControlAssociationSummaries(&sv.StandardsControlAssociationSummaries, value); err != nil {
+ case "GroupByResults":
+ if err := awsRestjson1_deserializeDocumentGroupByResults(&sv.GroupByResults, value); err != nil {
return err
}
@@ -10444,14 +10532,14 @@ func awsRestjson1_deserializeOpDocumentListStandardsControlAssociationsOutput(v
return nil
}
-type awsRestjson1_deserializeOpListTagsForResource struct {
+type awsRestjson1_deserializeOpGetFindingsV2 struct {
}
-func (*awsRestjson1_deserializeOpListTagsForResource) ID() string {
+func (*awsRestjson1_deserializeOpGetFindingsV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetFindingsV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -10469,9 +10557,9 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetFindingsV2(response, &metadata)
}
- output := &ListTagsForResourceOutput{}
+ output := &GetFindingsV2Output{}
out.Result = output
var buff [1024]byte
@@ -10492,7 +10580,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetFindingsV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -10506,7 +10594,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetFindingsV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -10547,14 +10635,20 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res
}
switch {
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -10566,7 +10660,7 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res
}
}
-func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetFindingsV2Output(v **GetFindingsV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10579,20 +10673,29 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *ListTagsForResourceOutput
+ var sv *GetFindingsV2Output
if *v == nil {
- sv = &ListTagsForResourceOutput{}
+ sv = &GetFindingsV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Tags":
- if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
+ case "Findings":
+ if err := awsRestjson1_deserializeDocumentOcsfFindingsList(&sv.Findings, value); err != nil {
return err
}
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
default:
_, _ = key, value
@@ -10602,14 +10705,14 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor
return nil
}
-type awsRestjson1_deserializeOpStartConfigurationPolicyAssociation struct {
+type awsRestjson1_deserializeOpGetInsightResults struct {
}
-func (*awsRestjson1_deserializeOpStartConfigurationPolicyAssociation) ID() string {
+func (*awsRestjson1_deserializeOpGetInsightResults) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpStartConfigurationPolicyAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetInsightResults) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -10627,9 +10730,9 @@ func (m *awsRestjson1_deserializeOpStartConfigurationPolicyAssociation) HandleDe
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorStartConfigurationPolicyAssociation(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetInsightResults(response, &metadata)
}
- output := &StartConfigurationPolicyAssociationOutput{}
+ output := &GetInsightResultsOutput{}
out.Result = output
var buff [1024]byte
@@ -10650,7 +10753,7 @@ func (m *awsRestjson1_deserializeOpStartConfigurationPolicyAssociation) HandleDe
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentStartConfigurationPolicyAssociationOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetInsightResultsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -10664,7 +10767,7 @@ func (m *awsRestjson1_deserializeOpStartConfigurationPolicyAssociation) HandleDe
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorStartConfigurationPolicyAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetInsightResults(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -10705,9 +10808,6 @@ func awsRestjson1_deserializeOpErrorStartConfigurationPolicyAssociation(response
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -10733,7 +10833,7 @@ func awsRestjson1_deserializeOpErrorStartConfigurationPolicyAssociation(response
}
}
-func awsRestjson1_deserializeOpDocumentStartConfigurationPolicyAssociationOutput(v **StartConfigurationPolicyAssociationOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetInsightResultsOutput(v **GetInsightResultsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -10746,80 +10846,18 @@ func awsRestjson1_deserializeOpDocumentStartConfigurationPolicyAssociationOutput
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *StartConfigurationPolicyAssociationOutput
+ var sv *GetInsightResultsOutput
if *v == nil {
- sv = &StartConfigurationPolicyAssociationOutput{}
+ sv = &GetInsightResultsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "AssociationStatus":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ConfigurationPolicyAssociationStatus to be of type string, got %T instead", value)
- }
- sv.AssociationStatus = types.ConfigurationPolicyAssociationStatus(jtv)
- }
-
- case "AssociationStatusMessage":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.AssociationStatusMessage = ptr.String(jtv)
- }
-
- case "AssociationType":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value)
- }
- sv.AssociationType = types.AssociationType(jtv)
- }
-
- case "ConfigurationPolicyId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ConfigurationPolicyId = ptr.String(jtv)
- }
-
- case "TargetId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.TargetId = ptr.String(jtv)
- }
-
- case "TargetType":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected TargetType to be of type string, got %T instead", value)
- }
- sv.TargetType = types.TargetType(jtv)
- }
-
- case "UpdatedAt":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
- }
- t, err := smithytime.ParseDateTime(jtv)
- if err != nil {
- return err
- }
- sv.UpdatedAt = ptr.Time(t)
+ case "InsightResults":
+ if err := awsRestjson1_deserializeDocumentInsightResults(&sv.InsightResults, value); err != nil {
+ return err
}
default:
@@ -10831,14 +10869,14 @@ func awsRestjson1_deserializeOpDocumentStartConfigurationPolicyAssociationOutput
return nil
}
-type awsRestjson1_deserializeOpStartConfigurationPolicyDisassociation struct {
+type awsRestjson1_deserializeOpGetInsights struct {
}
-func (*awsRestjson1_deserializeOpStartConfigurationPolicyDisassociation) ID() string {
+func (*awsRestjson1_deserializeOpGetInsights) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpStartConfigurationPolicyDisassociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetInsights) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -10856,16 +10894,44 @@ func (m *awsRestjson1_deserializeOpStartConfigurationPolicyDisassociation) Handl
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorStartConfigurationPolicyDisassociation(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetInsights(response, &metadata)
}
- output := &StartConfigurationPolicyDisassociationOutput{}
+ output := &GetInsightsOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetInsightsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorStartConfigurationPolicyDisassociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetInsights(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -10906,9 +10972,6 @@ func awsRestjson1_deserializeOpErrorStartConfigurationPolicyDisassociation(respo
}
switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
@@ -10934,14 +10997,59 @@ func awsRestjson1_deserializeOpErrorStartConfigurationPolicyDisassociation(respo
}
}
-type awsRestjson1_deserializeOpTagResource struct {
+func awsRestjson1_deserializeOpDocumentGetInsightsOutput(v **GetInsightsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetInsightsOutput
+ if *v == nil {
+ sv = &GetInsightsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Insights":
+ if err := awsRestjson1_deserializeDocumentInsightList(&sv.Insights, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpTagResource) ID() string {
+type awsRestjson1_deserializeOpGetInvitationsCount struct {
+}
+
+func (*awsRestjson1_deserializeOpGetInvitationsCount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetInvitationsCount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -10959,16 +11067,44 @@ func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Co
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetInvitationsCount(response, &metadata)
}
- output := &TagResourceOutput{}
+ output := &GetInvitationsCountOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetInvitationsCount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -11012,11 +11148,14 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
@@ -11028,14 +11167,58 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m
}
}
-type awsRestjson1_deserializeOpUntagResource struct {
+func awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(v **GetInvitationsCountOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetInvitationsCountOutput
+ if *v == nil {
+ sv = &GetInvitationsCountOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "InvitationsCount":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.InvitationsCount = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpUntagResource) ID() string {
+type awsRestjson1_deserializeOpGetMasterAccount struct {
+}
+
+func (*awsRestjson1_deserializeOpGetMasterAccount) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetMasterAccount) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -11053,16 +11236,44 @@ func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetMasterAccount(response, &metadata)
}
- output := &UntagResourceOutput{}
+ output := &GetMasterAccountOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetMasterAccountOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetMasterAccount(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -11106,9 +11317,15 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response,
case strings.EqualFold("InternalException", errorCode):
return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -11122,14 +11339,50 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response,
}
}
-type awsRestjson1_deserializeOpUpdateActionTarget struct {
+func awsRestjson1_deserializeOpDocumentGetMasterAccountOutput(v **GetMasterAccountOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetMasterAccountOutput
+ if *v == nil {
+ sv = &GetMasterAccountOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Master":
+ if err := awsRestjson1_deserializeDocumentInvitation(&sv.Master, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpUpdateActionTarget) ID() string {
+type awsRestjson1_deserializeOpGetMembers struct {
+}
+
+func (*awsRestjson1_deserializeOpGetMembers) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateActionTarget) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -11147,16 +11400,44 @@ func (m *awsRestjson1_deserializeOpUpdateActionTarget) HandleDeserialize(ctx con
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateActionTarget(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetMembers(response, &metadata)
}
- output := &UpdateActionTargetOutput{}
+ output := &GetMembersOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetMembersOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateActionTarget(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -11206,6 +11487,9 @@ func awsRestjson1_deserializeOpErrorUpdateActionTarget(response *smithyhttp.Resp
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -11219,14 +11503,55 @@ func awsRestjson1_deserializeOpErrorUpdateActionTarget(response *smithyhttp.Resp
}
}
-type awsRestjson1_deserializeOpUpdateConfigurationPolicy struct {
+func awsRestjson1_deserializeOpDocumentGetMembersOutput(v **GetMembersOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetMembersOutput
+ if *v == nil {
+ sv = &GetMembersOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Members":
+ if err := awsRestjson1_deserializeDocumentMemberList(&sv.Members, value); err != nil {
+ return err
+ }
+
+ case "UnprocessedAccounts":
+ if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpUpdateConfigurationPolicy) ID() string {
+type awsRestjson1_deserializeOpGetResourcesStatisticsV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpGetResourcesStatisticsV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateConfigurationPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetResourcesStatisticsV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -11244,9 +11569,9 @@ func (m *awsRestjson1_deserializeOpUpdateConfigurationPolicy) HandleDeserialize(
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfigurationPolicy(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetResourcesStatisticsV2(response, &metadata)
}
- output := &UpdateConfigurationPolicyOutput{}
+ output := &GetResourcesStatisticsV2Output{}
out.Result = output
var buff [1024]byte
@@ -11267,7 +11592,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfigurationPolicy) HandleDeserialize(
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentUpdateConfigurationPolicyOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetResourcesStatisticsV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -11281,7 +11606,7 @@ func (m *awsRestjson1_deserializeOpUpdateConfigurationPolicy) HandleDeserialize(
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateConfigurationPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetResourcesStatisticsV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -11325,24 +11650,21 @@ func awsRestjson1_deserializeOpErrorUpdateConfigurationPolicy(response *smithyht
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
-
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
- case strings.EqualFold("ResourceConflictException", errorCode):
- return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -11353,7 +11675,7 @@ func awsRestjson1_deserializeOpErrorUpdateConfigurationPolicy(response *smithyht
}
}
-func awsRestjson1_deserializeOpDocumentUpdateConfigurationPolicyOutput(v **UpdateConfigurationPolicyOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetResourcesStatisticsV2Output(v **GetResourcesStatisticsV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11366,82 +11688,20 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationPolicyOutput(v **Updat
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *UpdateConfigurationPolicyOutput
+ var sv *GetResourcesStatisticsV2Output
if *v == nil {
- sv = &UpdateConfigurationPolicyOutput{}
+ sv = &GetResourcesStatisticsV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Arn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Arn = ptr.String(jtv)
- }
-
- case "ConfigurationPolicy":
- if err := awsRestjson1_deserializeDocumentPolicy(&sv.ConfigurationPolicy, value); err != nil {
+ case "GroupByResults":
+ if err := awsRestjson1_deserializeDocumentGroupByResults(&sv.GroupByResults, value); err != nil {
return err
}
- case "CreatedAt":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
- }
- t, err := smithytime.ParseDateTime(jtv)
- if err != nil {
- return err
- }
- sv.CreatedAt = ptr.Time(t)
- }
-
- case "Description":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Description = ptr.String(jtv)
- }
-
- case "Id":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Id = ptr.String(jtv)
- }
-
- case "Name":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Name = ptr.String(jtv)
- }
-
- case "UpdatedAt":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
- }
- t, err := smithytime.ParseDateTime(jtv)
- if err != nil {
- return err
- }
- sv.UpdatedAt = ptr.Time(t)
- }
-
default:
_, _ = key, value
@@ -11451,14 +11711,14 @@ func awsRestjson1_deserializeOpDocumentUpdateConfigurationPolicyOutput(v **Updat
return nil
}
-type awsRestjson1_deserializeOpUpdateFindingAggregator struct {
+type awsRestjson1_deserializeOpGetResourcesV2 struct {
}
-func (*awsRestjson1_deserializeOpUpdateFindingAggregator) ID() string {
+func (*awsRestjson1_deserializeOpGetResourcesV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateFindingAggregator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetResourcesV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -11476,9 +11736,9 @@ func (m *awsRestjson1_deserializeOpUpdateFindingAggregator) HandleDeserialize(ct
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateFindingAggregator(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetResourcesV2(response, &metadata)
}
- output := &UpdateFindingAggregatorOutput{}
+ output := &GetResourcesV2Output{}
out.Result = output
var buff [1024]byte
@@ -11499,7 +11759,7 @@ func (m *awsRestjson1_deserializeOpUpdateFindingAggregator) HandleDeserialize(ct
return out, metadata, err
}
- err = awsRestjson1_deserializeOpDocumentUpdateFindingAggregatorOutput(&output, shape)
+ err = awsRestjson1_deserializeOpDocumentGetResourcesV2Output(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
@@ -11513,7 +11773,7 @@ func (m *awsRestjson1_deserializeOpUpdateFindingAggregator) HandleDeserialize(ct
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateFindingAggregator(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetResourcesV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -11557,21 +11817,21 @@ func awsRestjson1_deserializeOpErrorUpdateFindingAggregator(response *smithyhttp
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
-
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
@@ -11582,7 +11842,7 @@ func awsRestjson1_deserializeOpErrorUpdateFindingAggregator(response *smithyhttp
}
}
-func awsRestjson1_deserializeOpDocumentUpdateFindingAggregatorOutput(v **UpdateFindingAggregatorOutput, value interface{}) error {
+func awsRestjson1_deserializeOpDocumentGetResourcesV2Output(v **GetResourcesV2Output, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -11595,44 +11855,26 @@ func awsRestjson1_deserializeOpDocumentUpdateFindingAggregatorOutput(v **UpdateF
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *UpdateFindingAggregatorOutput
+ var sv *GetResourcesV2Output
if *v == nil {
- sv = &UpdateFindingAggregatorOutput{}
+ sv = &GetResourcesV2Output{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "FindingAggregationRegion":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.FindingAggregationRegion = ptr.String(jtv)
- }
-
- case "FindingAggregatorArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.FindingAggregatorArn = ptr.String(jtv)
- }
-
- case "RegionLinkingMode":
+ case "NextToken":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
}
- sv.RegionLinkingMode = ptr.String(jtv)
+ sv.NextToken = ptr.String(jtv)
}
- case "Regions":
- if err := awsRestjson1_deserializeDocumentStringList(&sv.Regions, value); err != nil {
+ case "Resources":
+ if err := awsRestjson1_deserializeDocumentResources(&sv.Resources, value); err != nil {
return err
}
@@ -11645,14 +11887,14 @@ func awsRestjson1_deserializeOpDocumentUpdateFindingAggregatorOutput(v **UpdateF
return nil
}
-type awsRestjson1_deserializeOpUpdateFindings struct {
+type awsRestjson1_deserializeOpGetSecurityControlDefinition struct {
}
-func (*awsRestjson1_deserializeOpUpdateFindings) ID() string {
+func (*awsRestjson1_deserializeOpGetSecurityControlDefinition) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateFindings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpGetSecurityControlDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -11670,16 +11912,44 @@ func (m *awsRestjson1_deserializeOpUpdateFindings) HandleDeserialize(ctx context
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateFindings(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorGetSecurityControlDefinition(response, &metadata)
}
- output := &UpdateFindingsOutput{}
+ output := &GetSecurityControlDefinitionOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentGetSecurityControlDefinitionOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateFindings(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorGetSecurityControlDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -11745,14 +12015,50 @@ func awsRestjson1_deserializeOpErrorUpdateFindings(response *smithyhttp.Response
}
}
-type awsRestjson1_deserializeOpUpdateInsight struct {
+func awsRestjson1_deserializeOpDocumentGetSecurityControlDefinitionOutput(v **GetSecurityControlDefinitionOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *GetSecurityControlDefinitionOutput
+ if *v == nil {
+ sv = &GetSecurityControlDefinitionOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "SecurityControlDefinition":
+ if err := awsRestjson1_deserializeDocumentSecurityControlDefinition(&sv.SecurityControlDefinition, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpUpdateInsight) ID() string {
+type awsRestjson1_deserializeOpInviteMembers struct {
+}
+
+func (*awsRestjson1_deserializeOpInviteMembers) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateInsight) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpInviteMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -11770,16 +12076,44 @@ func (m *awsRestjson1_deserializeOpUpdateInsight) HandleDeserialize(ctx context.
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateInsight(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorInviteMembers(response, &metadata)
}
- output := &UpdateInsightOutput{}
+ output := &InviteMembersOutput{}
out.Result = output
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentInviteMembersOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateInsight(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorInviteMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -11845,14 +12179,50 @@ func awsRestjson1_deserializeOpErrorUpdateInsight(response *smithyhttp.Response,
}
}
-type awsRestjson1_deserializeOpUpdateOrganizationConfiguration struct {
+func awsRestjson1_deserializeOpDocumentInviteMembersOutput(v **InviteMembersOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *InviteMembersOutput
+ if *v == nil {
+ sv = &InviteMembersOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "UnprocessedAccounts":
+ if err := awsRestjson1_deserializeDocumentResultList(&sv.UnprocessedAccounts, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
}
-func (*awsRestjson1_deserializeOpUpdateOrganizationConfiguration) ID() string {
+type awsRestjson1_deserializeOpListAggregatorsV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpListAggregatorsV2) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateOrganizationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpListAggregatorsV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -11870,9 +12240,4053 @@ func (m *awsRestjson1_deserializeOpUpdateOrganizationConfiguration) HandleDeseri
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorListAggregatorsV2(response, &metadata)
}
- output := &UpdateOrganizationConfigurationOutput{}
+ output := &ListAggregatorsV2Output{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListAggregatorsV2Output(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListAggregatorsV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListAggregatorsV2Output(v **ListAggregatorsV2Output, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListAggregatorsV2Output
+ if *v == nil {
+ sv = &ListAggregatorsV2Output{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AggregatorsV2":
+ if err := awsRestjson1_deserializeDocumentAggregatorV2List(&sv.AggregatorsV2, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListAutomationRules struct {
+}
+
+func (*awsRestjson1_deserializeOpListAutomationRules) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListAutomationRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListAutomationRules(response, &metadata)
+ }
+ output := &ListAutomationRulesOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListAutomationRulesOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListAutomationRules(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListAutomationRulesOutput(v **ListAutomationRulesOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListAutomationRulesOutput
+ if *v == nil {
+ sv = &ListAutomationRulesOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AutomationRulesMetadata":
+ if err := awsRestjson1_deserializeDocumentAutomationRulesMetadataList(&sv.AutomationRulesMetadata, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListAutomationRulesV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpListAutomationRulesV2) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListAutomationRulesV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListAutomationRulesV2(response, &metadata)
+ }
+ output := &ListAutomationRulesV2Output{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListAutomationRulesV2Output(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListAutomationRulesV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListAutomationRulesV2Output(v **ListAutomationRulesV2Output, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListAutomationRulesV2Output
+ if *v == nil {
+ sv = &ListAutomationRulesV2Output{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "Rules":
+ if err := awsRestjson1_deserializeDocumentAutomationRulesMetadataListV2(&sv.Rules, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListConfigurationPolicies struct {
+}
+
+func (*awsRestjson1_deserializeOpListConfigurationPolicies) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListConfigurationPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListConfigurationPolicies(response, &metadata)
+ }
+ output := &ListConfigurationPoliciesOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListConfigurationPoliciesOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListConfigurationPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListConfigurationPoliciesOutput(v **ListConfigurationPoliciesOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListConfigurationPoliciesOutput
+ if *v == nil {
+ sv = &ListConfigurationPoliciesOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ConfigurationPolicySummaries":
+ if err := awsRestjson1_deserializeDocumentConfigurationPolicySummaryList(&sv.ConfigurationPolicySummaries, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListConfigurationPolicyAssociations struct {
+}
+
+func (*awsRestjson1_deserializeOpListConfigurationPolicyAssociations) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListConfigurationPolicyAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListConfigurationPolicyAssociations(response, &metadata)
+ }
+ output := &ListConfigurationPolicyAssociationsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListConfigurationPolicyAssociationsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListConfigurationPolicyAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListConfigurationPolicyAssociationsOutput(v **ListConfigurationPolicyAssociationsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListConfigurationPolicyAssociationsOutput
+ if *v == nil {
+ sv = &ListConfigurationPolicyAssociationsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ConfigurationPolicyAssociationSummaries":
+ if err := awsRestjson1_deserializeDocumentConfigurationPolicyAssociationSummaryList(&sv.ConfigurationPolicyAssociationSummaries, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListConnectorsV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpListConnectorsV2) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListConnectorsV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListConnectorsV2(response, &metadata)
+ }
+ output := &ListConnectorsV2Output{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListConnectorsV2Output(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListConnectorsV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListConnectorsV2Output(v **ListConnectorsV2Output, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListConnectorsV2Output
+ if *v == nil {
+ sv = &ListConnectorsV2Output{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Connectors":
+ if err := awsRestjson1_deserializeDocumentConnectorSummaryList(&sv.Connectors, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListEnabledProductsForImport struct {
+}
+
+func (*awsRestjson1_deserializeOpListEnabledProductsForImport) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListEnabledProductsForImport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListEnabledProductsForImport(response, &metadata)
+ }
+ output := &ListEnabledProductsForImportOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListEnabledProductsForImportOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListEnabledProductsForImport(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListEnabledProductsForImportOutput(v **ListEnabledProductsForImportOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListEnabledProductsForImportOutput
+ if *v == nil {
+ sv = &ListEnabledProductsForImportOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "ProductSubscriptions":
+ if err := awsRestjson1_deserializeDocumentProductSubscriptionArnList(&sv.ProductSubscriptions, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListFindingAggregators struct {
+}
+
+func (*awsRestjson1_deserializeOpListFindingAggregators) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListFindingAggregators) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListFindingAggregators(response, &metadata)
+ }
+ output := &ListFindingAggregatorsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListFindingAggregatorsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListFindingAggregators(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListFindingAggregatorsOutput(v **ListFindingAggregatorsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListFindingAggregatorsOutput
+ if *v == nil {
+ sv = &ListFindingAggregatorsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "FindingAggregators":
+ if err := awsRestjson1_deserializeDocumentFindingAggregatorList(&sv.FindingAggregators, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListInvitations struct {
+}
+
+func (*awsRestjson1_deserializeOpListInvitations) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListInvitations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListInvitations(response, &metadata)
+ }
+ output := &ListInvitationsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListInvitationsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListInvitations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListInvitationsOutput(v **ListInvitationsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListInvitationsOutput
+ if *v == nil {
+ sv = &ListInvitationsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Invitations":
+ if err := awsRestjson1_deserializeDocumentInvitationList(&sv.Invitations, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListMembers struct {
+}
+
+func (*awsRestjson1_deserializeOpListMembers) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListMembers(response, &metadata)
+ }
+ output := &ListMembersOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListMembersOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListMembersOutput(v **ListMembersOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListMembersOutput
+ if *v == nil {
+ sv = &ListMembersOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Members":
+ if err := awsRestjson1_deserializeDocumentMemberList(&sv.Members, value); err != nil {
+ return err
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListOrganizationAdminAccounts struct {
+}
+
+func (*awsRestjson1_deserializeOpListOrganizationAdminAccounts) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListOrganizationAdminAccounts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListOrganizationAdminAccounts(response, &metadata)
+ }
+ output := &ListOrganizationAdminAccountsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListOrganizationAdminAccounts(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListOrganizationAdminAccountsOutput(v **ListOrganizationAdminAccountsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListOrganizationAdminAccountsOutput
+ if *v == nil {
+ sv = &ListOrganizationAdminAccountsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AdminAccounts":
+ if err := awsRestjson1_deserializeDocumentAdminAccounts(&sv.AdminAccounts, value); err != nil {
+ return err
+ }
+
+ case "Feature":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SecurityHubFeature to be of type string, got %T instead", value)
+ }
+ sv.Feature = types.SecurityHubFeature(jtv)
+ }
+
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListSecurityControlDefinitions struct {
+}
+
+func (*awsRestjson1_deserializeOpListSecurityControlDefinitions) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListSecurityControlDefinitions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListSecurityControlDefinitions(response, &metadata)
+ }
+ output := &ListSecurityControlDefinitionsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListSecurityControlDefinitionsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListSecurityControlDefinitions(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListSecurityControlDefinitionsOutput(v **ListSecurityControlDefinitionsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListSecurityControlDefinitionsOutput
+ if *v == nil {
+ sv = &ListSecurityControlDefinitionsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "SecurityControlDefinitions":
+ if err := awsRestjson1_deserializeDocumentSecurityControlDefinitions(&sv.SecurityControlDefinitions, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListStandardsControlAssociations struct {
+}
+
+func (*awsRestjson1_deserializeOpListStandardsControlAssociations) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListStandardsControlAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListStandardsControlAssociations(response, &metadata)
+ }
+ output := &ListStandardsControlAssociationsOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListStandardsControlAssociationsOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListStandardsControlAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListStandardsControlAssociationsOutput(v **ListStandardsControlAssociationsOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListStandardsControlAssociationsOutput
+ if *v == nil {
+ sv = &ListStandardsControlAssociationsOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "NextToken":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NextToken to be of type string, got %T instead", value)
+ }
+ sv.NextToken = ptr.String(jtv)
+ }
+
+ case "StandardsControlAssociationSummaries":
+ if err := awsRestjson1_deserializeDocumentStandardsControlAssociationSummaries(&sv.StandardsControlAssociationSummaries, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpListTagsForResource struct {
+}
+
+func (*awsRestjson1_deserializeOpListTagsForResource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata)
+ }
+ output := &ListTagsForResourceOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *ListTagsForResourceOutput
+ if *v == nil {
+ sv = &ListTagsForResourceOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Tags":
+ if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpStartConfigurationPolicyAssociation struct {
+}
+
+func (*awsRestjson1_deserializeOpStartConfigurationPolicyAssociation) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpStartConfigurationPolicyAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorStartConfigurationPolicyAssociation(response, &metadata)
+ }
+ output := &StartConfigurationPolicyAssociationOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentStartConfigurationPolicyAssociationOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorStartConfigurationPolicyAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentStartConfigurationPolicyAssociationOutput(v **StartConfigurationPolicyAssociationOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *StartConfigurationPolicyAssociationOutput
+ if *v == nil {
+ sv = &StartConfigurationPolicyAssociationOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AssociationStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ConfigurationPolicyAssociationStatus to be of type string, got %T instead", value)
+ }
+ sv.AssociationStatus = types.ConfigurationPolicyAssociationStatus(jtv)
+ }
+
+ case "AssociationStatusMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.AssociationStatusMessage = ptr.String(jtv)
+ }
+
+ case "AssociationType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value)
+ }
+ sv.AssociationType = types.AssociationType(jtv)
+ }
+
+ case "ConfigurationPolicyId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConfigurationPolicyId = ptr.String(jtv)
+ }
+
+ case "TargetId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.TargetId = ptr.String(jtv)
+ }
+
+ case "TargetType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected TargetType to be of type string, got %T instead", value)
+ }
+ sv.TargetType = types.TargetType(jtv)
+ }
+
+ case "UpdatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(t)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpStartConfigurationPolicyDisassociation struct {
+}
+
+func (*awsRestjson1_deserializeOpStartConfigurationPolicyDisassociation) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpStartConfigurationPolicyDisassociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorStartConfigurationPolicyDisassociation(response, &metadata)
+ }
+ output := &StartConfigurationPolicyDisassociationOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorStartConfigurationPolicyDisassociation(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpTagResource struct {
+}
+
+func (*awsRestjson1_deserializeOpTagResource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata)
+ }
+ output := &TagResourceOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUntagResource struct {
+}
+
+func (*awsRestjson1_deserializeOpUntagResource) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata)
+ }
+ output := &UntagResourceOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateActionTarget struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateActionTarget) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateActionTarget) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateActionTarget(response, &metadata)
+ }
+ output := &UpdateActionTargetOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateActionTarget(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateAggregatorV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateAggregatorV2) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateAggregatorV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateAggregatorV2(response, &metadata)
+ }
+ output := &UpdateAggregatorV2Output{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateAggregatorV2Output(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateAggregatorV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateAggregatorV2Output(v **UpdateAggregatorV2Output, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateAggregatorV2Output
+ if *v == nil {
+ sv = &UpdateAggregatorV2Output{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AggregationRegion":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.AggregationRegion = ptr.String(jtv)
+ }
+
+ case "AggregatorV2Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.AggregatorV2Arn = ptr.String(jtv)
+ }
+
+ case "LinkedRegions":
+ if err := awsRestjson1_deserializeDocumentStringList(&sv.LinkedRegions, value); err != nil {
+ return err
+ }
+
+ case "RegionLinkingMode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RegionLinkingMode = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateAutomationRuleV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateAutomationRuleV2) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateAutomationRuleV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateAutomationRuleV2(response, &metadata)
+ }
+ output := &UpdateAutomationRuleV2Output{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateAutomationRuleV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateConfigurationPolicy struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateConfigurationPolicy) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateConfigurationPolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateConfigurationPolicy(response, &metadata)
+ }
+ output := &UpdateConfigurationPolicyOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateConfigurationPolicyOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateConfigurationPolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceConflictException", errorCode):
+ return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateConfigurationPolicyOutput(v **UpdateConfigurationPolicyOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateConfigurationPolicyOutput
+ if *v == nil {
+ sv = &UpdateConfigurationPolicyOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Arn = ptr.String(jtv)
+ }
+
+ case "ConfigurationPolicy":
+ if err := awsRestjson1_deserializeDocumentPolicy(&sv.ConfigurationPolicy, value); err != nil {
+ return err
+ }
+
+ case "CreatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "Id":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Id = ptr.String(jtv)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "UpdatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(t)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateConnectorV2 struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateConnectorV2) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateConnectorV2) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateConnectorV2(response, &metadata)
+ }
+ output := &UpdateConnectorV2Output{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateConnectorV2(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("ConflictException", errorCode):
+ return awsRestjson1_deserializeErrorConflictException(response, errorBody)
+
+ case strings.EqualFold("InternalServerException", errorCode):
+ return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ case strings.EqualFold("ThrottlingException", errorCode):
+ return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
+
+ case strings.EqualFold("ValidationException", errorCode):
+ return awsRestjson1_deserializeErrorValidationException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateFindingAggregator struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateFindingAggregator) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateFindingAggregator) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateFindingAggregator(response, &metadata)
+ }
+ output := &UpdateFindingAggregatorOutput{}
+ out.Result = output
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(response.Body, ringBuffer)
+
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return out, metadata, err
+ }
+
+ err = awsRestjson1_deserializeOpDocumentUpdateFindingAggregatorOutput(&output, shape)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ return out, metadata, &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ }
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateFindingAggregator(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+func awsRestjson1_deserializeOpDocumentUpdateFindingAggregatorOutput(v **UpdateFindingAggregatorOutput, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *UpdateFindingAggregatorOutput
+ if *v == nil {
+ sv = &UpdateFindingAggregatorOutput{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "FindingAggregationRegion":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.FindingAggregationRegion = ptr.String(jtv)
+ }
+
+ case "FindingAggregatorArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.FindingAggregatorArn = ptr.String(jtv)
+ }
+
+ case "RegionLinkingMode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RegionLinkingMode = ptr.String(jtv)
+ }
+
+ case "Regions":
+ if err := awsRestjson1_deserializeDocumentStringList(&sv.Regions, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+type awsRestjson1_deserializeOpUpdateFindings struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateFindings) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateFindings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateFindings(response, &metadata)
+ }
+ output := &UpdateFindingsOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateFindings(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateInsight struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateInsight) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateInsight) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateInsight(response, &metadata)
+ }
+ output := &UpdateInsightOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateInsight(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateOrganizationConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateOrganizationConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateOrganizationConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response, &metadata)
+ }
+ output := &UpdateOrganizationConfigurationOutput{}
out.Result = output
span.End()
@@ -11935,9 +16349,218 @@ func awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response *sm
case strings.EqualFold("LimitExceededException", errorCode):
return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
- case strings.EqualFold("ResourceConflictException", errorCode):
- return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
-
+ case strings.EqualFold("ResourceConflictException", errorCode):
+ return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateSecurityControl struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateSecurityControl) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateSecurityControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateSecurityControl(response, &metadata)
+ }
+ output := &UpdateSecurityControlOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateSecurityControl(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
+ case strings.EqualFold("ResourceInUseException", errorCode):
+ return awsRestjson1_deserializeErrorResourceInUseException(response, errorBody)
+
+ case strings.EqualFold("ResourceNotFoundException", errorCode):
+ return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
+
+ default:
+ genericError := &smithy.GenericAPIError{
+ Code: errorCode,
+ Message: errorMessage,
+ }
+ return genericError
+
+ }
+}
+
+type awsRestjson1_deserializeOpUpdateSecurityHubConfiguration struct {
+}
+
+func (*awsRestjson1_deserializeOpUpdateSecurityHubConfiguration) ID() string {
+ return "OperationDeserializer"
+}
+
+func (m *awsRestjson1_deserializeOpUpdateSecurityHubConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ out, metadata, err = next.HandleDeserialize(ctx, in)
+ if err != nil {
+ return out, metadata, err
+ }
+
+ _, span := tracing.StartSpan(ctx, "OperationDeserializer")
+ endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
+ defer endTimer()
+ defer span.End()
+ response, ok := out.RawResponse.(*smithyhttp.Response)
+ if !ok {
+ return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ }
+
+ if response.StatusCode < 200 || response.StatusCode >= 300 {
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateSecurityHubConfiguration(response, &metadata)
+ }
+ output := &UpdateSecurityHubConfigurationOutput{}
+ out.Result = output
+
+ span.End()
+ return out, metadata, err
+}
+
+func awsRestjson1_deserializeOpErrorUpdateSecurityHubConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+ var errorBuffer bytes.Buffer
+ if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
+ return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
+ }
+ errorBody := bytes.NewReader(errorBuffer.Bytes())
+
+ errorCode := "UnknownError"
+ errorMessage := errorCode
+
+ headerCode := response.Header.Get("X-Amzn-ErrorType")
+ if len(headerCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(headerCode)
+ }
+
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ jsonCode, message, err := restjson.GetErrorInfo(decoder)
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+ if len(headerCode) == 0 && len(jsonCode) != 0 {
+ errorCode = restjson.SanitizeErrorCode(jsonCode)
+ }
+ if len(message) != 0 {
+ errorMessage = message
+ }
+
+ switch {
+ case strings.EqualFold("AccessDeniedException", errorCode):
+ return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
+
+ case strings.EqualFold("InternalException", errorCode):
+ return awsRestjson1_deserializeErrorInternalException(response, errorBody)
+
+ case strings.EqualFold("InvalidAccessException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
+
+ case strings.EqualFold("InvalidInputException", errorCode):
+ return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
+
+ case strings.EqualFold("LimitExceededException", errorCode):
+ return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
+
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -11951,14 +16574,14 @@ func awsRestjson1_deserializeOpErrorUpdateOrganizationConfiguration(response *sm
}
}
-type awsRestjson1_deserializeOpUpdateSecurityControl struct {
+type awsRestjson1_deserializeOpUpdateStandardsControl struct {
}
-func (*awsRestjson1_deserializeOpUpdateSecurityControl) ID() string {
+func (*awsRestjson1_deserializeOpUpdateStandardsControl) ID() string {
return "OperationDeserializer"
}
-func (m *awsRestjson1_deserializeOpUpdateSecurityControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+func (m *awsRestjson1_deserializeOpUpdateStandardsControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
@@ -11976,16 +16599,16 @@ func (m *awsRestjson1_deserializeOpUpdateSecurityControl) HandleDeserialize(ctx
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateSecurityControl(response, &metadata)
+ return out, metadata, awsRestjson1_deserializeOpErrorUpdateStandardsControl(response, &metadata)
}
- output := &UpdateSecurityControlOutput{}
+ output := &UpdateStandardsControlOutput{}
out.Result = output
span.End()
return out, metadata, err
}
-func awsRestjson1_deserializeOpErrorUpdateSecurityControl(response *smithyhttp.Response, metadata *middleware.Metadata) error {
+func awsRestjson1_deserializeOpErrorUpdateStandardsControl(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
@@ -12038,12 +16661,6 @@ func awsRestjson1_deserializeOpErrorUpdateSecurityControl(response *smithyhttp.R
case strings.EqualFold("InvalidInputException", errorCode):
return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
- case strings.EqualFold("ResourceInUseException", errorCode):
- return awsRestjson1_deserializeErrorResourceInUseException(response, errorBody)
-
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
@@ -12057,63 +16674,16 @@ func awsRestjson1_deserializeOpErrorUpdateSecurityControl(response *smithyhttp.R
}
}
-type awsRestjson1_deserializeOpUpdateSecurityHubConfiguration struct {
-}
-
-func (*awsRestjson1_deserializeOpUpdateSecurityHubConfiguration) ID() string {
- return "OperationDeserializer"
-}
-
-func (m *awsRestjson1_deserializeOpUpdateSecurityHubConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, in)
- if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
- }
-
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateSecurityHubConfiguration(response, &metadata)
- }
- output := &UpdateSecurityHubConfigurationOutput{}
- out.Result = output
-
- span.End()
- return out, metadata, err
-}
-
-func awsRestjson1_deserializeOpErrorUpdateSecurityHubConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
- var errorBuffer bytes.Buffer
- if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
- }
- errorBody := bytes.NewReader(errorBuffer.Bytes())
-
- errorCode := "UnknownError"
- errorMessage := errorCode
-
- headerCode := response.Header.Get("X-Amzn-ErrorType")
- if len(headerCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(headerCode)
- }
-
+func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.AccessDeniedException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- jsonCode, message, err := restjson.GetErrorInfo(decoder)
- if err != nil {
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
@@ -12123,100 +16693,33 @@ func awsRestjson1_deserializeOpErrorUpdateSecurityHubConfiguration(response *smi
return err
}
- errorBody.Seek(0, io.SeekStart)
- if len(headerCode) == 0 && len(jsonCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(jsonCode)
- }
- if len(message) != 0 {
- errorMessage = message
- }
-
- switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
-
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
-
- case strings.EqualFold("LimitExceededException", errorCode):
- return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody)
-
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
- default:
- genericError := &smithy.GenericAPIError{
- Code: errorCode,
- Message: errorMessage,
- }
- return genericError
-
- }
-}
-
-type awsRestjson1_deserializeOpUpdateStandardsControl struct {
-}
-
-func (*awsRestjson1_deserializeOpUpdateStandardsControl) ID() string {
- return "OperationDeserializer"
-}
+ err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape)
-func (m *awsRestjson1_deserializeOpUpdateStandardsControl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
- out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
-) {
- out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
- return out, metadata, err
- }
-
- _, span := tracing.StartSpan(ctx, "OperationDeserializer")
- endTimer := startMetricTimer(ctx, "client.call.deserialization_duration")
- defer endTimer()
- defer span.End()
- response, ok := out.RawResponse.(*smithyhttp.Response)
- if !ok {
- return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
}
- if response.StatusCode < 200 || response.StatusCode >= 300 {
- return out, metadata, awsRestjson1_deserializeOpErrorUpdateStandardsControl(response, &metadata)
- }
- output := &UpdateStandardsControlOutput{}
- out.Result = output
+ errorBody.Seek(0, io.SeekStart)
- span.End()
- return out, metadata, err
+ return output
}
-func awsRestjson1_deserializeOpErrorUpdateStandardsControl(response *smithyhttp.Response, metadata *middleware.Metadata) error {
- var errorBuffer bytes.Buffer
- if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
- return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
- }
- errorBody := bytes.NewReader(errorBuffer.Bytes())
-
- errorCode := "UnknownError"
- errorMessage := errorCode
-
- headerCode := response.Header.Get("X-Amzn-ErrorType")
- if len(headerCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(headerCode)
- }
-
+func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ConflictException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
- jsonCode, message, err := restjson.GetErrorInfo(decoder)
- if err != nil {
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
@@ -12226,42 +16729,25 @@ func awsRestjson1_deserializeOpErrorUpdateStandardsControl(response *smithyhttp.
return err
}
- errorBody.Seek(0, io.SeekStart)
- if len(headerCode) == 0 && len(jsonCode) != 0 {
- errorCode = restjson.SanitizeErrorCode(jsonCode)
- }
- if len(message) != 0 {
- errorMessage = message
- }
+ err := awsRestjson1_deserializeDocumentConflictException(&output, shape)
- switch {
- case strings.EqualFold("AccessDeniedException", errorCode):
- return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
-
- case strings.EqualFold("InternalException", errorCode):
- return awsRestjson1_deserializeErrorInternalException(response, errorBody)
-
- case strings.EqualFold("InvalidAccessException", errorCode):
- return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody)
-
- case strings.EqualFold("InvalidInputException", errorCode):
- return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody)
-
- case strings.EqualFold("ResourceNotFoundException", errorCode):
- return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
-
- default:
- genericError := &smithy.GenericAPIError{
- Code: errorCode,
- Message: errorMessage,
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
}
- return genericError
-
+ return err
}
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
}
-func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.AccessDeniedException{}
+func awsRestjson1_deserializeErrorInternalException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.InternalException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
@@ -12279,7 +16765,7 @@ func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Res
return err
}
- err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape)
+ err := awsRestjson1_deserializeDocumentInternalException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
@@ -12296,8 +16782,8 @@ func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Res
return output
}
-func awsRestjson1_deserializeErrorInternalException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
- output := &types.InternalException{}
+func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.InternalServerException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
@@ -12315,7 +16801,7 @@ func awsRestjson1_deserializeErrorInternalException(response *smithyhttp.Respons
return err
}
- err := awsRestjson1_deserializeDocumentInternalException(&output, shape)
+ err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
@@ -12548,6 +17034,78 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp
return output
}
+func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ThrottlingException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
+func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
+ output := &types.ValidationException{}
+ var buff [1024]byte
+ ringBuffer := smithyio.NewRingBuffer(buff[:])
+
+ body := io.TeeReader(errorBody, ringBuffer)
+ decoder := json.NewDecoder(body)
+ decoder.UseNumber()
+ var shape interface{}
+ if err := decoder.Decode(&shape); err != nil && err != io.EOF {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ err := awsRestjson1_deserializeDocumentValidationException(&output, shape)
+
+ if err != nil {
+ var snapshot bytes.Buffer
+ io.Copy(&snapshot, ringBuffer)
+ err = &smithy.DeserializationError{
+ Err: fmt.Errorf("failed to decode response body, %w", err),
+ Snapshot: snapshot.Bytes(),
+ }
+ return err
+ }
+
+ errorBody.Seek(0, io.SeekStart)
+
+ return output
+}
+
func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -13382,6 +17940,80 @@ func awsRestjson1_deserializeDocumentAdminAccounts(v *[]types.AdminAccount, valu
return nil
}
+func awsRestjson1_deserializeDocumentAggregatorV2(v **types.AggregatorV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AggregatorV2
+ if *v == nil {
+ sv = &types.AggregatorV2{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AggregatorV2Arn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.AggregatorV2Arn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAggregatorV2List(v *[]types.AggregatorV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.AggregatorV2
+ if *v == nil {
+ cv = []types.AggregatorV2{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.AggregatorV2
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentAggregatorV2(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentAssociatedStandard(v **types.AssociatedStandard, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -13665,6 +18297,164 @@ func awsRestjson1_deserializeDocumentAutomationRulesAction(v **types.AutomationR
return nil
}
+func awsRestjson1_deserializeDocumentAutomationRulesActionListV2(v *[]types.AutomationRulesActionV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.AutomationRulesActionV2
+ if *v == nil {
+ cv = []types.AutomationRulesActionV2{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.AutomationRulesActionV2
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentAutomationRulesActionV2(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAutomationRulesActionTypeListV2(v *[]types.AutomationRulesActionTypeObjectV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.AutomationRulesActionTypeObjectV2
+ if *v == nil {
+ cv = []types.AutomationRulesActionTypeObjectV2{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.AutomationRulesActionTypeObjectV2
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentAutomationRulesActionTypeObjectV2(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAutomationRulesActionTypeObjectV2(v **types.AutomationRulesActionTypeObjectV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AutomationRulesActionTypeObjectV2
+ if *v == nil {
+ sv = &types.AutomationRulesActionTypeObjectV2{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Type":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AutomationRulesActionTypeV2 to be of type string, got %T instead", value)
+ }
+ sv.Type = types.AutomationRulesActionTypeV2(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAutomationRulesActionV2(v **types.AutomationRulesActionV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AutomationRulesActionV2
+ if *v == nil {
+ sv = &types.AutomationRulesActionV2{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ExternalIntegrationConfiguration":
+ if err := awsRestjson1_deserializeDocumentExternalIntegrationConfiguration(&sv.ExternalIntegrationConfiguration, value); err != nil {
+ return err
+ }
+
+ case "FindingFieldsUpdate":
+ if err := awsRestjson1_deserializeDocumentAutomationRulesFindingFieldsUpdateV2(&sv.FindingFieldsUpdate, value); err != nil {
+ return err
+ }
+
+ case "Type":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AutomationRulesActionTypeV2 to be of type string, got %T instead", value)
+ }
+ sv.Type = types.AutomationRulesActionTypeV2(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentAutomationRulesArnsList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -13965,6 +18755,72 @@ func awsRestjson1_deserializeDocumentAutomationRulesFindingFieldsUpdate(v **type
return nil
}
+func awsRestjson1_deserializeDocumentAutomationRulesFindingFieldsUpdateV2(v **types.AutomationRulesFindingFieldsUpdateV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AutomationRulesFindingFieldsUpdateV2
+ if *v == nil {
+ sv = &types.AutomationRulesFindingFieldsUpdateV2{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Comment":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Comment = ptr.String(jtv)
+ }
+
+ case "SeverityId":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.SeverityId = ptr.Int32(int32(i64))
+ }
+
+ case "StatusId":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.StatusId = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentAutomationRulesFindingFilters(v **types.AutomationRulesFindingFilters, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -14344,6 +19200,181 @@ func awsRestjson1_deserializeDocumentAutomationRulesMetadataList(v *[]types.Auto
return nil
}
+func awsRestjson1_deserializeDocumentAutomationRulesMetadataListV2(v *[]types.AutomationRulesMetadataV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.AutomationRulesMetadataV2
+ if *v == nil {
+ cv = []types.AutomationRulesMetadataV2{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.AutomationRulesMetadataV2
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentAutomationRulesMetadataV2(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentAutomationRulesMetadataV2(v **types.AutomationRulesMetadataV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AutomationRulesMetadataV2
+ if *v == nil {
+ sv = &types.AutomationRulesMetadataV2{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Actions":
+ if err := awsRestjson1_deserializeDocumentAutomationRulesActionTypeListV2(&sv.Actions, value); err != nil {
+ return err
+ }
+
+ case "CreatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "RuleArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RuleArn = ptr.String(jtv)
+ }
+
+ case "RuleId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RuleId = ptr.String(jtv)
+ }
+
+ case "RuleName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.RuleName = ptr.String(jtv)
+ }
+
+ case "RuleOrder":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.RuleOrder = ptr.Float32(float32(f64))
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.RuleOrder = ptr.Float32(float32(f64))
+
+ default:
+ return fmt.Errorf("expected RuleOrderValueV2 to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "RuleStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected RuleStatusV2 to be of type string, got %T instead", value)
+ }
+ sv.RuleStatus = types.RuleStatusV2(jtv)
+ }
+
+ case "UpdatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.UpdatedAt = ptr.Time(t)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -55108,6 +60139,182 @@ func awsRestjson1_deserializeDocumentBatchUpdateFindingsUnprocessedFindingsList(
return nil
}
+func awsRestjson1_deserializeDocumentBatchUpdateFindingsV2ProcessedFinding(v **types.BatchUpdateFindingsV2ProcessedFinding, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.BatchUpdateFindingsV2ProcessedFinding
+ if *v == nil {
+ sv = &types.BatchUpdateFindingsV2ProcessedFinding{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "FindingIdentifier":
+ if err := awsRestjson1_deserializeDocumentOcsfFindingIdentifier(&sv.FindingIdentifier, value); err != nil {
+ return err
+ }
+
+ case "MetadataUid":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.MetadataUid = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentBatchUpdateFindingsV2ProcessedFindingsList(v *[]types.BatchUpdateFindingsV2ProcessedFinding, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.BatchUpdateFindingsV2ProcessedFinding
+ if *v == nil {
+ cv = []types.BatchUpdateFindingsV2ProcessedFinding{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.BatchUpdateFindingsV2ProcessedFinding
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentBatchUpdateFindingsV2ProcessedFinding(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentBatchUpdateFindingsV2UnprocessedFinding(v **types.BatchUpdateFindingsV2UnprocessedFinding, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.BatchUpdateFindingsV2UnprocessedFinding
+ if *v == nil {
+ sv = &types.BatchUpdateFindingsV2UnprocessedFinding{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ErrorCode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected BatchUpdateFindingsV2UnprocessedFindingErrorCode to be of type string, got %T instead", value)
+ }
+ sv.ErrorCode = types.BatchUpdateFindingsV2UnprocessedFindingErrorCode(jtv)
+ }
+
+ case "ErrorMessage":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ErrorMessage = ptr.String(jtv)
+ }
+
+ case "FindingIdentifier":
+ if err := awsRestjson1_deserializeDocumentOcsfFindingIdentifier(&sv.FindingIdentifier, value); err != nil {
+ return err
+ }
+
+ case "MetadataUid":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.MetadataUid = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentBatchUpdateFindingsV2UnprocessedFindingsList(v *[]types.BatchUpdateFindingsV2UnprocessedFinding, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.BatchUpdateFindingsV2UnprocessedFinding
+ if *v == nil {
+ cv = []types.BatchUpdateFindingsV2UnprocessedFinding{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.BatchUpdateFindingsV2UnprocessedFinding
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentBatchUpdateFindingsV2UnprocessedFinding(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentBooleanConfigurationOptions(v **types.BooleanConfigurationOptions, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -55827,6 +61034,105 @@ func awsRestjson1_deserializeDocumentCompliance(v **types.Compliance, value inte
return nil
}
+func awsRestjson1_deserializeDocumentCompositeFilter(v **types.CompositeFilter, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.CompositeFilter
+ if *v == nil {
+ sv = &types.CompositeFilter{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "BooleanFilters":
+ if err := awsRestjson1_deserializeDocumentOcsfBooleanFilterList(&sv.BooleanFilters, value); err != nil {
+ return err
+ }
+
+ case "DateFilters":
+ if err := awsRestjson1_deserializeDocumentOcsfDateFilterList(&sv.DateFilters, value); err != nil {
+ return err
+ }
+
+ case "MapFilters":
+ if err := awsRestjson1_deserializeDocumentOcsfMapFilterList(&sv.MapFilters, value); err != nil {
+ return err
+ }
+
+ case "NumberFilters":
+ if err := awsRestjson1_deserializeDocumentOcsfNumberFilterList(&sv.NumberFilters, value); err != nil {
+ return err
+ }
+
+ case "Operator":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AllowedOperators to be of type string, got %T instead", value)
+ }
+ sv.Operator = types.AllowedOperators(jtv)
+ }
+
+ case "StringFilters":
+ if err := awsRestjson1_deserializeDocumentOcsfStringFilterList(&sv.StringFilters, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentCompositeFilterList(v *[]types.CompositeFilter, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.CompositeFilter
+ if *v == nil {
+ cv = []types.CompositeFilter{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.CompositeFilter
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentCompositeFilter(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentConfigurationOptions(v *types.ConfigurationOptions, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -56262,6 +61568,174 @@ func awsRestjson1_deserializeDocumentConfigurationPolicySummaryList(v *[]types.C
return nil
}
+func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ConflictException
+ if *v == nil {
+ sv = &types.ConflictException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Code":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Code = ptr.String(jtv)
+ }
+
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentConnectorSummary(v **types.ConnectorSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ConnectorSummary
+ if *v == nil {
+ sv = &types.ConnectorSummary{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ConnectorArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConnectorArn = ptr.String(jtv)
+ }
+
+ case "ConnectorId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConnectorId = ptr.String(jtv)
+ }
+
+ case "CreatedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.CreatedAt = ptr.Time(t)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "ProviderSummary":
+ if err := awsRestjson1_deserializeDocumentProviderSummary(&sv.ProviderSummary, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentConnectorSummaryList(v *[]types.ConnectorSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ConnectorSummary
+ if *v == nil {
+ cv = []types.ConnectorSummary{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ConnectorSummary
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentConnectorSummary(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentContainerDetails(v **types.ContainerDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -56401,6 +61875,46 @@ func awsRestjson1_deserializeDocumentCountry(v **types.Country, value interface{
return nil
}
+func awsRestjson1_deserializeDocumentCriteria(v *types.Criteria, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var uv types.Criteria
+loop:
+ for key, value := range shape {
+ if value == nil {
+ continue
+ }
+ switch key {
+ case "OcsfFindingCriteria":
+ var mv types.OcsfFindingFilters
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentOcsfFindingFilters(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.CriteriaMemberOcsfFindingCriteria{Value: mv}
+ break loop
+
+ default:
+ uv = &types.UnknownUnionMember{Tag: key}
+ break loop
+
+ }
+ }
+ *v = uv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentCustomDataIdentifiersDetections(v **types.CustomDataIdentifiersDetections, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -57338,6 +62852,46 @@ func awsRestjson1_deserializeDocumentEnumListConfigurationOptions(v **types.Enum
return nil
}
+func awsRestjson1_deserializeDocumentExternalIntegrationConfiguration(v **types.ExternalIntegrationConfiguration, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ExternalIntegrationConfiguration
+ if *v == nil {
+ sv = &types.ExternalIntegrationConfiguration{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ConnectorArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConnectorArn = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentFieldMap(v *map[string]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -58371,6 +63925,234 @@ func awsRestjson1_deserializeDocumentGeoLocation(v **types.GeoLocation, value in
return nil
}
+func awsRestjson1_deserializeDocumentGroupByResult(v **types.GroupByResult, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.GroupByResult
+ if *v == nil {
+ sv = &types.GroupByResult{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "GroupByField":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.GroupByField = ptr.String(jtv)
+ }
+
+ case "GroupByValues":
+ if err := awsRestjson1_deserializeDocumentGroupByValues(&sv.GroupByValues, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentGroupByResults(v *[]types.GroupByResult, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.GroupByResult
+ if *v == nil {
+ cv = []types.GroupByResult{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.GroupByResult
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentGroupByResult(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentGroupByValue(v **types.GroupByValue, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.GroupByValue
+ if *v == nil {
+ sv = &types.GroupByValue{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Count":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Count = ptr.Int32(int32(i64))
+ }
+
+ case "FieldValue":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.FieldValue = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentGroupByValues(v *[]types.GroupByValue, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.GroupByValue
+ if *v == nil {
+ cv = []types.GroupByValue{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.GroupByValue
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentGroupByValue(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentHealthCheck(v **types.HealthCheck, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.HealthCheck
+ if *v == nil {
+ sv = &types.HealthCheck{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ConnectorStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ConnectorStatus to be of type string, got %T instead", value)
+ }
+ sv.ConnectorStatus = types.ConnectorStatus(jtv)
+ }
+
+ case "LastCheckedAt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value)
+ }
+ t, err := smithytime.ParseDateTime(jtv)
+ if err != nil {
+ return err
+ }
+ sv.LastCheckedAt = ptr.Time(t)
+ }
+
+ case "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -59076,6 +64858,42 @@ func awsRestjson1_deserializeDocumentIntegrationTypeList(v *[]types.IntegrationT
return nil
}
+func awsRestjson1_deserializeDocumentIntegrationV2TypeList(v *[]types.IntegrationV2Type, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.IntegrationV2Type
+ if *v == nil {
+ cv = []types.IntegrationV2Type{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.IntegrationV2Type
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected IntegrationV2Type to be of type string, got %T instead", value)
+ }
+ col = types.IntegrationV2Type(jtv)
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentInternalException(v **types.InternalException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -59125,6 +64943,55 @@ func awsRestjson1_deserializeDocumentInternalException(v **types.InternalExcepti
return nil
}
+func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.InternalServerException
+ if *v == nil {
+ sv = &types.InternalServerException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Code":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Code = ptr.String(jtv)
+ }
+
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentInvalidAccessException(v **types.InvalidAccessException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -59565,6 +65432,82 @@ func awsRestjson1_deserializeDocumentIpv6CidrBlockAssociationList(v *[]types.Ipv
return nil
}
+func awsRestjson1_deserializeDocumentJiraCloudDetail(v **types.JiraCloudDetail, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.JiraCloudDetail
+ if *v == nil {
+ sv = &types.JiraCloudDetail{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AuthStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ConnectorAuthStatus to be of type string, got %T instead", value)
+ }
+ sv.AuthStatus = types.ConnectorAuthStatus(jtv)
+ }
+
+ case "AuthUrl":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.AuthUrl = ptr.String(jtv)
+ }
+
+ case "CloudId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.CloudId = ptr.String(jtv)
+ }
+
+ case "Domain":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Domain = ptr.String(jtv)
+ }
+
+ case "ProjectKey":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ProjectKey = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentKeywordFilter(v **types.KeywordFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -60209,7 +66152,519 @@ func awsRestjson1_deserializeDocumentNetwork(v **types.Network, value interface{
return nil
}
-func awsRestjson1_deserializeDocumentNetworkAutonomousSystem(v **types.NetworkAutonomousSystem, value interface{}) error {
+func awsRestjson1_deserializeDocumentNetworkAutonomousSystem(v **types.NetworkAutonomousSystem, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.NetworkAutonomousSystem
+ if *v == nil {
+ sv = &types.NetworkAutonomousSystem{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "Number":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Number = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentNetworkConnection(v **types.NetworkConnection, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.NetworkConnection
+ if *v == nil {
+ sv = &types.NetworkConnection{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Direction":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ConnectionDirection to be of type string, got %T instead", value)
+ }
+ sv.Direction = types.ConnectionDirection(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentNetworkConnectionAction(v **types.NetworkConnectionAction, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.NetworkConnectionAction
+ if *v == nil {
+ sv = &types.NetworkConnectionAction{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Blocked":
+ if value != nil {
+ jtv, ok := value.(bool)
+ if !ok {
+ return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ }
+ sv.Blocked = ptr.Bool(jtv)
+ }
+
+ case "ConnectionDirection":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ConnectionDirection = ptr.String(jtv)
+ }
+
+ case "LocalPortDetails":
+ if err := awsRestjson1_deserializeDocumentActionLocalPortDetails(&sv.LocalPortDetails, value); err != nil {
+ return err
+ }
+
+ case "Protocol":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Protocol = ptr.String(jtv)
+ }
+
+ case "RemoteIpDetails":
+ if err := awsRestjson1_deserializeDocumentActionRemoteIpDetails(&sv.RemoteIpDetails, value); err != nil {
+ return err
+ }
+
+ case "RemotePortDetails":
+ if err := awsRestjson1_deserializeDocumentActionRemotePortDetails(&sv.RemotePortDetails, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentNetworkEndpoint(v **types.NetworkEndpoint, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.NetworkEndpoint
+ if *v == nil {
+ sv = &types.NetworkEndpoint{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AutonomousSystem":
+ if err := awsRestjson1_deserializeDocumentNetworkAutonomousSystem(&sv.AutonomousSystem, value); err != nil {
+ return err
+ }
+
+ case "Connection":
+ if err := awsRestjson1_deserializeDocumentNetworkConnection(&sv.Connection, value); err != nil {
+ return err
+ }
+
+ case "Domain":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Domain = ptr.String(jtv)
+ }
+
+ case "Id":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Id = ptr.String(jtv)
+ }
+
+ case "Ip":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Ip = ptr.String(jtv)
+ }
+
+ case "Location":
+ if err := awsRestjson1_deserializeDocumentNetworkGeoLocation(&sv.Location, value); err != nil {
+ return err
+ }
+
+ case "Port":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Port = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentNetworkEndpointsList(v *[]types.NetworkEndpoint, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.NetworkEndpoint
+ if *v == nil {
+ cv = []types.NetworkEndpoint{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.NetworkEndpoint
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentNetworkEndpoint(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentNetworkGeoLocation(v **types.NetworkGeoLocation, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.NetworkGeoLocation
+ if *v == nil {
+ sv = &types.NetworkGeoLocation{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "City":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.City = ptr.String(jtv)
+ }
+
+ case "Country":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Country = ptr.String(jtv)
+ }
+
+ case "Lat":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.Lat = ptr.Float64(f64)
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.Lat = ptr.Float64(f64)
+
+ default:
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "Lon":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.Lon = ptr.Float64(f64)
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.Lon = ptr.Float64(f64)
+
+ default:
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentNetworkHeader(v **types.NetworkHeader, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.NetworkHeader
+ if *v == nil {
+ sv = &types.NetworkHeader{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Destination":
+ if err := awsRestjson1_deserializeDocumentNetworkPathComponentDetails(&sv.Destination, value); err != nil {
+ return err
+ }
+
+ case "Protocol":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Protocol = ptr.String(jtv)
+ }
+
+ case "Source":
+ if err := awsRestjson1_deserializeDocumentNetworkPathComponentDetails(&sv.Source, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentNetworkPathComponent(v **types.NetworkPathComponent, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.NetworkPathComponent
+ if *v == nil {
+ sv = &types.NetworkPathComponent{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ComponentId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ComponentId = ptr.String(jtv)
+ }
+
+ case "ComponentType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ComponentType = ptr.String(jtv)
+ }
+
+ case "Egress":
+ if err := awsRestjson1_deserializeDocumentNetworkHeader(&sv.Egress, value); err != nil {
+ return err
+ }
+
+ case "Ingress":
+ if err := awsRestjson1_deserializeDocumentNetworkHeader(&sv.Ingress, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentNetworkPathComponentDetails(v **types.NetworkPathComponentDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60222,35 +66677,23 @@ func awsRestjson1_deserializeDocumentNetworkAutonomousSystem(v **types.NetworkAu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkAutonomousSystem
+ var sv *types.NetworkPathComponentDetails
if *v == nil {
- sv = &types.NetworkAutonomousSystem{}
+ sv = &types.NetworkPathComponentDetails{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Name":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Name = ptr.String(jtv)
+ case "Address":
+ if err := awsRestjson1_deserializeDocumentStringList(&sv.Address, value); err != nil {
+ return err
}
- case "Number":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.Number = ptr.Int32(int32(i64))
+ case "PortRanges":
+ if err := awsRestjson1_deserializeDocumentPortRangeList(&sv.PortRanges, value); err != nil {
+ return err
}
default:
@@ -60262,7 +66705,7 @@ func awsRestjson1_deserializeDocumentNetworkAutonomousSystem(v **types.NetworkAu
return nil
}
-func awsRestjson1_deserializeDocumentNetworkConnection(v **types.NetworkConnection, value interface{}) error {
+func awsRestjson1_deserializeDocumentNetworkPathList(v *[]types.NetworkPathComponent, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60270,39 +66713,69 @@ func awsRestjson1_deserializeDocumentNetworkConnection(v **types.NetworkConnecti
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkConnection
+ var cv []types.NetworkPathComponent
if *v == nil {
- sv = &types.NetworkConnection{}
+ cv = []types.NetworkPathComponent{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "Direction":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected ConnectionDirection to be of type string, got %T instead", value)
- }
- sv.Direction = types.ConnectionDirection(jtv)
- }
+ for _, value := range shape {
+ var col types.NetworkPathComponent
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentNetworkPathComponent(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
- default:
- _, _ = key, value
+ }
+ *v = cv
+ return nil
+}
+func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ col = jtv
}
+ cv = append(cv, col)
+
}
- *v = sv
+ *v = cv
return nil
}
-func awsRestjson1_deserializeDocumentNetworkConnectionAction(v **types.NetworkConnectionAction, value interface{}) error {
+func awsRestjson1_deserializeDocumentNote(v **types.Note, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60315,55 +66788,40 @@ func awsRestjson1_deserializeDocumentNetworkConnectionAction(v **types.NetworkCo
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkConnectionAction
+ var sv *types.Note
if *v == nil {
- sv = &types.NetworkConnectionAction{}
+ sv = &types.Note{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Blocked":
+ case "Text":
if value != nil {
- jtv, ok := value.(bool)
+ jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Blocked = ptr.Bool(jtv)
+ sv.Text = ptr.String(jtv)
}
- case "ConnectionDirection":
+ case "UpdatedAt":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.ConnectionDirection = ptr.String(jtv)
- }
-
- case "LocalPortDetails":
- if err := awsRestjson1_deserializeDocumentActionLocalPortDetails(&sv.LocalPortDetails, value); err != nil {
- return err
+ sv.UpdatedAt = ptr.String(jtv)
}
- case "Protocol":
+ case "UpdatedBy":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Protocol = ptr.String(jtv)
- }
-
- case "RemoteIpDetails":
- if err := awsRestjson1_deserializeDocumentActionRemoteIpDetails(&sv.RemoteIpDetails, value); err != nil {
- return err
- }
-
- case "RemotePortDetails":
- if err := awsRestjson1_deserializeDocumentActionRemotePortDetails(&sv.RemotePortDetails, value); err != nil {
- return err
+ sv.UpdatedBy = ptr.String(jtv)
}
default:
@@ -60375,7 +66833,7 @@ func awsRestjson1_deserializeDocumentNetworkConnectionAction(v **types.NetworkCo
return nil
}
-func awsRestjson1_deserializeDocumentNetworkEndpoint(v **types.NetworkEndpoint, value interface{}) error {
+func awsRestjson1_deserializeDocumentNoteUpdate(v **types.NoteUpdate, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60388,68 +66846,31 @@ func awsRestjson1_deserializeDocumentNetworkEndpoint(v **types.NetworkEndpoint,
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkEndpoint
+ var sv *types.NoteUpdate
if *v == nil {
- sv = &types.NetworkEndpoint{}
+ sv = &types.NoteUpdate{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "AutonomousSystem":
- if err := awsRestjson1_deserializeDocumentNetworkAutonomousSystem(&sv.AutonomousSystem, value); err != nil {
- return err
- }
-
- case "Connection":
- if err := awsRestjson1_deserializeDocumentNetworkConnection(&sv.Connection, value); err != nil {
- return err
- }
-
- case "Domain":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Domain = ptr.String(jtv)
- }
-
- case "Id":
+ case "Text":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Id = ptr.String(jtv)
+ sv.Text = ptr.String(jtv)
}
- case "Ip":
+ case "UpdatedBy":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Ip = ptr.String(jtv)
- }
-
- case "Location":
- if err := awsRestjson1_deserializeDocumentNetworkGeoLocation(&sv.Location, value); err != nil {
- return err
- }
-
- case "Port":
- if value != nil {
- jtv, ok := value.(json.Number)
- if !ok {
- return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
- }
- i64, err := jtv.Int64()
- if err != nil {
- return err
- }
- sv.Port = ptr.Int32(int32(i64))
+ sv.UpdatedBy = ptr.String(jtv)
}
default:
@@ -60461,7 +66882,7 @@ func awsRestjson1_deserializeDocumentNetworkEndpoint(v **types.NetworkEndpoint,
return nil
}
-func awsRestjson1_deserializeDocumentNetworkEndpointsList(v *[]types.NetworkEndpoint, value interface{}) error {
+func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60469,73 +66890,123 @@ func awsRestjson1_deserializeDocumentNetworkEndpointsList(v *[]types.NetworkEndp
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.NetworkEndpoint
+ var sv *types.NumberFilter
if *v == nil {
- cv = []types.NetworkEndpoint{}
+ sv = &types.NumberFilter{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.NetworkEndpoint
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentNetworkEndpoint(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "Eq":
+ if value != nil {
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.Eq = ptr.Float64(f64)
- }
- *v = cv
- return nil
-}
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
-func awsRestjson1_deserializeDocumentNetworkGeoLocation(v **types.NetworkGeoLocation, value interface{}) error {
- if v == nil {
- return fmt.Errorf("unexpected nil of type %T", v)
- }
- if value == nil {
- return nil
- }
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
- shape, ok := value.(map[string]interface{})
- if !ok {
- return fmt.Errorf("unexpected JSON type %v", value)
- }
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
- var sv *types.NetworkGeoLocation
- if *v == nil {
- sv = &types.NetworkGeoLocation{}
- } else {
- sv = *v
- }
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
- for key, value := range shape {
- switch key {
- case "City":
+ }
+ sv.Eq = ptr.Float64(f64)
+
+ default:
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+
+ }
+ }
+
+ case "Gt":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.Gt = ptr.Float64(f64)
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.Gt = ptr.Float64(f64)
+
+ default:
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+
}
- sv.City = ptr.String(jtv)
}
- case "Country":
+ case "Gte":
if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ switch jtv := value.(type) {
+ case json.Number:
+ f64, err := jtv.Float64()
+ if err != nil {
+ return err
+ }
+ sv.Gte = ptr.Float64(f64)
+
+ case string:
+ var f64 float64
+ switch {
+ case strings.EqualFold(jtv, "NaN"):
+ f64 = math.NaN()
+
+ case strings.EqualFold(jtv, "Infinity"):
+ f64 = math.Inf(1)
+
+ case strings.EqualFold(jtv, "-Infinity"):
+ f64 = math.Inf(-1)
+
+ default:
+ return fmt.Errorf("unknown JSON number value: %s", jtv)
+
+ }
+ sv.Gte = ptr.Float64(f64)
+
+ default:
+ return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+
}
- sv.Country = ptr.String(jtv)
}
- case "Lat":
+ case "Lt":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -60543,7 +67014,7 @@ func awsRestjson1_deserializeDocumentNetworkGeoLocation(v **types.NetworkGeoLoca
if err != nil {
return err
}
- sv.Lat = ptr.Float64(f64)
+ sv.Lt = ptr.Float64(f64)
case string:
var f64 float64
@@ -60561,7 +67032,7 @@ func awsRestjson1_deserializeDocumentNetworkGeoLocation(v **types.NetworkGeoLoca
return fmt.Errorf("unknown JSON number value: %s", jtv)
}
- sv.Lat = ptr.Float64(f64)
+ sv.Lt = ptr.Float64(f64)
default:
return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
@@ -60569,7 +67040,7 @@ func awsRestjson1_deserializeDocumentNetworkGeoLocation(v **types.NetworkGeoLoca
}
}
- case "Lon":
+ case "Lte":
if value != nil {
switch jtv := value.(type) {
case json.Number:
@@ -60577,7 +67048,7 @@ func awsRestjson1_deserializeDocumentNetworkGeoLocation(v **types.NetworkGeoLoca
if err != nil {
return err
}
- sv.Lon = ptr.Float64(f64)
+ sv.Lte = ptr.Float64(f64)
case string:
var f64 float64
@@ -60595,7 +67066,7 @@ func awsRestjson1_deserializeDocumentNetworkGeoLocation(v **types.NetworkGeoLoca
return fmt.Errorf("unknown JSON number value: %s", jtv)
}
- sv.Lon = ptr.Float64(f64)
+ sv.Lte = ptr.Float64(f64)
default:
return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
@@ -60612,7 +67083,41 @@ func awsRestjson1_deserializeDocumentNetworkGeoLocation(v **types.NetworkGeoLoca
return nil
}
-func awsRestjson1_deserializeDocumentNetworkHeader(v **types.NetworkHeader, value interface{}) error {
+func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.NumberFilter
+ if *v == nil {
+ cv = []types.NumberFilter{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.NumberFilter
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentNumberFilter(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentOccurrences(v **types.Occurrences, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60625,31 +67130,37 @@ func awsRestjson1_deserializeDocumentNetworkHeader(v **types.NetworkHeader, valu
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkHeader
+ var sv *types.Occurrences
if *v == nil {
- sv = &types.NetworkHeader{}
+ sv = &types.Occurrences{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Destination":
- if err := awsRestjson1_deserializeDocumentNetworkPathComponentDetails(&sv.Destination, value); err != nil {
+ case "Cells":
+ if err := awsRestjson1_deserializeDocumentCells(&sv.Cells, value); err != nil {
return err
}
- case "Protocol":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.Protocol = ptr.String(jtv)
+ case "LineRanges":
+ if err := awsRestjson1_deserializeDocumentRanges(&sv.LineRanges, value); err != nil {
+ return err
}
- case "Source":
- if err := awsRestjson1_deserializeDocumentNetworkPathComponentDetails(&sv.Source, value); err != nil {
+ case "OffsetRanges":
+ if err := awsRestjson1_deserializeDocumentRanges(&sv.OffsetRanges, value); err != nil {
+ return err
+ }
+
+ case "Pages":
+ if err := awsRestjson1_deserializeDocumentPages(&sv.Pages, value); err != nil {
+ return err
+ }
+
+ case "Records":
+ if err := awsRestjson1_deserializeDocumentRecords(&sv.Records, value); err != nil {
return err
}
@@ -60662,7 +67173,7 @@ func awsRestjson1_deserializeDocumentNetworkHeader(v **types.NetworkHeader, valu
return nil
}
-func awsRestjson1_deserializeDocumentNetworkPathComponent(v **types.NetworkPathComponent, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfBooleanFilter(v **types.OcsfBooleanFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60675,40 +67186,26 @@ func awsRestjson1_deserializeDocumentNetworkPathComponent(v **types.NetworkPathC
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkPathComponent
+ var sv *types.OcsfBooleanFilter
if *v == nil {
- sv = &types.NetworkPathComponent{}
+ sv = &types.OcsfBooleanFilter{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "ComponentId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ComponentId = ptr.String(jtv)
- }
-
- case "ComponentType":
+ case "FieldName":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected OcsfBooleanField to be of type string, got %T instead", value)
}
- sv.ComponentType = ptr.String(jtv)
- }
-
- case "Egress":
- if err := awsRestjson1_deserializeDocumentNetworkHeader(&sv.Egress, value); err != nil {
- return err
+ sv.FieldName = types.OcsfBooleanField(jtv)
}
- case "Ingress":
- if err := awsRestjson1_deserializeDocumentNetworkHeader(&sv.Ingress, value); err != nil {
+ case "Filter":
+ if err := awsRestjson1_deserializeDocumentBooleanFilter(&sv.Filter, value); err != nil {
return err
}
@@ -60721,7 +67218,41 @@ func awsRestjson1_deserializeDocumentNetworkPathComponent(v **types.NetworkPathC
return nil
}
-func awsRestjson1_deserializeDocumentNetworkPathComponentDetails(v **types.NetworkPathComponentDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfBooleanFilterList(v *[]types.OcsfBooleanFilter, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.OcsfBooleanFilter
+ if *v == nil {
+ cv = []types.OcsfBooleanFilter{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.OcsfBooleanFilter
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentOcsfBooleanFilter(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentOcsfDateFilter(v **types.OcsfDateFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60734,22 +67265,26 @@ func awsRestjson1_deserializeDocumentNetworkPathComponentDetails(v **types.Netwo
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NetworkPathComponentDetails
+ var sv *types.OcsfDateFilter
if *v == nil {
- sv = &types.NetworkPathComponentDetails{}
+ sv = &types.OcsfDateFilter{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Address":
- if err := awsRestjson1_deserializeDocumentStringList(&sv.Address, value); err != nil {
- return err
+ case "FieldName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected OcsfDateField to be of type string, got %T instead", value)
+ }
+ sv.FieldName = types.OcsfDateField(jtv)
}
- case "PortRanges":
- if err := awsRestjson1_deserializeDocumentPortRangeList(&sv.PortRanges, value); err != nil {
+ case "Filter":
+ if err := awsRestjson1_deserializeDocumentDateFilter(&sv.Filter, value); err != nil {
return err
}
@@ -60762,7 +67297,7 @@ func awsRestjson1_deserializeDocumentNetworkPathComponentDetails(v **types.Netwo
return nil
}
-func awsRestjson1_deserializeDocumentNetworkPathList(v *[]types.NetworkPathComponent, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfDateFilterList(v *[]types.OcsfDateFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60775,17 +67310,17 @@ func awsRestjson1_deserializeDocumentNetworkPathList(v *[]types.NetworkPathCompo
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.NetworkPathComponent
+ var cv []types.OcsfDateFilter
if *v == nil {
- cv = []types.NetworkPathComponent{}
+ cv = []types.OcsfDateFilter{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.NetworkPathComponent
+ var col types.OcsfDateFilter
destAddr := &col
- if err := awsRestjson1_deserializeDocumentNetworkPathComponent(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentOcsfDateFilter(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -60796,7 +67331,15 @@ func awsRestjson1_deserializeDocumentNetworkPathList(v *[]types.NetworkPathCompo
return nil
}
-func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfFinding(v *document.Interface, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ *v = internaldocument.NewDocumentUnmarshaler(value)
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentOcsfFindingFilters(v **types.OcsfFindingFilters, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60804,35 +67347,44 @@ func awsRestjson1_deserializeDocumentNonEmptyStringList(v *[]string, value inter
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var sv *types.OcsfFindingFilters
if *v == nil {
- cv = []string{}
+ sv = &types.OcsfFindingFilters{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ for key, value := range shape {
+ switch key {
+ case "CompositeFilters":
+ if err := awsRestjson1_deserializeDocumentCompositeFilterList(&sv.CompositeFilters, value); err != nil {
+ return err
}
- col = jtv
- }
- cv = append(cv, col)
+ case "CompositeOperator":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AllowedOperators to be of type string, got %T instead", value)
+ }
+ sv.CompositeOperator = types.AllowedOperators(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentNote(v **types.Note, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfFindingIdentifier(v **types.OcsfFindingIdentifier, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60845,40 +67397,40 @@ func awsRestjson1_deserializeDocumentNote(v **types.Note, value interface{}) err
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Note
+ var sv *types.OcsfFindingIdentifier
if *v == nil {
- sv = &types.Note{}
+ sv = &types.OcsfFindingIdentifier{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Text":
+ case "CloudAccountUid":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Text = ptr.String(jtv)
+ sv.CloudAccountUid = ptr.String(jtv)
}
- case "UpdatedAt":
+ case "FindingInfoUid":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.UpdatedAt = ptr.String(jtv)
+ sv.FindingInfoUid = ptr.String(jtv)
}
- case "UpdatedBy":
+ case "MetadataProductUid":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.UpdatedBy = ptr.String(jtv)
+ sv.MetadataProductUid = ptr.String(jtv)
}
default:
@@ -60890,7 +67442,39 @@ func awsRestjson1_deserializeDocumentNote(v **types.Note, value interface{}) err
return nil
}
-func awsRestjson1_deserializeDocumentNoteUpdate(v **types.NoteUpdate, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfFindingsList(v *[]document.Interface, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []document.Interface
+ if *v == nil {
+ cv = []document.Interface{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col document.Interface
+ if err := awsRestjson1_deserializeDocumentOcsfFinding(&col, value); err != nil {
+ return err
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentOcsfMapFilter(v **types.OcsfMapFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60903,31 +67487,27 @@ func awsRestjson1_deserializeDocumentNoteUpdate(v **types.NoteUpdate, value inte
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NoteUpdate
+ var sv *types.OcsfMapFilter
if *v == nil {
- sv = &types.NoteUpdate{}
+ sv = &types.OcsfMapFilter{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Text":
+ case "FieldName":
if value != nil {
jtv, ok := value.(string)
if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ return fmt.Errorf("expected OcsfMapField to be of type string, got %T instead", value)
}
- sv.Text = ptr.String(jtv)
+ sv.FieldName = types.OcsfMapField(jtv)
}
- case "UpdatedBy":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.UpdatedBy = ptr.String(jtv)
+ case "Filter":
+ if err := awsRestjson1_deserializeDocumentMapFilter(&sv.Filter, value); err != nil {
+ return err
}
default:
@@ -60939,7 +67519,7 @@ func awsRestjson1_deserializeDocumentNoteUpdate(v **types.NoteUpdate, value inte
return nil
}
-func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfMapFilterList(v *[]types.OcsfMapFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -60947,188 +67527,66 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value
return nil
}
- shape, ok := value.(map[string]interface{})
+ shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.NumberFilter
+ var cv []types.OcsfMapFilter
if *v == nil {
- sv = &types.NumberFilter{}
+ cv = []types.OcsfMapFilter{}
} else {
- sv = *v
+ cv = *v
}
- for key, value := range shape {
- switch key {
- case "Eq":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.Eq = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.Eq = ptr.Float64(f64)
-
- default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
-
- }
- }
-
- case "Gt":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.Gt = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.Gt = ptr.Float64(f64)
-
- default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
-
- }
- }
-
- case "Gte":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.Gte = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
+ for _, value := range shape {
+ var col types.OcsfMapFilter
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentOcsfMapFilter(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
+ }
+ *v = cv
+ return nil
+}
- }
- sv.Gte = ptr.Float64(f64)
+func awsRestjson1_deserializeDocumentOcsfNumberFilter(v **types.OcsfNumberFilter, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
- default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
- }
- }
+ var sv *types.OcsfNumberFilter
+ if *v == nil {
+ sv = &types.OcsfNumberFilter{}
+ } else {
+ sv = *v
+ }
- case "Lt":
+ for key, value := range shape {
+ switch key {
+ case "FieldName":
if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.Lt = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.Lt = ptr.Float64(f64)
-
- default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
-
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected OcsfNumberField to be of type string, got %T instead", value)
}
+ sv.FieldName = types.OcsfNumberField(jtv)
}
- case "Lte":
- if value != nil {
- switch jtv := value.(type) {
- case json.Number:
- f64, err := jtv.Float64()
- if err != nil {
- return err
- }
- sv.Lte = ptr.Float64(f64)
-
- case string:
- var f64 float64
- switch {
- case strings.EqualFold(jtv, "NaN"):
- f64 = math.NaN()
-
- case strings.EqualFold(jtv, "Infinity"):
- f64 = math.Inf(1)
-
- case strings.EqualFold(jtv, "-Infinity"):
- f64 = math.Inf(-1)
-
- default:
- return fmt.Errorf("unknown JSON number value: %s", jtv)
-
- }
- sv.Lte = ptr.Float64(f64)
-
- default:
- return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value)
-
- }
+ case "Filter":
+ if err := awsRestjson1_deserializeDocumentNumberFilter(&sv.Filter, value); err != nil {
+ return err
}
default:
@@ -61140,7 +67598,7 @@ func awsRestjson1_deserializeDocumentNumberFilter(v **types.NumberFilter, value
return nil
}
-func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfNumberFilterList(v *[]types.OcsfNumberFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -61153,17 +67611,17 @@ func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, v
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.NumberFilter
+ var cv []types.OcsfNumberFilter
if *v == nil {
- cv = []types.NumberFilter{}
+ cv = []types.OcsfNumberFilter{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.NumberFilter
+ var col types.OcsfNumberFilter
destAddr := &col
- if err := awsRestjson1_deserializeDocumentNumberFilter(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentOcsfNumberFilter(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -61174,7 +67632,7 @@ func awsRestjson1_deserializeDocumentNumberFilterList(v *[]types.NumberFilter, v
return nil
}
-func awsRestjson1_deserializeDocumentOccurrences(v **types.Occurrences, value interface{}) error {
+func awsRestjson1_deserializeDocumentOcsfStringFilter(v **types.OcsfStringFilter, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -61187,37 +67645,26 @@ func awsRestjson1_deserializeDocumentOccurrences(v **types.Occurrences, value in
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.Occurrences
+ var sv *types.OcsfStringFilter
if *v == nil {
- sv = &types.Occurrences{}
+ sv = &types.OcsfStringFilter{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Cells":
- if err := awsRestjson1_deserializeDocumentCells(&sv.Cells, value); err != nil {
- return err
- }
-
- case "LineRanges":
- if err := awsRestjson1_deserializeDocumentRanges(&sv.LineRanges, value); err != nil {
- return err
- }
-
- case "OffsetRanges":
- if err := awsRestjson1_deserializeDocumentRanges(&sv.OffsetRanges, value); err != nil {
- return err
- }
-
- case "Pages":
- if err := awsRestjson1_deserializeDocumentPages(&sv.Pages, value); err != nil {
- return err
+ case "FieldName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected OcsfStringField to be of type string, got %T instead", value)
+ }
+ sv.FieldName = types.OcsfStringField(jtv)
}
- case "Records":
- if err := awsRestjson1_deserializeDocumentRecords(&sv.Records, value); err != nil {
+ case "Filter":
+ if err := awsRestjson1_deserializeDocumentStringFilter(&sv.Filter, value); err != nil {
return err
}
@@ -61230,6 +67677,40 @@ func awsRestjson1_deserializeDocumentOccurrences(v **types.Occurrences, value in
return nil
}
+func awsRestjson1_deserializeDocumentOcsfStringFilterList(v *[]types.OcsfStringFilter, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.OcsfStringFilter
+ if *v == nil {
+ cv = []types.OcsfStringFilter{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.OcsfStringFilter
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentOcsfStringFilter(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentOrganizationConfiguration(v **types.OrganizationConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -62293,8 +68774,216 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{
sv.Description = ptr.String(jtv)
}
- case "IntegrationTypes":
- if err := awsRestjson1_deserializeDocumentIntegrationTypeList(&sv.IntegrationTypes, value); err != nil {
+ case "IntegrationTypes":
+ if err := awsRestjson1_deserializeDocumentIntegrationTypeList(&sv.IntegrationTypes, value); err != nil {
+ return err
+ }
+
+ case "MarketplaceUrl":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.MarketplaceUrl = ptr.String(jtv)
+ }
+
+ case "ProductArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ProductArn = ptr.String(jtv)
+ }
+
+ case "ProductName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ProductName = ptr.String(jtv)
+ }
+
+ case "ProductSubscriptionResourcePolicy":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ProductSubscriptionResourcePolicy = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentProductsList(v *[]types.Product, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.Product
+ if *v == nil {
+ cv = []types.Product{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.Product
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentProduct(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentProductSubscriptionArnList(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentProductsV2List(v *[]types.ProductV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ProductV2
+ if *v == nil {
+ cv = []types.ProductV2{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ProductV2
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentProductV2(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentProductV2(v **types.ProductV2, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ProductV2
+ if *v == nil {
+ sv = &types.ProductV2{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ActivationUrl":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ActivationUrl = ptr.String(jtv)
+ }
+
+ case "Categories":
+ if err := awsRestjson1_deserializeDocumentCategoryList(&sv.Categories, value); err != nil {
+ return err
+ }
+
+ case "CompanyName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.CompanyName = ptr.String(jtv)
+ }
+
+ case "Description":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Description = ptr.String(jtv)
+ }
+
+ case "IntegrationV2Types":
+ if err := awsRestjson1_deserializeDocumentIntegrationV2TypeList(&sv.IntegrationV2Types, value); err != nil {
return err
}
@@ -62307,31 +68996,13 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{
sv.MarketplaceUrl = ptr.String(jtv)
}
- case "ProductArn":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ProductArn = ptr.String(jtv)
- }
-
- case "ProductName":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.ProductName = ptr.String(jtv)
- }
-
- case "ProductSubscriptionResourcePolicy":
+ case "ProductV2Name":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.ProductSubscriptionResourcePolicy = ptr.String(jtv)
+ sv.ProductV2Name = ptr.String(jtv)
}
default:
@@ -62343,7 +69014,7 @@ func awsRestjson1_deserializeDocumentProduct(v **types.Product, value interface{
return nil
}
-func awsRestjson1_deserializeDocumentProductsList(v *[]types.Product, value interface{}) error {
+func awsRestjson1_deserializeDocumentPropagatingVgwSetDetails(v **types.PropagatingVgwSetDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -62351,33 +69022,39 @@ func awsRestjson1_deserializeDocumentProductsList(v *[]types.Product, value inte
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Product
+ var sv *types.PropagatingVgwSetDetails
if *v == nil {
- cv = []types.Product{}
+ sv = &types.PropagatingVgwSetDetails{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.Product
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentProduct(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "GatewayId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.GatewayId = ptr.String(jtv)
+ }
+ default:
+ _, _ = key, value
+
+ }
}
- *v = cv
+ *v = sv
return nil
}
-func awsRestjson1_deserializeDocumentProductSubscriptionArnList(v *[]string, value interface{}) error {
+func awsRestjson1_deserializeDocumentPropagatingVgwSetList(v *[]types.PropagatingVgwSetDetails, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -62390,22 +69067,20 @@ func awsRestjson1_deserializeDocumentProductSubscriptionArnList(v *[]string, val
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []string
+ var cv []types.PropagatingVgwSetDetails
if *v == nil {
- cv = []string{}
+ cv = []types.PropagatingVgwSetDetails{}
} else {
cv = *v
}
for _, value := range shape {
- var col string
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- col = jtv
+ var col types.PropagatingVgwSetDetails
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentPropagatingVgwSetDetails(&destAddr, value); err != nil {
+ return err
}
+ col = *destAddr
cv = append(cv, col)
}
@@ -62413,7 +69088,7 @@ func awsRestjson1_deserializeDocumentProductSubscriptionArnList(v *[]string, val
return nil
}
-func awsRestjson1_deserializeDocumentPropagatingVgwSetDetails(v **types.PropagatingVgwSetDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentProviderDetail(v *types.ProviderDetail, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -62426,34 +69101,44 @@ func awsRestjson1_deserializeDocumentPropagatingVgwSetDetails(v **types.Propagat
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.PropagatingVgwSetDetails
- if *v == nil {
- sv = &types.PropagatingVgwSetDetails{}
- } else {
- sv = *v
- }
-
+ var uv types.ProviderDetail
+loop:
for key, value := range shape {
+ if value == nil {
+ continue
+ }
switch key {
- case "GatewayId":
- if value != nil {
- jtv, ok := value.(string)
- if !ok {
- return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
- }
- sv.GatewayId = ptr.String(jtv)
+ case "JiraCloud":
+ var mv types.JiraCloudDetail
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentJiraCloudDetail(&destAddr, value); err != nil {
+ return err
+ }
+ mv = *destAddr
+ uv = &types.ProviderDetailMemberJiraCloud{Value: mv}
+ break loop
+
+ case "ServiceNow":
+ var mv types.ServiceNowDetail
+ destAddr := &mv
+ if err := awsRestjson1_deserializeDocumentServiceNowDetail(&destAddr, value); err != nil {
+ return err
}
+ mv = *destAddr
+ uv = &types.ProviderDetailMemberServiceNow{Value: mv}
+ break loop
default:
- _, _ = key, value
+ uv = &types.UnknownUnionMember{Tag: key}
+ break loop
}
}
- *v = sv
+ *v = uv
return nil
}
-func awsRestjson1_deserializeDocumentPropagatingVgwSetList(v *[]types.PropagatingVgwSetDetails, value interface{}) error {
+func awsRestjson1_deserializeDocumentProviderSummary(v **types.ProviderSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -62461,29 +69146,44 @@ func awsRestjson1_deserializeDocumentPropagatingVgwSetList(v *[]types.Propagatin
return nil
}
- shape, ok := value.([]interface{})
+ shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.PropagatingVgwSetDetails
+ var sv *types.ProviderSummary
if *v == nil {
- cv = []types.PropagatingVgwSetDetails{}
+ sv = &types.ProviderSummary{}
} else {
- cv = *v
+ sv = *v
}
- for _, value := range shape {
- var col types.PropagatingVgwSetDetails
- destAddr := &col
- if err := awsRestjson1_deserializeDocumentPropagatingVgwSetDetails(&destAddr, value); err != nil {
- return err
- }
- col = *destAddr
- cv = append(cv, col)
+ for key, value := range shape {
+ switch key {
+ case "ConnectorStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ConnectorStatus to be of type string, got %T instead", value)
+ }
+ sv.ConnectorStatus = types.ConnectorStatus(jtv)
+ }
+ case "ProviderName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ConnectorProviderName to be of type string, got %T instead", value)
+ }
+ sv.ProviderName = types.ConnectorProviderName(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
}
- *v = cv
+ *v = sv
return nil
}
@@ -62991,6 +69691,14 @@ func awsRestjson1_deserializeDocumentResource(v **types.Resource, value interfac
return nil
}
+func awsRestjson1_deserializeDocumentResourceConfig(v *document.Interface, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ *v = internaldocument.NewDocumentUnmarshaler(value)
+ return nil
+}
+
func awsRestjson1_deserializeDocumentResourceConflictException(v **types.ResourceConflictException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -63566,6 +70274,107 @@ func awsRestjson1_deserializeDocumentResourceDetails(v **types.ResourceDetails,
return nil
}
+func awsRestjson1_deserializeDocumentResourceFindingsSummary(v **types.ResourceFindingsSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ResourceFindingsSummary
+ if *v == nil {
+ sv = &types.ResourceFindingsSummary{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "FindingType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.FindingType = ptr.String(jtv)
+ }
+
+ case "ProductName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ProductName = ptr.String(jtv)
+ }
+
+ case "Severities":
+ if err := awsRestjson1_deserializeDocumentResourceSeverityBreakdown(&sv.Severities, value); err != nil {
+ return err
+ }
+
+ case "TotalFindings":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.TotalFindings = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentResourceFindingsSummaryList(v *[]types.ResourceFindingsSummary, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ResourceFindingsSummary
+ if *v == nil {
+ cv = []types.ResourceFindingsSummary{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ResourceFindingsSummary
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentResourceFindingsSummary(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceInUseException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -63615,7 +70424,217 @@ func awsRestjson1_deserializeDocumentResourceInUseException(v **types.ResourceIn
return nil
}
-func awsRestjson1_deserializeDocumentResourceList(v *[]types.Resource, value interface{}) error {
+func awsRestjson1_deserializeDocumentResourceList(v *[]types.Resource, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.Resource
+ if *v == nil {
+ cv = []types.Resource{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.Resource
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ResourceNotFoundException
+ if *v == nil {
+ sv = &types.ResourceNotFoundException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Code":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Code = ptr.String(jtv)
+ }
+
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentResourceResult(v **types.ResourceResult, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ResourceResult
+ if *v == nil {
+ sv = &types.ResourceResult{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AccountId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.AccountId = ptr.String(jtv)
+ }
+
+ case "FindingsSummary":
+ if err := awsRestjson1_deserializeDocumentResourceFindingsSummaryList(&sv.FindingsSummary, value); err != nil {
+ return err
+ }
+
+ case "Region":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Region = ptr.String(jtv)
+ }
+
+ case "ResourceArn":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ResourceArn = ptr.String(jtv)
+ }
+
+ case "ResourceCategory":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ResourceCategory to be of type string, got %T instead", value)
+ }
+ sv.ResourceCategory = types.ResourceCategory(jtv)
+ }
+
+ case "ResourceConfig":
+ if err := awsRestjson1_deserializeDocumentResourceConfig(&sv.ResourceConfig, value); err != nil {
+ return err
+ }
+
+ case "ResourceCreationTimeDt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ResourceCreationTimeDt = ptr.String(jtv)
+ }
+
+ case "ResourceDetailCaptureTimeDt":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ResourceDetailCaptureTimeDt = ptr.String(jtv)
+ }
+
+ case "ResourceId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ResourceId = ptr.String(jtv)
+ }
+
+ case "ResourceName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ResourceName = ptr.String(jtv)
+ }
+
+ case "ResourceTags":
+ if err := awsRestjson1_deserializeDocumentResourceTagList(&sv.ResourceTags, value); err != nil {
+ return err
+ }
+
+ case "ResourceType":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ResourceType = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentResources(v *[]types.ResourceResult, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -63628,17 +70647,17 @@ func awsRestjson1_deserializeDocumentResourceList(v *[]types.Resource, value int
return fmt.Errorf("unexpected JSON type %v", value)
}
- var cv []types.Resource
+ var cv []types.ResourceResult
if *v == nil {
- cv = []types.Resource{}
+ cv = []types.ResourceResult{}
} else {
cv = *v
}
for _, value := range shape {
- var col types.Resource
+ var col types.ResourceResult
destAddr := &col
- if err := awsRestjson1_deserializeDocumentResource(&destAddr, value); err != nil {
+ if err := awsRestjson1_deserializeDocumentResourceResult(&destAddr, value); err != nil {
return err
}
col = *destAddr
@@ -63649,7 +70668,7 @@ func awsRestjson1_deserializeDocumentResourceList(v *[]types.Resource, value int
return nil
}
-func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error {
+func awsRestjson1_deserializeDocumentResourceSeverityBreakdown(v **types.ResourceSeverityBreakdown, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
@@ -63662,31 +70681,166 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc
return fmt.Errorf("unexpected JSON type %v", value)
}
- var sv *types.ResourceNotFoundException
+ var sv *types.ResourceSeverityBreakdown
if *v == nil {
- sv = &types.ResourceNotFoundException{}
+ sv = &types.ResourceSeverityBreakdown{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
- case "Code":
+ case "Critical":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Critical = ptr.Int32(int32(i64))
+ }
+
+ case "Fatal":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Fatal = ptr.Int32(int32(i64))
+ }
+
+ case "High":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.High = ptr.Int32(int32(i64))
+ }
+
+ case "Informational":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Informational = ptr.Int32(int32(i64))
+ }
+
+ case "Low":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Low = ptr.Int32(int32(i64))
+ }
+
+ case "Medium":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Medium = ptr.Int32(int32(i64))
+ }
+
+ case "Other":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Other = ptr.Int32(int32(i64))
+ }
+
+ case "Unknown":
+ if value != nil {
+ jtv, ok := value.(json.Number)
+ if !ok {
+ return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
+ }
+ i64, err := jtv.Int64()
+ if err != nil {
+ return err
+ }
+ sv.Unknown = ptr.Int32(int32(i64))
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsRestjson1_deserializeDocumentResourceTag(v **types.ResourceTag, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ResourceTag
+ if *v == nil {
+ sv = &types.ResourceTag{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Key":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Code = ptr.String(jtv)
+ sv.Key = ptr.String(jtv)
}
- case "message", "Message":
+ case "Value":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
}
- sv.Message = ptr.String(jtv)
+ sv.Value = ptr.String(jtv)
}
default:
@@ -63698,6 +70852,40 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc
return nil
}
+func awsRestjson1_deserializeDocumentResourceTagList(v *[]types.ResourceTag, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ResourceTag
+ if *v == nil {
+ cv = []types.ResourceTag{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ResourceTag
+ destAddr := &col
+ if err := awsRestjson1_deserializeDocumentResourceTag(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentResult(v **types.Result, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -66097,6 +73285,64 @@ func awsRestjson1_deserializeDocumentSequence(v **types.Sequence, value interfac
return nil
}
+func awsRestjson1_deserializeDocumentServiceNowDetail(v **types.ServiceNowDetail, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ServiceNowDetail
+ if *v == nil {
+ sv = &types.ServiceNowDetail{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "AuthStatus":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected ConnectorAuthStatus to be of type string, got %T instead", value)
+ }
+ sv.AuthStatus = types.ConnectorAuthStatus(jtv)
+ }
+
+ case "ClientId":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.ClientId = ptr.String(jtv)
+ }
+
+ case "InstanceName":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.InstanceName = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentSeverity(v **types.Severity, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -68414,6 +75660,55 @@ func awsRestjson1_deserializeDocumentThreatList(v *[]types.Threat, value interfa
return nil
}
+func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ThrottlingException
+ if *v == nil {
+ sv = &types.ThrottlingException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Code":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Code = ptr.String(jtv)
+ }
+
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentTypeList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -68951,6 +76246,55 @@ func awsRestjson1_deserializeDocumentUserAccount(v **types.UserAccount, value in
return nil
}
+func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ValidationException
+ if *v == nil {
+ sv = &types.ValidationException{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Code":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Code = ptr.String(jtv)
+ }
+
+ case "message", "Message":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value)
+ }
+ sv.Message = ptr.String(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsRestjson1_deserializeDocumentVolumeMount(v **types.VolumeMount, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
diff --git a/service/securityhub/document/doc.go b/service/securityhub/document/doc.go
new file mode 100644
index 00000000000..2b06b14f3cd
--- /dev/null
+++ b/service/securityhub/document/doc.go
@@ -0,0 +1,66 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+// Package document implements encoding and decoding of open-content that has a JSON-like data model.
+// This data-model allows for UTF-8 strings, arbitrary precision numbers, booleans, nulls, a list of these values, and a
+// map of UTF-8 strings to these values.
+//
+// Interface defines the semantics for how a document type is marshalled and unmarshalled for requests and responses
+// for the service. To send a document as input to the service you use NewLazyDocument and pass it the Go type to be
+// sent to the service. NewLazyDocument returns a document Interface type that encodes the provided Go type during
+// the request serialization step after you have invoked an API client operation that uses the document type.
+//
+// The following examples show how you can create document types using basic Go types.
+//
+// NewLazyDocument(map[string]interface{}{
+// "favoriteNumber": 42,
+// "fruits": []string{"apple", "orange"},
+// "capitals": map[string]interface{}{
+// "Washington": "Olympia",
+// "Oregon": "Salem",
+// },
+// "skyIsBlue": true,
+// })
+//
+// NewLazyDocument(3.14159)
+//
+// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"})
+//
+// NewLazyDocument(true)
+//
+// Services can send document types as part of their API responses. To retrieve the content of a response document
+// you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass
+// a reference to the Go type that you want to unmarshal and map the response to.
+//
+// For example, if you expect to receive key/value map from the service response:
+//
+// var kv map[string]interface{}
+// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil {
+// // handle error
+// }
+//
+// If a service can return one or more data-types in the response, you can use an empty interface and type switch to
+// dynamically handle the response type.
+//
+// var v interface{}
+// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil {
+// // handle error
+// }
+//
+// switch vv := v.(type) {
+// case map[string]interface{}:
+// // handle key/value map
+// case []interface{}:
+// // handle array of values
+// case bool:
+// // handle boolean
+// case document.Number:
+// // handle an arbitrary precision number
+// case string:
+// // handle string
+// default:
+// // handle unknown case
+// }
+//
+// The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document
+// including more in depth examples that cover user-defined structure types.
+package document
diff --git a/service/securityhub/document/document.go b/service/securityhub/document/document.go
new file mode 100644
index 00000000000..2fc962ded02
--- /dev/null
+++ b/service/securityhub/document/document.go
@@ -0,0 +1,34 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package document
+
+import (
+ internaldocument "github.com/aws/aws-sdk-go-v2/service/securityhub/internal/document"
+)
+
+// Interface defines a document which is a protocol-agnostic type which supports a
+// JSON-like data-model. You can use this type to send UTF-8 strings, arbitrary
+// precision numbers, booleans, nulls, a list of these values, and a map of UTF-8
+// strings to these values.
+//
+// You create a document type using the NewLazyDocument function and passing it
+// the Go type to marshal. When receiving a document in an API response, you use
+// the document's UnmarshalSmithyDocument function to decode the response to your
+// desired Go type. Unless documented specifically generated structure types in
+// client packages or client types packages are not supported at this time. Such
+// types embed a noSmithyDocumentSerde and will cause an error to be returned when
+// attempting to send an API request.
+//
+// For more information see the accompanying package documentation and linked
+// references.
+type Interface = internaldocument.Interface
+
+// You create document type using the NewLazyDocument function and passing it the
+// Go type to be marshaled and sent to the service. The document marshaler supports
+// semantics similar to the encoding/json Go standard library.
+//
+// For more information see the accompanying package documentation and linked
+// references.
+func NewLazyDocument(v interface{}) Interface {
+ return internaldocument.NewDocumentMarshaler(v)
+}
diff --git a/service/securityhub/generated.json b/service/securityhub/generated.json
index aba671ab9e6..bf91051cbcd 100644
--- a/service/securityhub/generated.json
+++ b/service/securityhub/generated.json
@@ -20,16 +20,25 @@
"api_op_BatchImportFindings.go",
"api_op_BatchUpdateAutomationRules.go",
"api_op_BatchUpdateFindings.go",
+ "api_op_BatchUpdateFindingsV2.go",
"api_op_BatchUpdateStandardsControlAssociations.go",
+ "api_op_ConnectorRegistrationsV2.go",
"api_op_CreateActionTarget.go",
+ "api_op_CreateAggregatorV2.go",
"api_op_CreateAutomationRule.go",
+ "api_op_CreateAutomationRuleV2.go",
"api_op_CreateConfigurationPolicy.go",
+ "api_op_CreateConnectorV2.go",
"api_op_CreateFindingAggregator.go",
"api_op_CreateInsight.go",
"api_op_CreateMembers.go",
+ "api_op_CreateTicketV2.go",
"api_op_DeclineInvitations.go",
"api_op_DeleteActionTarget.go",
+ "api_op_DeleteAggregatorV2.go",
+ "api_op_DeleteAutomationRuleV2.go",
"api_op_DeleteConfigurationPolicy.go",
+ "api_op_DeleteConnectorV2.go",
"api_op_DeleteFindingAggregator.go",
"api_op_DeleteInsight.go",
"api_op_DeleteInvitations.go",
@@ -38,34 +47,48 @@
"api_op_DescribeHub.go",
"api_op_DescribeOrganizationConfiguration.go",
"api_op_DescribeProducts.go",
+ "api_op_DescribeProductsV2.go",
+ "api_op_DescribeSecurityHubV2.go",
"api_op_DescribeStandards.go",
"api_op_DescribeStandardsControls.go",
"api_op_DisableImportFindingsForProduct.go",
"api_op_DisableOrganizationAdminAccount.go",
"api_op_DisableSecurityHub.go",
+ "api_op_DisableSecurityHubV2.go",
"api_op_DisassociateFromAdministratorAccount.go",
"api_op_DisassociateFromMasterAccount.go",
"api_op_DisassociateMembers.go",
"api_op_EnableImportFindingsForProduct.go",
"api_op_EnableOrganizationAdminAccount.go",
"api_op_EnableSecurityHub.go",
+ "api_op_EnableSecurityHubV2.go",
"api_op_GetAdministratorAccount.go",
+ "api_op_GetAggregatorV2.go",
+ "api_op_GetAutomationRuleV2.go",
"api_op_GetConfigurationPolicy.go",
"api_op_GetConfigurationPolicyAssociation.go",
+ "api_op_GetConnectorV2.go",
"api_op_GetEnabledStandards.go",
"api_op_GetFindingAggregator.go",
"api_op_GetFindingHistory.go",
+ "api_op_GetFindingStatisticsV2.go",
"api_op_GetFindings.go",
+ "api_op_GetFindingsV2.go",
"api_op_GetInsightResults.go",
"api_op_GetInsights.go",
"api_op_GetInvitationsCount.go",
"api_op_GetMasterAccount.go",
"api_op_GetMembers.go",
+ "api_op_GetResourcesStatisticsV2.go",
+ "api_op_GetResourcesV2.go",
"api_op_GetSecurityControlDefinition.go",
"api_op_InviteMembers.go",
+ "api_op_ListAggregatorsV2.go",
"api_op_ListAutomationRules.go",
+ "api_op_ListAutomationRulesV2.go",
"api_op_ListConfigurationPolicies.go",
"api_op_ListConfigurationPolicyAssociations.go",
+ "api_op_ListConnectorsV2.go",
"api_op_ListEnabledProductsForImport.go",
"api_op_ListFindingAggregators.go",
"api_op_ListInvitations.go",
@@ -79,7 +102,10 @@
"api_op_TagResource.go",
"api_op_UntagResource.go",
"api_op_UpdateActionTarget.go",
+ "api_op_UpdateAggregatorV2.go",
+ "api_op_UpdateAutomationRuleV2.go",
"api_op_UpdateConfigurationPolicy.go",
+ "api_op_UpdateConnectorV2.go",
"api_op_UpdateFindingAggregator.go",
"api_op_UpdateFindings.go",
"api_op_UpdateInsight.go",
@@ -90,10 +116,14 @@
"auth.go",
"deserializers.go",
"doc.go",
+ "document/doc.go",
+ "document/document.go",
"endpoints.go",
"endpoints_config_test.go",
"endpoints_test.go",
"generated.json",
+ "internal/document/document.go",
+ "internal/document/document_test.go",
"internal/endpoints/endpoints.go",
"internal/endpoints/endpoints_test.go",
"options.go",
diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod
index d591d68b00e..c176b0a958c 100644
--- a/service/securityhub/go.mod
+++ b/service/securityhub/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/securityhub
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/securityhub/go.sum
+++ b/service/securityhub/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/securityhub/go_module_metadata.go b/service/securityhub/go_module_metadata.go
index ca673d1b2f9..fb6d85c26a1 100644
--- a/service/securityhub/go_module_metadata.go
+++ b/service/securityhub/go_module_metadata.go
@@ -3,4 +3,4 @@
package securityhub
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.57.5"
+const goModuleVersion = "1.58.0"
diff --git a/service/securityhub/internal/document/document.go b/service/securityhub/internal/document/document.go
new file mode 100644
index 00000000000..306b58d5fe3
--- /dev/null
+++ b/service/securityhub/internal/document/document.go
@@ -0,0 +1,99 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package document
+
+import (
+ "bytes"
+ "encoding/json"
+ smithydocument "github.com/aws/smithy-go/document"
+ smithydocumentjson "github.com/aws/smithy-go/document/json"
+)
+
+// github.com/aws/aws-sdk-go-v2/service/securityhub/internal/document.smithyDocument
+// is an interface which is used to bind a document type to its service client.
+type smithyDocument interface {
+ isSmithyDocument()
+}
+
+// github.com/aws/aws-sdk-go-v2/service/securityhub/internal/document.Interface is
+// a JSON-like data model type that is protocol agnostic and is usedto send
+// open-content to a service.
+type Interface interface {
+ smithyDocument
+ smithydocument.Marshaler
+ smithydocument.Unmarshaler
+}
+
+type documentMarshaler struct {
+ value interface{}
+}
+
+func (m *documentMarshaler) UnmarshalSmithyDocument(v interface{}) error {
+ mBytes, err := m.MarshalSmithyDocument()
+ if err != nil {
+ return err
+ }
+
+ jDecoder := json.NewDecoder(bytes.NewReader(mBytes))
+ jDecoder.UseNumber()
+
+ var jv interface{}
+ if err := jDecoder.Decode(&v); err != nil {
+ return err
+ }
+
+ return NewDocumentUnmarshaler(v).UnmarshalSmithyDocument(&jv)
+}
+
+func (m *documentMarshaler) MarshalSmithyDocument() ([]byte, error) {
+ return smithydocumentjson.NewEncoder().Encode(m.value)
+}
+
+func (m *documentMarshaler) isSmithyDocument() {}
+
+var _ Interface = (*documentMarshaler)(nil)
+
+type documentUnmarshaler struct {
+ value interface{}
+}
+
+func (m *documentUnmarshaler) UnmarshalSmithyDocument(v interface{}) error {
+ decoder := smithydocumentjson.NewDecoder()
+ return decoder.DecodeJSONInterface(m.value, v)
+}
+
+func (m *documentUnmarshaler) MarshalSmithyDocument() ([]byte, error) {
+ return json.Marshal(m.value)
+}
+
+func (m *documentUnmarshaler) isSmithyDocument() {}
+
+var _ Interface = (*documentUnmarshaler)(nil)
+
+// NewDocumentMarshaler creates a new document marshaler for the given input type
+func NewDocumentMarshaler(v interface{}) Interface {
+ return &documentMarshaler{
+ value: v,
+ }
+}
+
+// NewDocumentUnmarshaler creates a new document unmarshaler for the given service
+// response
+func NewDocumentUnmarshaler(v interface{}) Interface {
+ return &documentUnmarshaler{
+ value: v,
+ }
+}
+
+// github.com/aws/aws-sdk-go-v2/service/securityhub/internal/document.IsInterface
+// returns whether the given Interface implementation is a valid client
+// implementation
+func IsInterface(v Interface) (ok bool) {
+ defer func() {
+ if err := recover(); err != nil {
+ ok = false
+ }
+ }()
+ v.isSmithyDocument()
+ return true
+}
diff --git a/service/securityhub/internal/document/document_test.go b/service/securityhub/internal/document/document_test.go
new file mode 100644
index 00000000000..775645dcd6e
--- /dev/null
+++ b/service/securityhub/internal/document/document_test.go
@@ -0,0 +1,11 @@
+// Code generated by smithy-go-codegen DO NOT EDIT.
+
+package document
+
+import (
+ smithydocument "github.com/aws/smithy-go/document"
+)
+
+var _ smithyDocument = (Interface)(nil)
+var _ smithydocument.Marshaler = (Interface)(nil)
+var _ smithydocument.Unmarshaler = (Interface)(nil)
diff --git a/service/securityhub/options.go b/service/securityhub/options.go
index bf221c6bee7..e86904373c9 100644
--- a/service/securityhub/options.go
+++ b/service/securityhub/options.go
@@ -65,6 +65,10 @@ type Options struct {
// Signature Version 4 (SigV4) Signer
HTTPSignerV4 HTTPSignerV4
+ // Provides idempotency tokens values that will be automatically populated into
+ // idempotent API operations.
+ IdempotencyTokenProvider IdempotencyTokenProvider
+
// The logger writer interface to write logging messages to.
Logger logging.Logger
diff --git a/service/securityhub/serializers.go b/service/securityhub/serializers.go
index b15481162df..1b1d51b502a 100644
--- a/service/securityhub/serializers.go
+++ b/service/securityhub/serializers.go
@@ -1076,14 +1076,14 @@ func awsRestjson1_serializeOpDocumentBatchUpdateFindingsInput(v *BatchUpdateFind
return nil
}
-type awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations struct {
+type awsRestjson1_serializeOpBatchUpdateFindingsV2 struct {
}
-func (*awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations) ID() string {
+func (*awsRestjson1_serializeOpBatchUpdateFindingsV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpBatchUpdateFindingsV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1095,13 +1095,13 @@ func (m *awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations) Handle
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*BatchUpdateStandardsControlAssociationsInput)
+ input, ok := in.Parameters.(*BatchUpdateFindingsV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/associations")
+ opPath, opQuery := httpbinding.SplitURI("/findingsv2/batchupdatev2")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "PATCH"
@@ -1120,7 +1120,7 @@ func (m *awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations) Handle
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentBatchUpdateStandardsControlAssociationsInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentBatchUpdateFindingsV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1137,7 +1137,7 @@ func (m *awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations) Handle
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsBatchUpdateStandardsControlAssociationsInput(v *BatchUpdateStandardsControlAssociationsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsBatchUpdateFindingsV2Input(v *BatchUpdateFindingsV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1145,28 +1145,50 @@ func awsRestjson1_serializeOpHttpBindingsBatchUpdateStandardsControlAssociations
return nil
}
-func awsRestjson1_serializeOpDocumentBatchUpdateStandardsControlAssociationsInput(v *BatchUpdateStandardsControlAssociationsInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentBatchUpdateFindingsV2Input(v *BatchUpdateFindingsV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.StandardsControlAssociationUpdates != nil {
- ok := object.Key("StandardsControlAssociationUpdates")
- if err := awsRestjson1_serializeDocumentStandardsControlAssociationUpdates(v.StandardsControlAssociationUpdates, ok); err != nil {
+ if v.Comment != nil {
+ ok := object.Key("Comment")
+ ok.String(*v.Comment)
+ }
+
+ if v.FindingIdentifiers != nil {
+ ok := object.Key("FindingIdentifiers")
+ if err := awsRestjson1_serializeDocumentOcsfFindingIdentifierList(v.FindingIdentifiers, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MetadataUids != nil {
+ ok := object.Key("MetadataUids")
+ if err := awsRestjson1_serializeDocumentMetadataUidList(v.MetadataUids, ok); err != nil {
return err
}
}
+ if v.SeverityId != nil {
+ ok := object.Key("SeverityId")
+ ok.Integer(*v.SeverityId)
+ }
+
+ if v.StatusId != nil {
+ ok := object.Key("StatusId")
+ ok.Integer(*v.StatusId)
+ }
+
return nil
}
-type awsRestjson1_serializeOpCreateActionTarget struct {
+type awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations struct {
}
-func (*awsRestjson1_serializeOpCreateActionTarget) ID() string {
+func (*awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateActionTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpBatchUpdateStandardsControlAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1178,16 +1200,16 @@ func (m *awsRestjson1_serializeOpCreateActionTarget) HandleSerialize(ctx context
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateActionTargetInput)
+ input, ok := in.Parameters.(*BatchUpdateStandardsControlAssociationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/actionTargets")
+ opPath, opQuery := httpbinding.SplitURI("/associations")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "PATCH"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -1203,7 +1225,7 @@ func (m *awsRestjson1_serializeOpCreateActionTarget) HandleSerialize(ctx context
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateActionTargetInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentBatchUpdateStandardsControlAssociationsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1220,7 +1242,7 @@ func (m *awsRestjson1_serializeOpCreateActionTarget) HandleSerialize(ctx context
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateActionTargetInput(v *CreateActionTargetInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsBatchUpdateStandardsControlAssociationsInput(v *BatchUpdateStandardsControlAssociationsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1228,36 +1250,28 @@ func awsRestjson1_serializeOpHttpBindingsCreateActionTargetInput(v *CreateAction
return nil
}
-func awsRestjson1_serializeOpDocumentCreateActionTargetInput(v *CreateActionTargetInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentBatchUpdateStandardsControlAssociationsInput(v *BatchUpdateStandardsControlAssociationsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.Description != nil {
- ok := object.Key("Description")
- ok.String(*v.Description)
- }
-
- if v.Id != nil {
- ok := object.Key("Id")
- ok.String(*v.Id)
- }
-
- if v.Name != nil {
- ok := object.Key("Name")
- ok.String(*v.Name)
+ if v.StandardsControlAssociationUpdates != nil {
+ ok := object.Key("StandardsControlAssociationUpdates")
+ if err := awsRestjson1_serializeDocumentStandardsControlAssociationUpdates(v.StandardsControlAssociationUpdates, ok); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpCreateAutomationRule struct {
+type awsRestjson1_serializeOpConnectorRegistrationsV2 struct {
}
-func (*awsRestjson1_serializeOpCreateAutomationRule) ID() string {
+func (*awsRestjson1_serializeOpConnectorRegistrationsV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateAutomationRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpConnectorRegistrationsV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1269,13 +1283,13 @@ func (m *awsRestjson1_serializeOpCreateAutomationRule) HandleSerialize(ctx conte
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateAutomationRuleInput)
+ input, ok := in.Parameters.(*ConnectorRegistrationsV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/automationrules/create")
+ opPath, opQuery := httpbinding.SplitURI("/connectorsv2/registrations")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1294,7 +1308,7 @@ func (m *awsRestjson1_serializeOpCreateAutomationRule) HandleSerialize(ctx conte
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateAutomationRuleInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentConnectorRegistrationsV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1311,7 +1325,7 @@ func (m *awsRestjson1_serializeOpCreateAutomationRule) HandleSerialize(ctx conte
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateAutomationRuleInput(v *CreateAutomationRuleInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsConnectorRegistrationsV2Input(v *ConnectorRegistrationsV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1319,67 +1333,31 @@ func awsRestjson1_serializeOpHttpBindingsCreateAutomationRuleInput(v *CreateAuto
return nil
}
-func awsRestjson1_serializeOpDocumentCreateAutomationRuleInput(v *CreateAutomationRuleInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentConnectorRegistrationsV2Input(v *ConnectorRegistrationsV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.Actions != nil {
- ok := object.Key("Actions")
- if err := awsRestjson1_serializeDocumentActionList(v.Actions, ok); err != nil {
- return err
- }
- }
-
- if v.Criteria != nil {
- ok := object.Key("Criteria")
- if err := awsRestjson1_serializeDocumentAutomationRulesFindingFilters(v.Criteria, ok); err != nil {
- return err
- }
- }
-
- if v.Description != nil {
- ok := object.Key("Description")
- ok.String(*v.Description)
- }
-
- if v.IsTerminal != nil {
- ok := object.Key("IsTerminal")
- ok.Boolean(*v.IsTerminal)
- }
-
- if v.RuleName != nil {
- ok := object.Key("RuleName")
- ok.String(*v.RuleName)
- }
-
- if v.RuleOrder != nil {
- ok := object.Key("RuleOrder")
- ok.Integer(*v.RuleOrder)
- }
-
- if len(v.RuleStatus) > 0 {
- ok := object.Key("RuleStatus")
- ok.String(string(v.RuleStatus))
+ if v.AuthCode != nil {
+ ok := object.Key("AuthCode")
+ ok.String(*v.AuthCode)
}
- if v.Tags != nil {
- ok := object.Key("Tags")
- if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
- return err
- }
+ if v.AuthState != nil {
+ ok := object.Key("AuthState")
+ ok.String(*v.AuthState)
}
return nil
}
-type awsRestjson1_serializeOpCreateConfigurationPolicy struct {
+type awsRestjson1_serializeOpCreateActionTarget struct {
}
-func (*awsRestjson1_serializeOpCreateConfigurationPolicy) ID() string {
+func (*awsRestjson1_serializeOpCreateActionTarget) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateConfigurationPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpCreateActionTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1391,13 +1369,13 @@ func (m *awsRestjson1_serializeOpCreateConfigurationPolicy) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateConfigurationPolicyInput)
+ input, ok := in.Parameters.(*CreateActionTargetInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/create")
+ opPath, opQuery := httpbinding.SplitURI("/actionTargets")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1416,7 +1394,7 @@ func (m *awsRestjson1_serializeOpCreateConfigurationPolicy) HandleSerialize(ctx
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateConfigurationPolicyInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentCreateActionTargetInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1433,7 +1411,7 @@ func (m *awsRestjson1_serializeOpCreateConfigurationPolicy) HandleSerialize(ctx
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateConfigurationPolicyInput(v *CreateConfigurationPolicyInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsCreateActionTargetInput(v *CreateActionTargetInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1441,45 +1419,36 @@ func awsRestjson1_serializeOpHttpBindingsCreateConfigurationPolicyInput(v *Creat
return nil
}
-func awsRestjson1_serializeOpDocumentCreateConfigurationPolicyInput(v *CreateConfigurationPolicyInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentCreateActionTargetInput(v *CreateActionTargetInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.ConfigurationPolicy != nil {
- ok := object.Key("ConfigurationPolicy")
- if err := awsRestjson1_serializeDocumentPolicy(v.ConfigurationPolicy, ok); err != nil {
- return err
- }
- }
-
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
}
+ if v.Id != nil {
+ ok := object.Key("Id")
+ ok.String(*v.Id)
+ }
+
if v.Name != nil {
ok := object.Key("Name")
ok.String(*v.Name)
}
- if v.Tags != nil {
- ok := object.Key("Tags")
- if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
- return err
- }
- }
-
return nil
}
-type awsRestjson1_serializeOpCreateFindingAggregator struct {
+type awsRestjson1_serializeOpCreateAggregatorV2 struct {
}
-func (*awsRestjson1_serializeOpCreateFindingAggregator) ID() string {
+func (*awsRestjson1_serializeOpCreateAggregatorV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateFindingAggregator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpCreateAggregatorV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1491,13 +1460,13 @@ func (m *awsRestjson1_serializeOpCreateFindingAggregator) HandleSerialize(ctx co
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateFindingAggregatorInput)
+ input, ok := in.Parameters.(*CreateAggregatorV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/findingAggregator/create")
+ opPath, opQuery := httpbinding.SplitURI("/aggregatorv2/create")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1516,7 +1485,7 @@ func (m *awsRestjson1_serializeOpCreateFindingAggregator) HandleSerialize(ctx co
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateFindingAggregatorInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentCreateAggregatorV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1533,7 +1502,7 @@ func (m *awsRestjson1_serializeOpCreateFindingAggregator) HandleSerialize(ctx co
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateFindingAggregatorInput(v *CreateFindingAggregatorInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsCreateAggregatorV2Input(v *CreateAggregatorV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1541,18 +1510,30 @@ func awsRestjson1_serializeOpHttpBindingsCreateFindingAggregatorInput(v *CreateF
return nil
}
-func awsRestjson1_serializeOpDocumentCreateFindingAggregatorInput(v *CreateFindingAggregatorInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentCreateAggregatorV2Input(v *CreateAggregatorV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
+ if v.ClientToken != nil {
+ ok := object.Key("ClientToken")
+ ok.String(*v.ClientToken)
+ }
+
+ if v.LinkedRegions != nil {
+ ok := object.Key("LinkedRegions")
+ if err := awsRestjson1_serializeDocumentStringList(v.LinkedRegions, ok); err != nil {
+ return err
+ }
+ }
+
if v.RegionLinkingMode != nil {
ok := object.Key("RegionLinkingMode")
ok.String(*v.RegionLinkingMode)
}
- if v.Regions != nil {
- ok := object.Key("Regions")
- if err := awsRestjson1_serializeDocumentStringList(v.Regions, ok); err != nil {
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
return err
}
}
@@ -1560,14 +1541,14 @@ func awsRestjson1_serializeOpDocumentCreateFindingAggregatorInput(v *CreateFindi
return nil
}
-type awsRestjson1_serializeOpCreateInsight struct {
+type awsRestjson1_serializeOpCreateAutomationRule struct {
}
-func (*awsRestjson1_serializeOpCreateInsight) ID() string {
+func (*awsRestjson1_serializeOpCreateAutomationRule) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateInsight) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpCreateAutomationRule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1579,13 +1560,13 @@ func (m *awsRestjson1_serializeOpCreateInsight) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateInsightInput)
+ input, ok := in.Parameters.(*CreateAutomationRuleInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/insights")
+ opPath, opQuery := httpbinding.SplitURI("/automationrules/create")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1604,7 +1585,7 @@ func (m *awsRestjson1_serializeOpCreateInsight) HandleSerialize(ctx context.Cont
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateInsightInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentCreateAutomationRuleInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1621,7 +1602,7 @@ func (m *awsRestjson1_serializeOpCreateInsight) HandleSerialize(ctx context.Cont
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateInsightInput(v *CreateInsightInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsCreateAutomationRuleInput(v *CreateAutomationRuleInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1629,38 +1610,67 @@ func awsRestjson1_serializeOpHttpBindingsCreateInsightInput(v *CreateInsightInpu
return nil
}
-func awsRestjson1_serializeOpDocumentCreateInsightInput(v *CreateInsightInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentCreateAutomationRuleInput(v *CreateAutomationRuleInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.Filters != nil {
- ok := object.Key("Filters")
- if err := awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v.Filters, ok); err != nil {
+ if v.Actions != nil {
+ ok := object.Key("Actions")
+ if err := awsRestjson1_serializeDocumentActionList(v.Actions, ok); err != nil {
return err
}
}
- if v.GroupByAttribute != nil {
- ok := object.Key("GroupByAttribute")
- ok.String(*v.GroupByAttribute)
+ if v.Criteria != nil {
+ ok := object.Key("Criteria")
+ if err := awsRestjson1_serializeDocumentAutomationRulesFindingFilters(v.Criteria, ok); err != nil {
+ return err
+ }
}
- if v.Name != nil {
- ok := object.Key("Name")
- ok.String(*v.Name)
+ if v.Description != nil {
+ ok := object.Key("Description")
+ ok.String(*v.Description)
+ }
+
+ if v.IsTerminal != nil {
+ ok := object.Key("IsTerminal")
+ ok.Boolean(*v.IsTerminal)
+ }
+
+ if v.RuleName != nil {
+ ok := object.Key("RuleName")
+ ok.String(*v.RuleName)
+ }
+
+ if v.RuleOrder != nil {
+ ok := object.Key("RuleOrder")
+ ok.Integer(*v.RuleOrder)
+ }
+
+ if len(v.RuleStatus) > 0 {
+ ok := object.Key("RuleStatus")
+ ok.String(string(v.RuleStatus))
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpCreateMembers struct {
+type awsRestjson1_serializeOpCreateAutomationRuleV2 struct {
}
-func (*awsRestjson1_serializeOpCreateMembers) ID() string {
+func (*awsRestjson1_serializeOpCreateAutomationRuleV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpCreateMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpCreateAutomationRuleV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1672,13 +1682,13 @@ func (m *awsRestjson1_serializeOpCreateMembers) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*CreateMembersInput)
+ input, ok := in.Parameters.(*CreateAutomationRuleV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/members")
+ opPath, opQuery := httpbinding.SplitURI("/automationrulesv2/create")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1697,7 +1707,7 @@ func (m *awsRestjson1_serializeOpCreateMembers) HandleSerialize(ctx context.Cont
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentCreateMembersInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentCreateAutomationRuleV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1714,7 +1724,7 @@ func (m *awsRestjson1_serializeOpCreateMembers) HandleSerialize(ctx context.Cont
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsCreateMembersInput(v *CreateMembersInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsCreateAutomationRuleV2Input(v *CreateAutomationRuleV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1722,28 +1732,2030 @@ func awsRestjson1_serializeOpHttpBindingsCreateMembersInput(v *CreateMembersInpu
return nil
}
-func awsRestjson1_serializeOpDocumentCreateMembersInput(v *CreateMembersInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentCreateAutomationRuleV2Input(v *CreateAutomationRuleV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.AccountDetails != nil {
- ok := object.Key("AccountDetails")
- if err := awsRestjson1_serializeDocumentAccountDetailsList(v.AccountDetails, ok); err != nil {
+ if v.Actions != nil {
+ ok := object.Key("Actions")
+ if err := awsRestjson1_serializeDocumentAutomationRulesActionListV2(v.Actions, ok); err != nil {
return err
}
}
- return nil
-}
-
-type awsRestjson1_serializeOpDeclineInvitations struct {
-}
+ if v.ClientToken != nil {
+ ok := object.Key("ClientToken")
+ ok.String(*v.ClientToken)
+ }
-func (*awsRestjson1_serializeOpDeclineInvitations) ID() string {
+ if v.Criteria != nil {
+ ok := object.Key("Criteria")
+ if err := awsRestjson1_serializeDocumentCriteria(v.Criteria, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Description != nil {
+ ok := object.Key("Description")
+ ok.String(*v.Description)
+ }
+
+ if v.RuleName != nil {
+ ok := object.Key("RuleName")
+ ok.String(*v.RuleName)
+ }
+
+ if v.RuleOrder != nil {
+ ok := object.Key("RuleOrder")
+ switch {
+ case math.IsNaN(float64(*v.RuleOrder)):
+ ok.String("NaN")
+
+ case math.IsInf(float64(*v.RuleOrder), 1):
+ ok.String("Infinity")
+
+ case math.IsInf(float64(*v.RuleOrder), -1):
+ ok.String("-Infinity")
+
+ default:
+ ok.Float(*v.RuleOrder)
+
+ }
+ }
+
+ if len(v.RuleStatus) > 0 {
+ ok := object.Key("RuleStatus")
+ ok.String(string(v.RuleStatus))
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateConfigurationPolicy struct {
+}
+
+func (*awsRestjson1_serializeOpCreateConfigurationPolicy) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateConfigurationPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateConfigurationPolicyInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/create")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateConfigurationPolicyInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateConfigurationPolicyInput(v *CreateConfigurationPolicyInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateConfigurationPolicyInput(v *CreateConfigurationPolicyInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ConfigurationPolicy != nil {
+ ok := object.Key("ConfigurationPolicy")
+ if err := awsRestjson1_serializeDocumentPolicy(v.ConfigurationPolicy, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Description != nil {
+ ok := object.Key("Description")
+ ok.String(*v.Description)
+ }
+
+ if v.Name != nil {
+ ok := object.Key("Name")
+ ok.String(*v.Name)
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateConnectorV2 struct {
+}
+
+func (*awsRestjson1_serializeOpCreateConnectorV2) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateConnectorV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateConnectorV2Input)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/connectorsv2")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateConnectorV2Input(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateConnectorV2Input(v *CreateConnectorV2Input, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateConnectorV2Input(v *CreateConnectorV2Input, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ClientToken != nil {
+ ok := object.Key("ClientToken")
+ ok.String(*v.ClientToken)
+ }
+
+ if v.Description != nil {
+ ok := object.Key("Description")
+ ok.String(*v.Description)
+ }
+
+ if v.KmsKeyArn != nil {
+ ok := object.Key("KmsKeyArn")
+ ok.String(*v.KmsKeyArn)
+ }
+
+ if v.Name != nil {
+ ok := object.Key("Name")
+ ok.String(*v.Name)
+ }
+
+ if v.Provider != nil {
+ ok := object.Key("Provider")
+ if err := awsRestjson1_serializeDocumentProviderConfiguration(v.Provider, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateFindingAggregator struct {
+}
+
+func (*awsRestjson1_serializeOpCreateFindingAggregator) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateFindingAggregator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateFindingAggregatorInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/findingAggregator/create")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateFindingAggregatorInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateFindingAggregatorInput(v *CreateFindingAggregatorInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateFindingAggregatorInput(v *CreateFindingAggregatorInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.RegionLinkingMode != nil {
+ ok := object.Key("RegionLinkingMode")
+ ok.String(*v.RegionLinkingMode)
+ }
+
+ if v.Regions != nil {
+ ok := object.Key("Regions")
+ if err := awsRestjson1_serializeDocumentStringList(v.Regions, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateInsight struct {
+}
+
+func (*awsRestjson1_serializeOpCreateInsight) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateInsight) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateInsightInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/insights")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateInsightInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateInsightInput(v *CreateInsightInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateInsightInput(v *CreateInsightInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Filters != nil {
+ ok := object.Key("Filters")
+ if err := awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v.Filters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.GroupByAttribute != nil {
+ ok := object.Key("GroupByAttribute")
+ ok.String(*v.GroupByAttribute)
+ }
+
+ if v.Name != nil {
+ ok := object.Key("Name")
+ ok.String(*v.Name)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateMembers struct {
+}
+
+func (*awsRestjson1_serializeOpCreateMembers) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateMembersInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/members")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateMembersInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateMembersInput(v *CreateMembersInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateMembersInput(v *CreateMembersInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AccountDetails != nil {
+ ok := object.Key("AccountDetails")
+ if err := awsRestjson1_serializeDocumentAccountDetailsList(v.AccountDetails, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpCreateTicketV2 struct {
+}
+
+func (*awsRestjson1_serializeOpCreateTicketV2) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpCreateTicketV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*CreateTicketV2Input)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/ticketsv2")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentCreateTicketV2Input(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsCreateTicketV2Input(v *CreateTicketV2Input, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentCreateTicketV2Input(v *CreateTicketV2Input, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ClientToken != nil {
+ ok := object.Key("ClientToken")
+ ok.String(*v.ClientToken)
+ }
+
+ if v.ConnectorId != nil {
+ ok := object.Key("ConnectorId")
+ ok.String(*v.ConnectorId)
+ }
+
+ if v.FindingMetadataUid != nil {
+ ok := object.Key("FindingMetadataUid")
+ ok.String(*v.FindingMetadataUid)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeclineInvitations struct {
+}
+
+func (*awsRestjson1_serializeOpDeclineInvitations) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeclineInvitations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeclineInvitationsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/invitations/decline")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentDeclineInvitationsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeclineInvitationsInput(v *DeclineInvitationsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentDeclineInvitationsInput(v *DeclineInvitationsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AccountIds != nil {
+ ok := object.Key("AccountIds")
+ if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteActionTarget struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteActionTarget) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteActionTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteActionTargetInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/actionTargets/{ActionTargetArn+}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteActionTargetInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteActionTargetInput(v *DeleteActionTargetInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ActionTargetArn == nil || len(*v.ActionTargetArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ActionTargetArn must not be empty")}
+ }
+ if v.ActionTargetArn != nil {
+ if err := encoder.SetURI("ActionTargetArn").String(*v.ActionTargetArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteAggregatorV2 struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteAggregatorV2) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteAggregatorV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteAggregatorV2Input)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/aggregatorv2/delete/{AggregatorV2Arn+}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteAggregatorV2Input(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteAggregatorV2Input(v *DeleteAggregatorV2Input, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.AggregatorV2Arn == nil || len(*v.AggregatorV2Arn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member AggregatorV2Arn must not be empty")}
+ }
+ if v.AggregatorV2Arn != nil {
+ if err := encoder.SetURI("AggregatorV2Arn").String(*v.AggregatorV2Arn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteAutomationRuleV2 struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteAutomationRuleV2) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteAutomationRuleV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteAutomationRuleV2Input)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/automationrulesv2/{Identifier}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteAutomationRuleV2Input(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteAutomationRuleV2Input(v *DeleteAutomationRuleV2Input, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.Identifier == nil || len(*v.Identifier) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
+ }
+ if v.Identifier != nil {
+ if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteConfigurationPolicy struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteConfigurationPolicy) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteConfigurationPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteConfigurationPolicyInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/{Identifier}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteConfigurationPolicyInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationPolicyInput(v *DeleteConfigurationPolicyInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.Identifier == nil || len(*v.Identifier) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
+ }
+ if v.Identifier != nil {
+ if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteConnectorV2 struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteConnectorV2) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteConnectorV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteConnectorV2Input)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/connectorsv2/{ConnectorId+}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteConnectorV2Input(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteConnectorV2Input(v *DeleteConnectorV2Input, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ConnectorId == nil || len(*v.ConnectorId) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorId must not be empty")}
+ }
+ if v.ConnectorId != nil {
+ if err := encoder.SetURI("ConnectorId").String(*v.ConnectorId); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteFindingAggregator struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteFindingAggregator) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteFindingAggregator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteFindingAggregatorInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/findingAggregator/delete/{FindingAggregatorArn+}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteFindingAggregatorInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteFindingAggregatorInput(v *DeleteFindingAggregatorInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.FindingAggregatorArn == nil || len(*v.FindingAggregatorArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member FindingAggregatorArn must not be empty")}
+ }
+ if v.FindingAggregatorArn != nil {
+ if err := encoder.SetURI("FindingAggregatorArn").String(*v.FindingAggregatorArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteInsight struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteInsight) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteInsight) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteInsightInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/insights/{InsightArn+}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDeleteInsightInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteInsightInput(v *DeleteInsightInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.InsightArn == nil || len(*v.InsightArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")}
+ }
+ if v.InsightArn != nil {
+ if err := encoder.SetURI("InsightArn").String(*v.InsightArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteInvitations struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteInvitations) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteInvitations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteInvitationsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/invitations/delete")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentDeleteInvitationsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteInvitationsInput(v *DeleteInvitationsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentDeleteInvitationsInput(v *DeleteInvitationsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AccountIds != nil {
+ ok := object.Key("AccountIds")
+ if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDeleteMembers struct {
+}
+
+func (*awsRestjson1_serializeOpDeleteMembers) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDeleteMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DeleteMembersInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/members/delete")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentDeleteMembersInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDeleteMembersInput(v *DeleteMembersInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentDeleteMembersInput(v *DeleteMembersInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AccountIds != nil {
+ ok := object.Key("AccountIds")
+ if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDescribeActionTargets struct {
+}
+
+func (*awsRestjson1_serializeOpDescribeActionTargets) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDescribeActionTargets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeActionTargetsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/actionTargets/get")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "POST"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentDescribeActionTargetsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDescribeActionTargetsInput(v *DescribeActionTargetsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentDescribeActionTargetsInput(v *DescribeActionTargetsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ActionTargetArns != nil {
+ ok := object.Key("ActionTargetArns")
+ if err := awsRestjson1_serializeDocumentArnList(v.ActionTargetArns, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MaxResults != nil {
+ ok := object.Key("MaxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("NextToken")
+ ok.String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDescribeHub struct {
+}
+
+func (*awsRestjson1_serializeOpDescribeHub) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDescribeHub) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeHubInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/accounts")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDescribeHubInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDescribeHubInput(v *DescribeHubInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.HubArn != nil {
+ encoder.SetQuery("HubArn").String(*v.HubArn)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDescribeOrganizationConfiguration struct {
+}
+
+func (*awsRestjson1_serializeOpDescribeOrganizationConfiguration) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDescribeOrganizationConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeOrganizationConfigurationInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/organization/configuration")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDescribeOrganizationConfigurationInput(v *DescribeOrganizationConfigurationInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDescribeProducts struct {
+}
+
+func (*awsRestjson1_serializeOpDescribeProducts) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDescribeProducts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeProductsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/products")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDescribeProductsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDescribeProductsInput(v *DescribeProductsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ if v.ProductArn != nil {
+ encoder.SetQuery("ProductArn").String(*v.ProductArn)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDescribeProductsV2 struct {
+}
+
+func (*awsRestjson1_serializeOpDescribeProductsV2) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDescribeProductsV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeProductsV2Input)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/productsV2")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDescribeProductsV2Input(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDescribeProductsV2Input(v *DescribeProductsV2Input, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDescribeSecurityHubV2 struct {
+}
+
+func (*awsRestjson1_serializeOpDescribeSecurityHubV2) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDescribeSecurityHubV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeSecurityHubV2Input)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/hubv2")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDescribeSecurityHubV2Input(v *DescribeSecurityHubV2Input, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDescribeStandards struct {
+}
+
+func (*awsRestjson1_serializeOpDescribeStandards) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDescribeStandards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeStandardsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/standards")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDescribeStandardsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDescribeStandardsInput(v *DescribeStandardsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDescribeStandardsControls struct {
+}
+
+func (*awsRestjson1_serializeOpDescribeStandardsControls) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDescribeStandardsControls) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DescribeStandardsControlsInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/standards/controls/{StandardsSubscriptionArn+}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDescribeStandardsControlsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDescribeStandardsControlsInput(v *DescribeStandardsControlsInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ if v.StandardsSubscriptionArn == nil || len(*v.StandardsSubscriptionArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member StandardsSubscriptionArn must not be empty")}
+ }
+ if v.StandardsSubscriptionArn != nil {
+ if err := encoder.SetURI("StandardsSubscriptionArn").String(*v.StandardsSubscriptionArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDisableImportFindingsForProduct struct {
+}
+
+func (*awsRestjson1_serializeOpDisableImportFindingsForProduct) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpDisableImportFindingsForProduct) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*DisableImportFindingsForProductInput)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/productSubscriptions/{ProductSubscriptionArn+}")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "DELETE"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsDisableImportFindingsForProductInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsDisableImportFindingsForProductInput(v *DisableImportFindingsForProductInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ if v.ProductSubscriptionArn == nil || len(*v.ProductSubscriptionArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ProductSubscriptionArn must not be empty")}
+ }
+ if v.ProductSubscriptionArn != nil {
+ if err := encoder.SetURI("ProductSubscriptionArn").String(*v.ProductSubscriptionArn); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+type awsRestjson1_serializeOpDisableOrganizationAdminAccount struct {
+}
+
+func (*awsRestjson1_serializeOpDisableOrganizationAdminAccount) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDeclineInvitations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpDisableOrganizationAdminAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1755,13 +3767,13 @@ func (m *awsRestjson1_serializeOpDeclineInvitations) HandleSerialize(ctx context
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DeclineInvitationsInput)
+ input, ok := in.Parameters.(*DisableOrganizationAdminAccountInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/invitations/decline")
+ opPath, opQuery := httpbinding.SplitURI("/organization/admin/disable")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -1780,7 +3792,7 @@ func (m *awsRestjson1_serializeOpDeclineInvitations) HandleSerialize(ctx context
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentDeclineInvitationsInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentDisableOrganizationAdminAccountInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1797,7 +3809,7 @@ func (m *awsRestjson1_serializeOpDeclineInvitations) HandleSerialize(ctx context
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDeclineInvitationsInput(v *DeclineInvitationsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsDisableOrganizationAdminAccountInput(v *DisableOrganizationAdminAccountInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -1805,28 +3817,31 @@ func awsRestjson1_serializeOpHttpBindingsDeclineInvitationsInput(v *DeclineInvit
return nil
}
-func awsRestjson1_serializeOpDocumentDeclineInvitationsInput(v *DeclineInvitationsInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentDisableOrganizationAdminAccountInput(v *DisableOrganizationAdminAccountInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.AccountIds != nil {
- ok := object.Key("AccountIds")
- if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
- return err
- }
+ if v.AdminAccountId != nil {
+ ok := object.Key("AdminAccountId")
+ ok.String(*v.AdminAccountId)
+ }
+
+ if len(v.Feature) > 0 {
+ ok := object.Key("Feature")
+ ok.String(string(v.Feature))
}
return nil
}
-type awsRestjson1_serializeOpDeleteActionTarget struct {
+type awsRestjson1_serializeOpDisableSecurityHub struct {
}
-func (*awsRestjson1_serializeOpDeleteActionTarget) ID() string {
+func (*awsRestjson1_serializeOpDisableSecurityHub) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDeleteActionTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpDisableSecurityHub) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1838,13 +3853,13 @@ func (m *awsRestjson1_serializeOpDeleteActionTarget) HandleSerialize(ctx context
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DeleteActionTargetInput)
+ input, ok := in.Parameters.(*DisableSecurityHubInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/actionTargets/{ActionTargetArn+}")
+ opPath, opQuery := httpbinding.SplitURI("/accounts")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "DELETE"
@@ -1860,10 +3875,6 @@ func (m *awsRestjson1_serializeOpDeleteActionTarget) HandleSerialize(ctx context
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDeleteActionTargetInput(input, restEncoder); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1873,31 +3884,22 @@ func (m *awsRestjson1_serializeOpDeleteActionTarget) HandleSerialize(ctx context
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDeleteActionTargetInput(v *DeleteActionTargetInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsDisableSecurityHubInput(v *DisableSecurityHubInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.ActionTargetArn == nil || len(*v.ActionTargetArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member ActionTargetArn must not be empty")}
- }
- if v.ActionTargetArn != nil {
- if err := encoder.SetURI("ActionTargetArn").String(*v.ActionTargetArn); err != nil {
- return err
- }
- }
-
return nil
}
-type awsRestjson1_serializeOpDeleteConfigurationPolicy struct {
+type awsRestjson1_serializeOpDisableSecurityHubV2 struct {
}
-func (*awsRestjson1_serializeOpDeleteConfigurationPolicy) ID() string {
+func (*awsRestjson1_serializeOpDisableSecurityHubV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDeleteConfigurationPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpDisableSecurityHubV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1909,13 +3911,13 @@ func (m *awsRestjson1_serializeOpDeleteConfigurationPolicy) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DeleteConfigurationPolicyInput)
+ input, ok := in.Parameters.(*DisableSecurityHubV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/{Identifier}")
+ opPath, opQuery := httpbinding.SplitURI("/hubv2")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "DELETE"
@@ -1931,10 +3933,6 @@ func (m *awsRestjson1_serializeOpDeleteConfigurationPolicy) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDeleteConfigurationPolicyInput(input, restEncoder); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -1944,31 +3942,22 @@ func (m *awsRestjson1_serializeOpDeleteConfigurationPolicy) HandleSerialize(ctx
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDeleteConfigurationPolicyInput(v *DeleteConfigurationPolicyInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsDisableSecurityHubV2Input(v *DisableSecurityHubV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.Identifier == nil || len(*v.Identifier) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
- }
- if v.Identifier != nil {
- if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
- return err
- }
- }
-
return nil
}
-type awsRestjson1_serializeOpDeleteFindingAggregator struct {
+type awsRestjson1_serializeOpDisassociateFromAdministratorAccount struct {
}
-func (*awsRestjson1_serializeOpDeleteFindingAggregator) ID() string {
+func (*awsRestjson1_serializeOpDisassociateFromAdministratorAccount) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDeleteFindingAggregator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpDisassociateFromAdministratorAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -1980,16 +3969,16 @@ func (m *awsRestjson1_serializeOpDeleteFindingAggregator) HandleSerialize(ctx co
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DeleteFindingAggregatorInput)
+ input, ok := in.Parameters.(*DisassociateFromAdministratorAccountInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/findingAggregator/delete/{FindingAggregatorArn+}")
+ opPath, opQuery := httpbinding.SplitURI("/administrator/disassociate")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "DELETE"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -2002,10 +3991,6 @@ func (m *awsRestjson1_serializeOpDeleteFindingAggregator) HandleSerialize(ctx co
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDeleteFindingAggregatorInput(input, restEncoder); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2015,31 +4000,22 @@ func (m *awsRestjson1_serializeOpDeleteFindingAggregator) HandleSerialize(ctx co
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDeleteFindingAggregatorInput(v *DeleteFindingAggregatorInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsDisassociateFromAdministratorAccountInput(v *DisassociateFromAdministratorAccountInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.FindingAggregatorArn == nil || len(*v.FindingAggregatorArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member FindingAggregatorArn must not be empty")}
- }
- if v.FindingAggregatorArn != nil {
- if err := encoder.SetURI("FindingAggregatorArn").String(*v.FindingAggregatorArn); err != nil {
- return err
- }
- }
-
return nil
}
-type awsRestjson1_serializeOpDeleteInsight struct {
+type awsRestjson1_serializeOpDisassociateFromMasterAccount struct {
}
-func (*awsRestjson1_serializeOpDeleteInsight) ID() string {
+func (*awsRestjson1_serializeOpDisassociateFromMasterAccount) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDeleteInsight) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpDisassociateFromMasterAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2051,16 +4027,16 @@ func (m *awsRestjson1_serializeOpDeleteInsight) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DeleteInsightInput)
+ input, ok := in.Parameters.(*DisassociateFromMasterAccountInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/insights/{InsightArn+}")
+ opPath, opQuery := httpbinding.SplitURI("/master/disassociate")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "DELETE"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -2073,10 +4049,6 @@ func (m *awsRestjson1_serializeOpDeleteInsight) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDeleteInsightInput(input, restEncoder); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2086,31 +4058,22 @@ func (m *awsRestjson1_serializeOpDeleteInsight) HandleSerialize(ctx context.Cont
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDeleteInsightInput(v *DeleteInsightInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsDisassociateFromMasterAccountInput(v *DisassociateFromMasterAccountInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.InsightArn == nil || len(*v.InsightArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")}
- }
- if v.InsightArn != nil {
- if err := encoder.SetURI("InsightArn").String(*v.InsightArn); err != nil {
- return err
- }
- }
-
return nil
}
-type awsRestjson1_serializeOpDeleteInvitations struct {
+type awsRestjson1_serializeOpDisassociateMembers struct {
}
-func (*awsRestjson1_serializeOpDeleteInvitations) ID() string {
+func (*awsRestjson1_serializeOpDisassociateMembers) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDeleteInvitations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpDisassociateMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2122,13 +4085,13 @@ func (m *awsRestjson1_serializeOpDeleteInvitations) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DeleteInvitationsInput)
+ input, ok := in.Parameters.(*DisassociateMembersInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/invitations/delete")
+ opPath, opQuery := httpbinding.SplitURI("/members/disassociate")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -2147,7 +4110,7 @@ func (m *awsRestjson1_serializeOpDeleteInvitations) HandleSerialize(ctx context.
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentDeleteInvitationsInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentDisassociateMembersInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2164,7 +4127,7 @@ func (m *awsRestjson1_serializeOpDeleteInvitations) HandleSerialize(ctx context.
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDeleteInvitationsInput(v *DeleteInvitationsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsDisassociateMembersInput(v *DisassociateMembersInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -2172,7 +4135,7 @@ func awsRestjson1_serializeOpHttpBindingsDeleteInvitationsInput(v *DeleteInvitat
return nil
}
-func awsRestjson1_serializeOpDocumentDeleteInvitationsInput(v *DeleteInvitationsInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentDisassociateMembersInput(v *DisassociateMembersInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -2186,14 +4149,14 @@ func awsRestjson1_serializeOpDocumentDeleteInvitationsInput(v *DeleteInvitations
return nil
}
-type awsRestjson1_serializeOpDeleteMembers struct {
+type awsRestjson1_serializeOpEnableImportFindingsForProduct struct {
}
-func (*awsRestjson1_serializeOpDeleteMembers) ID() string {
+func (*awsRestjson1_serializeOpEnableImportFindingsForProduct) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDeleteMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpEnableImportFindingsForProduct) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2205,13 +4168,13 @@ func (m *awsRestjson1_serializeOpDeleteMembers) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DeleteMembersInput)
+ input, ok := in.Parameters.(*EnableImportFindingsForProductInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/members/delete")
+ opPath, opQuery := httpbinding.SplitURI("/productSubscriptions")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -2230,7 +4193,7 @@ func (m *awsRestjson1_serializeOpDeleteMembers) HandleSerialize(ctx context.Cont
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentDeleteMembersInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentEnableImportFindingsForProductInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2247,7 +4210,7 @@ func (m *awsRestjson1_serializeOpDeleteMembers) HandleSerialize(ctx context.Cont
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDeleteMembersInput(v *DeleteMembersInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsEnableImportFindingsForProductInput(v *EnableImportFindingsForProductInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -2255,28 +4218,26 @@ func awsRestjson1_serializeOpHttpBindingsDeleteMembersInput(v *DeleteMembersInpu
return nil
}
-func awsRestjson1_serializeOpDocumentDeleteMembersInput(v *DeleteMembersInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentEnableImportFindingsForProductInput(v *EnableImportFindingsForProductInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.AccountIds != nil {
- ok := object.Key("AccountIds")
- if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
- return err
- }
+ if v.ProductArn != nil {
+ ok := object.Key("ProductArn")
+ ok.String(*v.ProductArn)
}
return nil
}
-type awsRestjson1_serializeOpDescribeActionTargets struct {
+type awsRestjson1_serializeOpEnableOrganizationAdminAccount struct {
}
-func (*awsRestjson1_serializeOpDescribeActionTargets) ID() string {
+func (*awsRestjson1_serializeOpEnableOrganizationAdminAccount) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDescribeActionTargets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpEnableOrganizationAdminAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2288,13 +4249,13 @@ func (m *awsRestjson1_serializeOpDescribeActionTargets) HandleSerialize(ctx cont
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DescribeActionTargetsInput)
+ input, ok := in.Parameters.(*EnableOrganizationAdminAccountInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/actionTargets/get")
+ opPath, opQuery := httpbinding.SplitURI("/organization/admin/enable")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -2313,7 +4274,7 @@ func (m *awsRestjson1_serializeOpDescribeActionTargets) HandleSerialize(ctx cont
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentDescribeActionTargetsInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentEnableOrganizationAdminAccountInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2330,7 +4291,7 @@ func (m *awsRestjson1_serializeOpDescribeActionTargets) HandleSerialize(ctx cont
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDescribeActionTargetsInput(v *DescribeActionTargetsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsEnableOrganizationAdminAccountInput(v *EnableOrganizationAdminAccountInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -2338,38 +4299,31 @@ func awsRestjson1_serializeOpHttpBindingsDescribeActionTargetsInput(v *DescribeA
return nil
}
-func awsRestjson1_serializeOpDocumentDescribeActionTargetsInput(v *DescribeActionTargetsInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentEnableOrganizationAdminAccountInput(v *EnableOrganizationAdminAccountInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.ActionTargetArns != nil {
- ok := object.Key("ActionTargetArns")
- if err := awsRestjson1_serializeDocumentArnList(v.ActionTargetArns, ok); err != nil {
- return err
- }
- }
-
- if v.MaxResults != nil {
- ok := object.Key("MaxResults")
- ok.Integer(*v.MaxResults)
+ if v.AdminAccountId != nil {
+ ok := object.Key("AdminAccountId")
+ ok.String(*v.AdminAccountId)
}
- if v.NextToken != nil {
- ok := object.Key("NextToken")
- ok.String(*v.NextToken)
+ if len(v.Feature) > 0 {
+ ok := object.Key("Feature")
+ ok.String(string(v.Feature))
}
return nil
}
-type awsRestjson1_serializeOpDescribeHub struct {
+type awsRestjson1_serializeOpEnableSecurityHub struct {
}
-func (*awsRestjson1_serializeOpDescribeHub) ID() string {
+func (*awsRestjson1_serializeOpEnableSecurityHub) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDescribeHub) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpEnableSecurityHub) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2381,7 +4335,7 @@ func (m *awsRestjson1_serializeOpDescribeHub) HandleSerialize(ctx context.Contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DescribeHubInput)
+ input, ok := in.Parameters.(*EnableSecurityHubInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
@@ -2390,7 +4344,7 @@ func (m *awsRestjson1_serializeOpDescribeHub) HandleSerialize(ctx context.Contex
opPath, opQuery := httpbinding.SplitURI("/accounts")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "GET"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -2403,39 +4357,66 @@ func (m *awsRestjson1_serializeOpDescribeHub) HandleSerialize(ctx context.Contex
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDescribeHubInput(input, restEncoder); err != nil {
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentEnableSecurityHubInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsEnableSecurityHubInput(v *EnableSecurityHubInput, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentEnableSecurityHubInput(v *EnableSecurityHubInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
- if request.Request, err = restEncoder.Encode(request.Request); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
+ if len(v.ControlFindingGenerator) > 0 {
+ ok := object.Key("ControlFindingGenerator")
+ ok.String(string(v.ControlFindingGenerator))
}
- in.Request = request
- endTimer()
- span.End()
- return next.HandleSerialize(ctx, in)
-}
-func awsRestjson1_serializeOpHttpBindingsDescribeHubInput(v *DescribeHubInput, encoder *httpbinding.Encoder) error {
- if v == nil {
- return fmt.Errorf("unsupported serialization of nil %T", v)
+ if v.EnableDefaultStandards != nil {
+ ok := object.Key("EnableDefaultStandards")
+ ok.Boolean(*v.EnableDefaultStandards)
}
- if v.HubArn != nil {
- encoder.SetQuery("HubArn").String(*v.HubArn)
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpDescribeOrganizationConfiguration struct {
+type awsRestjson1_serializeOpEnableSecurityHubV2 struct {
}
-func (*awsRestjson1_serializeOpDescribeOrganizationConfiguration) ID() string {
+func (*awsRestjson1_serializeOpEnableSecurityHubV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDescribeOrganizationConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpEnableSecurityHubV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2447,16 +4428,16 @@ func (m *awsRestjson1_serializeOpDescribeOrganizationConfiguration) HandleSerial
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DescribeOrganizationConfigurationInput)
+ input, ok := in.Parameters.(*EnableSecurityHubV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/organization/configuration")
+ opPath, opQuery := httpbinding.SplitURI("/hubv2")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "GET"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -2469,6 +4450,17 @@ func (m *awsRestjson1_serializeOpDescribeOrganizationConfiguration) HandleSerial
return out, metadata, &smithy.SerializationError{Err: err}
}
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentEnableSecurityHubV2Input(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2478,7 +4470,7 @@ func (m *awsRestjson1_serializeOpDescribeOrganizationConfiguration) HandleSerial
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDescribeOrganizationConfigurationInput(v *DescribeOrganizationConfigurationInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsEnableSecurityHubV2Input(v *EnableSecurityHubV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -2486,14 +4478,28 @@ func awsRestjson1_serializeOpHttpBindingsDescribeOrganizationConfigurationInput(
return nil
}
-type awsRestjson1_serializeOpDescribeProducts struct {
+func awsRestjson1_serializeOpDocumentEnableSecurityHubV2Input(v *EnableSecurityHubV2Input, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
}
-func (*awsRestjson1_serializeOpDescribeProducts) ID() string {
+type awsRestjson1_serializeOpGetAdministratorAccount struct {
+}
+
+func (*awsRestjson1_serializeOpGetAdministratorAccount) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDescribeProducts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetAdministratorAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2505,13 +4511,13 @@ func (m *awsRestjson1_serializeOpDescribeProducts) HandleSerialize(ctx context.C
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DescribeProductsInput)
+ input, ok := in.Parameters.(*GetAdministratorAccountInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/products")
+ opPath, opQuery := httpbinding.SplitURI("/administrator")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -2527,10 +4533,6 @@ func (m *awsRestjson1_serializeOpDescribeProducts) HandleSerialize(ctx context.C
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDescribeProductsInput(input, restEncoder); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2540,34 +4542,22 @@ func (m *awsRestjson1_serializeOpDescribeProducts) HandleSerialize(ctx context.C
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDescribeProductsInput(v *DescribeProductsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetAdministratorAccountInput(v *GetAdministratorAccountInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.MaxResults != nil {
- encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
- }
-
- if v.NextToken != nil {
- encoder.SetQuery("NextToken").String(*v.NextToken)
- }
-
- if v.ProductArn != nil {
- encoder.SetQuery("ProductArn").String(*v.ProductArn)
- }
-
return nil
}
-type awsRestjson1_serializeOpDescribeStandards struct {
+type awsRestjson1_serializeOpGetAggregatorV2 struct {
}
-func (*awsRestjson1_serializeOpDescribeStandards) ID() string {
+func (*awsRestjson1_serializeOpGetAggregatorV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDescribeStandards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetAggregatorV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2579,13 +4569,13 @@ func (m *awsRestjson1_serializeOpDescribeStandards) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DescribeStandardsInput)
+ input, ok := in.Parameters.(*GetAggregatorV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/standards")
+ opPath, opQuery := httpbinding.SplitURI("/aggregatorv2/get/{AggregatorV2Arn+}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -2601,7 +4591,7 @@ func (m *awsRestjson1_serializeOpDescribeStandards) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDescribeStandardsInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsGetAggregatorV2Input(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2614,30 +4604,31 @@ func (m *awsRestjson1_serializeOpDescribeStandards) HandleSerialize(ctx context.
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDescribeStandardsInput(v *DescribeStandardsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetAggregatorV2Input(v *GetAggregatorV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.MaxResults != nil {
- encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ if v.AggregatorV2Arn == nil || len(*v.AggregatorV2Arn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member AggregatorV2Arn must not be empty")}
}
-
- if v.NextToken != nil {
- encoder.SetQuery("NextToken").String(*v.NextToken)
+ if v.AggregatorV2Arn != nil {
+ if err := encoder.SetURI("AggregatorV2Arn").String(*v.AggregatorV2Arn); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpDescribeStandardsControls struct {
+type awsRestjson1_serializeOpGetAutomationRuleV2 struct {
}
-func (*awsRestjson1_serializeOpDescribeStandardsControls) ID() string {
+func (*awsRestjson1_serializeOpGetAutomationRuleV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDescribeStandardsControls) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetAutomationRuleV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2649,13 +4640,13 @@ func (m *awsRestjson1_serializeOpDescribeStandardsControls) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DescribeStandardsControlsInput)
+ input, ok := in.Parameters.(*GetAutomationRuleV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/standards/controls/{StandardsSubscriptionArn+}")
+ opPath, opQuery := httpbinding.SplitURI("/automationrulesv2/{Identifier}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -2671,7 +4662,7 @@ func (m *awsRestjson1_serializeOpDescribeStandardsControls) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDescribeStandardsControlsInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsGetAutomationRuleV2Input(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2684,24 +4675,16 @@ func (m *awsRestjson1_serializeOpDescribeStandardsControls) HandleSerialize(ctx
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDescribeStandardsControlsInput(v *DescribeStandardsControlsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetAutomationRuleV2Input(v *GetAutomationRuleV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.MaxResults != nil {
- encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
- }
-
- if v.NextToken != nil {
- encoder.SetQuery("NextToken").String(*v.NextToken)
- }
-
- if v.StandardsSubscriptionArn == nil || len(*v.StandardsSubscriptionArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member StandardsSubscriptionArn must not be empty")}
+ if v.Identifier == nil || len(*v.Identifier) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
}
- if v.StandardsSubscriptionArn != nil {
- if err := encoder.SetURI("StandardsSubscriptionArn").String(*v.StandardsSubscriptionArn); err != nil {
+ if v.Identifier != nil {
+ if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
return err
}
}
@@ -2709,14 +4692,14 @@ func awsRestjson1_serializeOpHttpBindingsDescribeStandardsControlsInput(v *Descr
return nil
}
-type awsRestjson1_serializeOpDisableImportFindingsForProduct struct {
+type awsRestjson1_serializeOpGetConfigurationPolicy struct {
}
-func (*awsRestjson1_serializeOpDisableImportFindingsForProduct) ID() string {
+func (*awsRestjson1_serializeOpGetConfigurationPolicy) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDisableImportFindingsForProduct) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetConfigurationPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2728,16 +4711,16 @@ func (m *awsRestjson1_serializeOpDisableImportFindingsForProduct) HandleSerializ
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DisableImportFindingsForProductInput)
+ input, ok := in.Parameters.(*GetConfigurationPolicyInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/productSubscriptions/{ProductSubscriptionArn+}")
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/get/{Identifier}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "DELETE"
+ request.Method = "GET"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -2750,7 +4733,7 @@ func (m *awsRestjson1_serializeOpDisableImportFindingsForProduct) HandleSerializ
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsDisableImportFindingsForProductInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsGetConfigurationPolicyInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2763,16 +4746,16 @@ func (m *awsRestjson1_serializeOpDisableImportFindingsForProduct) HandleSerializ
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDisableImportFindingsForProductInput(v *DisableImportFindingsForProductInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetConfigurationPolicyInput(v *GetConfigurationPolicyInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.ProductSubscriptionArn == nil || len(*v.ProductSubscriptionArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member ProductSubscriptionArn must not be empty")}
+ if v.Identifier == nil || len(*v.Identifier) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
}
- if v.ProductSubscriptionArn != nil {
- if err := encoder.SetURI("ProductSubscriptionArn").String(*v.ProductSubscriptionArn); err != nil {
+ if v.Identifier != nil {
+ if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
return err
}
}
@@ -2780,14 +4763,14 @@ func awsRestjson1_serializeOpHttpBindingsDisableImportFindingsForProductInput(v
return nil
}
-type awsRestjson1_serializeOpDisableOrganizationAdminAccount struct {
+type awsRestjson1_serializeOpGetConfigurationPolicyAssociation struct {
}
-func (*awsRestjson1_serializeOpDisableOrganizationAdminAccount) ID() string {
+func (*awsRestjson1_serializeOpGetConfigurationPolicyAssociation) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDisableOrganizationAdminAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetConfigurationPolicyAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2799,13 +4782,13 @@ func (m *awsRestjson1_serializeOpDisableOrganizationAdminAccount) HandleSerializ
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DisableOrganizationAdminAccountInput)
+ input, ok := in.Parameters.(*GetConfigurationPolicyAssociationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/organization/admin/disable")
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicyAssociation/get")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -2824,7 +4807,7 @@ func (m *awsRestjson1_serializeOpDisableOrganizationAdminAccount) HandleSerializ
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentDisableOrganizationAdminAccountInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentGetConfigurationPolicyAssociationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2841,7 +4824,7 @@ func (m *awsRestjson1_serializeOpDisableOrganizationAdminAccount) HandleSerializ
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDisableOrganizationAdminAccountInput(v *DisableOrganizationAdminAccountInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetConfigurationPolicyAssociationInput(v *GetConfigurationPolicyAssociationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -2849,26 +4832,28 @@ func awsRestjson1_serializeOpHttpBindingsDisableOrganizationAdminAccountInput(v
return nil
}
-func awsRestjson1_serializeOpDocumentDisableOrganizationAdminAccountInput(v *DisableOrganizationAdminAccountInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentGetConfigurationPolicyAssociationInput(v *GetConfigurationPolicyAssociationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.AdminAccountId != nil {
- ok := object.Key("AdminAccountId")
- ok.String(*v.AdminAccountId)
+ if v.Target != nil {
+ ok := object.Key("Target")
+ if err := awsRestjson1_serializeDocumentTarget(v.Target, ok); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpDisableSecurityHub struct {
+type awsRestjson1_serializeOpGetConnectorV2 struct {
}
-func (*awsRestjson1_serializeOpDisableSecurityHub) ID() string {
+func (*awsRestjson1_serializeOpGetConnectorV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDisableSecurityHub) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetConnectorV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2880,16 +4865,16 @@ func (m *awsRestjson1_serializeOpDisableSecurityHub) HandleSerialize(ctx context
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DisableSecurityHubInput)
+ input, ok := in.Parameters.(*GetConnectorV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/accounts")
+ opPath, opQuery := httpbinding.SplitURI("/connectorsv2/{ConnectorId+}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "DELETE"
+ request.Method = "GET"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -2902,6 +4887,10 @@ func (m *awsRestjson1_serializeOpDisableSecurityHub) HandleSerialize(ctx context
return out, metadata, &smithy.SerializationError{Err: err}
}
+ if err := awsRestjson1_serializeOpHttpBindingsGetConnectorV2Input(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2911,22 +4900,31 @@ func (m *awsRestjson1_serializeOpDisableSecurityHub) HandleSerialize(ctx context
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDisableSecurityHubInput(v *DisableSecurityHubInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetConnectorV2Input(v *GetConnectorV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
+ if v.ConnectorId == nil || len(*v.ConnectorId) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorId must not be empty")}
+ }
+ if v.ConnectorId != nil {
+ if err := encoder.SetURI("ConnectorId").String(*v.ConnectorId); err != nil {
+ return err
+ }
+ }
+
return nil
}
-type awsRestjson1_serializeOpDisassociateFromAdministratorAccount struct {
+type awsRestjson1_serializeOpGetEnabledStandards struct {
}
-func (*awsRestjson1_serializeOpDisassociateFromAdministratorAccount) ID() string {
+func (*awsRestjson1_serializeOpGetEnabledStandards) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDisassociateFromAdministratorAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetEnabledStandards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2938,13 +4936,13 @@ func (m *awsRestjson1_serializeOpDisassociateFromAdministratorAccount) HandleSer
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DisassociateFromAdministratorAccountInput)
+ input, ok := in.Parameters.(*GetEnabledStandardsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/administrator/disassociate")
+ opPath, opQuery := httpbinding.SplitURI("/standards/get")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -2960,6 +4958,17 @@ func (m *awsRestjson1_serializeOpDisassociateFromAdministratorAccount) HandleSer
return out, metadata, &smithy.SerializationError{Err: err}
}
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentGetEnabledStandardsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -2969,7 +4978,7 @@ func (m *awsRestjson1_serializeOpDisassociateFromAdministratorAccount) HandleSer
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDisassociateFromAdministratorAccountInput(v *DisassociateFromAdministratorAccountInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetEnabledStandardsInput(v *GetEnabledStandardsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -2977,14 +4986,38 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateFromAdministratorAccountInp
return nil
}
-type awsRestjson1_serializeOpDisassociateFromMasterAccount struct {
+func awsRestjson1_serializeOpDocumentGetEnabledStandardsInput(v *GetEnabledStandardsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.MaxResults != nil {
+ ok := object.Key("MaxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("NextToken")
+ ok.String(*v.NextToken)
+ }
+
+ if v.StandardsSubscriptionArns != nil {
+ ok := object.Key("StandardsSubscriptionArns")
+ if err := awsRestjson1_serializeDocumentStandardsSubscriptionArns(v.StandardsSubscriptionArns, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
}
-func (*awsRestjson1_serializeOpDisassociateFromMasterAccount) ID() string {
+type awsRestjson1_serializeOpGetFindingAggregator struct {
+}
+
+func (*awsRestjson1_serializeOpGetFindingAggregator) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDisassociateFromMasterAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetFindingAggregator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -2996,16 +5029,16 @@ func (m *awsRestjson1_serializeOpDisassociateFromMasterAccount) HandleSerialize(
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DisassociateFromMasterAccountInput)
+ input, ok := in.Parameters.(*GetFindingAggregatorInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/master/disassociate")
+ opPath, opQuery := httpbinding.SplitURI("/findingAggregator/get/{FindingAggregatorArn+}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "GET"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -3018,6 +5051,10 @@ func (m *awsRestjson1_serializeOpDisassociateFromMasterAccount) HandleSerialize(
return out, metadata, &smithy.SerializationError{Err: err}
}
+ if err := awsRestjson1_serializeOpHttpBindingsGetFindingAggregatorInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3027,22 +5064,31 @@ func (m *awsRestjson1_serializeOpDisassociateFromMasterAccount) HandleSerialize(
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDisassociateFromMasterAccountInput(v *DisassociateFromMasterAccountInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetFindingAggregatorInput(v *GetFindingAggregatorInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
+ if v.FindingAggregatorArn == nil || len(*v.FindingAggregatorArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member FindingAggregatorArn must not be empty")}
+ }
+ if v.FindingAggregatorArn != nil {
+ if err := encoder.SetURI("FindingAggregatorArn").String(*v.FindingAggregatorArn); err != nil {
+ return err
+ }
+ }
+
return nil
}
-type awsRestjson1_serializeOpDisassociateMembers struct {
+type awsRestjson1_serializeOpGetFindingHistory struct {
}
-func (*awsRestjson1_serializeOpDisassociateMembers) ID() string {
+func (*awsRestjson1_serializeOpGetFindingHistory) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpDisassociateMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetFindingHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3054,13 +5100,13 @@ func (m *awsRestjson1_serializeOpDisassociateMembers) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*DisassociateMembersInput)
+ input, ok := in.Parameters.(*GetFindingHistoryInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/members/disassociate")
+ opPath, opQuery := httpbinding.SplitURI("/findingHistory/get")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -3079,7 +5125,7 @@ func (m *awsRestjson1_serializeOpDisassociateMembers) HandleSerialize(ctx contex
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentDisassociateMembersInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentGetFindingHistoryInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3096,7 +5142,7 @@ func (m *awsRestjson1_serializeOpDisassociateMembers) HandleSerialize(ctx contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsDisassociateMembersInput(v *DisassociateMembersInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetFindingHistoryInput(v *GetFindingHistoryInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -3104,28 +5150,48 @@ func awsRestjson1_serializeOpHttpBindingsDisassociateMembersInput(v *Disassociat
return nil
}
-func awsRestjson1_serializeOpDocumentDisassociateMembersInput(v *DisassociateMembersInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentGetFindingHistoryInput(v *GetFindingHistoryInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.AccountIds != nil {
- ok := object.Key("AccountIds")
- if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
+ if v.EndTime != nil {
+ ok := object.Key("EndTime")
+ ok.String(smithytime.FormatDateTime(*v.EndTime))
+ }
+
+ if v.FindingIdentifier != nil {
+ ok := object.Key("FindingIdentifier")
+ if err := awsRestjson1_serializeDocumentAwsSecurityFindingIdentifier(v.FindingIdentifier, ok); err != nil {
return err
}
}
+ if v.MaxResults != nil {
+ ok := object.Key("MaxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("NextToken")
+ ok.String(*v.NextToken)
+ }
+
+ if v.StartTime != nil {
+ ok := object.Key("StartTime")
+ ok.String(smithytime.FormatDateTime(*v.StartTime))
+ }
+
return nil
}
-type awsRestjson1_serializeOpEnableImportFindingsForProduct struct {
+type awsRestjson1_serializeOpGetFindings struct {
}
-func (*awsRestjson1_serializeOpEnableImportFindingsForProduct) ID() string {
+func (*awsRestjson1_serializeOpGetFindings) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpEnableImportFindingsForProduct) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetFindings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3137,13 +5203,13 @@ func (m *awsRestjson1_serializeOpEnableImportFindingsForProduct) HandleSerialize
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*EnableImportFindingsForProductInput)
+ input, ok := in.Parameters.(*GetFindingsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/productSubscriptions")
+ opPath, opQuery := httpbinding.SplitURI("/findings")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -3162,7 +5228,7 @@ func (m *awsRestjson1_serializeOpEnableImportFindingsForProduct) HandleSerialize
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentEnableImportFindingsForProductInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentGetFindingsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3179,7 +5245,7 @@ func (m *awsRestjson1_serializeOpEnableImportFindingsForProduct) HandleSerialize
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsEnableImportFindingsForProductInput(v *EnableImportFindingsForProductInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetFindingsInput(v *GetFindingsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -3187,26 +5253,45 @@ func awsRestjson1_serializeOpHttpBindingsEnableImportFindingsForProductInput(v *
return nil
}
-func awsRestjson1_serializeOpDocumentEnableImportFindingsForProductInput(v *EnableImportFindingsForProductInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentGetFindingsInput(v *GetFindingsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.ProductArn != nil {
- ok := object.Key("ProductArn")
- ok.String(*v.ProductArn)
+ if v.Filters != nil {
+ ok := object.Key("Filters")
+ if err := awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v.Filters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MaxResults != nil {
+ ok := object.Key("MaxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("NextToken")
+ ok.String(*v.NextToken)
+ }
+
+ if v.SortCriteria != nil {
+ ok := object.Key("SortCriteria")
+ if err := awsRestjson1_serializeDocumentSortCriteria(v.SortCriteria, ok); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpEnableOrganizationAdminAccount struct {
+type awsRestjson1_serializeOpGetFindingStatisticsV2 struct {
}
-func (*awsRestjson1_serializeOpEnableOrganizationAdminAccount) ID() string {
+func (*awsRestjson1_serializeOpGetFindingStatisticsV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpEnableOrganizationAdminAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetFindingStatisticsV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3218,13 +5303,13 @@ func (m *awsRestjson1_serializeOpEnableOrganizationAdminAccount) HandleSerialize
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*EnableOrganizationAdminAccountInput)
+ input, ok := in.Parameters.(*GetFindingStatisticsV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/organization/admin/enable")
+ opPath, opQuery := httpbinding.SplitURI("/findingsv2/statistics")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -3243,7 +5328,7 @@ func (m *awsRestjson1_serializeOpEnableOrganizationAdminAccount) HandleSerialize
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentEnableOrganizationAdminAccountInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentGetFindingStatisticsV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3260,7 +5345,7 @@ func (m *awsRestjson1_serializeOpEnableOrganizationAdminAccount) HandleSerialize
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsEnableOrganizationAdminAccountInput(v *EnableOrganizationAdminAccountInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetFindingStatisticsV2Input(v *GetFindingStatisticsV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -3268,26 +5353,38 @@ func awsRestjson1_serializeOpHttpBindingsEnableOrganizationAdminAccountInput(v *
return nil
}
-func awsRestjson1_serializeOpDocumentEnableOrganizationAdminAccountInput(v *EnableOrganizationAdminAccountInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentGetFindingStatisticsV2Input(v *GetFindingStatisticsV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.AdminAccountId != nil {
- ok := object.Key("AdminAccountId")
- ok.String(*v.AdminAccountId)
+ if v.GroupByRules != nil {
+ ok := object.Key("GroupByRules")
+ if err := awsRestjson1_serializeDocumentGroupByRules(v.GroupByRules, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MaxStatisticResults != nil {
+ ok := object.Key("MaxStatisticResults")
+ ok.Integer(*v.MaxStatisticResults)
+ }
+
+ if len(v.SortOrder) > 0 {
+ ok := object.Key("SortOrder")
+ ok.String(string(v.SortOrder))
}
return nil
}
-type awsRestjson1_serializeOpEnableSecurityHub struct {
+type awsRestjson1_serializeOpGetFindingsV2 struct {
}
-func (*awsRestjson1_serializeOpEnableSecurityHub) ID() string {
+func (*awsRestjson1_serializeOpGetFindingsV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpEnableSecurityHub) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetFindingsV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3299,13 +5396,13 @@ func (m *awsRestjson1_serializeOpEnableSecurityHub) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*EnableSecurityHubInput)
+ input, ok := in.Parameters.(*GetFindingsV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/accounts")
+ opPath, opQuery := httpbinding.SplitURI("/findingsv2")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -3324,7 +5421,7 @@ func (m *awsRestjson1_serializeOpEnableSecurityHub) HandleSerialize(ctx context.
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentEnableSecurityHubInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentGetFindingsV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3341,7 +5438,7 @@ func (m *awsRestjson1_serializeOpEnableSecurityHub) HandleSerialize(ctx context.
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsEnableSecurityHubInput(v *EnableSecurityHubInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetFindingsV2Input(v *GetFindingsV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -3349,23 +5446,30 @@ func awsRestjson1_serializeOpHttpBindingsEnableSecurityHubInput(v *EnableSecurit
return nil
}
-func awsRestjson1_serializeOpDocumentEnableSecurityHubInput(v *EnableSecurityHubInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentGetFindingsV2Input(v *GetFindingsV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if len(v.ControlFindingGenerator) > 0 {
- ok := object.Key("ControlFindingGenerator")
- ok.String(string(v.ControlFindingGenerator))
+ if v.Filters != nil {
+ ok := object.Key("Filters")
+ if err := awsRestjson1_serializeDocumentOcsfFindingFilters(v.Filters, ok); err != nil {
+ return err
+ }
}
- if v.EnableDefaultStandards != nil {
- ok := object.Key("EnableDefaultStandards")
- ok.Boolean(*v.EnableDefaultStandards)
+ if v.MaxResults != nil {
+ ok := object.Key("MaxResults")
+ ok.Integer(*v.MaxResults)
}
- if v.Tags != nil {
- ok := object.Key("Tags")
- if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ if v.NextToken != nil {
+ ok := object.Key("NextToken")
+ ok.String(*v.NextToken)
+ }
+
+ if v.SortCriteria != nil {
+ ok := object.Key("SortCriteria")
+ if err := awsRestjson1_serializeDocumentSortCriteria(v.SortCriteria, ok); err != nil {
return err
}
}
@@ -3373,14 +5477,14 @@ func awsRestjson1_serializeOpDocumentEnableSecurityHubInput(v *EnableSecurityHub
return nil
}
-type awsRestjson1_serializeOpGetAdministratorAccount struct {
+type awsRestjson1_serializeOpGetInsightResults struct {
}
-func (*awsRestjson1_serializeOpGetAdministratorAccount) ID() string {
+func (*awsRestjson1_serializeOpGetInsightResults) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetAdministratorAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetInsightResults) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3392,13 +5496,13 @@ func (m *awsRestjson1_serializeOpGetAdministratorAccount) HandleSerialize(ctx co
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetAdministratorAccountInput)
+ input, ok := in.Parameters.(*GetInsightResultsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/administrator")
+ opPath, opQuery := httpbinding.SplitURI("/insights/results/{InsightArn+}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -3414,6 +5518,10 @@ func (m *awsRestjson1_serializeOpGetAdministratorAccount) HandleSerialize(ctx co
return out, metadata, &smithy.SerializationError{Err: err}
}
+ if err := awsRestjson1_serializeOpHttpBindingsGetInsightResultsInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3423,22 +5531,31 @@ func (m *awsRestjson1_serializeOpGetAdministratorAccount) HandleSerialize(ctx co
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetAdministratorAccountInput(v *GetAdministratorAccountInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetInsightResultsInput(v *GetInsightResultsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
+ if v.InsightArn == nil || len(*v.InsightArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")}
+ }
+ if v.InsightArn != nil {
+ if err := encoder.SetURI("InsightArn").String(*v.InsightArn); err != nil {
+ return err
+ }
+ }
+
return nil
}
-type awsRestjson1_serializeOpGetConfigurationPolicy struct {
+type awsRestjson1_serializeOpGetInsights struct {
}
-func (*awsRestjson1_serializeOpGetConfigurationPolicy) ID() string {
+func (*awsRestjson1_serializeOpGetInsights) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetConfigurationPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetInsights) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3450,16 +5567,16 @@ func (m *awsRestjson1_serializeOpGetConfigurationPolicy) HandleSerialize(ctx con
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetConfigurationPolicyInput)
+ input, ok := in.Parameters.(*GetInsightsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/get/{Identifier}")
+ opPath, opQuery := httpbinding.SplitURI("/insights/get")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "GET"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -3472,7 +5589,14 @@ func (m *awsRestjson1_serializeOpGetConfigurationPolicy) HandleSerialize(ctx con
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsGetConfigurationPolicyInput(input, restEncoder); err != nil {
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentGetInsightsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3485,31 +5609,46 @@ func (m *awsRestjson1_serializeOpGetConfigurationPolicy) HandleSerialize(ctx con
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetConfigurationPolicyInput(v *GetConfigurationPolicyInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetInsightsInput(v *GetInsightsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.Identifier == nil || len(*v.Identifier) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
- }
- if v.Identifier != nil {
- if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentGetInsightsInput(v *GetInsightsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.InsightArns != nil {
+ ok := object.Key("InsightArns")
+ if err := awsRestjson1_serializeDocumentArnList(v.InsightArns, ok); err != nil {
return err
}
}
+ if v.MaxResults != nil {
+ ok := object.Key("MaxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("NextToken")
+ ok.String(*v.NextToken)
+ }
+
return nil
}
-type awsRestjson1_serializeOpGetConfigurationPolicyAssociation struct {
+type awsRestjson1_serializeOpGetInvitationsCount struct {
}
-func (*awsRestjson1_serializeOpGetConfigurationPolicyAssociation) ID() string {
+func (*awsRestjson1_serializeOpGetInvitationsCount) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetConfigurationPolicyAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetInvitationsCount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3521,16 +5660,16 @@ func (m *awsRestjson1_serializeOpGetConfigurationPolicyAssociation) HandleSerial
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetConfigurationPolicyAssociationInput)
+ input, ok := in.Parameters.(*GetInvitationsCountInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicyAssociation/get")
+ opPath, opQuery := httpbinding.SplitURI("/invitations/count")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "GET"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -3543,17 +5682,6 @@ func (m *awsRestjson1_serializeOpGetConfigurationPolicyAssociation) HandleSerial
return out, metadata, &smithy.SerializationError{Err: err}
}
- restEncoder.SetHeader("Content-Type").String("application/json")
-
- jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentGetConfigurationPolicyAssociationInput(input, jsonEncoder.Value); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
- if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3563,7 +5691,7 @@ func (m *awsRestjson1_serializeOpGetConfigurationPolicyAssociation) HandleSerial
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetConfigurationPolicyAssociationInput(v *GetConfigurationPolicyAssociationInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetInvitationsCountInput(v *GetInvitationsCountInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -3571,28 +5699,14 @@ func awsRestjson1_serializeOpHttpBindingsGetConfigurationPolicyAssociationInput(
return nil
}
-func awsRestjson1_serializeOpDocumentGetConfigurationPolicyAssociationInput(v *GetConfigurationPolicyAssociationInput, value smithyjson.Value) error {
- object := value.Object()
- defer object.Close()
-
- if v.Target != nil {
- ok := object.Key("Target")
- if err := awsRestjson1_serializeDocumentTarget(v.Target, ok); err != nil {
- return err
- }
- }
-
- return nil
-}
-
-type awsRestjson1_serializeOpGetEnabledStandards struct {
+type awsRestjson1_serializeOpGetMasterAccount struct {
}
-func (*awsRestjson1_serializeOpGetEnabledStandards) ID() string {
+func (*awsRestjson1_serializeOpGetMasterAccount) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetEnabledStandards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetMasterAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3604,16 +5718,16 @@ func (m *awsRestjson1_serializeOpGetEnabledStandards) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetEnabledStandardsInput)
+ input, ok := in.Parameters.(*GetMasterAccountInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/standards/get")
+ opPath, opQuery := httpbinding.SplitURI("/master")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "GET"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -3626,17 +5740,6 @@ func (m *awsRestjson1_serializeOpGetEnabledStandards) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: err}
}
- restEncoder.SetHeader("Content-Type").String("application/json")
-
- jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentGetEnabledStandardsInput(input, jsonEncoder.Value); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
- if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3646,7 +5749,7 @@ func (m *awsRestjson1_serializeOpGetEnabledStandards) HandleSerialize(ctx contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetEnabledStandardsInput(v *GetEnabledStandardsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetMasterAccountInput(v *GetMasterAccountInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -3654,38 +5757,14 @@ func awsRestjson1_serializeOpHttpBindingsGetEnabledStandardsInput(v *GetEnabledS
return nil
}
-func awsRestjson1_serializeOpDocumentGetEnabledStandardsInput(v *GetEnabledStandardsInput, value smithyjson.Value) error {
- object := value.Object()
- defer object.Close()
-
- if v.MaxResults != nil {
- ok := object.Key("MaxResults")
- ok.Integer(*v.MaxResults)
- }
-
- if v.NextToken != nil {
- ok := object.Key("NextToken")
- ok.String(*v.NextToken)
- }
-
- if v.StandardsSubscriptionArns != nil {
- ok := object.Key("StandardsSubscriptionArns")
- if err := awsRestjson1_serializeDocumentStandardsSubscriptionArns(v.StandardsSubscriptionArns, ok); err != nil {
- return err
- }
- }
-
- return nil
-}
-
-type awsRestjson1_serializeOpGetFindingAggregator struct {
+type awsRestjson1_serializeOpGetMembers struct {
}
-func (*awsRestjson1_serializeOpGetFindingAggregator) ID() string {
+func (*awsRestjson1_serializeOpGetMembers) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetFindingAggregator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3697,16 +5776,16 @@ func (m *awsRestjson1_serializeOpGetFindingAggregator) HandleSerialize(ctx conte
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetFindingAggregatorInput)
+ input, ok := in.Parameters.(*GetMembersInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/findingAggregator/get/{FindingAggregatorArn+}")
+ opPath, opQuery := httpbinding.SplitURI("/members/get")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "GET"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -3719,7 +5798,14 @@ func (m *awsRestjson1_serializeOpGetFindingAggregator) HandleSerialize(ctx conte
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsGetFindingAggregatorInput(input, restEncoder); err != nil {
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentGetMembersInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3732,16 +5818,21 @@ func (m *awsRestjson1_serializeOpGetFindingAggregator) HandleSerialize(ctx conte
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetFindingAggregatorInput(v *GetFindingAggregatorInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetMembersInput(v *GetMembersInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.FindingAggregatorArn == nil || len(*v.FindingAggregatorArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member FindingAggregatorArn must not be empty")}
- }
- if v.FindingAggregatorArn != nil {
- if err := encoder.SetURI("FindingAggregatorArn").String(*v.FindingAggregatorArn); err != nil {
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentGetMembersInput(v *GetMembersInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.AccountIds != nil {
+ ok := object.Key("AccountIds")
+ if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
return err
}
}
@@ -3749,14 +5840,14 @@ func awsRestjson1_serializeOpHttpBindingsGetFindingAggregatorInput(v *GetFinding
return nil
}
-type awsRestjson1_serializeOpGetFindingHistory struct {
+type awsRestjson1_serializeOpGetResourcesStatisticsV2 struct {
}
-func (*awsRestjson1_serializeOpGetFindingHistory) ID() string {
+func (*awsRestjson1_serializeOpGetResourcesStatisticsV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetFindingHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetResourcesStatisticsV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3768,13 +5859,13 @@ func (m *awsRestjson1_serializeOpGetFindingHistory) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetFindingHistoryInput)
+ input, ok := in.Parameters.(*GetResourcesStatisticsV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/findingHistory/get")
+ opPath, opQuery := httpbinding.SplitURI("/resourcesv2/statistics")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -3793,7 +5884,7 @@ func (m *awsRestjson1_serializeOpGetFindingHistory) HandleSerialize(ctx context.
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentGetFindingHistoryInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentGetResourcesStatisticsV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3810,7 +5901,7 @@ func (m *awsRestjson1_serializeOpGetFindingHistory) HandleSerialize(ctx context.
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetFindingHistoryInput(v *GetFindingHistoryInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetResourcesStatisticsV2Input(v *GetResourcesStatisticsV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -3818,48 +5909,38 @@ func awsRestjson1_serializeOpHttpBindingsGetFindingHistoryInput(v *GetFindingHis
return nil
}
-func awsRestjson1_serializeOpDocumentGetFindingHistoryInput(v *GetFindingHistoryInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentGetResourcesStatisticsV2Input(v *GetResourcesStatisticsV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.EndTime != nil {
- ok := object.Key("EndTime")
- ok.String(smithytime.FormatDateTime(*v.EndTime))
- }
-
- if v.FindingIdentifier != nil {
- ok := object.Key("FindingIdentifier")
- if err := awsRestjson1_serializeDocumentAwsSecurityFindingIdentifier(v.FindingIdentifier, ok); err != nil {
+ if v.GroupByRules != nil {
+ ok := object.Key("GroupByRules")
+ if err := awsRestjson1_serializeDocumentResourceGroupByRules(v.GroupByRules, ok); err != nil {
return err
}
}
- if v.MaxResults != nil {
- ok := object.Key("MaxResults")
- ok.Integer(*v.MaxResults)
- }
-
- if v.NextToken != nil {
- ok := object.Key("NextToken")
- ok.String(*v.NextToken)
+ if v.MaxStatisticResults != nil {
+ ok := object.Key("MaxStatisticResults")
+ ok.Integer(*v.MaxStatisticResults)
}
- if v.StartTime != nil {
- ok := object.Key("StartTime")
- ok.String(smithytime.FormatDateTime(*v.StartTime))
+ if len(v.SortOrder) > 0 {
+ ok := object.Key("SortOrder")
+ ok.String(string(v.SortOrder))
}
return nil
}
-type awsRestjson1_serializeOpGetFindings struct {
+type awsRestjson1_serializeOpGetResourcesV2 struct {
}
-func (*awsRestjson1_serializeOpGetFindings) ID() string {
+func (*awsRestjson1_serializeOpGetResourcesV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetFindings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetResourcesV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3871,13 +5952,13 @@ func (m *awsRestjson1_serializeOpGetFindings) HandleSerialize(ctx context.Contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetFindingsInput)
+ input, ok := in.Parameters.(*GetResourcesV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/findings")
+ opPath, opQuery := httpbinding.SplitURI("/resourcesv2")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -3896,7 +5977,7 @@ func (m *awsRestjson1_serializeOpGetFindings) HandleSerialize(ctx context.Contex
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentGetFindingsInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentGetResourcesV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -3913,7 +5994,7 @@ func (m *awsRestjson1_serializeOpGetFindings) HandleSerialize(ctx context.Contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetFindingsInput(v *GetFindingsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetResourcesV2Input(v *GetResourcesV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -3921,13 +6002,13 @@ func awsRestjson1_serializeOpHttpBindingsGetFindingsInput(v *GetFindingsInput, e
return nil
}
-func awsRestjson1_serializeOpDocumentGetFindingsInput(v *GetFindingsInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentGetResourcesV2Input(v *GetResourcesV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Filters != nil {
ok := object.Key("Filters")
- if err := awsRestjson1_serializeDocumentAwsSecurityFindingFilters(v.Filters, ok); err != nil {
+ if err := awsRestjson1_serializeDocumentResourcesFilters(v.Filters, ok); err != nil {
return err
}
}
@@ -3952,14 +6033,14 @@ func awsRestjson1_serializeOpDocumentGetFindingsInput(v *GetFindingsInput, value
return nil
}
-type awsRestjson1_serializeOpGetInsightResults struct {
+type awsRestjson1_serializeOpGetSecurityControlDefinition struct {
}
-func (*awsRestjson1_serializeOpGetInsightResults) ID() string {
+func (*awsRestjson1_serializeOpGetSecurityControlDefinition) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetInsightResults) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpGetSecurityControlDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -3971,13 +6052,13 @@ func (m *awsRestjson1_serializeOpGetInsightResults) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetInsightResultsInput)
+ input, ok := in.Parameters.(*GetSecurityControlDefinitionInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/insights/results/{InsightArn+}")
+ opPath, opQuery := httpbinding.SplitURI("/securityControl/definition")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -3993,7 +6074,7 @@ func (m *awsRestjson1_serializeOpGetInsightResults) HandleSerialize(ctx context.
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsGetInsightResultsInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsGetSecurityControlDefinitionInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4006,31 +6087,26 @@ func (m *awsRestjson1_serializeOpGetInsightResults) HandleSerialize(ctx context.
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetInsightResultsInput(v *GetInsightResultsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsGetSecurityControlDefinitionInput(v *GetSecurityControlDefinitionInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.InsightArn == nil || len(*v.InsightArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member InsightArn must not be empty")}
- }
- if v.InsightArn != nil {
- if err := encoder.SetURI("InsightArn").String(*v.InsightArn); err != nil {
- return err
- }
+ if v.SecurityControlId != nil {
+ encoder.SetQuery("SecurityControlId").String(*v.SecurityControlId)
}
return nil
}
-type awsRestjson1_serializeOpGetInsights struct {
+type awsRestjson1_serializeOpInviteMembers struct {
}
-func (*awsRestjson1_serializeOpGetInsights) ID() string {
+func (*awsRestjson1_serializeOpInviteMembers) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetInsights) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpInviteMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4042,13 +6118,13 @@ func (m *awsRestjson1_serializeOpGetInsights) HandleSerialize(ctx context.Contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetInsightsInput)
+ input, ok := in.Parameters.(*InviteMembersInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/insights/get")
+ opPath, opQuery := httpbinding.SplitURI("/members/invite")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
@@ -4067,7 +6143,7 @@ func (m *awsRestjson1_serializeOpGetInsights) HandleSerialize(ctx context.Contex
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentGetInsightsInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentInviteMembersInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4084,7 +6160,7 @@ func (m *awsRestjson1_serializeOpGetInsights) HandleSerialize(ctx context.Contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetInsightsInput(v *GetInsightsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsInviteMembersInput(v *InviteMembersInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -4092,38 +6168,98 @@ func awsRestjson1_serializeOpHttpBindingsGetInsightsInput(v *GetInsightsInput, e
return nil
}
-func awsRestjson1_serializeOpDocumentGetInsightsInput(v *GetInsightsInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentInviteMembersInput(v *InviteMembersInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.InsightArns != nil {
- ok := object.Key("InsightArns")
- if err := awsRestjson1_serializeDocumentArnList(v.InsightArns, ok); err != nil {
+ if v.AccountIds != nil {
+ ok := object.Key("AccountIds")
+ if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
return err
}
}
+ return nil
+}
+
+type awsRestjson1_serializeOpListAggregatorsV2 struct {
+}
+
+func (*awsRestjson1_serializeOpListAggregatorsV2) ID() string {
+ return "OperationSerializer"
+}
+
+func (m *awsRestjson1_serializeOpListAggregatorsV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+ out middleware.SerializeOutput, metadata middleware.Metadata, err error,
+) {
+ _, span := tracing.StartSpan(ctx, "OperationSerializer")
+ endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
+ defer endTimer()
+ defer span.End()
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
+ }
+
+ input, ok := in.Parameters.(*ListAggregatorsV2Input)
+ _ = input
+ if !ok {
+ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
+ }
+
+ opPath, opQuery := httpbinding.SplitURI("/aggregatorv2/list")
+ request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
+ request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
+ request.Method = "GET"
+ var restEncoder *httpbinding.Encoder
+ if request.URL.RawPath == "" {
+ restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
+ } else {
+ request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath)
+ restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header)
+ }
+
+ if err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if err := awsRestjson1_serializeOpHttpBindingsListAggregatorsV2Input(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request.Request, err = restEncoder.Encode(request.Request); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+ in.Request = request
+
+ endTimer()
+ span.End()
+ return next.HandleSerialize(ctx, in)
+}
+func awsRestjson1_serializeOpHttpBindingsListAggregatorsV2Input(v *ListAggregatorsV2Input, encoder *httpbinding.Encoder) error {
+ if v == nil {
+ return fmt.Errorf("unsupported serialization of nil %T", v)
+ }
+
if v.MaxResults != nil {
- ok := object.Key("MaxResults")
- ok.Integer(*v.MaxResults)
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
}
if v.NextToken != nil {
- ok := object.Key("NextToken")
- ok.String(*v.NextToken)
+ encoder.SetQuery("NextToken").String(*v.NextToken)
}
return nil
}
-type awsRestjson1_serializeOpGetInvitationsCount struct {
+type awsRestjson1_serializeOpListAutomationRules struct {
}
-func (*awsRestjson1_serializeOpGetInvitationsCount) ID() string {
+func (*awsRestjson1_serializeOpListAutomationRules) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetInvitationsCount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListAutomationRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4135,13 +6271,13 @@ func (m *awsRestjson1_serializeOpGetInvitationsCount) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetInvitationsCountInput)
+ input, ok := in.Parameters.(*ListAutomationRulesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/invitations/count")
+ opPath, opQuery := httpbinding.SplitURI("/automationrules/list")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -4157,6 +6293,10 @@ func (m *awsRestjson1_serializeOpGetInvitationsCount) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: err}
}
+ if err := awsRestjson1_serializeOpHttpBindingsListAutomationRulesInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4166,22 +6306,30 @@ func (m *awsRestjson1_serializeOpGetInvitationsCount) HandleSerialize(ctx contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetInvitationsCountInput(v *GetInvitationsCountInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListAutomationRulesInput(v *ListAutomationRulesInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
return nil
}
-type awsRestjson1_serializeOpGetMasterAccount struct {
+type awsRestjson1_serializeOpListAutomationRulesV2 struct {
}
-func (*awsRestjson1_serializeOpGetMasterAccount) ID() string {
+func (*awsRestjson1_serializeOpListAutomationRulesV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetMasterAccount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListAutomationRulesV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4193,13 +6341,13 @@ func (m *awsRestjson1_serializeOpGetMasterAccount) HandleSerialize(ctx context.C
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetMasterAccountInput)
+ input, ok := in.Parameters.(*ListAutomationRulesV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/master")
+ opPath, opQuery := httpbinding.SplitURI("/automationrulesv2/list")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -4215,6 +6363,10 @@ func (m *awsRestjson1_serializeOpGetMasterAccount) HandleSerialize(ctx context.C
return out, metadata, &smithy.SerializationError{Err: err}
}
+ if err := awsRestjson1_serializeOpHttpBindingsListAutomationRulesV2Input(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4224,22 +6376,30 @@ func (m *awsRestjson1_serializeOpGetMasterAccount) HandleSerialize(ctx context.C
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetMasterAccountInput(v *GetMasterAccountInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListAutomationRulesV2Input(v *ListAutomationRulesV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
return nil
}
-type awsRestjson1_serializeOpGetMembers struct {
+type awsRestjson1_serializeOpListConfigurationPolicies struct {
}
-func (*awsRestjson1_serializeOpGetMembers) ID() string {
+func (*awsRestjson1_serializeOpListConfigurationPolicies) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListConfigurationPolicies) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4251,16 +6411,16 @@ func (m *awsRestjson1_serializeOpGetMembers) HandleSerialize(ctx context.Context
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetMembersInput)
+ input, ok := in.Parameters.(*ListConfigurationPoliciesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/members/get")
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/list")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "GET"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -4273,14 +6433,7 @@ func (m *awsRestjson1_serializeOpGetMembers) HandleSerialize(ctx context.Context
return out, metadata, &smithy.SerializationError{Err: err}
}
- restEncoder.SetHeader("Content-Type").String("application/json")
-
- jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentGetMembersInput(input, jsonEncoder.Value); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
- if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListConfigurationPoliciesInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4293,36 +6446,30 @@ func (m *awsRestjson1_serializeOpGetMembers) HandleSerialize(ctx context.Context
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetMembersInput(v *GetMembersInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListConfigurationPoliciesInput(v *ListConfigurationPoliciesInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- return nil
-}
-
-func awsRestjson1_serializeOpDocumentGetMembersInput(v *GetMembersInput, value smithyjson.Value) error {
- object := value.Object()
- defer object.Close()
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
- if v.AccountIds != nil {
- ok := object.Key("AccountIds")
- if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
- return err
- }
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
}
return nil
}
-type awsRestjson1_serializeOpGetSecurityControlDefinition struct {
+type awsRestjson1_serializeOpListConfigurationPolicyAssociations struct {
}
-func (*awsRestjson1_serializeOpGetSecurityControlDefinition) ID() string {
+func (*awsRestjson1_serializeOpListConfigurationPolicyAssociations) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpGetSecurityControlDefinition) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListConfigurationPolicyAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4334,16 +6481,16 @@ func (m *awsRestjson1_serializeOpGetSecurityControlDefinition) HandleSerialize(c
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*GetSecurityControlDefinitionInput)
+ input, ok := in.Parameters.(*ListConfigurationPolicyAssociationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/securityControl/definition")
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicyAssociation/list")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "GET"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -4356,7 +6503,14 @@ func (m *awsRestjson1_serializeOpGetSecurityControlDefinition) HandleSerialize(c
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsGetSecurityControlDefinitionInput(input, restEncoder); err != nil {
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentListConfigurationPolicyAssociationsInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4369,26 +6523,46 @@ func (m *awsRestjson1_serializeOpGetSecurityControlDefinition) HandleSerialize(c
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsGetSecurityControlDefinitionInput(v *GetSecurityControlDefinitionInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListConfigurationPolicyAssociationsInput(v *ListConfigurationPolicyAssociationsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.SecurityControlId != nil {
- encoder.SetQuery("SecurityControlId").String(*v.SecurityControlId)
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentListConfigurationPolicyAssociationsInput(v *ListConfigurationPolicyAssociationsInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Filters != nil {
+ ok := object.Key("Filters")
+ if err := awsRestjson1_serializeDocumentAssociationFilters(v.Filters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MaxResults != nil {
+ ok := object.Key("MaxResults")
+ ok.Integer(*v.MaxResults)
+ }
+
+ if v.NextToken != nil {
+ ok := object.Key("NextToken")
+ ok.String(*v.NextToken)
}
return nil
}
-type awsRestjson1_serializeOpInviteMembers struct {
+type awsRestjson1_serializeOpListConnectorsV2 struct {
}
-func (*awsRestjson1_serializeOpInviteMembers) ID() string {
+func (*awsRestjson1_serializeOpListConnectorsV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpInviteMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListConnectorsV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4400,16 +6574,16 @@ func (m *awsRestjson1_serializeOpInviteMembers) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*InviteMembersInput)
+ input, ok := in.Parameters.(*ListConnectorsV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/members/invite")
+ opPath, opQuery := httpbinding.SplitURI("/connectorsv2")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "GET"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -4422,14 +6596,7 @@ func (m *awsRestjson1_serializeOpInviteMembers) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: err}
}
- restEncoder.SetHeader("Content-Type").String("application/json")
-
- jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentInviteMembersInput(input, jsonEncoder.Value); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
- if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListConnectorsV2Input(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4442,36 +6609,38 @@ func (m *awsRestjson1_serializeOpInviteMembers) HandleSerialize(ctx context.Cont
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsInviteMembersInput(v *InviteMembersInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListConnectorsV2Input(v *ListConnectorsV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- return nil
-}
+ if len(v.ConnectorStatus) > 0 {
+ encoder.SetQuery("ConnectorStatus").String(string(v.ConnectorStatus))
+ }
-func awsRestjson1_serializeOpDocumentInviteMembersInput(v *InviteMembersInput, value smithyjson.Value) error {
- object := value.Object()
- defer object.Close()
+ if v.MaxResults != nil {
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ }
- if v.AccountIds != nil {
- ok := object.Key("AccountIds")
- if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil {
- return err
- }
+ if v.NextToken != nil {
+ encoder.SetQuery("NextToken").String(*v.NextToken)
+ }
+
+ if len(v.ProviderName) > 0 {
+ encoder.SetQuery("ProviderName").String(string(v.ProviderName))
}
return nil
}
-type awsRestjson1_serializeOpListAutomationRules struct {
+type awsRestjson1_serializeOpListEnabledProductsForImport struct {
}
-func (*awsRestjson1_serializeOpListAutomationRules) ID() string {
+func (*awsRestjson1_serializeOpListEnabledProductsForImport) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListAutomationRules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListEnabledProductsForImport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4483,13 +6652,13 @@ func (m *awsRestjson1_serializeOpListAutomationRules) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListAutomationRulesInput)
+ input, ok := in.Parameters.(*ListEnabledProductsForImportInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/automationrules/list")
+ opPath, opQuery := httpbinding.SplitURI("/productSubscriptions")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -4505,7 +6674,7 @@ func (m *awsRestjson1_serializeOpListAutomationRules) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListAutomationRulesInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListEnabledProductsForImportInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4518,7 +6687,7 @@ func (m *awsRestjson1_serializeOpListAutomationRules) HandleSerialize(ctx contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListAutomationRulesInput(v *ListAutomationRulesInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListEnabledProductsForImportInput(v *ListEnabledProductsForImportInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -4534,14 +6703,14 @@ func awsRestjson1_serializeOpHttpBindingsListAutomationRulesInput(v *ListAutomat
return nil
}
-type awsRestjson1_serializeOpListConfigurationPolicies struct {
+type awsRestjson1_serializeOpListFindingAggregators struct {
}
-func (*awsRestjson1_serializeOpListConfigurationPolicies) ID() string {
+func (*awsRestjson1_serializeOpListFindingAggregators) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListConfigurationPolicies) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListFindingAggregators) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4553,13 +6722,13 @@ func (m *awsRestjson1_serializeOpListConfigurationPolicies) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListConfigurationPoliciesInput)
+ input, ok := in.Parameters.(*ListFindingAggregatorsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/list")
+ opPath, opQuery := httpbinding.SplitURI("/findingAggregator/list")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -4575,7 +6744,7 @@ func (m *awsRestjson1_serializeOpListConfigurationPolicies) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListConfigurationPoliciesInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListFindingAggregatorsInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4588,7 +6757,7 @@ func (m *awsRestjson1_serializeOpListConfigurationPolicies) HandleSerialize(ctx
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListConfigurationPoliciesInput(v *ListConfigurationPoliciesInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListFindingAggregatorsInput(v *ListFindingAggregatorsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -4604,14 +6773,14 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationPoliciesInput(v *ListC
return nil
}
-type awsRestjson1_serializeOpListConfigurationPolicyAssociations struct {
+type awsRestjson1_serializeOpListInvitations struct {
}
-func (*awsRestjson1_serializeOpListConfigurationPolicyAssociations) ID() string {
+func (*awsRestjson1_serializeOpListInvitations) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListConfigurationPolicyAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListInvitations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4623,16 +6792,16 @@ func (m *awsRestjson1_serializeOpListConfigurationPolicyAssociations) HandleSeri
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListConfigurationPolicyAssociationsInput)
+ input, ok := in.Parameters.(*ListInvitationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicyAssociation/list")
+ opPath, opQuery := httpbinding.SplitURI("/invitations")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "GET"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -4645,14 +6814,7 @@ func (m *awsRestjson1_serializeOpListConfigurationPolicyAssociations) HandleSeri
return out, metadata, &smithy.SerializationError{Err: err}
}
- restEncoder.SetHeader("Content-Type").String("application/json")
-
- jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentListConfigurationPolicyAssociationsInput(input, jsonEncoder.Value); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
- if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListInvitationsInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4665,46 +6827,30 @@ func (m *awsRestjson1_serializeOpListConfigurationPolicyAssociations) HandleSeri
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListConfigurationPolicyAssociationsInput(v *ListConfigurationPolicyAssociationsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListInvitationsInput(v *ListInvitationsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- return nil
-}
-
-func awsRestjson1_serializeOpDocumentListConfigurationPolicyAssociationsInput(v *ListConfigurationPolicyAssociationsInput, value smithyjson.Value) error {
- object := value.Object()
- defer object.Close()
-
- if v.Filters != nil {
- ok := object.Key("Filters")
- if err := awsRestjson1_serializeDocumentAssociationFilters(v.Filters, ok); err != nil {
- return err
- }
- }
-
if v.MaxResults != nil {
- ok := object.Key("MaxResults")
- ok.Integer(*v.MaxResults)
+ encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
}
if v.NextToken != nil {
- ok := object.Key("NextToken")
- ok.String(*v.NextToken)
+ encoder.SetQuery("NextToken").String(*v.NextToken)
}
return nil
}
-type awsRestjson1_serializeOpListEnabledProductsForImport struct {
+type awsRestjson1_serializeOpListMembers struct {
}
-func (*awsRestjson1_serializeOpListEnabledProductsForImport) ID() string {
+func (*awsRestjson1_serializeOpListMembers) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListEnabledProductsForImport) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4716,13 +6862,13 @@ func (m *awsRestjson1_serializeOpListEnabledProductsForImport) HandleSerialize(c
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListEnabledProductsForImportInput)
+ input, ok := in.Parameters.(*ListMembersInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/productSubscriptions")
+ opPath, opQuery := httpbinding.SplitURI("/members")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -4738,7 +6884,7 @@ func (m *awsRestjson1_serializeOpListEnabledProductsForImport) HandleSerialize(c
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListEnabledProductsForImportInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListMembersInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4751,7 +6897,7 @@ func (m *awsRestjson1_serializeOpListEnabledProductsForImport) HandleSerialize(c
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListEnabledProductsForImportInput(v *ListEnabledProductsForImportInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -4764,17 +6910,21 @@ func awsRestjson1_serializeOpHttpBindingsListEnabledProductsForImportInput(v *Li
encoder.SetQuery("NextToken").String(*v.NextToken)
}
+ if v.OnlyAssociated != nil {
+ encoder.SetQuery("OnlyAssociated").Boolean(*v.OnlyAssociated)
+ }
+
return nil
}
-type awsRestjson1_serializeOpListFindingAggregators struct {
+type awsRestjson1_serializeOpListOrganizationAdminAccounts struct {
}
-func (*awsRestjson1_serializeOpListFindingAggregators) ID() string {
+func (*awsRestjson1_serializeOpListOrganizationAdminAccounts) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListFindingAggregators) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListOrganizationAdminAccounts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4786,13 +6936,13 @@ func (m *awsRestjson1_serializeOpListFindingAggregators) HandleSerialize(ctx con
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListFindingAggregatorsInput)
+ input, ok := in.Parameters.(*ListOrganizationAdminAccountsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/findingAggregator/list")
+ opPath, opQuery := httpbinding.SplitURI("/organization/admin")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -4808,7 +6958,7 @@ func (m *awsRestjson1_serializeOpListFindingAggregators) HandleSerialize(ctx con
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListFindingAggregatorsInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListOrganizationAdminAccountsInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4821,11 +6971,15 @@ func (m *awsRestjson1_serializeOpListFindingAggregators) HandleSerialize(ctx con
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListFindingAggregatorsInput(v *ListFindingAggregatorsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListOrganizationAdminAccountsInput(v *ListOrganizationAdminAccountsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
+ if len(v.Feature) > 0 {
+ encoder.SetQuery("Feature").String(string(v.Feature))
+ }
+
if v.MaxResults != nil {
encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
}
@@ -4837,14 +6991,14 @@ func awsRestjson1_serializeOpHttpBindingsListFindingAggregatorsInput(v *ListFind
return nil
}
-type awsRestjson1_serializeOpListInvitations struct {
+type awsRestjson1_serializeOpListSecurityControlDefinitions struct {
}
-func (*awsRestjson1_serializeOpListInvitations) ID() string {
+func (*awsRestjson1_serializeOpListSecurityControlDefinitions) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListInvitations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListSecurityControlDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4856,13 +7010,13 @@ func (m *awsRestjson1_serializeOpListInvitations) HandleSerialize(ctx context.Co
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListInvitationsInput)
+ input, ok := in.Parameters.(*ListSecurityControlDefinitionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/invitations")
+ opPath, opQuery := httpbinding.SplitURI("/securityControls/definitions")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -4878,7 +7032,7 @@ func (m *awsRestjson1_serializeOpListInvitations) HandleSerialize(ctx context.Co
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListInvitationsInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListSecurityControlDefinitionsInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4891,7 +7045,7 @@ func (m *awsRestjson1_serializeOpListInvitations) HandleSerialize(ctx context.Co
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListInvitationsInput(v *ListInvitationsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListSecurityControlDefinitionsInput(v *ListSecurityControlDefinitionsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -4904,17 +7058,21 @@ func awsRestjson1_serializeOpHttpBindingsListInvitationsInput(v *ListInvitations
encoder.SetQuery("NextToken").String(*v.NextToken)
}
+ if v.StandardsArn != nil {
+ encoder.SetQuery("StandardsArn").String(*v.StandardsArn)
+ }
+
return nil
}
-type awsRestjson1_serializeOpListMembers struct {
+type awsRestjson1_serializeOpListStandardsControlAssociations struct {
}
-func (*awsRestjson1_serializeOpListMembers) ID() string {
+func (*awsRestjson1_serializeOpListStandardsControlAssociations) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListStandardsControlAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -4926,13 +7084,13 @@ func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListMembersInput)
+ input, ok := in.Parameters.(*ListStandardsControlAssociationsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/members")
+ opPath, opQuery := httpbinding.SplitURI("/associations")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -4948,7 +7106,7 @@ func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Contex
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListMembersInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListStandardsControlAssociationsInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -4961,7 +7119,7 @@ func (m *awsRestjson1_serializeOpListMembers) HandleSerialize(ctx context.Contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListStandardsControlAssociationsInput(v *ListStandardsControlAssociationsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -4974,21 +7132,21 @@ func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, e
encoder.SetQuery("NextToken").String(*v.NextToken)
}
- if v.OnlyAssociated != nil {
- encoder.SetQuery("OnlyAssociated").Boolean(*v.OnlyAssociated)
+ if v.SecurityControlId != nil {
+ encoder.SetQuery("SecurityControlId").String(*v.SecurityControlId)
}
return nil
}
-type awsRestjson1_serializeOpListOrganizationAdminAccounts struct {
+type awsRestjson1_serializeOpListTagsForResource struct {
}
-func (*awsRestjson1_serializeOpListOrganizationAdminAccounts) ID() string {
+func (*awsRestjson1_serializeOpListTagsForResource) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListOrganizationAdminAccounts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5000,13 +7158,13 @@ func (m *awsRestjson1_serializeOpListOrganizationAdminAccounts) HandleSerialize(
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListOrganizationAdminAccountsInput)
+ input, ok := in.Parameters.(*ListTagsForResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/organization/admin")
+ opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
@@ -5022,7 +7180,7 @@ func (m *awsRestjson1_serializeOpListOrganizationAdminAccounts) HandleSerialize(
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListOrganizationAdminAccountsInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5035,30 +7193,31 @@ func (m *awsRestjson1_serializeOpListOrganizationAdminAccounts) HandleSerialize(
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListOrganizationAdminAccountsInput(v *ListOrganizationAdminAccountsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.MaxResults != nil {
- encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
+ if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")}
}
-
- if v.NextToken != nil {
- encoder.SetQuery("NextToken").String(*v.NextToken)
+ if v.ResourceArn != nil {
+ if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpListSecurityControlDefinitions struct {
+type awsRestjson1_serializeOpStartConfigurationPolicyAssociation struct {
}
-func (*awsRestjson1_serializeOpListSecurityControlDefinitions) ID() string {
+func (*awsRestjson1_serializeOpStartConfigurationPolicyAssociation) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListSecurityControlDefinitions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpStartConfigurationPolicyAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5070,16 +7229,16 @@ func (m *awsRestjson1_serializeOpListSecurityControlDefinitions) HandleSerialize
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListSecurityControlDefinitionsInput)
+ input, ok := in.Parameters.(*StartConfigurationPolicyAssociationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/securityControls/definitions")
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicyAssociation/associate")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "GET"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -5092,7 +7251,14 @@ func (m *awsRestjson1_serializeOpListSecurityControlDefinitions) HandleSerialize
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListSecurityControlDefinitionsInput(input, restEncoder); err != nil {
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentStartConfigurationPolicyAssociationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5105,34 +7271,41 @@ func (m *awsRestjson1_serializeOpListSecurityControlDefinitions) HandleSerialize
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListSecurityControlDefinitionsInput(v *ListSecurityControlDefinitionsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsStartConfigurationPolicyAssociationInput(v *StartConfigurationPolicyAssociationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.MaxResults != nil {
- encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
- }
+ return nil
+}
- if v.NextToken != nil {
- encoder.SetQuery("NextToken").String(*v.NextToken)
+func awsRestjson1_serializeOpDocumentStartConfigurationPolicyAssociationInput(v *StartConfigurationPolicyAssociationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ConfigurationPolicyIdentifier != nil {
+ ok := object.Key("ConfigurationPolicyIdentifier")
+ ok.String(*v.ConfigurationPolicyIdentifier)
}
- if v.StandardsArn != nil {
- encoder.SetQuery("StandardsArn").String(*v.StandardsArn)
+ if v.Target != nil {
+ ok := object.Key("Target")
+ if err := awsRestjson1_serializeDocumentTarget(v.Target, ok); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpListStandardsControlAssociations struct {
+type awsRestjson1_serializeOpStartConfigurationPolicyDisassociation struct {
}
-func (*awsRestjson1_serializeOpListStandardsControlAssociations) ID() string {
+func (*awsRestjson1_serializeOpStartConfigurationPolicyDisassociation) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListStandardsControlAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpStartConfigurationPolicyDisassociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5144,16 +7317,16 @@ func (m *awsRestjson1_serializeOpListStandardsControlAssociations) HandleSeriali
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListStandardsControlAssociationsInput)
+ input, ok := in.Parameters.(*StartConfigurationPolicyDisassociationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/associations")
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicyAssociation/disassociate")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "GET"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -5166,7 +7339,14 @@ func (m *awsRestjson1_serializeOpListStandardsControlAssociations) HandleSeriali
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListStandardsControlAssociationsInput(input, restEncoder); err != nil {
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentStartConfigurationPolicyDisassociationInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5179,34 +7359,41 @@ func (m *awsRestjson1_serializeOpListStandardsControlAssociations) HandleSeriali
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListStandardsControlAssociationsInput(v *ListStandardsControlAssociationsInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsStartConfigurationPolicyDisassociationInput(v *StartConfigurationPolicyDisassociationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.MaxResults != nil {
- encoder.SetQuery("MaxResults").Integer(*v.MaxResults)
- }
+ return nil
+}
- if v.NextToken != nil {
- encoder.SetQuery("NextToken").String(*v.NextToken)
+func awsRestjson1_serializeOpDocumentStartConfigurationPolicyDisassociationInput(v *StartConfigurationPolicyDisassociationInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ConfigurationPolicyIdentifier != nil {
+ ok := object.Key("ConfigurationPolicyIdentifier")
+ ok.String(*v.ConfigurationPolicyIdentifier)
}
- if v.SecurityControlId != nil {
- encoder.SetQuery("SecurityControlId").String(*v.SecurityControlId)
+ if v.Target != nil {
+ ok := object.Key("Target")
+ if err := awsRestjson1_serializeDocumentTarget(v.Target, ok); err != nil {
+ return err
+ }
}
return nil
}
-type awsRestjson1_serializeOpListTagsForResource struct {
+type awsRestjson1_serializeOpTagResource struct {
}
-func (*awsRestjson1_serializeOpListTagsForResource) ID() string {
+func (*awsRestjson1_serializeOpTagResource) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5218,7 +7405,7 @@ func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*ListTagsForResourceInput)
+ input, ok := in.Parameters.(*TagResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
@@ -5227,7 +7414,7 @@ func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx contex
opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "GET"
+ request.Method = "POST"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -5240,7 +7427,18 @@ func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx contex
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5253,7 +7451,7 @@ func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
@@ -5270,14 +7468,28 @@ func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsFor
return nil
}
-type awsRestjson1_serializeOpStartConfigurationPolicyAssociation struct {
+func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Tags != nil {
+ ok := object.Key("Tags")
+ if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
}
-func (*awsRestjson1_serializeOpStartConfigurationPolicyAssociation) ID() string {
+type awsRestjson1_serializeOpUntagResource struct {
+}
+
+func (*awsRestjson1_serializeOpUntagResource) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpStartConfigurationPolicyAssociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5289,16 +7501,16 @@ func (m *awsRestjson1_serializeOpStartConfigurationPolicyAssociation) HandleSeri
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*StartConfigurationPolicyAssociationInput)
+ input, ok := in.Parameters.(*UntagResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicyAssociation/associate")
+ opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "DELETE"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -5311,14 +7523,7 @@ func (m *awsRestjson1_serializeOpStartConfigurationPolicyAssociation) HandleSeri
return out, metadata, &smithy.SerializationError{Err: err}
}
- restEncoder.SetHeader("Content-Type").String("application/json")
-
- jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentStartConfigurationPolicyAssociationInput(input, jsonEncoder.Value); err != nil {
- return out, metadata, &smithy.SerializationError{Err: err}
- }
-
- if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5331,41 +7536,37 @@ func (m *awsRestjson1_serializeOpStartConfigurationPolicyAssociation) HandleSeri
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsStartConfigurationPolicyAssociationInput(v *StartConfigurationPolicyAssociationInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- return nil
-}
-
-func awsRestjson1_serializeOpDocumentStartConfigurationPolicyAssociationInput(v *StartConfigurationPolicyAssociationInput, value smithyjson.Value) error {
- object := value.Object()
- defer object.Close()
-
- if v.ConfigurationPolicyIdentifier != nil {
- ok := object.Key("ConfigurationPolicyIdentifier")
- ok.String(*v.ConfigurationPolicyIdentifier)
+ if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")}
}
-
- if v.Target != nil {
- ok := object.Key("Target")
- if err := awsRestjson1_serializeDocumentTarget(v.Target, ok); err != nil {
+ if v.ResourceArn != nil {
+ if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil {
return err
}
}
+ if v.TagKeys != nil {
+ for i := range v.TagKeys {
+ encoder.AddQuery("tagKeys").String(v.TagKeys[i])
+ }
+ }
+
return nil
}
-type awsRestjson1_serializeOpStartConfigurationPolicyDisassociation struct {
+type awsRestjson1_serializeOpUpdateActionTarget struct {
}
-func (*awsRestjson1_serializeOpStartConfigurationPolicyDisassociation) ID() string {
+func (*awsRestjson1_serializeOpUpdateActionTarget) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpStartConfigurationPolicyDisassociation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpUpdateActionTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5377,16 +7578,16 @@ func (m *awsRestjson1_serializeOpStartConfigurationPolicyDisassociation) HandleS
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*StartConfigurationPolicyDisassociationInput)
+ input, ok := in.Parameters.(*UpdateActionTargetInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicyAssociation/disassociate")
+ opPath, opQuery := httpbinding.SplitURI("/actionTargets/{ActionTargetArn+}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "PATCH"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -5399,10 +7600,14 @@ func (m *awsRestjson1_serializeOpStartConfigurationPolicyDisassociation) HandleS
return out, metadata, &smithy.SerializationError{Err: err}
}
+ if err := awsRestjson1_serializeOpHttpBindingsUpdateActionTargetInput(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentStartConfigurationPolicyDisassociationInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentUpdateActionTargetInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5419,41 +7624,48 @@ func (m *awsRestjson1_serializeOpStartConfigurationPolicyDisassociation) HandleS
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsStartConfigurationPolicyDisassociationInput(v *StartConfigurationPolicyDisassociationInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsUpdateActionTargetInput(v *UpdateActionTargetInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
+ if v.ActionTargetArn == nil || len(*v.ActionTargetArn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ActionTargetArn must not be empty")}
+ }
+ if v.ActionTargetArn != nil {
+ if err := encoder.SetURI("ActionTargetArn").String(*v.ActionTargetArn); err != nil {
+ return err
+ }
+ }
+
return nil
}
-func awsRestjson1_serializeOpDocumentStartConfigurationPolicyDisassociationInput(v *StartConfigurationPolicyDisassociationInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentUpdateActionTargetInput(v *UpdateActionTargetInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.ConfigurationPolicyIdentifier != nil {
- ok := object.Key("ConfigurationPolicyIdentifier")
- ok.String(*v.ConfigurationPolicyIdentifier)
- }
-
- if v.Target != nil {
- ok := object.Key("Target")
- if err := awsRestjson1_serializeDocumentTarget(v.Target, ok); err != nil {
- return err
- }
+ if v.Description != nil {
+ ok := object.Key("Description")
+ ok.String(*v.Description)
+ }
+
+ if v.Name != nil {
+ ok := object.Key("Name")
+ ok.String(*v.Name)
}
return nil
}
-type awsRestjson1_serializeOpTagResource struct {
+type awsRestjson1_serializeOpUpdateAggregatorV2 struct {
}
-func (*awsRestjson1_serializeOpTagResource) ID() string {
+func (*awsRestjson1_serializeOpUpdateAggregatorV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpUpdateAggregatorV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5465,16 +7677,16 @@ func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Contex
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*TagResourceInput)
+ input, ok := in.Parameters.(*UpdateAggregatorV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}")
+ opPath, opQuery := httpbinding.SplitURI("/aggregatorv2/update/{AggregatorV2Arn+}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "POST"
+ request.Method = "PATCH"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -5487,14 +7699,14 @@ func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Contex
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsUpdateAggregatorV2Input(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentUpdateAggregatorV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5511,16 +7723,16 @@ func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Contex
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsUpdateAggregatorV2Input(v *UpdateAggregatorV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")}
+ if v.AggregatorV2Arn == nil || len(*v.AggregatorV2Arn) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member AggregatorV2Arn must not be empty")}
}
- if v.ResourceArn != nil {
- if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil {
+ if v.AggregatorV2Arn != nil {
+ if err := encoder.SetURI("AggregatorV2Arn").String(*v.AggregatorV2Arn); err != nil {
return err
}
}
@@ -5528,28 +7740,33 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e
return nil
}
-func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentUpdateAggregatorV2Input(v *UpdateAggregatorV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.Tags != nil {
- ok := object.Key("Tags")
- if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
+ if v.LinkedRegions != nil {
+ ok := object.Key("LinkedRegions")
+ if err := awsRestjson1_serializeDocumentStringList(v.LinkedRegions, ok); err != nil {
return err
}
}
+ if v.RegionLinkingMode != nil {
+ ok := object.Key("RegionLinkingMode")
+ ok.String(*v.RegionLinkingMode)
+ }
+
return nil
}
-type awsRestjson1_serializeOpUntagResource struct {
+type awsRestjson1_serializeOpUpdateAutomationRuleV2 struct {
}
-func (*awsRestjson1_serializeOpUntagResource) ID() string {
+func (*awsRestjson1_serializeOpUpdateAutomationRuleV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpUpdateAutomationRuleV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5561,16 +7778,16 @@ func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*UntagResourceInput)
+ input, ok := in.Parameters.(*UpdateAutomationRuleV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/tags/{ResourceArn}")
+ opPath, opQuery := httpbinding.SplitURI("/automationrulesv2/{Identifier}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
- request.Method = "DELETE"
+ request.Method = "PATCH"
var restEncoder *httpbinding.Encoder
if request.URL.RawPath == "" {
restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
@@ -5583,7 +7800,18 @@ func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Cont
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsUpdateAutomationRuleV2Input(input, restEncoder); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ restEncoder.SetHeader("Content-Type").String("application/json")
+
+ jsonEncoder := smithyjson.NewEncoder()
+ if err := awsRestjson1_serializeOpDocumentUpdateAutomationRuleV2Input(input, jsonEncoder.Value); err != nil {
+ return out, metadata, &smithy.SerializationError{Err: err}
+ }
+
+ if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5596,37 +7824,85 @@ func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Cont
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsUpdateAutomationRuleV2Input(v *UpdateAutomationRuleV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")}
+ if v.Identifier == nil || len(*v.Identifier) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
}
- if v.ResourceArn != nil {
- if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil {
+ if v.Identifier != nil {
+ if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
return err
}
}
- if v.TagKeys != nil {
- for i := range v.TagKeys {
- encoder.AddQuery("tagKeys").String(v.TagKeys[i])
+ return nil
+}
+
+func awsRestjson1_serializeOpDocumentUpdateAutomationRuleV2Input(v *UpdateAutomationRuleV2Input, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Actions != nil {
+ ok := object.Key("Actions")
+ if err := awsRestjson1_serializeDocumentAutomationRulesActionListV2(v.Actions, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Criteria != nil {
+ ok := object.Key("Criteria")
+ if err := awsRestjson1_serializeDocumentCriteria(v.Criteria, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Description != nil {
+ ok := object.Key("Description")
+ ok.String(*v.Description)
+ }
+
+ if v.RuleName != nil {
+ ok := object.Key("RuleName")
+ ok.String(*v.RuleName)
+ }
+
+ if v.RuleOrder != nil {
+ ok := object.Key("RuleOrder")
+ switch {
+ case math.IsNaN(float64(*v.RuleOrder)):
+ ok.String("NaN")
+
+ case math.IsInf(float64(*v.RuleOrder), 1):
+ ok.String("Infinity")
+
+ case math.IsInf(float64(*v.RuleOrder), -1):
+ ok.String("-Infinity")
+
+ default:
+ ok.Float(*v.RuleOrder)
+
}
}
+ if len(v.RuleStatus) > 0 {
+ ok := object.Key("RuleStatus")
+ ok.String(string(v.RuleStatus))
+ }
+
return nil
}
-type awsRestjson1_serializeOpUpdateActionTarget struct {
+type awsRestjson1_serializeOpUpdateConfigurationPolicy struct {
}
-func (*awsRestjson1_serializeOpUpdateActionTarget) ID() string {
+func (*awsRestjson1_serializeOpUpdateConfigurationPolicy) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpUpdateActionTarget) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpUpdateConfigurationPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5638,13 +7914,13 @@ func (m *awsRestjson1_serializeOpUpdateActionTarget) HandleSerialize(ctx context
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*UpdateActionTargetInput)
+ input, ok := in.Parameters.(*UpdateConfigurationPolicyInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/actionTargets/{ActionTargetArn+}")
+ opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/{Identifier}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "PATCH"
@@ -5660,14 +7936,14 @@ func (m *awsRestjson1_serializeOpUpdateActionTarget) HandleSerialize(ctx context
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsUpdateActionTargetInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsUpdateConfigurationPolicyInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentUpdateActionTargetInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentUpdateConfigurationPolicyInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5684,16 +7960,16 @@ func (m *awsRestjson1_serializeOpUpdateActionTarget) HandleSerialize(ctx context
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsUpdateActionTargetInput(v *UpdateActionTargetInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationPolicyInput(v *UpdateConfigurationPolicyInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.ActionTargetArn == nil || len(*v.ActionTargetArn) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member ActionTargetArn must not be empty")}
+ if v.Identifier == nil || len(*v.Identifier) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
}
- if v.ActionTargetArn != nil {
- if err := encoder.SetURI("ActionTargetArn").String(*v.ActionTargetArn); err != nil {
+ if v.Identifier != nil {
+ if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
return err
}
}
@@ -5701,10 +7977,17 @@ func awsRestjson1_serializeOpHttpBindingsUpdateActionTargetInput(v *UpdateAction
return nil
}
-func awsRestjson1_serializeOpDocumentUpdateActionTargetInput(v *UpdateActionTargetInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentUpdateConfigurationPolicyInput(v *UpdateConfigurationPolicyInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
+ if v.ConfigurationPolicy != nil {
+ ok := object.Key("ConfigurationPolicy")
+ if err := awsRestjson1_serializeDocumentPolicy(v.ConfigurationPolicy, ok); err != nil {
+ return err
+ }
+ }
+
if v.Description != nil {
ok := object.Key("Description")
ok.String(*v.Description)
@@ -5715,17 +7998,22 @@ func awsRestjson1_serializeOpDocumentUpdateActionTargetInput(v *UpdateActionTarg
ok.String(*v.Name)
}
+ if v.UpdatedReason != nil {
+ ok := object.Key("UpdatedReason")
+ ok.String(*v.UpdatedReason)
+ }
+
return nil
}
-type awsRestjson1_serializeOpUpdateConfigurationPolicy struct {
+type awsRestjson1_serializeOpUpdateConnectorV2 struct {
}
-func (*awsRestjson1_serializeOpUpdateConfigurationPolicy) ID() string {
+func (*awsRestjson1_serializeOpUpdateConnectorV2) ID() string {
return "OperationSerializer"
}
-func (m *awsRestjson1_serializeOpUpdateConfigurationPolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
+func (m *awsRestjson1_serializeOpUpdateConnectorV2) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
_, span := tracing.StartSpan(ctx, "OperationSerializer")
@@ -5737,13 +8025,13 @@ func (m *awsRestjson1_serializeOpUpdateConfigurationPolicy) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
- input, ok := in.Parameters.(*UpdateConfigurationPolicyInput)
+ input, ok := in.Parameters.(*UpdateConnectorV2Input)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
- opPath, opQuery := httpbinding.SplitURI("/configurationPolicy/{Identifier}")
+ opPath, opQuery := httpbinding.SplitURI("/connectorsv2/{ConnectorId+}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "PATCH"
@@ -5759,14 +8047,14 @@ func (m *awsRestjson1_serializeOpUpdateConfigurationPolicy) HandleSerialize(ctx
return out, metadata, &smithy.SerializationError{Err: err}
}
- if err := awsRestjson1_serializeOpHttpBindingsUpdateConfigurationPolicyInput(input, restEncoder); err != nil {
+ if err := awsRestjson1_serializeOpHttpBindingsUpdateConnectorV2Input(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
- if err := awsRestjson1_serializeOpDocumentUpdateConfigurationPolicyInput(input, jsonEncoder.Value); err != nil {
+ if err := awsRestjson1_serializeOpDocumentUpdateConnectorV2Input(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
@@ -5783,16 +8071,16 @@ func (m *awsRestjson1_serializeOpUpdateConfigurationPolicy) HandleSerialize(ctx
span.End()
return next.HandleSerialize(ctx, in)
}
-func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationPolicyInput(v *UpdateConfigurationPolicyInput, encoder *httpbinding.Encoder) error {
+func awsRestjson1_serializeOpHttpBindingsUpdateConnectorV2Input(v *UpdateConnectorV2Input, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
- if v.Identifier == nil || len(*v.Identifier) == 0 {
- return &smithy.SerializationError{Err: fmt.Errorf("input member Identifier must not be empty")}
+ if v.ConnectorId == nil || len(*v.ConnectorId) == 0 {
+ return &smithy.SerializationError{Err: fmt.Errorf("input member ConnectorId must not be empty")}
}
- if v.Identifier != nil {
- if err := encoder.SetURI("Identifier").String(*v.Identifier); err != nil {
+ if v.ConnectorId != nil {
+ if err := encoder.SetURI("ConnectorId").String(*v.ConnectorId); err != nil {
return err
}
}
@@ -5800,15 +8088,13 @@ func awsRestjson1_serializeOpHttpBindingsUpdateConfigurationPolicyInput(v *Updat
return nil
}
-func awsRestjson1_serializeOpDocumentUpdateConfigurationPolicyInput(v *UpdateConfigurationPolicyInput, value smithyjson.Value) error {
+func awsRestjson1_serializeOpDocumentUpdateConnectorV2Input(v *UpdateConnectorV2Input, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.ConfigurationPolicy != nil {
- ok := object.Key("ConfigurationPolicy")
- if err := awsRestjson1_serializeDocumentPolicy(v.ConfigurationPolicy, ok); err != nil {
- return err
- }
+ if v.ClientSecret != nil {
+ ok := object.Key("ClientSecret")
+ ok.String(*v.ClientSecret)
}
if v.Description != nil {
@@ -5816,14 +8102,11 @@ func awsRestjson1_serializeOpDocumentUpdateConfigurationPolicyInput(v *UpdateCon
ok.String(*v.Description)
}
- if v.Name != nil {
- ok := object.Key("Name")
- ok.String(*v.Name)
- }
-
- if v.UpdatedReason != nil {
- ok := object.Key("UpdatedReason")
- ok.String(*v.UpdatedReason)
+ if v.Provider != nil {
+ ok := object.Key("Provider")
+ if err := awsRestjson1_serializeDocumentProviderUpdateConfiguration(v.Provider, ok); err != nil {
+ return err
+ }
}
return nil
@@ -6950,6 +9233,45 @@ func awsRestjson1_serializeDocumentAutomationRulesAction(v *types.AutomationRule
return nil
}
+func awsRestjson1_serializeDocumentAutomationRulesActionListV2(v []types.AutomationRulesActionV2, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentAutomationRulesActionV2(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentAutomationRulesActionV2(v *types.AutomationRulesActionV2, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ExternalIntegrationConfiguration != nil {
+ ok := object.Key("ExternalIntegrationConfiguration")
+ if err := awsRestjson1_serializeDocumentExternalIntegrationConfiguration(v.ExternalIntegrationConfiguration, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.FindingFieldsUpdate != nil {
+ ok := object.Key("FindingFieldsUpdate")
+ if err := awsRestjson1_serializeDocumentAutomationRulesFindingFieldsUpdateV2(v.FindingFieldsUpdate, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.Type) > 0 {
+ ok := object.Key("Type")
+ ok.String(string(v.Type))
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentAutomationRulesArnsList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
@@ -7025,6 +9347,28 @@ func awsRestjson1_serializeDocumentAutomationRulesFindingFieldsUpdate(v *types.A
return nil
}
+func awsRestjson1_serializeDocumentAutomationRulesFindingFieldsUpdateV2(v *types.AutomationRulesFindingFieldsUpdateV2, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Comment != nil {
+ ok := object.Key("Comment")
+ ok.String(*v.Comment)
+ }
+
+ if v.SeverityId != nil {
+ ok := object.Key("SeverityId")
+ ok.Integer(*v.SeverityId)
+ }
+
+ if v.StatusId != nil {
+ ok := object.Key("StatusId")
+ ok.Integer(*v.StatusId)
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentAutomationRulesFindingFilters(v *types.AutomationRulesFindingFilters, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -26636,13 +28980,73 @@ func awsRestjson1_serializeDocumentCompliance(v *types.Compliance, value smithyj
ok.String(string(v.Status))
}
- if v.StatusReasons != nil {
- ok := object.Key("StatusReasons")
- if err := awsRestjson1_serializeDocumentStatusReasonsList(v.StatusReasons, ok); err != nil {
+ if v.StatusReasons != nil {
+ ok := object.Key("StatusReasons")
+ if err := awsRestjson1_serializeDocumentStatusReasonsList(v.StatusReasons, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentCompositeFilter(v *types.CompositeFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.BooleanFilters != nil {
+ ok := object.Key("BooleanFilters")
+ if err := awsRestjson1_serializeDocumentOcsfBooleanFilterList(v.BooleanFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.DateFilters != nil {
+ ok := object.Key("DateFilters")
+ if err := awsRestjson1_serializeDocumentOcsfDateFilterList(v.DateFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MapFilters != nil {
+ ok := object.Key("MapFilters")
+ if err := awsRestjson1_serializeDocumentOcsfMapFilterList(v.MapFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.NumberFilters != nil {
+ ok := object.Key("NumberFilters")
+ if err := awsRestjson1_serializeDocumentOcsfNumberFilterList(v.NumberFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.Operator) > 0 {
+ ok := object.Key("Operator")
+ ok.String(string(v.Operator))
+ }
+
+ if v.StringFilters != nil {
+ ok := object.Key("StringFilters")
+ if err := awsRestjson1_serializeDocumentOcsfStringFilterList(v.StringFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentCompositeFilterList(v []types.CompositeFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentCompositeFilter(&v[i], av); err != nil {
return err
}
}
-
return nil
}
@@ -26734,6 +29138,24 @@ func awsRestjson1_serializeDocumentCountry(v *types.Country, value smithyjson.Va
return nil
}
+func awsRestjson1_serializeDocumentCriteria(v types.Criteria, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ switch uv := v.(type) {
+ case *types.CriteriaMemberOcsfFindingCriteria:
+ av := object.Key("OcsfFindingCriteria")
+ if err := awsRestjson1_serializeDocumentOcsfFindingFilters(&uv.Value, av); err != nil {
+ return err
+ }
+
+ default:
+ return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
+
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentCustomDataIdentifiersDetections(v *types.CustomDataIdentifiersDetections, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -26997,6 +29419,18 @@ func awsRestjson1_serializeDocumentEnabledStandardIdentifierList(v []string, val
return nil
}
+func awsRestjson1_serializeDocumentExternalIntegrationConfiguration(v *types.ExternalIntegrationConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ConnectorArn != nil {
+ ok := object.Key("ConnectorArn")
+ ok.String(*v.ConnectorArn)
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentFieldMap(v map[string]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -27299,6 +29733,38 @@ func awsRestjson1_serializeDocumentGeoLocation(v *types.GeoLocation, value smith
return nil
}
+func awsRestjson1_serializeDocumentGroupByRule(v *types.GroupByRule, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Filters != nil {
+ ok := object.Key("Filters")
+ if err := awsRestjson1_serializeDocumentOcsfFindingFilters(v.Filters, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.GroupByField) > 0 {
+ ok := object.Key("GroupByField")
+ ok.String(string(v.GroupByField))
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentGroupByRules(v []types.GroupByRule, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentGroupByRule(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentIcmpTypeCode(v *types.IcmpTypeCode, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -27456,6 +29922,30 @@ func awsRestjson1_serializeDocumentIpv6CidrBlockAssociationList(v []types.Ipv6Ci
return nil
}
+func awsRestjson1_serializeDocumentJiraCloudProviderConfiguration(v *types.JiraCloudProviderConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ProjectKey != nil {
+ ok := object.Key("ProjectKey")
+ ok.String(*v.ProjectKey)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentJiraCloudUpdateConfiguration(v *types.JiraCloudUpdateConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ProjectKey != nil {
+ ok := object.Key("ProjectKey")
+ ok.String(*v.ProjectKey)
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentKeywordFilter(v *types.KeywordFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -27573,6 +30063,17 @@ func awsRestjson1_serializeDocumentMapFilterList(v []types.MapFilter, value smit
return nil
}
+func awsRestjson1_serializeDocumentMetadataUidList(v []string, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(v[i])
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentNetwork(v *types.Network, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -28066,58 +30567,272 @@ func awsRestjson1_serializeDocumentNumberFilter(v *types.NumberFilter, value smi
return nil
}
-func awsRestjson1_serializeDocumentNumberFilterList(v []types.NumberFilter, value smithyjson.Value) error {
+func awsRestjson1_serializeDocumentNumberFilterList(v []types.NumberFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentNumberFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOccurrences(v *types.Occurrences, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Cells != nil {
+ ok := object.Key("Cells")
+ if err := awsRestjson1_serializeDocumentCells(v.Cells, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.LineRanges != nil {
+ ok := object.Key("LineRanges")
+ if err := awsRestjson1_serializeDocumentRanges(v.LineRanges, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.OffsetRanges != nil {
+ ok := object.Key("OffsetRanges")
+ if err := awsRestjson1_serializeDocumentRanges(v.OffsetRanges, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Pages != nil {
+ ok := object.Key("Pages")
+ if err := awsRestjson1_serializeDocumentPages(v.Pages, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.Records != nil {
+ ok := object.Key("Records")
+ if err := awsRestjson1_serializeDocumentRecords(v.Records, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfBooleanFilter(v *types.OcsfBooleanFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentBooleanFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfBooleanFilterList(v []types.OcsfBooleanFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentOcsfBooleanFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfDateFilter(v *types.OcsfDateFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentDateFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfDateFilterList(v []types.OcsfDateFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentOcsfDateFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfFindingFilters(v *types.OcsfFindingFilters, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.CompositeFilters != nil {
+ ok := object.Key("CompositeFilters")
+ if err := awsRestjson1_serializeDocumentCompositeFilterList(v.CompositeFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.CompositeOperator) > 0 {
+ ok := object.Key("CompositeOperator")
+ ok.String(string(v.CompositeOperator))
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfFindingIdentifier(v *types.OcsfFindingIdentifier, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.CloudAccountUid != nil {
+ ok := object.Key("CloudAccountUid")
+ ok.String(*v.CloudAccountUid)
+ }
+
+ if v.FindingInfoUid != nil {
+ ok := object.Key("FindingInfoUid")
+ ok.String(*v.FindingInfoUid)
+ }
+
+ if v.MetadataProductUid != nil {
+ ok := object.Key("MetadataProductUid")
+ ok.String(*v.MetadataProductUid)
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfFindingIdentifierList(v []types.OcsfFindingIdentifier, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentOcsfFindingIdentifier(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfMapFilter(v *types.OcsfMapFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentMapFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfMapFilterList(v []types.OcsfMapFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentOcsfMapFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfNumberFilter(v *types.OcsfNumberFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentNumberFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentOcsfNumberFilterList(v []types.OcsfNumberFilter, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
- if err := awsRestjson1_serializeDocumentNumberFilter(&v[i], av); err != nil {
+ if err := awsRestjson1_serializeDocumentOcsfNumberFilter(&v[i], av); err != nil {
return err
}
}
return nil
}
-func awsRestjson1_serializeDocumentOccurrences(v *types.Occurrences, value smithyjson.Value) error {
+func awsRestjson1_serializeDocumentOcsfStringFilter(v *types.OcsfStringFilter, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
- if v.Cells != nil {
- ok := object.Key("Cells")
- if err := awsRestjson1_serializeDocumentCells(v.Cells, ok); err != nil {
- return err
- }
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
}
- if v.LineRanges != nil {
- ok := object.Key("LineRanges")
- if err := awsRestjson1_serializeDocumentRanges(v.LineRanges, ok); err != nil {
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentStringFilter(v.Filter, ok); err != nil {
return err
}
}
- if v.OffsetRanges != nil {
- ok := object.Key("OffsetRanges")
- if err := awsRestjson1_serializeDocumentRanges(v.OffsetRanges, ok); err != nil {
- return err
- }
- }
+ return nil
+}
- if v.Pages != nil {
- ok := object.Key("Pages")
- if err := awsRestjson1_serializeDocumentPages(v.Pages, ok); err != nil {
- return err
- }
- }
+func awsRestjson1_serializeDocumentOcsfStringFilterList(v []types.OcsfStringFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
- if v.Records != nil {
- ok := object.Key("Records")
- if err := awsRestjson1_serializeDocumentRecords(v.Records, ok); err != nil {
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentOcsfStringFilter(&v[i], av); err != nil {
return err
}
}
-
return nil
}
@@ -28527,6 +31242,48 @@ func awsRestjson1_serializeDocumentPropagatingVgwSetList(v []types.PropagatingVg
return nil
}
+func awsRestjson1_serializeDocumentProviderConfiguration(v types.ProviderConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ switch uv := v.(type) {
+ case *types.ProviderConfigurationMemberJiraCloud:
+ av := object.Key("JiraCloud")
+ if err := awsRestjson1_serializeDocumentJiraCloudProviderConfiguration(&uv.Value, av); err != nil {
+ return err
+ }
+
+ case *types.ProviderConfigurationMemberServiceNow:
+ av := object.Key("ServiceNow")
+ if err := awsRestjson1_serializeDocumentServiceNowProviderConfiguration(&uv.Value, av); err != nil {
+ return err
+ }
+
+ default:
+ return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
+
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentProviderUpdateConfiguration(v types.ProviderUpdateConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ switch uv := v.(type) {
+ case *types.ProviderUpdateConfigurationMemberJiraCloud:
+ av := object.Key("JiraCloud")
+ if err := awsRestjson1_serializeDocumentJiraCloudUpdateConfiguration(&uv.Value, av); err != nil {
+ return err
+ }
+
+ default:
+ return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
+
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentRange(v *types.Range, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -29427,6 +32184,38 @@ func awsRestjson1_serializeDocumentResourceDetails(v *types.ResourceDetails, val
return nil
}
+func awsRestjson1_serializeDocumentResourceGroupByRule(v *types.ResourceGroupByRule, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Filters != nil {
+ ok := object.Key("Filters")
+ if err := awsRestjson1_serializeDocumentResourcesFilters(v.Filters, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.GroupByField) > 0 {
+ ok := object.Key("GroupByField")
+ ok.String(string(v.GroupByField))
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourceGroupByRules(v []types.ResourceGroupByRule, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentResourceGroupByRule(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentResourceList(v []types.Resource, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
@@ -29440,6 +32229,206 @@ func awsRestjson1_serializeDocumentResourceList(v []types.Resource, value smithy
return nil
}
+func awsRestjson1_serializeDocumentResourcesCompositeFilter(v *types.ResourcesCompositeFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.DateFilters != nil {
+ ok := object.Key("DateFilters")
+ if err := awsRestjson1_serializeDocumentResourcesDateFilterList(v.DateFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.MapFilters != nil {
+ ok := object.Key("MapFilters")
+ if err := awsRestjson1_serializeDocumentResourcesMapFilterList(v.MapFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if v.NumberFilters != nil {
+ ok := object.Key("NumberFilters")
+ if err := awsRestjson1_serializeDocumentResourcesNumberFilterList(v.NumberFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.Operator) > 0 {
+ ok := object.Key("Operator")
+ ok.String(string(v.Operator))
+ }
+
+ if v.StringFilters != nil {
+ ok := object.Key("StringFilters")
+ if err := awsRestjson1_serializeDocumentResourcesStringFilterList(v.StringFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesCompositeFilterList(v []types.ResourcesCompositeFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentResourcesCompositeFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesDateFilter(v *types.ResourcesDateFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentDateFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesDateFilterList(v []types.ResourcesDateFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentResourcesDateFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesFilters(v *types.ResourcesFilters, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.CompositeFilters != nil {
+ ok := object.Key("CompositeFilters")
+ if err := awsRestjson1_serializeDocumentResourcesCompositeFilterList(v.CompositeFilters, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.CompositeOperator) > 0 {
+ ok := object.Key("CompositeOperator")
+ ok.String(string(v.CompositeOperator))
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesMapFilter(v *types.ResourcesMapFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentMapFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesMapFilterList(v []types.ResourcesMapFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentResourcesMapFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesNumberFilter(v *types.ResourcesNumberFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentNumberFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesNumberFilterList(v []types.ResourcesNumberFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentResourcesNumberFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesStringFilter(v *types.ResourcesStringFilter, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.FieldName) > 0 {
+ ok := object.Key("FieldName")
+ ok.String(string(v.FieldName))
+ }
+
+ if v.Filter != nil {
+ ok := object.Key("Filter")
+ if err := awsRestjson1_serializeDocumentStringFilter(v.Filter, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsRestjson1_serializeDocumentResourcesStringFilterList(v []types.ResourcesStringFilter, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsRestjson1_serializeDocumentResourcesStringFilter(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
func awsRestjson1_serializeDocumentRouteSetDetails(v *types.RouteSetDetails, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -30341,6 +33330,28 @@ func awsRestjson1_serializeDocumentSequence(v *types.Sequence, value smithyjson.
return nil
}
+func awsRestjson1_serializeDocumentServiceNowProviderConfiguration(v *types.ServiceNowProviderConfiguration, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ClientId != nil {
+ ok := object.Key("ClientId")
+ ok.String(*v.ClientId)
+ }
+
+ if v.ClientSecret != nil {
+ ok := object.Key("ClientSecret")
+ ok.String(*v.ClientSecret)
+ }
+
+ if v.InstanceName != nil {
+ ok := object.Key("InstanceName")
+ ok.String(*v.InstanceName)
+ }
+
+ return nil
+}
+
func awsRestjson1_serializeDocumentSeverity(v *types.Severity, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
diff --git a/service/securityhub/snapshot/api_op_BatchUpdateFindingsV2.go.snap b/service/securityhub/snapshot/api_op_BatchUpdateFindingsV2.go.snap
new file mode 100644
index 00000000000..28b1048fde1
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_BatchUpdateFindingsV2.go.snap
@@ -0,0 +1,42 @@
+BatchUpdateFindingsV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_ConnectorRegistrationsV2.go.snap b/service/securityhub/snapshot/api_op_ConnectorRegistrationsV2.go.snap
new file mode 100644
index 00000000000..53d2c92542a
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_ConnectorRegistrationsV2.go.snap
@@ -0,0 +1,42 @@
+ConnectorRegistrationsV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_CreateAggregatorV2.go.snap b/service/securityhub/snapshot/api_op_CreateAggregatorV2.go.snap
new file mode 100644
index 00000000000..64f6771b71b
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_CreateAggregatorV2.go.snap
@@ -0,0 +1,43 @@
+CreateAggregatorV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_CreateAutomationRuleV2.go.snap b/service/securityhub/snapshot/api_op_CreateAutomationRuleV2.go.snap
new file mode 100644
index 00000000000..4937b72747d
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_CreateAutomationRuleV2.go.snap
@@ -0,0 +1,43 @@
+CreateAutomationRuleV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_CreateConnectorV2.go.snap b/service/securityhub/snapshot/api_op_CreateConnectorV2.go.snap
new file mode 100644
index 00000000000..993a0efd66b
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_CreateConnectorV2.go.snap
@@ -0,0 +1,43 @@
+CreateConnectorV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_CreateTicketV2.go.snap b/service/securityhub/snapshot/api_op_CreateTicketV2.go.snap
new file mode 100644
index 00000000000..fc5376132f7
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_CreateTicketV2.go.snap
@@ -0,0 +1,43 @@
+CreateTicketV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ OperationIdempotencyTokenAutoFill
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_DeleteAggregatorV2.go.snap b/service/securityhub/snapshot/api_op_DeleteAggregatorV2.go.snap
new file mode 100644
index 00000000000..fd00d50aaa4
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_DeleteAggregatorV2.go.snap
@@ -0,0 +1,42 @@
+DeleteAggregatorV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_DeleteAutomationRuleV2.go.snap b/service/securityhub/snapshot/api_op_DeleteAutomationRuleV2.go.snap
new file mode 100644
index 00000000000..5c23b53ff79
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_DeleteAutomationRuleV2.go.snap
@@ -0,0 +1,42 @@
+DeleteAutomationRuleV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_DeleteConnectorV2.go.snap b/service/securityhub/snapshot/api_op_DeleteConnectorV2.go.snap
new file mode 100644
index 00000000000..870ad451155
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_DeleteConnectorV2.go.snap
@@ -0,0 +1,42 @@
+DeleteConnectorV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_DescribeProductsV2.go.snap b/service/securityhub/snapshot/api_op_DescribeProductsV2.go.snap
new file mode 100644
index 00000000000..f5ab589c235
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_DescribeProductsV2.go.snap
@@ -0,0 +1,41 @@
+DescribeProductsV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_DescribeSecurityHubV2.go.snap b/service/securityhub/snapshot/api_op_DescribeSecurityHubV2.go.snap
new file mode 100644
index 00000000000..698e9954e70
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_DescribeSecurityHubV2.go.snap
@@ -0,0 +1,41 @@
+DescribeSecurityHubV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_DisableSecurityHubV2.go.snap b/service/securityhub/snapshot/api_op_DisableSecurityHubV2.go.snap
new file mode 100644
index 00000000000..9b63f324950
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_DisableSecurityHubV2.go.snap
@@ -0,0 +1,41 @@
+DisableSecurityHubV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_EnableSecurityHubV2.go.snap b/service/securityhub/snapshot/api_op_EnableSecurityHubV2.go.snap
new file mode 100644
index 00000000000..9974875bb60
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_EnableSecurityHubV2.go.snap
@@ -0,0 +1,41 @@
+EnableSecurityHubV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_GetAggregatorV2.go.snap b/service/securityhub/snapshot/api_op_GetAggregatorV2.go.snap
new file mode 100644
index 00000000000..cc26c108686
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_GetAggregatorV2.go.snap
@@ -0,0 +1,42 @@
+GetAggregatorV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_GetAutomationRuleV2.go.snap b/service/securityhub/snapshot/api_op_GetAutomationRuleV2.go.snap
new file mode 100644
index 00000000000..2e8c420eee7
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_GetAutomationRuleV2.go.snap
@@ -0,0 +1,42 @@
+GetAutomationRuleV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_GetConnectorV2.go.snap b/service/securityhub/snapshot/api_op_GetConnectorV2.go.snap
new file mode 100644
index 00000000000..6e8250223c1
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_GetConnectorV2.go.snap
@@ -0,0 +1,42 @@
+GetConnectorV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_GetFindingStatisticsV2.go.snap b/service/securityhub/snapshot/api_op_GetFindingStatisticsV2.go.snap
new file mode 100644
index 00000000000..691d5c8407e
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_GetFindingStatisticsV2.go.snap
@@ -0,0 +1,42 @@
+GetFindingStatisticsV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_GetFindingsV2.go.snap b/service/securityhub/snapshot/api_op_GetFindingsV2.go.snap
new file mode 100644
index 00000000000..ef8e9fd91c7
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_GetFindingsV2.go.snap
@@ -0,0 +1,41 @@
+GetFindingsV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_GetResourcesStatisticsV2.go.snap b/service/securityhub/snapshot/api_op_GetResourcesStatisticsV2.go.snap
new file mode 100644
index 00000000000..f4615cbe594
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_GetResourcesStatisticsV2.go.snap
@@ -0,0 +1,42 @@
+GetResourcesStatisticsV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_GetResourcesV2.go.snap b/service/securityhub/snapshot/api_op_GetResourcesV2.go.snap
new file mode 100644
index 00000000000..82df6b28a7b
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_GetResourcesV2.go.snap
@@ -0,0 +1,41 @@
+GetResourcesV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_ListAggregatorsV2.go.snap b/service/securityhub/snapshot/api_op_ListAggregatorsV2.go.snap
new file mode 100644
index 00000000000..41044a012da
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_ListAggregatorsV2.go.snap
@@ -0,0 +1,41 @@
+ListAggregatorsV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_ListAutomationRulesV2.go.snap b/service/securityhub/snapshot/api_op_ListAutomationRulesV2.go.snap
new file mode 100644
index 00000000000..f9350167c46
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_ListAutomationRulesV2.go.snap
@@ -0,0 +1,41 @@
+ListAutomationRulesV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_ListConnectorsV2.go.snap b/service/securityhub/snapshot/api_op_ListConnectorsV2.go.snap
new file mode 100644
index 00000000000..f3b5f22046c
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_ListConnectorsV2.go.snap
@@ -0,0 +1,41 @@
+ListConnectorsV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_UpdateAggregatorV2.go.snap b/service/securityhub/snapshot/api_op_UpdateAggregatorV2.go.snap
new file mode 100644
index 00000000000..4a25a8ce86b
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_UpdateAggregatorV2.go.snap
@@ -0,0 +1,42 @@
+UpdateAggregatorV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_UpdateAutomationRuleV2.go.snap b/service/securityhub/snapshot/api_op_UpdateAutomationRuleV2.go.snap
new file mode 100644
index 00000000000..c4037d9d518
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_UpdateAutomationRuleV2.go.snap
@@ -0,0 +1,42 @@
+UpdateAutomationRuleV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot/api_op_UpdateConnectorV2.go.snap b/service/securityhub/snapshot/api_op_UpdateConnectorV2.go.snap
new file mode 100644
index 00000000000..7c74b014678
--- /dev/null
+++ b/service/securityhub/snapshot/api_op_UpdateConnectorV2.go.snap
@@ -0,0 +1,42 @@
+UpdateConnectorV2
+ Initialize stack step
+ spanInitializeStart
+ RegisterServiceMetadata
+ legacyEndpointContextSetter
+ SetLogger
+ OperationInputValidation
+ spanInitializeEnd
+ Serialize stack step
+ spanBuildRequestStart
+ setOperationInput
+ ResolveEndpoint
+ OperationSerializer
+ Build stack step
+ ClientRequestID
+ ComputeContentLength
+ SetCredentialSourceMiddleware
+ UserAgent
+ AddTimeOffsetMiddleware
+ RecursionDetection
+ spanBuildRequestEnd
+ Finalize stack step
+ spanRetryLoop
+ Retry
+ RetryMetricsHeader
+ ResolveAuthScheme
+ GetIdentity
+ ResolveEndpointV2
+ disableHTTPS
+ ComputePayloadHash
+ setLegacyContextSigningOptions
+ Signing
+ Deserialize stack step
+ AddRawResponseToMetadata
+ ErrorCloseResponseBody
+ CloseResponseBody
+ ResponseErrorWrapper
+ RequestIDRetriever
+ OperationDeserializer
+ AddTimeOffsetMiddleware
+ RecordResponseTiming
+ RequestResponseLogger
diff --git a/service/securityhub/snapshot_test.go b/service/securityhub/snapshot_test.go
index c52aec41e0a..d009a125390 100644
--- a/service/securityhub/snapshot_test.go
+++ b/service/securityhub/snapshot_test.go
@@ -206,6 +206,18 @@ func TestCheckSnapshot_BatchUpdateFindings(t *testing.T) {
}
}
+func TestCheckSnapshot_BatchUpdateFindingsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.BatchUpdateFindingsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "BatchUpdateFindingsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_BatchUpdateStandardsControlAssociations(t *testing.T) {
svc := New(Options{})
_, err := svc.BatchUpdateStandardsControlAssociations(context.Background(), nil, func(o *Options) {
@@ -218,6 +230,18 @@ func TestCheckSnapshot_BatchUpdateStandardsControlAssociations(t *testing.T) {
}
}
+func TestCheckSnapshot_ConnectorRegistrationsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ConnectorRegistrationsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ConnectorRegistrationsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_CreateActionTarget(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateActionTarget(context.Background(), nil, func(o *Options) {
@@ -230,6 +254,18 @@ func TestCheckSnapshot_CreateActionTarget(t *testing.T) {
}
}
+func TestCheckSnapshot_CreateAggregatorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateAggregatorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateAggregatorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_CreateAutomationRule(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateAutomationRule(context.Background(), nil, func(o *Options) {
@@ -242,6 +278,18 @@ func TestCheckSnapshot_CreateAutomationRule(t *testing.T) {
}
}
+func TestCheckSnapshot_CreateAutomationRuleV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateAutomationRuleV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateAutomationRuleV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_CreateConfigurationPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateConfigurationPolicy(context.Background(), nil, func(o *Options) {
@@ -254,6 +302,18 @@ func TestCheckSnapshot_CreateConfigurationPolicy(t *testing.T) {
}
}
+func TestCheckSnapshot_CreateConnectorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateConnectorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateConnectorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_CreateFindingAggregator(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateFindingAggregator(context.Background(), nil, func(o *Options) {
@@ -290,6 +350,18 @@ func TestCheckSnapshot_CreateMembers(t *testing.T) {
}
}
+func TestCheckSnapshot_CreateTicketV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateTicketV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "CreateTicketV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DeclineInvitations(t *testing.T) {
svc := New(Options{})
_, err := svc.DeclineInvitations(context.Background(), nil, func(o *Options) {
@@ -314,6 +386,30 @@ func TestCheckSnapshot_DeleteActionTarget(t *testing.T) {
}
}
+func TestCheckSnapshot_DeleteAggregatorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteAggregatorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DeleteAggregatorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_DeleteAutomationRuleV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteAutomationRuleV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DeleteAutomationRuleV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DeleteConfigurationPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.DeleteConfigurationPolicy(context.Background(), nil, func(o *Options) {
@@ -326,6 +422,18 @@ func TestCheckSnapshot_DeleteConfigurationPolicy(t *testing.T) {
}
}
+func TestCheckSnapshot_DeleteConnectorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteConnectorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DeleteConnectorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DeleteFindingAggregator(t *testing.T) {
svc := New(Options{})
_, err := svc.DeleteFindingAggregator(context.Background(), nil, func(o *Options) {
@@ -422,6 +530,30 @@ func TestCheckSnapshot_DescribeProducts(t *testing.T) {
}
}
+func TestCheckSnapshot_DescribeProductsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DescribeProductsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DescribeProductsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_DescribeSecurityHubV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DescribeSecurityHubV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DescribeSecurityHubV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DescribeStandards(t *testing.T) {
svc := New(Options{})
_, err := svc.DescribeStandards(context.Background(), nil, func(o *Options) {
@@ -482,6 +614,18 @@ func TestCheckSnapshot_DisableSecurityHub(t *testing.T) {
}
}
+func TestCheckSnapshot_DisableSecurityHubV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DisableSecurityHubV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "DisableSecurityHubV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_DisassociateFromAdministratorAccount(t *testing.T) {
svc := New(Options{})
_, err := svc.DisassociateFromAdministratorAccount(context.Background(), nil, func(o *Options) {
@@ -554,6 +698,18 @@ func TestCheckSnapshot_EnableSecurityHub(t *testing.T) {
}
}
+func TestCheckSnapshot_EnableSecurityHubV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.EnableSecurityHubV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "EnableSecurityHubV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_GetAdministratorAccount(t *testing.T) {
svc := New(Options{})
_, err := svc.GetAdministratorAccount(context.Background(), nil, func(o *Options) {
@@ -566,6 +722,30 @@ func TestCheckSnapshot_GetAdministratorAccount(t *testing.T) {
}
}
+func TestCheckSnapshot_GetAggregatorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetAggregatorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetAggregatorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetAutomationRuleV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetAutomationRuleV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetAutomationRuleV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_GetConfigurationPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.GetConfigurationPolicy(context.Background(), nil, func(o *Options) {
@@ -590,6 +770,18 @@ func TestCheckSnapshot_GetConfigurationPolicyAssociation(t *testing.T) {
}
}
+func TestCheckSnapshot_GetConnectorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetConnectorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetConnectorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_GetEnabledStandards(t *testing.T) {
svc := New(Options{})
_, err := svc.GetEnabledStandards(context.Background(), nil, func(o *Options) {
@@ -638,6 +830,30 @@ func TestCheckSnapshot_GetFindings(t *testing.T) {
}
}
+func TestCheckSnapshot_GetFindingStatisticsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetFindingStatisticsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetFindingStatisticsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetFindingsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetFindingsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetFindingsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_GetInsightResults(t *testing.T) {
svc := New(Options{})
_, err := svc.GetInsightResults(context.Background(), nil, func(o *Options) {
@@ -698,6 +914,30 @@ func TestCheckSnapshot_GetMembers(t *testing.T) {
}
}
+func TestCheckSnapshot_GetResourcesStatisticsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetResourcesStatisticsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetResourcesStatisticsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_GetResourcesV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetResourcesV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "GetResourcesV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_GetSecurityControlDefinition(t *testing.T) {
svc := New(Options{})
_, err := svc.GetSecurityControlDefinition(context.Background(), nil, func(o *Options) {
@@ -722,6 +962,18 @@ func TestCheckSnapshot_InviteMembers(t *testing.T) {
}
}
+func TestCheckSnapshot_ListAggregatorsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListAggregatorsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListAggregatorsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_ListAutomationRules(t *testing.T) {
svc := New(Options{})
_, err := svc.ListAutomationRules(context.Background(), nil, func(o *Options) {
@@ -734,6 +986,18 @@ func TestCheckSnapshot_ListAutomationRules(t *testing.T) {
}
}
+func TestCheckSnapshot_ListAutomationRulesV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListAutomationRulesV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListAutomationRulesV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_ListConfigurationPolicies(t *testing.T) {
svc := New(Options{})
_, err := svc.ListConfigurationPolicies(context.Background(), nil, func(o *Options) {
@@ -758,6 +1022,18 @@ func TestCheckSnapshot_ListConfigurationPolicyAssociations(t *testing.T) {
}
}
+func TestCheckSnapshot_ListConnectorsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListConnectorsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "ListConnectorsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_ListEnabledProductsForImport(t *testing.T) {
svc := New(Options{})
_, err := svc.ListEnabledProductsForImport(context.Background(), nil, func(o *Options) {
@@ -914,6 +1190,30 @@ func TestCheckSnapshot_UpdateActionTarget(t *testing.T) {
}
}
+func TestCheckSnapshot_UpdateAggregatorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateAggregatorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "UpdateAggregatorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestCheckSnapshot_UpdateAutomationRuleV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateAutomationRuleV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "UpdateAutomationRuleV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_UpdateConfigurationPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateConfigurationPolicy(context.Background(), nil, func(o *Options) {
@@ -926,6 +1226,18 @@ func TestCheckSnapshot_UpdateConfigurationPolicy(t *testing.T) {
}
}
+func TestCheckSnapshot_UpdateConnectorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateConnectorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return testSnapshot(stack, "UpdateConnectorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestCheckSnapshot_UpdateFindingAggregator(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateFindingAggregator(context.Background(), nil, func(o *Options) {
@@ -1153,6 +1465,18 @@ func TestUpdateSnapshot_BatchUpdateFindings(t *testing.T) {
}
}
+func TestUpdateSnapshot_BatchUpdateFindingsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.BatchUpdateFindingsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "BatchUpdateFindingsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_BatchUpdateStandardsControlAssociations(t *testing.T) {
svc := New(Options{})
_, err := svc.BatchUpdateStandardsControlAssociations(context.Background(), nil, func(o *Options) {
@@ -1165,6 +1489,18 @@ func TestUpdateSnapshot_BatchUpdateStandardsControlAssociations(t *testing.T) {
}
}
+func TestUpdateSnapshot_ConnectorRegistrationsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ConnectorRegistrationsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ConnectorRegistrationsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_CreateActionTarget(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateActionTarget(context.Background(), nil, func(o *Options) {
@@ -1177,6 +1513,18 @@ func TestUpdateSnapshot_CreateActionTarget(t *testing.T) {
}
}
+func TestUpdateSnapshot_CreateAggregatorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateAggregatorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateAggregatorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_CreateAutomationRule(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateAutomationRule(context.Background(), nil, func(o *Options) {
@@ -1189,6 +1537,18 @@ func TestUpdateSnapshot_CreateAutomationRule(t *testing.T) {
}
}
+func TestUpdateSnapshot_CreateAutomationRuleV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateAutomationRuleV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateAutomationRuleV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_CreateConfigurationPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateConfigurationPolicy(context.Background(), nil, func(o *Options) {
@@ -1201,6 +1561,18 @@ func TestUpdateSnapshot_CreateConfigurationPolicy(t *testing.T) {
}
}
+func TestUpdateSnapshot_CreateConnectorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateConnectorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateConnectorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_CreateFindingAggregator(t *testing.T) {
svc := New(Options{})
_, err := svc.CreateFindingAggregator(context.Background(), nil, func(o *Options) {
@@ -1237,6 +1609,18 @@ func TestUpdateSnapshot_CreateMembers(t *testing.T) {
}
}
+func TestUpdateSnapshot_CreateTicketV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.CreateTicketV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "CreateTicketV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DeclineInvitations(t *testing.T) {
svc := New(Options{})
_, err := svc.DeclineInvitations(context.Background(), nil, func(o *Options) {
@@ -1261,6 +1645,30 @@ func TestUpdateSnapshot_DeleteActionTarget(t *testing.T) {
}
}
+func TestUpdateSnapshot_DeleteAggregatorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteAggregatorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DeleteAggregatorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_DeleteAutomationRuleV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteAutomationRuleV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DeleteAutomationRuleV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DeleteConfigurationPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.DeleteConfigurationPolicy(context.Background(), nil, func(o *Options) {
@@ -1273,6 +1681,18 @@ func TestUpdateSnapshot_DeleteConfigurationPolicy(t *testing.T) {
}
}
+func TestUpdateSnapshot_DeleteConnectorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DeleteConnectorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DeleteConnectorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DeleteFindingAggregator(t *testing.T) {
svc := New(Options{})
_, err := svc.DeleteFindingAggregator(context.Background(), nil, func(o *Options) {
@@ -1369,6 +1789,30 @@ func TestUpdateSnapshot_DescribeProducts(t *testing.T) {
}
}
+func TestUpdateSnapshot_DescribeProductsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DescribeProductsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DescribeProductsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_DescribeSecurityHubV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DescribeSecurityHubV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DescribeSecurityHubV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DescribeStandards(t *testing.T) {
svc := New(Options{})
_, err := svc.DescribeStandards(context.Background(), nil, func(o *Options) {
@@ -1429,6 +1873,18 @@ func TestUpdateSnapshot_DisableSecurityHub(t *testing.T) {
}
}
+func TestUpdateSnapshot_DisableSecurityHubV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.DisableSecurityHubV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "DisableSecurityHubV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_DisassociateFromAdministratorAccount(t *testing.T) {
svc := New(Options{})
_, err := svc.DisassociateFromAdministratorAccount(context.Background(), nil, func(o *Options) {
@@ -1501,6 +1957,18 @@ func TestUpdateSnapshot_EnableSecurityHub(t *testing.T) {
}
}
+func TestUpdateSnapshot_EnableSecurityHubV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.EnableSecurityHubV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "EnableSecurityHubV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_GetAdministratorAccount(t *testing.T) {
svc := New(Options{})
_, err := svc.GetAdministratorAccount(context.Background(), nil, func(o *Options) {
@@ -1513,6 +1981,30 @@ func TestUpdateSnapshot_GetAdministratorAccount(t *testing.T) {
}
}
+func TestUpdateSnapshot_GetAggregatorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetAggregatorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetAggregatorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetAutomationRuleV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetAutomationRuleV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetAutomationRuleV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_GetConfigurationPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.GetConfigurationPolicy(context.Background(), nil, func(o *Options) {
@@ -1537,6 +2029,18 @@ func TestUpdateSnapshot_GetConfigurationPolicyAssociation(t *testing.T) {
}
}
+func TestUpdateSnapshot_GetConnectorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetConnectorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetConnectorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_GetEnabledStandards(t *testing.T) {
svc := New(Options{})
_, err := svc.GetEnabledStandards(context.Background(), nil, func(o *Options) {
@@ -1585,6 +2089,30 @@ func TestUpdateSnapshot_GetFindings(t *testing.T) {
}
}
+func TestUpdateSnapshot_GetFindingStatisticsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetFindingStatisticsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetFindingStatisticsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetFindingsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetFindingsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetFindingsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_GetInsightResults(t *testing.T) {
svc := New(Options{})
_, err := svc.GetInsightResults(context.Background(), nil, func(o *Options) {
@@ -1645,6 +2173,30 @@ func TestUpdateSnapshot_GetMembers(t *testing.T) {
}
}
+func TestUpdateSnapshot_GetResourcesStatisticsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetResourcesStatisticsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetResourcesStatisticsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_GetResourcesV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.GetResourcesV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "GetResourcesV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_GetSecurityControlDefinition(t *testing.T) {
svc := New(Options{})
_, err := svc.GetSecurityControlDefinition(context.Background(), nil, func(o *Options) {
@@ -1669,6 +2221,18 @@ func TestUpdateSnapshot_InviteMembers(t *testing.T) {
}
}
+func TestUpdateSnapshot_ListAggregatorsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListAggregatorsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListAggregatorsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_ListAutomationRules(t *testing.T) {
svc := New(Options{})
_, err := svc.ListAutomationRules(context.Background(), nil, func(o *Options) {
@@ -1681,6 +2245,18 @@ func TestUpdateSnapshot_ListAutomationRules(t *testing.T) {
}
}
+func TestUpdateSnapshot_ListAutomationRulesV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListAutomationRulesV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListAutomationRulesV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_ListConfigurationPolicies(t *testing.T) {
svc := New(Options{})
_, err := svc.ListConfigurationPolicies(context.Background(), nil, func(o *Options) {
@@ -1705,6 +2281,18 @@ func TestUpdateSnapshot_ListConfigurationPolicyAssociations(t *testing.T) {
}
}
+func TestUpdateSnapshot_ListConnectorsV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.ListConnectorsV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "ListConnectorsV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_ListEnabledProductsForImport(t *testing.T) {
svc := New(Options{})
_, err := svc.ListEnabledProductsForImport(context.Background(), nil, func(o *Options) {
@@ -1861,6 +2449,30 @@ func TestUpdateSnapshot_UpdateActionTarget(t *testing.T) {
}
}
+func TestUpdateSnapshot_UpdateAggregatorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateAggregatorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "UpdateAggregatorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
+func TestUpdateSnapshot_UpdateAutomationRuleV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateAutomationRuleV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "UpdateAutomationRuleV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_UpdateConfigurationPolicy(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateConfigurationPolicy(context.Background(), nil, func(o *Options) {
@@ -1873,6 +2485,18 @@ func TestUpdateSnapshot_UpdateConfigurationPolicy(t *testing.T) {
}
}
+func TestUpdateSnapshot_UpdateConnectorV2(t *testing.T) {
+ svc := New(Options{})
+ _, err := svc.UpdateConnectorV2(context.Background(), nil, func(o *Options) {
+ o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
+ return updateSnapshot(stack, "UpdateConnectorV2")
+ })
+ })
+ if _, ok := err.(snapshotOK); !ok && err != nil {
+ t.Fatal(err)
+ }
+}
+
func TestUpdateSnapshot_UpdateFindingAggregator(t *testing.T) {
svc := New(Options{})
_, err := svc.UpdateFindingAggregator(context.Background(), nil, func(o *Options) {
diff --git a/service/securityhub/sra_operation_order_test.go b/service/securityhub/sra_operation_order_test.go
index 9d856681d9b..4a7d9c23134 100644
--- a/service/securityhub/sra_operation_order_test.go
+++ b/service/securityhub/sra_operation_order_test.go
@@ -439,6 +439,41 @@ func TestOpBatchUpdateFindingsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpBatchUpdateFindingsV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.BatchUpdateFindingsV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpBatchUpdateStandardsControlAssociationsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -456,7 +491,777 @@ func TestOpBatchUpdateStandardsControlAssociationsSRAOperationOrder(t *testing.T
captureMiddlewareStack(&captured),
},
})
- _, err := svc.BatchUpdateStandardsControlAssociations(context.Background(), nil)
+ _, err := svc.BatchUpdateStandardsControlAssociations(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpConnectorRegistrationsV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.ConnectorRegistrationsV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateActionTargetSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateActionTarget(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateAggregatorV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateAggregatorV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateAutomationRuleSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateAutomationRule(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateAutomationRuleV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateAutomationRuleV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateConfigurationPolicySRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateConfigurationPolicy(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateConnectorV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateConnectorV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateFindingAggregatorSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateFindingAggregator(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateInsightSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateInsight(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateMembersSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateMembers(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpCreateTicketV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.CreateTicketV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeclineInvitationsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeclineInvitations(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteActionTargetSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteActionTarget(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteAggregatorV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteAggregatorV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteAutomationRuleV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteAutomationRuleV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteConfigurationPolicySRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteConfigurationPolicy(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteConnectorV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteConnectorV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteFindingAggregatorSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteFindingAggregator(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteInsightSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteInsight(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteInvitationsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteInvitations(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDeleteMembersSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DeleteMembers(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpDescribeActionTargetsSRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.DescribeActionTargets(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -474,7 +1279,7 @@ func TestOpBatchUpdateStandardsControlAssociationsSRAOperationOrder(t *testing.T
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpCreateActionTargetSRAOperationOrder(t *testing.T) {
+func TestOpDescribeHubSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -491,7 +1296,7 @@ func TestOpCreateActionTargetSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.CreateActionTarget(context.Background(), nil)
+ _, err := svc.DescribeHub(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -509,7 +1314,7 @@ func TestOpCreateActionTargetSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpCreateAutomationRuleSRAOperationOrder(t *testing.T) {
+func TestOpDescribeOrganizationConfigurationSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -526,7 +1331,7 @@ func TestOpCreateAutomationRuleSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.CreateAutomationRule(context.Background(), nil)
+ _, err := svc.DescribeOrganizationConfiguration(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -544,7 +1349,7 @@ func TestOpCreateAutomationRuleSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpCreateConfigurationPolicySRAOperationOrder(t *testing.T) {
+func TestOpDescribeProductsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -561,7 +1366,7 @@ func TestOpCreateConfigurationPolicySRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.CreateConfigurationPolicy(context.Background(), nil)
+ _, err := svc.DescribeProducts(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -579,7 +1384,7 @@ func TestOpCreateConfigurationPolicySRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpCreateFindingAggregatorSRAOperationOrder(t *testing.T) {
+func TestOpDescribeProductsV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -596,7 +1401,7 @@ func TestOpCreateFindingAggregatorSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.CreateFindingAggregator(context.Background(), nil)
+ _, err := svc.DescribeProductsV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -614,7 +1419,7 @@ func TestOpCreateFindingAggregatorSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpCreateInsightSRAOperationOrder(t *testing.T) {
+func TestOpDescribeSecurityHubV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -631,7 +1436,7 @@ func TestOpCreateInsightSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.CreateInsight(context.Background(), nil)
+ _, err := svc.DescribeSecurityHubV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -649,7 +1454,7 @@ func TestOpCreateInsightSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpCreateMembersSRAOperationOrder(t *testing.T) {
+func TestOpDescribeStandardsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -666,7 +1471,7 @@ func TestOpCreateMembersSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.CreateMembers(context.Background(), nil)
+ _, err := svc.DescribeStandards(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -684,7 +1489,7 @@ func TestOpCreateMembersSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDeclineInvitationsSRAOperationOrder(t *testing.T) {
+func TestOpDescribeStandardsControlsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -701,7 +1506,7 @@ func TestOpDeclineInvitationsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DeclineInvitations(context.Background(), nil)
+ _, err := svc.DescribeStandardsControls(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -719,7 +1524,7 @@ func TestOpDeclineInvitationsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDeleteActionTargetSRAOperationOrder(t *testing.T) {
+func TestOpDisableImportFindingsForProductSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -736,7 +1541,7 @@ func TestOpDeleteActionTargetSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DeleteActionTarget(context.Background(), nil)
+ _, err := svc.DisableImportFindingsForProduct(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -754,7 +1559,7 @@ func TestOpDeleteActionTargetSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDeleteConfigurationPolicySRAOperationOrder(t *testing.T) {
+func TestOpDisableOrganizationAdminAccountSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -771,7 +1576,7 @@ func TestOpDeleteConfigurationPolicySRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DeleteConfigurationPolicy(context.Background(), nil)
+ _, err := svc.DisableOrganizationAdminAccount(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -789,7 +1594,7 @@ func TestOpDeleteConfigurationPolicySRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDeleteFindingAggregatorSRAOperationOrder(t *testing.T) {
+func TestOpDisableSecurityHubSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -806,7 +1611,7 @@ func TestOpDeleteFindingAggregatorSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DeleteFindingAggregator(context.Background(), nil)
+ _, err := svc.DisableSecurityHub(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -824,7 +1629,7 @@ func TestOpDeleteFindingAggregatorSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDeleteInsightSRAOperationOrder(t *testing.T) {
+func TestOpDisableSecurityHubV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -841,7 +1646,7 @@ func TestOpDeleteInsightSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DeleteInsight(context.Background(), nil)
+ _, err := svc.DisableSecurityHubV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -859,7 +1664,7 @@ func TestOpDeleteInsightSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDeleteInvitationsSRAOperationOrder(t *testing.T) {
+func TestOpDisassociateFromAdministratorAccountSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -876,7 +1681,7 @@ func TestOpDeleteInvitationsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DeleteInvitations(context.Background(), nil)
+ _, err := svc.DisassociateFromAdministratorAccount(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -894,7 +1699,7 @@ func TestOpDeleteInvitationsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDeleteMembersSRAOperationOrder(t *testing.T) {
+func TestOpDisassociateFromMasterAccountSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -911,7 +1716,7 @@ func TestOpDeleteMembersSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DeleteMembers(context.Background(), nil)
+ _, err := svc.DisassociateFromMasterAccount(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -929,7 +1734,7 @@ func TestOpDeleteMembersSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDescribeActionTargetsSRAOperationOrder(t *testing.T) {
+func TestOpDisassociateMembersSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -946,7 +1751,7 @@ func TestOpDescribeActionTargetsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DescribeActionTargets(context.Background(), nil)
+ _, err := svc.DisassociateMembers(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -964,7 +1769,7 @@ func TestOpDescribeActionTargetsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDescribeHubSRAOperationOrder(t *testing.T) {
+func TestOpEnableImportFindingsForProductSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -981,7 +1786,7 @@ func TestOpDescribeHubSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DescribeHub(context.Background(), nil)
+ _, err := svc.EnableImportFindingsForProduct(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -999,7 +1804,7 @@ func TestOpDescribeHubSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDescribeOrganizationConfigurationSRAOperationOrder(t *testing.T) {
+func TestOpEnableOrganizationAdminAccountSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1016,7 +1821,7 @@ func TestOpDescribeOrganizationConfigurationSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DescribeOrganizationConfiguration(context.Background(), nil)
+ _, err := svc.EnableOrganizationAdminAccount(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1034,7 +1839,7 @@ func TestOpDescribeOrganizationConfigurationSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDescribeProductsSRAOperationOrder(t *testing.T) {
+func TestOpEnableSecurityHubSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1051,7 +1856,7 @@ func TestOpDescribeProductsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DescribeProducts(context.Background(), nil)
+ _, err := svc.EnableSecurityHub(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1069,7 +1874,7 @@ func TestOpDescribeProductsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDescribeStandardsSRAOperationOrder(t *testing.T) {
+func TestOpEnableSecurityHubV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1086,7 +1891,7 @@ func TestOpDescribeStandardsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DescribeStandards(context.Background(), nil)
+ _, err := svc.EnableSecurityHubV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1104,7 +1909,7 @@ func TestOpDescribeStandardsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDescribeStandardsControlsSRAOperationOrder(t *testing.T) {
+func TestOpGetAdministratorAccountSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1121,7 +1926,7 @@ func TestOpDescribeStandardsControlsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DescribeStandardsControls(context.Background(), nil)
+ _, err := svc.GetAdministratorAccount(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1139,7 +1944,7 @@ func TestOpDescribeStandardsControlsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDisableImportFindingsForProductSRAOperationOrder(t *testing.T) {
+func TestOpGetAggregatorV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1156,7 +1961,7 @@ func TestOpDisableImportFindingsForProductSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DisableImportFindingsForProduct(context.Background(), nil)
+ _, err := svc.GetAggregatorV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1174,7 +1979,7 @@ func TestOpDisableImportFindingsForProductSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDisableOrganizationAdminAccountSRAOperationOrder(t *testing.T) {
+func TestOpGetAutomationRuleV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1191,7 +1996,7 @@ func TestOpDisableOrganizationAdminAccountSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DisableOrganizationAdminAccount(context.Background(), nil)
+ _, err := svc.GetAutomationRuleV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1209,7 +2014,7 @@ func TestOpDisableOrganizationAdminAccountSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDisableSecurityHubSRAOperationOrder(t *testing.T) {
+func TestOpGetConfigurationPolicySRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1226,7 +2031,7 @@ func TestOpDisableSecurityHubSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DisableSecurityHub(context.Background(), nil)
+ _, err := svc.GetConfigurationPolicy(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1244,7 +2049,7 @@ func TestOpDisableSecurityHubSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDisassociateFromAdministratorAccountSRAOperationOrder(t *testing.T) {
+func TestOpGetConfigurationPolicyAssociationSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1261,7 +2066,7 @@ func TestOpDisassociateFromAdministratorAccountSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DisassociateFromAdministratorAccount(context.Background(), nil)
+ _, err := svc.GetConfigurationPolicyAssociation(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1279,7 +2084,7 @@ func TestOpDisassociateFromAdministratorAccountSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDisassociateFromMasterAccountSRAOperationOrder(t *testing.T) {
+func TestOpGetConnectorV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1296,7 +2101,7 @@ func TestOpDisassociateFromMasterAccountSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DisassociateFromMasterAccount(context.Background(), nil)
+ _, err := svc.GetConnectorV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1314,7 +2119,7 @@ func TestOpDisassociateFromMasterAccountSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpDisassociateMembersSRAOperationOrder(t *testing.T) {
+func TestOpGetEnabledStandardsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1331,7 +2136,7 @@ func TestOpDisassociateMembersSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.DisassociateMembers(context.Background(), nil)
+ _, err := svc.GetEnabledStandards(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1349,7 +2154,7 @@ func TestOpDisassociateMembersSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpEnableImportFindingsForProductSRAOperationOrder(t *testing.T) {
+func TestOpGetFindingAggregatorSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1366,7 +2171,7 @@ func TestOpEnableImportFindingsForProductSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.EnableImportFindingsForProduct(context.Background(), nil)
+ _, err := svc.GetFindingAggregator(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1384,7 +2189,7 @@ func TestOpEnableImportFindingsForProductSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpEnableOrganizationAdminAccountSRAOperationOrder(t *testing.T) {
+func TestOpGetFindingHistorySRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1401,7 +2206,7 @@ func TestOpEnableOrganizationAdminAccountSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.EnableOrganizationAdminAccount(context.Background(), nil)
+ _, err := svc.GetFindingHistory(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1419,7 +2224,7 @@ func TestOpEnableOrganizationAdminAccountSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpEnableSecurityHubSRAOperationOrder(t *testing.T) {
+func TestOpGetFindingsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1436,7 +2241,7 @@ func TestOpEnableSecurityHubSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.EnableSecurityHub(context.Background(), nil)
+ _, err := svc.GetFindings(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1454,7 +2259,7 @@ func TestOpEnableSecurityHubSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetAdministratorAccountSRAOperationOrder(t *testing.T) {
+func TestOpGetFindingStatisticsV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1471,7 +2276,7 @@ func TestOpGetAdministratorAccountSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetAdministratorAccount(context.Background(), nil)
+ _, err := svc.GetFindingStatisticsV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1489,7 +2294,7 @@ func TestOpGetAdministratorAccountSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetConfigurationPolicySRAOperationOrder(t *testing.T) {
+func TestOpGetFindingsV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1506,7 +2311,7 @@ func TestOpGetConfigurationPolicySRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetConfigurationPolicy(context.Background(), nil)
+ _, err := svc.GetFindingsV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1524,7 +2329,7 @@ func TestOpGetConfigurationPolicySRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetConfigurationPolicyAssociationSRAOperationOrder(t *testing.T) {
+func TestOpGetInsightResultsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1541,7 +2346,7 @@ func TestOpGetConfigurationPolicyAssociationSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetConfigurationPolicyAssociation(context.Background(), nil)
+ _, err := svc.GetInsightResults(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1559,7 +2364,7 @@ func TestOpGetConfigurationPolicyAssociationSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetEnabledStandardsSRAOperationOrder(t *testing.T) {
+func TestOpGetInsightsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1576,7 +2381,7 @@ func TestOpGetEnabledStandardsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetEnabledStandards(context.Background(), nil)
+ _, err := svc.GetInsights(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1594,7 +2399,7 @@ func TestOpGetEnabledStandardsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetFindingAggregatorSRAOperationOrder(t *testing.T) {
+func TestOpGetInvitationsCountSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1611,7 +2416,7 @@ func TestOpGetFindingAggregatorSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetFindingAggregator(context.Background(), nil)
+ _, err := svc.GetInvitationsCount(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1629,7 +2434,7 @@ func TestOpGetFindingAggregatorSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetFindingHistorySRAOperationOrder(t *testing.T) {
+func TestOpGetMasterAccountSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1646,7 +2451,7 @@ func TestOpGetFindingHistorySRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetFindingHistory(context.Background(), nil)
+ _, err := svc.GetMasterAccount(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1664,7 +2469,7 @@ func TestOpGetFindingHistorySRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetFindingsSRAOperationOrder(t *testing.T) {
+func TestOpGetMembersSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1681,7 +2486,7 @@ func TestOpGetFindingsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetFindings(context.Background(), nil)
+ _, err := svc.GetMembers(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1699,7 +2504,7 @@ func TestOpGetFindingsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetInsightResultsSRAOperationOrder(t *testing.T) {
+func TestOpGetResourcesStatisticsV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1716,7 +2521,7 @@ func TestOpGetInsightResultsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetInsightResults(context.Background(), nil)
+ _, err := svc.GetResourcesStatisticsV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1734,7 +2539,7 @@ func TestOpGetInsightResultsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetInsightsSRAOperationOrder(t *testing.T) {
+func TestOpGetResourcesV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1751,7 +2556,7 @@ func TestOpGetInsightsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetInsights(context.Background(), nil)
+ _, err := svc.GetResourcesV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1769,7 +2574,7 @@ func TestOpGetInsightsSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetInvitationsCountSRAOperationOrder(t *testing.T) {
+func TestOpGetSecurityControlDefinitionSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1786,7 +2591,7 @@ func TestOpGetInvitationsCountSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetInvitationsCount(context.Background(), nil)
+ _, err := svc.GetSecurityControlDefinition(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1804,7 +2609,7 @@ func TestOpGetInvitationsCountSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetMasterAccountSRAOperationOrder(t *testing.T) {
+func TestOpInviteMembersSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1821,7 +2626,7 @@ func TestOpGetMasterAccountSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetMasterAccount(context.Background(), nil)
+ _, err := svc.InviteMembers(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1839,7 +2644,7 @@ func TestOpGetMasterAccountSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetMembersSRAOperationOrder(t *testing.T) {
+func TestOpListAggregatorsV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1856,7 +2661,7 @@ func TestOpGetMembersSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetMembers(context.Background(), nil)
+ _, err := svc.ListAggregatorsV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1874,7 +2679,7 @@ func TestOpGetMembersSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpGetSecurityControlDefinitionSRAOperationOrder(t *testing.T) {
+func TestOpListAutomationRulesSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1891,7 +2696,7 @@ func TestOpGetSecurityControlDefinitionSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.GetSecurityControlDefinition(context.Background(), nil)
+ _, err := svc.ListAutomationRules(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1909,7 +2714,7 @@ func TestOpGetSecurityControlDefinitionSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpInviteMembersSRAOperationOrder(t *testing.T) {
+func TestOpListAutomationRulesV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1926,7 +2731,7 @@ func TestOpInviteMembersSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.InviteMembers(context.Background(), nil)
+ _, err := svc.ListAutomationRulesV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1944,7 +2749,7 @@ func TestOpInviteMembersSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpListAutomationRulesSRAOperationOrder(t *testing.T) {
+func TestOpListConfigurationPoliciesSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1961,7 +2766,7 @@ func TestOpListAutomationRulesSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.ListAutomationRules(context.Background(), nil)
+ _, err := svc.ListConfigurationPolicies(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -1979,7 +2784,7 @@ func TestOpListAutomationRulesSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpListConfigurationPoliciesSRAOperationOrder(t *testing.T) {
+func TestOpListConfigurationPolicyAssociationsSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -1996,7 +2801,7 @@ func TestOpListConfigurationPoliciesSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.ListConfigurationPolicies(context.Background(), nil)
+ _, err := svc.ListConfigurationPolicyAssociations(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -2014,7 +2819,7 @@ func TestOpListConfigurationPoliciesSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
-func TestOpListConfigurationPolicyAssociationsSRAOperationOrder(t *testing.T) {
+func TestOpListConnectorsV2SRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
"Retry",
@@ -2031,7 +2836,7 @@ func TestOpListConfigurationPolicyAssociationsSRAOperationOrder(t *testing.T) {
captureMiddlewareStack(&captured),
},
})
- _, err := svc.ListConfigurationPolicyAssociations(context.Background(), nil)
+ _, err := svc.ListConnectorsV2(context.Background(), nil)
if err != nil && !errors.Is(err, errTestReturnEarly) {
t.Fatalf("unexpected error: %v", err)
}
@@ -2504,6 +3309,76 @@ func TestOpUpdateActionTargetSRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpUpdateAggregatorV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.UpdateAggregatorV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
+func TestOpUpdateAutomationRuleV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.UpdateAutomationRuleV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpUpdateConfigurationPolicySRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
@@ -2539,6 +3414,41 @@ func TestOpUpdateConfigurationPolicySRAOperationOrder(t *testing.T) {
t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
}
}
+func TestOpUpdateConnectorV2SRAOperationOrder(t *testing.T) {
+ expect := []string{
+ "OperationSerializer",
+ "Retry",
+ "ResolveAuthScheme",
+ "GetIdentity",
+ "ResolveEndpointV2",
+ "Signing",
+ "OperationDeserializer",
+ }
+
+ var captured middleware.Stack
+ svc := New(Options{
+ APIOptions: []func(*middleware.Stack) error{
+ captureMiddlewareStack(&captured),
+ },
+ })
+ _, err := svc.UpdateConnectorV2(context.Background(), nil)
+ if err != nil && !errors.Is(err, errTestReturnEarly) {
+ t.Fatalf("unexpected error: %v", err)
+ }
+
+ var actual, all []string
+ for _, step := range strings.Split(captured.String(), "\n") {
+ trimmed := strings.TrimSpace(step)
+ all = append(all, trimmed)
+ if slices.Contains(expect, trimmed) {
+ actual = append(actual, trimmed)
+ }
+ }
+
+ if !slices.Equal(expect, actual) {
+ t.Errorf("order mismatch:\nexpect: %v\nactual: %v\nall: %v", expect, actual, all)
+ }
+}
func TestOpUpdateFindingAggregatorSRAOperationOrder(t *testing.T) {
expect := []string{
"OperationSerializer",
diff --git a/service/securityhub/types/enums.go b/service/securityhub/types/enums.go
index 20e50e997d7..d37785e8ab4 100644
--- a/service/securityhub/types/enums.go
+++ b/service/securityhub/types/enums.go
@@ -40,6 +40,25 @@ func (AdminStatus) Values() []AdminStatus {
}
}
+type AllowedOperators string
+
+// Enum values for AllowedOperators
+const (
+ AllowedOperatorsAnd AllowedOperators = "AND"
+ AllowedOperatorsOr AllowedOperators = "OR"
+)
+
+// Values returns all known values for AllowedOperators. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (AllowedOperators) Values() []AllowedOperators {
+ return []AllowedOperators{
+ "AND",
+ "OR",
+ }
+}
+
type AssociationStatus string
// Enum values for AssociationStatus
@@ -114,6 +133,25 @@ func (AutomationRulesActionType) Values() []AutomationRulesActionType {
}
}
+type AutomationRulesActionTypeV2 string
+
+// Enum values for AutomationRulesActionTypeV2
+const (
+ AutomationRulesActionTypeV2FindingFieldsUpdate AutomationRulesActionTypeV2 = "FINDING_FIELDS_UPDATE"
+ AutomationRulesActionTypeV2ExternalIntegration AutomationRulesActionTypeV2 = "EXTERNAL_INTEGRATION"
+)
+
+// Values returns all known values for AutomationRulesActionTypeV2. Note that this
+// can be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (AutomationRulesActionTypeV2) Values() []AutomationRulesActionTypeV2 {
+ return []AutomationRulesActionTypeV2{
+ "FINDING_FIELDS_UPDATE",
+ "EXTERNAL_INTEGRATION",
+ }
+}
+
type AwsIamAccessKeyStatus string
// Enum values for AwsIamAccessKeyStatus
@@ -153,6 +191,30 @@ func (AwsS3BucketNotificationConfigurationS3KeyFilterRuleName) Values() []AwsS3B
}
}
+type BatchUpdateFindingsV2UnprocessedFindingErrorCode string
+
+// Enum values for BatchUpdateFindingsV2UnprocessedFindingErrorCode
+const (
+ BatchUpdateFindingsV2UnprocessedFindingErrorCodeResourceNotFoundException BatchUpdateFindingsV2UnprocessedFindingErrorCode = "ResourceNotFoundException"
+ BatchUpdateFindingsV2UnprocessedFindingErrorCodeValidationException BatchUpdateFindingsV2UnprocessedFindingErrorCode = "ValidationException"
+ BatchUpdateFindingsV2UnprocessedFindingErrorCodeInternalServerException BatchUpdateFindingsV2UnprocessedFindingErrorCode = "InternalServerException"
+ BatchUpdateFindingsV2UnprocessedFindingErrorCodeConflictException BatchUpdateFindingsV2UnprocessedFindingErrorCode = "ConflictException"
+)
+
+// Values returns all known values for
+// BatchUpdateFindingsV2UnprocessedFindingErrorCode. Note that this can be expanded
+// in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (BatchUpdateFindingsV2UnprocessedFindingErrorCode) Values() []BatchUpdateFindingsV2UnprocessedFindingErrorCode {
+ return []BatchUpdateFindingsV2UnprocessedFindingErrorCode{
+ "ResourceNotFoundException",
+ "ValidationException",
+ "InternalServerException",
+ "ConflictException",
+ }
+}
+
type ComplianceStatus string
// Enum values for ComplianceStatus
@@ -217,6 +279,67 @@ func (ConnectionDirection) Values() []ConnectionDirection {
}
}
+type ConnectorAuthStatus string
+
+// Enum values for ConnectorAuthStatus
+const (
+ ConnectorAuthStatusActive ConnectorAuthStatus = "ACTIVE"
+ ConnectorAuthStatusFailed ConnectorAuthStatus = "FAILED"
+)
+
+// Values returns all known values for ConnectorAuthStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ConnectorAuthStatus) Values() []ConnectorAuthStatus {
+ return []ConnectorAuthStatus{
+ "ACTIVE",
+ "FAILED",
+ }
+}
+
+type ConnectorProviderName string
+
+// Enum values for ConnectorProviderName
+const (
+ ConnectorProviderNameJiraCloud ConnectorProviderName = "JIRA_CLOUD"
+ ConnectorProviderNameServicenow ConnectorProviderName = "SERVICENOW"
+)
+
+// Values returns all known values for ConnectorProviderName. Note that this can
+// be expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ConnectorProviderName) Values() []ConnectorProviderName {
+ return []ConnectorProviderName{
+ "JIRA_CLOUD",
+ "SERVICENOW",
+ }
+}
+
+type ConnectorStatus string
+
+// Enum values for ConnectorStatus
+const (
+ ConnectorStatusConnected ConnectorStatus = "CONNECTED"
+ ConnectorStatusFailedToConnect ConnectorStatus = "FAILED_TO_CONNECT"
+ ConnectorStatusPendingConfiguration ConnectorStatus = "PENDING_CONFIGURATION"
+ ConnectorStatusPendingAuthorization ConnectorStatus = "PENDING_AUTHORIZATION"
+)
+
+// Values returns all known values for ConnectorStatus. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ConnectorStatus) Values() []ConnectorStatus {
+ return []ConnectorStatus{
+ "CONNECTED",
+ "FAILED_TO_CONNECT",
+ "PENDING_CONFIGURATION",
+ "PENDING_AUTHORIZATION",
+ }
+}
+
type ControlFindingGenerator string
// Enum values for ControlFindingGenerator
@@ -292,6 +415,55 @@ func (FindingHistoryUpdateSourceType) Values() []FindingHistoryUpdateSourceType
}
}
+type GroupByField string
+
+// Enum values for GroupByField
+const (
+ GroupByFieldActivityName GroupByField = "activity_name"
+ GroupByFieldCloudAccountUid GroupByField = "cloud.account.uid"
+ GroupByFieldCloudProvider GroupByField = "cloud.provider"
+ GroupByFieldCloudRegion GroupByField = "cloud.region"
+ GroupByFieldComplianceAssessmentsName GroupByField = "compliance.assessments.name"
+ GroupByFieldComplianceStatus GroupByField = "compliance.status"
+ GroupByFieldComplianceControl GroupByField = "compliance.control"
+ GroupByFieldFindingInfoTitle GroupByField = "finding_info.title"
+ GroupByFieldFindingInfoTypes GroupByField = "finding_info.types"
+ GroupByFieldMetadataProductName GroupByField = "metadata.product.name"
+ GroupByFieldMetadataProductUid GroupByField = "metadata.product.uid"
+ GroupByFieldResourcesType GroupByField = "resources.type"
+ GroupByFieldResourcesUid GroupByField = "resources.uid"
+ GroupByFieldSeverity GroupByField = "severity"
+ GroupByFieldStatus GroupByField = "status"
+ GroupByFieldVulnerabilitiesFixCoverage GroupByField = "vulnerabilities.fix_coverage"
+ GroupByFieldClassName GroupByField = "class_name"
+)
+
+// Values returns all known values for GroupByField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (GroupByField) Values() []GroupByField {
+ return []GroupByField{
+ "activity_name",
+ "cloud.account.uid",
+ "cloud.provider",
+ "cloud.region",
+ "compliance.assessments.name",
+ "compliance.status",
+ "compliance.control",
+ "finding_info.title",
+ "finding_info.types",
+ "metadata.product.name",
+ "metadata.product.uid",
+ "resources.type",
+ "resources.uid",
+ "severity",
+ "status",
+ "vulnerabilities.fix_coverage",
+ "class_name",
+ }
+}
+
type IntegrationType string
// Enum values for IntegrationType
@@ -313,6 +485,27 @@ func (IntegrationType) Values() []IntegrationType {
}
}
+type IntegrationV2Type string
+
+// Enum values for IntegrationV2Type
+const (
+ IntegrationV2TypeSendFindingsToSecurityHub IntegrationV2Type = "SEND_FINDINGS_TO_SECURITY_HUB"
+ IntegrationV2TypeReceiveFindingsFromSecurityHub IntegrationV2Type = "RECEIVE_FINDINGS_FROM_SECURITY_HUB"
+ IntegrationV2TypeUpdateFindingsInSecurityHub IntegrationV2Type = "UPDATE_FINDINGS_IN_SECURITY_HUB"
+)
+
+// Values returns all known values for IntegrationV2Type. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (IntegrationV2Type) Values() []IntegrationV2Type {
+ return []IntegrationV2Type{
+ "SEND_FINDINGS_TO_SECURITY_HUB",
+ "RECEIVE_FINDINGS_FROM_SECURITY_HUB",
+ "UPDATE_FINDINGS_IN_SECURITY_HUB",
+ }
+}
+
type MalwareState string
// Enum values for MalwareState
@@ -421,6 +614,173 @@ func (NetworkDirection) Values() []NetworkDirection {
}
}
+type OcsfBooleanField string
+
+// Enum values for OcsfBooleanField
+const (
+ OcsfBooleanFieldComplianceAssessmentsMeetsCriteria OcsfBooleanField = "compliance.assessments.meets_criteria"
+ OcsfBooleanFieldVulnerabilitiesIsExploitAvailable OcsfBooleanField = "vulnerabilities.is_exploit_available"
+ OcsfBooleanFieldVulnerabilitiesIsFixAvailable OcsfBooleanField = "vulnerabilities.is_fix_available"
+)
+
+// Values returns all known values for OcsfBooleanField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (OcsfBooleanField) Values() []OcsfBooleanField {
+ return []OcsfBooleanField{
+ "compliance.assessments.meets_criteria",
+ "vulnerabilities.is_exploit_available",
+ "vulnerabilities.is_fix_available",
+ }
+}
+
+type OcsfDateField string
+
+// Enum values for OcsfDateField
+const (
+ OcsfDateFieldFindingInfoCreatedTimeDt OcsfDateField = "finding_info.created_time_dt"
+ OcsfDateFieldFindingInfoFirstSeenTimeDt OcsfDateField = "finding_info.first_seen_time_dt"
+ OcsfDateFieldFindingInfoLastSeenTimeDt OcsfDateField = "finding_info.last_seen_time_dt"
+ OcsfDateFieldFindingInfoModifiedTimeDt OcsfDateField = "finding_info.modified_time_dt"
+)
+
+// Values returns all known values for OcsfDateField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (OcsfDateField) Values() []OcsfDateField {
+ return []OcsfDateField{
+ "finding_info.created_time_dt",
+ "finding_info.first_seen_time_dt",
+ "finding_info.last_seen_time_dt",
+ "finding_info.modified_time_dt",
+ }
+}
+
+type OcsfMapField string
+
+// Enum values for OcsfMapField
+const (
+ OcsfMapFieldResourcesTags OcsfMapField = "resources.tags"
+)
+
+// Values returns all known values for OcsfMapField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (OcsfMapField) Values() []OcsfMapField {
+ return []OcsfMapField{
+ "resources.tags",
+ }
+}
+
+type OcsfNumberField string
+
+// Enum values for OcsfNumberField
+const (
+ OcsfNumberFieldActivityId OcsfNumberField = "activity_id"
+ OcsfNumberFieldComplianceStatusId OcsfNumberField = "compliance.status_id"
+ OcsfNumberFieldConfidenceScore OcsfNumberField = "confidence_score"
+ OcsfNumberFieldSeverityId OcsfNumberField = "severity_id"
+ OcsfNumberFieldStatusId OcsfNumberField = "status_id"
+ OcsfNumberFieldFindingInfoRelatedEventsCount OcsfNumberField = "finding_info.related_events_count"
+)
+
+// Values returns all known values for OcsfNumberField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (OcsfNumberField) Values() []OcsfNumberField {
+ return []OcsfNumberField{
+ "activity_id",
+ "compliance.status_id",
+ "confidence_score",
+ "severity_id",
+ "status_id",
+ "finding_info.related_events_count",
+ }
+}
+
+type OcsfStringField string
+
+// Enum values for OcsfStringField
+const (
+ OcsfStringFieldMetadataUid OcsfStringField = "metadata.uid"
+ OcsfStringFieldActivityName OcsfStringField = "activity_name"
+ OcsfStringFieldCloudAccountUid OcsfStringField = "cloud.account.uid"
+ OcsfStringFieldCloudProvider OcsfStringField = "cloud.provider"
+ OcsfStringFieldCloudRegion OcsfStringField = "cloud.region"
+ OcsfStringFieldComplianceAssessmentsCategory OcsfStringField = "compliance.assessments.category"
+ OcsfStringFieldComplianceAssessmentsName OcsfStringField = "compliance.assessments.name"
+ OcsfStringFieldComplianceControl OcsfStringField = "compliance.control"
+ OcsfStringFieldComplianceStatus OcsfStringField = "compliance.status"
+ OcsfStringFieldComplianceStandards OcsfStringField = "compliance.standards"
+ OcsfStringFieldFindingInfoDesc OcsfStringField = "finding_info.desc"
+ OcsfStringFieldFindingInfoSrcUrl OcsfStringField = "finding_info.src_url"
+ OcsfStringFieldFindingInfoTitle OcsfStringField = "finding_info.title"
+ OcsfStringFieldFindingInfoTypes OcsfStringField = "finding_info.types"
+ OcsfStringFieldFindingInfoUid OcsfStringField = "finding_info.uid"
+ OcsfStringFieldFindingInfoRelatedEventsUid OcsfStringField = "finding_info.related_events.uid"
+ OcsfStringFieldFindingInfoRelatedEventsProductUid OcsfStringField = "finding_info.related_events.product.uid"
+ OcsfStringFieldFindingInfoRelatedEventsTitle OcsfStringField = "finding_info.related_events.title"
+ OcsfStringFieldMetadataProductName OcsfStringField = "metadata.product.name"
+ OcsfStringFieldMetadataProductUid OcsfStringField = "metadata.product.uid"
+ OcsfStringFieldMetadataProductVendorName OcsfStringField = "metadata.product.vendor_name"
+ OcsfStringFieldRemediationDesc OcsfStringField = "remediation.desc"
+ OcsfStringFieldRemediationReferences OcsfStringField = "remediation.references"
+ OcsfStringFieldResourcesCloudPartition OcsfStringField = "resources.cloud_partition"
+ OcsfStringFieldResourcesRegion OcsfStringField = "resources.region"
+ OcsfStringFieldResourcesType OcsfStringField = "resources.type"
+ OcsfStringFieldResourcesUid OcsfStringField = "resources.uid"
+ OcsfStringFieldSeverity OcsfStringField = "severity"
+ OcsfStringFieldStatus OcsfStringField = "status"
+ OcsfStringFieldComment OcsfStringField = "comment"
+ OcsfStringFieldVulnerabilitiesFixCoverage OcsfStringField = "vulnerabilities.fix_coverage"
+ OcsfStringFieldClassName OcsfStringField = "class_name"
+)
+
+// Values returns all known values for OcsfStringField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (OcsfStringField) Values() []OcsfStringField {
+ return []OcsfStringField{
+ "metadata.uid",
+ "activity_name",
+ "cloud.account.uid",
+ "cloud.provider",
+ "cloud.region",
+ "compliance.assessments.category",
+ "compliance.assessments.name",
+ "compliance.control",
+ "compliance.status",
+ "compliance.standards",
+ "finding_info.desc",
+ "finding_info.src_url",
+ "finding_info.title",
+ "finding_info.types",
+ "finding_info.uid",
+ "finding_info.related_events.uid",
+ "finding_info.related_events.product.uid",
+ "finding_info.related_events.title",
+ "metadata.product.name",
+ "metadata.product.uid",
+ "metadata.product.vendor_name",
+ "remediation.desc",
+ "remediation.references",
+ "resources.cloud_partition",
+ "resources.region",
+ "resources.type",
+ "resources.uid",
+ "severity",
+ "status",
+ "comment",
+ "vulnerabilities.fix_coverage",
+ "class_name",
+ }
+}
+
type OrganizationConfigurationConfigurationType string
// Enum values for OrganizationConfigurationConfigurationType
@@ -541,6 +901,166 @@ func (RegionAvailabilityStatus) Values() []RegionAvailabilityStatus {
}
}
+type ResourceCategory string
+
+// Enum values for ResourceCategory
+const (
+ ResourceCategoryCompute ResourceCategory = "Compute"
+ ResourceCategoryDatabase ResourceCategory = "Database"
+ ResourceCategoryStorage ResourceCategory = "Storage"
+ ResourceCategoryCode ResourceCategory = "Code"
+ ResourceCategoryAiMl ResourceCategory = "AI/ML"
+ ResourceCategoryIdentity ResourceCategory = "Identity"
+ ResourceCategoryNetwork ResourceCategory = "Network"
+ ResourceCategoryOther ResourceCategory = "Other"
+)
+
+// Values returns all known values for ResourceCategory. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ResourceCategory) Values() []ResourceCategory {
+ return []ResourceCategory{
+ "Compute",
+ "Database",
+ "Storage",
+ "Code",
+ "AI/ML",
+ "Identity",
+ "Network",
+ "Other",
+ }
+}
+
+type ResourceGroupByField string
+
+// Enum values for ResourceGroupByField
+const (
+ ResourceGroupByFieldAccountId ResourceGroupByField = "account_id"
+ ResourceGroupByFieldRegion ResourceGroupByField = "region"
+ ResourceGroupByFieldResourceCategory ResourceGroupByField = "resource_category"
+ ResourceGroupByFieldResourceType ResourceGroupByField = "resource_type"
+ ResourceGroupByFieldResourceName ResourceGroupByField = "resource_name"
+ ResourceGroupByFieldFindingType ResourceGroupByField = "findings_summary.finding_type"
+)
+
+// Values returns all known values for ResourceGroupByField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ResourceGroupByField) Values() []ResourceGroupByField {
+ return []ResourceGroupByField{
+ "account_id",
+ "region",
+ "resource_category",
+ "resource_type",
+ "resource_name",
+ "findings_summary.finding_type",
+ }
+}
+
+type ResourcesDateField string
+
+// Enum values for ResourcesDateField
+const (
+ ResourcesDateFieldResourceDetailCaptureTimeDt ResourcesDateField = "resource_detail_capture_time_dt"
+ ResourcesDateFieldResourceCreationTimeDt ResourcesDateField = "resource_creation_time_dt"
+)
+
+// Values returns all known values for ResourcesDateField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ResourcesDateField) Values() []ResourcesDateField {
+ return []ResourcesDateField{
+ "resource_detail_capture_time_dt",
+ "resource_creation_time_dt",
+ }
+}
+
+type ResourcesMapField string
+
+// Enum values for ResourcesMapField
+const (
+ ResourcesMapFieldTag ResourcesMapField = "tags"
+)
+
+// Values returns all known values for ResourcesMapField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ResourcesMapField) Values() []ResourcesMapField {
+ return []ResourcesMapField{
+ "tags",
+ }
+}
+
+type ResourcesNumberField string
+
+// Enum values for ResourcesNumberField
+const (
+ ResourcesNumberFieldTotalFindings ResourcesNumberField = "findings_summary.total_findings"
+ ResourcesNumberFieldSeverityOther ResourcesNumberField = "findings_summary.severities.other"
+ ResourcesNumberFieldSeverityFatal ResourcesNumberField = "findings_summary.severities.fatal"
+ ResourcesNumberFieldSeverityCritical ResourcesNumberField = "findings_summary.severities.critical"
+ ResourcesNumberFieldSeverityHigh ResourcesNumberField = "findings_summary.severities.high"
+ ResourcesNumberFieldSeverityMedium ResourcesNumberField = "findings_summary.severities.medium"
+ ResourcesNumberFieldSeverityLow ResourcesNumberField = "findings_summary.severities.low"
+ ResourcesNumberFieldSeverityInformational ResourcesNumberField = "findings_summary.severities.informational"
+ ResourcesNumberFieldSeverityUnknown ResourcesNumberField = "findings_summary.severities.unknown"
+)
+
+// Values returns all known values for ResourcesNumberField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ResourcesNumberField) Values() []ResourcesNumberField {
+ return []ResourcesNumberField{
+ "findings_summary.total_findings",
+ "findings_summary.severities.other",
+ "findings_summary.severities.fatal",
+ "findings_summary.severities.critical",
+ "findings_summary.severities.high",
+ "findings_summary.severities.medium",
+ "findings_summary.severities.low",
+ "findings_summary.severities.informational",
+ "findings_summary.severities.unknown",
+ }
+}
+
+type ResourcesStringField string
+
+// Enum values for ResourcesStringField
+const (
+ ResourcesStringFieldResourceArn ResourcesStringField = "resource_arn"
+ ResourcesStringFieldResourceId ResourcesStringField = "resource_id"
+ ResourcesStringFieldAccountId ResourcesStringField = "account_id"
+ ResourcesStringFieldRegion ResourcesStringField = "region"
+ ResourcesStringFieldResourceCategory ResourcesStringField = "resource_category"
+ ResourcesStringFieldResourceType ResourcesStringField = "resource_type"
+ ResourcesStringFieldResourceName ResourcesStringField = "resource_name"
+ ResourcesStringFieldFindingType ResourcesStringField = "findings_summary.finding_type"
+ ResourcesStringFieldProductName ResourcesStringField = "findings_summary.product_name"
+)
+
+// Values returns all known values for ResourcesStringField. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (ResourcesStringField) Values() []ResourcesStringField {
+ return []ResourcesStringField{
+ "resource_arn",
+ "resource_id",
+ "account_id",
+ "region",
+ "resource_category",
+ "resource_type",
+ "resource_name",
+ "findings_summary.finding_type",
+ "findings_summary.product_name",
+ }
+}
+
type RuleStatus string
// Enum values for RuleStatus
@@ -560,6 +1080,25 @@ func (RuleStatus) Values() []RuleStatus {
}
}
+type RuleStatusV2 string
+
+// Enum values for RuleStatusV2
+const (
+ RuleStatusV2Enabled RuleStatusV2 = "ENABLED"
+ RuleStatusV2Disabled RuleStatusV2 = "DISABLED"
+)
+
+// Values returns all known values for RuleStatusV2. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (RuleStatusV2) Values() []RuleStatusV2 {
+ return []RuleStatusV2{
+ "ENABLED",
+ "DISABLED",
+ }
+}
+
type SecurityControlProperty string
// Enum values for SecurityControlProperty
@@ -577,6 +1116,25 @@ func (SecurityControlProperty) Values() []SecurityControlProperty {
}
}
+type SecurityHubFeature string
+
+// Enum values for SecurityHubFeature
+const (
+ SecurityHubFeatureSecurityHub SecurityHubFeature = "SecurityHub"
+ SecurityHubFeatureSecurityHubV2 SecurityHubFeature = "SecurityHubV2"
+)
+
+// Values returns all known values for SecurityHubFeature. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (SecurityHubFeature) Values() []SecurityHubFeature {
+ return []SecurityHubFeature{
+ "SecurityHub",
+ "SecurityHubV2",
+ }
+}
+
type SeverityLabel string
// Enum values for SeverityLabel
@@ -719,6 +1277,7 @@ const (
StringFilterComparisonPrefixNotEquals StringFilterComparison = "PREFIX_NOT_EQUALS"
StringFilterComparisonContains StringFilterComparison = "CONTAINS"
StringFilterComparisonNotContains StringFilterComparison = "NOT_CONTAINS"
+ StringFilterComparisonContainsWord StringFilterComparison = "CONTAINS_WORD"
)
// Values returns all known values for StringFilterComparison. Note that this can
@@ -733,6 +1292,7 @@ func (StringFilterComparison) Values() []StringFilterComparison {
"PREFIX_NOT_EQUALS",
"CONTAINS",
"NOT_CONTAINS",
+ "CONTAINS_WORD",
}
}
diff --git a/service/securityhub/types/errors.go b/service/securityhub/types/errors.go
index 9ec6248f092..3c5523bd6c8 100644
--- a/service/securityhub/types/errors.go
+++ b/service/securityhub/types/errors.go
@@ -35,6 +35,34 @@ func (e *AccessDeniedException) ErrorCode() string {
}
func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+// The request causes conflict with the current state of the service resource.
+type ConflictException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ Code *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *ConflictException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *ConflictException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *ConflictException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "ConflictException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
// Internal server error.
type InternalException struct {
Message *string
@@ -63,6 +91,34 @@ func (e *InternalException) ErrorCode() string {
}
func (e *InternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
+// The request has failed due to an internal failure of the service.
+type InternalServerException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ Code *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *InternalServerException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *InternalServerException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *InternalServerException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "InternalServerException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
+
// The account doesn't have permission to perform this action.
type InvalidAccessException struct {
Message *string
@@ -236,3 +292,60 @@ func (e *ResourceNotFoundException) ErrorCode() string {
return *e.ErrorCodeOverride
}
func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The limit on the number of requests per second was exceeded.
+type ThrottlingException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ Code *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *ThrottlingException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *ThrottlingException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *ThrottlingException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "ThrottlingException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
+
+// The request has failed validation because it's missing required fields or has
+// invalid inputs.
+type ValidationException struct {
+ Message *string
+
+ ErrorCodeOverride *string
+
+ Code *string
+
+ noSmithyDocumentSerde
+}
+
+func (e *ValidationException) Error() string {
+ return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
+}
+func (e *ValidationException) ErrorMessage() string {
+ if e.Message == nil {
+ return ""
+ }
+ return *e.Message
+}
+func (e *ValidationException) ErrorCode() string {
+ if e == nil || e.ErrorCodeOverride == nil {
+ return "ValidationException"
+ }
+ return *e.ErrorCodeOverride
+}
+func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
diff --git a/service/securityhub/types/types.go b/service/securityhub/types/types.go
index 4e1cc5a16cc..390f666349d 100644
--- a/service/securityhub/types/types.go
+++ b/service/securityhub/types/types.go
@@ -3,6 +3,7 @@
package types
import (
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/document"
smithydocument "github.com/aws/smithy-go/document"
"time"
)
@@ -261,6 +262,16 @@ type AdminAccount struct {
noSmithyDocumentSerde
}
+// Specifies a cross-Region data aggregation configuration, including the
+// aggregation Region and any linked Regions.
+type AggregatorV2 struct {
+
+ // The ARN of the aggregatorV2.
+ AggregatorV2Arn *string
+
+ noSmithyDocumentSerde
+}
+
// Information about an enabled security standard in which a security control is
//
// enabled.
@@ -350,6 +361,34 @@ type AutomationRulesAction struct {
noSmithyDocumentSerde
}
+// Allows you to customize security response workflows.
+type AutomationRulesActionTypeObjectV2 struct {
+
+ // The category of action to be executed by the automation rule.
+ Type AutomationRulesActionTypeV2
+
+ noSmithyDocumentSerde
+}
+
+// Allows you to configure automated responses.
+type AutomationRulesActionV2 struct {
+
+ // The category of action to be executed by the automation rule.
+ //
+ // This member is required.
+ Type AutomationRulesActionTypeV2
+
+ // The settings for integrating automation rule actions with external systems or
+ // service.
+ ExternalIntegrationConfiguration *ExternalIntegrationConfiguration
+
+ // The changes to be applied to fields in a security finding when an automation
+ // rule is triggered.
+ FindingFieldsUpdate *AutomationRulesFindingFieldsUpdateV2
+
+ noSmithyDocumentSerde
+}
+
// Defines the configuration of an automation rule.
type AutomationRulesConfig struct {
@@ -449,6 +488,24 @@ type AutomationRulesFindingFieldsUpdate struct {
noSmithyDocumentSerde
}
+// Allows you to define the structure for modifying specific fields in security
+// findings.
+type AutomationRulesFindingFieldsUpdateV2 struct {
+
+ // Notes or contextual information for findings that are modified by the
+ // automation rule.
+ Comment *string
+
+ // The severity level to be assigned to findings that match the automation rule
+ // criteria.
+ SeverityId *int32
+
+ // The status to be applied to findings that match automation rule criteria.
+ StatusId *int32
+
+ noSmithyDocumentSerde
+}
+
// The criteria that determine which findings a rule applies to.
type AutomationRulesFindingFilters struct {
@@ -767,6 +824,39 @@ type AutomationRulesMetadata struct {
noSmithyDocumentSerde
}
+// Includes essential metadata information about automation rules.
+type AutomationRulesMetadataV2 struct {
+
+ // The list of action to be performed when the rule criteria is met.
+ Actions []AutomationRulesActionTypeObjectV2
+
+ // The timestamp for when the automation rule was created.
+ CreatedAt *time.Time
+
+ // An explanation for the purpose and funcitonality of the automation rule.
+ Description *string
+
+ // The ARN of the automation rule.
+ RuleArn *string
+
+ // The ID of the automation rule.
+ RuleId *string
+
+ // The name of the automation rule.
+ RuleName *string
+
+ // The value for the rule priority.
+ RuleOrder *float32
+
+ // The status of the automation rule.
+ RuleStatus RuleStatusV2
+
+ // The timestamp for the most recent modification to the automation rule.
+ UpdatedAt *time.Time
+
+ noSmithyDocumentSerde
+}
+
// Information about an Availability Zone.
type AvailabilityZone struct {
@@ -14090,6 +14180,38 @@ type BatchUpdateFindingsUnprocessedFinding struct {
noSmithyDocumentSerde
}
+// The list of findings that were updated.
+type BatchUpdateFindingsV2ProcessedFinding struct {
+
+ // The finding identifier of a processed finding.
+ FindingIdentifier *OcsfFindingIdentifier
+
+ // The metadata.uid of a processed finding.
+ MetadataUid *string
+
+ noSmithyDocumentSerde
+}
+
+// The list of findings that were not updated.
+type BatchUpdateFindingsV2UnprocessedFinding struct {
+
+ // Indicates the specific type of error preventing successful processing of a
+ // finding during a batch update operation.
+ ErrorCode BatchUpdateFindingsV2UnprocessedFindingErrorCode
+
+ // A detailed description of why a finding could not be processed during a batch
+ // update operation.
+ ErrorMessage *string
+
+ // The finding identifier of an unprocessed finding.
+ FindingIdentifier *OcsfFindingIdentifier
+
+ // The metadata.uid of an unprocessed finding.
+ MetadataUid *string
+
+ noSmithyDocumentSerde
+}
+
// The options for customizing a security control parameter with a boolean. For a
//
// boolean parameter, the options are true and false .
@@ -14285,6 +14407,30 @@ type Compliance struct {
noSmithyDocumentSerde
}
+// Enables the creation of filtering criteria for security findings.
+type CompositeFilter struct {
+
+ // Enables filtering based on boolean field values.
+ BooleanFilters []OcsfBooleanFilter
+
+ // Enables filtering based on date and timestamp fields.
+ DateFilters []OcsfDateFilter
+
+ // Enables filtering based on map field values.
+ MapFilters []OcsfMapFilter
+
+ // Enables filtering based on numerical field values.
+ NumberFilters []OcsfNumberFilter
+
+ // The logical operator used to combine multiple filter conditions.
+ Operator AllowedOperators
+
+ // Enables filtering based on string field values.
+ StringFilters []OcsfStringFilter
+
+ noSmithyDocumentSerde
+}
+
// The options for customizing a security control parameter.
//
// The following types satisfy this interface:
@@ -14459,6 +14605,40 @@ type ConfigurationPolicySummary struct {
noSmithyDocumentSerde
}
+// A condensed overview of the connectorV2..
+type ConnectorSummary struct {
+
+ // The UUID of the connectorV2 to identify connectorV2 resource.
+ //
+ // This member is required.
+ ConnectorId *string
+
+ // ISO 8601 UTC timestamp for the time create the connectorV2.
+ //
+ // This member is required.
+ CreatedAt *time.Time
+
+ // The Name field contains the user-defined name assigned to the integration
+ // connector. This helps identify and manage multiple connectors within Security
+ // Hub.
+ //
+ // This member is required.
+ Name *string
+
+ // The connectorV2 third party provider configuration summary.
+ //
+ // This member is required.
+ ProviderSummary *ProviderSummary
+
+ // The Amazon Resource Name (ARN) of the connectorV2.
+ ConnectorArn *string
+
+ // The description of the connectorV2.
+ Description *string
+
+ noSmithyDocumentSerde
+}
+
// Container details related to a finding.
type ContainerDetails struct {
@@ -14504,6 +14684,25 @@ type Country struct {
noSmithyDocumentSerde
}
+// Defines the parameters and conditions used to evaluate and filter security
+// findings.
+//
+// The following types satisfy this interface:
+//
+// CriteriaMemberOcsfFindingCriteria
+type Criteria interface {
+ isCriteria()
+}
+
+// The filtering conditions that align with OCSF standards.
+type CriteriaMemberOcsfFindingCriteria struct {
+ Value OcsfFindingFilters
+
+ noSmithyDocumentSerde
+}
+
+func (*CriteriaMemberOcsfFindingCriteria) isCriteria() {}
+
// The list of detected instances of sensitive data.
type CustomDataIdentifiersDetections struct {
@@ -14688,6 +14887,16 @@ type EnumListConfigurationOptions struct {
noSmithyDocumentSerde
}
+// Defines the settings and parameters required for integrating external security
+// tools and services.
+type ExternalIntegrationConfiguration struct {
+
+ // The ARN of the connector that establishes the integration.
+ ConnectorArn *string
+
+ noSmithyDocumentSerde
+}
+
// Provides information about the file paths that were affected by the threat.
type FilePaths struct {
@@ -15017,6 +15226,65 @@ type GeoLocation struct {
noSmithyDocumentSerde
}
+// Represents finding statistics grouped by GroupedByField .
+type GroupByResult struct {
+
+ // The attribute by which filtered security findings should be grouped.
+ GroupByField *string
+
+ // An array of grouped values and their respective counts for each GroupByField .
+ GroupByValues []GroupByValue
+
+ noSmithyDocumentSerde
+}
+
+// Defines the how the finding attribute should be grouped.
+type GroupByRule struct {
+
+ // The attribute by which filtered findings should be grouped.
+ //
+ // This member is required.
+ GroupByField GroupByField
+
+ // The criteria used to select which security findings should be included in the
+ // grouping operation.
+ Filters *OcsfFindingFilters
+
+ noSmithyDocumentSerde
+}
+
+// Represents individual aggregated results when grouping security findings for
+// each GroupByField .
+type GroupByValue struct {
+
+ // The number of findings for a specific FieldValue and GroupByField .
+ Count *int32
+
+ // The value of the field by which findings are grouped.
+ FieldValue *string
+
+ noSmithyDocumentSerde
+}
+
+// Information about the operational status and health of a connectorV2.
+type HealthCheck struct {
+
+ // The status of the connectorV2.
+ //
+ // This member is required.
+ ConnectorStatus ConnectorStatus
+
+ // ISO 8601 UTC timestamp for the time check the health status of the connectorV2.
+ //
+ // This member is required.
+ LastCheckedAt *time.Time
+
+ // The message for the reason of connectorStatus change.
+ Message *string
+
+ noSmithyDocumentSerde
+}
+
// An Internet Control Message Protocol (ICMP) type and code.
type IcmpTypeCode struct {
@@ -15266,6 +15534,48 @@ type Ipv6CidrBlockAssociation struct {
noSmithyDocumentSerde
}
+// Information about the configuration and status of a Jira Cloud integration.
+type JiraCloudDetail struct {
+
+ // The status of the authorization between Jira Cloud and the service.
+ AuthStatus ConnectorAuthStatus
+
+ // The URL to provide to customers for OAuth auth code flow.
+ AuthUrl *string
+
+ // The cloud id of the Jira Cloud.
+ CloudId *string
+
+ // The URL domain of your Jira Cloud instance.
+ Domain *string
+
+ // The projectKey of Jira Cloud.
+ ProjectKey *string
+
+ noSmithyDocumentSerde
+}
+
+// The initial configuration settings required to establish an integration between
+// Security Hub and Jira Cloud.
+type JiraCloudProviderConfiguration struct {
+
+ // The project key for a JiraCloud instance.
+ ProjectKey *string
+
+ noSmithyDocumentSerde
+}
+
+// The parameters used to modify an existing Jira Cloud integration.
+type JiraCloudUpdateConfiguration struct {
+
+ // The project key for a JiraCloud instance.
+ //
+ // This member is required.
+ ProjectKey *string
+
+ noSmithyDocumentSerde
+}
+
// A keyword filter for querying findings.
type KeywordFilter struct {
@@ -15770,6 +16080,105 @@ type Occurrences struct {
noSmithyDocumentSerde
}
+// Enables filtering of security findings based on boolean field values in OCSF.
+type OcsfBooleanFilter struct {
+
+ // The name of the field.
+ FieldName OcsfBooleanField
+
+ // Boolean filter for querying findings.
+ Filter *BooleanFilter
+
+ noSmithyDocumentSerde
+}
+
+// Enables filtering of security findings based on date and timestamp fields in
+// OCSF.
+type OcsfDateFilter struct {
+
+ // The name of the field.
+ FieldName OcsfDateField
+
+ // A date filter for querying findings.
+ Filter *DateFilter
+
+ noSmithyDocumentSerde
+}
+
+// Specifies the filtering criteria for security findings using OCSF.
+type OcsfFindingFilters struct {
+
+ // Enables the creation of complex filtering conditions by combining filter
+ // criteria.
+ CompositeFilters []CompositeFilter
+
+ // The logical operators used to combine the filtering on multiple CompositeFilters
+ // .
+ CompositeOperator AllowedOperators
+
+ noSmithyDocumentSerde
+}
+
+// Provides a standard to identify security findings using OCSF.
+type OcsfFindingIdentifier struct {
+
+ // Finding cloud.account.uid, which is a unique identifier in the Amazon Web
+ // Services account..
+ //
+ // This member is required.
+ CloudAccountUid *string
+
+ // Finding finding_info.uid, which is a unique identifier for the finding from the
+ // finding provider.
+ //
+ // This member is required.
+ FindingInfoUid *string
+
+ // Finding metadata.product.uid, which is a unique identifier for the product.
+ //
+ // This member is required.
+ MetadataProductUid *string
+
+ noSmithyDocumentSerde
+}
+
+// Enables filtering of security findings based on map field values in OCSF.
+type OcsfMapFilter struct {
+
+ // The name of the field.
+ FieldName OcsfMapField
+
+ // A map filter for filtering Security Hub findings. Each map filter provides the
+ // field to check for, the value to check for, and the comparison operator.
+ Filter *MapFilter
+
+ noSmithyDocumentSerde
+}
+
+// Enables filtering of security findings based on numerical field values in OCSF.
+type OcsfNumberFilter struct {
+
+ // The name of the field.
+ FieldName OcsfNumberField
+
+ // A number filter for querying findings.
+ Filter *NumberFilter
+
+ noSmithyDocumentSerde
+}
+
+// Enables filtering of security findings based on string field values in OCSF.
+type OcsfStringFilter struct {
+
+ // The name of the field.
+ FieldName OcsfStringField
+
+ // A string filter for filtering Security Hub findings.
+ Filter *StringFilter
+
+ noSmithyDocumentSerde
+}
+
// Provides information about the way an organization is configured in Security
//
// Hub.
@@ -16200,6 +16609,34 @@ type Product struct {
noSmithyDocumentSerde
}
+// Defines the structure for the productV2.
+type ProductV2 struct {
+
+ // The URL to the serviceV@ or productV2 documentation about the integration,
+ // which includes how to activate the integration.
+ ActivationUrl *string
+
+ // The domains or functional areas the productV2 addresses.
+ Categories []string
+
+ // The name of the organization or vendor that provides the productV2.
+ CompanyName *string
+
+ // Detailed information about the productV2.
+ Description *string
+
+ // The type of integration.
+ IntegrationV2Types []IntegrationV2Type
+
+ // The console URL where you can purchase or subscribe to products.
+ MarketplaceUrl *string
+
+ // The name of the productV2.
+ ProductV2Name *string
+
+ noSmithyDocumentSerde
+}
+
// Describes a virtual private gateway propagating route.
type PropagatingVgwSetDetails struct {
@@ -16209,6 +16646,95 @@ type PropagatingVgwSetDetails struct {
noSmithyDocumentSerde
}
+// The initial configuration settings required to establish an integration between
+// Security Hub and third-party provider.
+//
+// The following types satisfy this interface:
+//
+// ProviderConfigurationMemberJiraCloud
+// ProviderConfigurationMemberServiceNow
+type ProviderConfiguration interface {
+ isProviderConfiguration()
+}
+
+// The configuration settings required to establish an integration with Jira Cloud.
+type ProviderConfigurationMemberJiraCloud struct {
+ Value JiraCloudProviderConfiguration
+
+ noSmithyDocumentSerde
+}
+
+func (*ProviderConfigurationMemberJiraCloud) isProviderConfiguration() {}
+
+// The configuration settings required to establish an integration with ServiceNow
+// ITSM.
+type ProviderConfigurationMemberServiceNow struct {
+ Value ServiceNowProviderConfiguration
+
+ noSmithyDocumentSerde
+}
+
+func (*ProviderConfigurationMemberServiceNow) isProviderConfiguration() {}
+
+// The third-party provider detail for a service configuration.
+//
+// The following types satisfy this interface:
+//
+// ProviderDetailMemberJiraCloud
+// ProviderDetailMemberServiceNow
+type ProviderDetail interface {
+ isProviderDetail()
+}
+
+// Details about a Jira Cloud integration.
+type ProviderDetailMemberJiraCloud struct {
+ Value JiraCloudDetail
+
+ noSmithyDocumentSerde
+}
+
+func (*ProviderDetailMemberJiraCloud) isProviderDetail() {}
+
+// Details about a ServiceNow ITSM integration.
+type ProviderDetailMemberServiceNow struct {
+ Value ServiceNowDetail
+
+ noSmithyDocumentSerde
+}
+
+func (*ProviderDetailMemberServiceNow) isProviderDetail() {}
+
+// The connectorV2 third-party provider configuration summary.
+type ProviderSummary struct {
+
+ // The status for the connectorV2.
+ ConnectorStatus ConnectorStatus
+
+ // The name of the provider.
+ ProviderName ConnectorProviderName
+
+ noSmithyDocumentSerde
+}
+
+// The parameters required to update the configuration of an integration provider.
+//
+// The following types satisfy this interface:
+//
+// ProviderUpdateConfigurationMemberJiraCloud
+type ProviderUpdateConfiguration interface {
+ isProviderUpdateConfiguration()
+}
+
+// The parameters required to update the configuration for a Jira Cloud
+// integration.
+type ProviderUpdateConfigurationMemberJiraCloud struct {
+ Value JiraCloudUpdateConfiguration
+
+ noSmithyDocumentSerde
+}
+
+func (*ProviderUpdateConfigurationMemberJiraCloud) isProviderUpdateConfiguration() {}
+
// Identifies where the sensitive data begins and ends.
type Range struct {
@@ -16700,6 +17226,232 @@ type ResourceDetails struct {
noSmithyDocumentSerde
}
+// A list of summaries for all finding types on a resource.
+type ResourceFindingsSummary struct {
+
+ // The category or classification of the security finding.
+ //
+ // This member is required.
+ FindingType *string
+
+ // The name of the product associated with the security finding.
+ //
+ // This member is required.
+ ProductName *string
+
+ // The total count of security findings.
+ //
+ // This member is required.
+ TotalFindings *int32
+
+ // A breakdown of security findings by their severity levels.
+ Severities *ResourceSeverityBreakdown
+
+ noSmithyDocumentSerde
+}
+
+// Defines the configuration for organizing and categorizing Amazon Web Services
+// resources based on associated security findings.
+type ResourceGroupByRule struct {
+
+ // Specifies the attribute that resources should be grouped by.
+ //
+ // This member is required.
+ GroupByField ResourceGroupByField
+
+ // The criteria used to select resources and associated security findings.
+ Filters *ResourcesFilters
+
+ noSmithyDocumentSerde
+}
+
+// Provides comprehensive details about an Amazon Web Services resource and its
+// associated security findings.
+type ResourceResult struct {
+
+ // The Amazon Web Services account that owns the resource.
+ //
+ // This member is required.
+ AccountId *string
+
+ // The Amazon Web Services Region where the resource is located.
+ //
+ // This member is required.
+ Region *string
+
+ // The configuration details of a resource.
+ //
+ // This member is required.
+ ResourceConfig document.Interface
+
+ // The timestamp when information about the resource was captured.
+ //
+ // This member is required.
+ ResourceDetailCaptureTimeDt *string
+
+ // The unique identifier for a resource.
+ //
+ // This member is required.
+ ResourceId *string
+
+ // An aggregated view of security findings associated with a resource.
+ FindingsSummary []ResourceFindingsSummary
+
+ // Specifies the ARN that uniquely identifies a resource.
+ ResourceArn *string
+
+ // The grouping where the resource belongs.
+ ResourceCategory ResourceCategory
+
+ // The time when the resource was created.
+ ResourceCreationTimeDt *string
+
+ // The name of the resource.
+ ResourceName *string
+
+ // The key-value pairs associated with a resource.
+ ResourceTags []ResourceTag
+
+ // The type of resource.
+ ResourceType *string
+
+ noSmithyDocumentSerde
+}
+
+// Enables the creation of criteria for Amazon Web Services resources in Security
+// Hub.
+type ResourcesCompositeFilter struct {
+
+ // Enables filtering based on date and timestamp field values.
+ DateFilters []ResourcesDateFilter
+
+ // Enables filtering based on map-based field values.
+ MapFilters []ResourcesMapFilter
+
+ // Enables filtering based on numerical field values.
+ NumberFilters []ResourcesNumberFilter
+
+ // The logical operator used to combine multiple filter conditions.
+ Operator AllowedOperators
+
+ // Enables filtering based on string field values.
+ StringFilters []ResourcesStringFilter
+
+ noSmithyDocumentSerde
+}
+
+// Enables the filtering of Amazon Web Services resources based on date and
+// timestamp attributes.
+type ResourcesDateFilter struct {
+
+ // The name of the field.
+ FieldName ResourcesDateField
+
+ // A date filter for querying findings.
+ Filter *DateFilter
+
+ noSmithyDocumentSerde
+}
+
+// A comprehensive distribution of security findings by severity level for Amazon
+// Web Services resources.
+type ResourceSeverityBreakdown struct {
+
+ // The number of findings with a severity level of critical.
+ Critical *int32
+
+ // The number of findings with a severity level of fatal.
+ Fatal *int32
+
+ // The number of findings with a severity level of high.
+ High *int32
+
+ // The number of findings that provide security-related information.
+ Informational *int32
+
+ // The number of findings with a severity level of low.
+ Low *int32
+
+ // The number of findings with a severity level of medium.
+ Medium *int32
+
+ // The number of findings not in any of the severity categories.
+ Other *int32
+
+ // The number of findings with a severity level cannot be determined.
+ Unknown *int32
+
+ noSmithyDocumentSerde
+}
+
+// Enables filtering of Amazon Web Services resources based on data.
+type ResourcesFilters struct {
+
+ // A collection of complex filtering conditions that can be applied to Amazon Web
+ // Services resources.
+ CompositeFilters []ResourcesCompositeFilter
+
+ // The logical operator used to combine multiple filter conditions in the
+ // structure.
+ CompositeOperator AllowedOperators
+
+ noSmithyDocumentSerde
+}
+
+// Enables filtering of Amazon Web Services resources based on key-value map
+// attributes.
+type ResourcesMapFilter struct {
+
+ // The name of the field.
+ FieldName ResourcesMapField
+
+ // A map filter for filtering Security Hub findings. Each map filter provides the
+ // field to check for, the value to check for, and the comparison operator.
+ Filter *MapFilter
+
+ noSmithyDocumentSerde
+}
+
+// Enables filtering of Amazon Web Services resources based on numerical values.
+type ResourcesNumberFilter struct {
+
+ // The name of the field.
+ FieldName ResourcesNumberField
+
+ // A number filter for querying findings.
+ Filter *NumberFilter
+
+ noSmithyDocumentSerde
+}
+
+// Enables filtering of Amazon Web Services resources based on string field values.
+type ResourcesStringFilter struct {
+
+ // The name of the field.
+ FieldName ResourcesStringField
+
+ // A string filter for filtering Security Hub findings.
+ Filter *StringFilter
+
+ noSmithyDocumentSerde
+}
+
+// Represents tag information associated with Amazon Web Services resources.
+type ResourceTag struct {
+
+ // The identifier or name of the tag.
+ //
+ // This member is required.
+ Key *string
+
+ // The data associated with the tag key.
+ //
+ // This member is required.
+ Value *string
+
+ noSmithyDocumentSerde
+}
+
// Details about the account that was not processed.
type Result struct {
@@ -17326,6 +18078,45 @@ type Sequence struct {
noSmithyDocumentSerde
}
+// Information about a ServiceNow ITSM integration.
+type ServiceNowDetail struct {
+
+ // The status of the authorization between Jira Cloud and the service.
+ //
+ // This member is required.
+ AuthStatus ConnectorAuthStatus
+
+ // The clientId of ServiceNow ITSM.
+ ClientId *string
+
+ // The instanceName of ServiceNow ITSM.
+ InstanceName *string
+
+ noSmithyDocumentSerde
+}
+
+// The initial configuration settings required to establish an integration between
+// Security Hub and ServiceNow ITSM.
+type ServiceNowProviderConfiguration struct {
+
+ // The client ID of ServiceNow ITSM.
+ //
+ // This member is required.
+ ClientId *string
+
+ // The client secret of ServiceNow ITSM.
+ //
+ // This member is required.
+ ClientSecret *string
+
+ // The instance name of ServiceNow ITSM.
+ //
+ // This member is required.
+ InstanceName *string
+
+ noSmithyDocumentSerde
+}
+
// The severity of the finding.
//
// The finding provider can provide the initial severity. The finding provider can
@@ -18035,7 +18826,9 @@ type StringFilter struct {
//
// - ResourceType NOT_EQUALS AwsEc2NetworkInterface
//
- // CONTAINS and NOT_CONTAINS operators can be used only with automation rules. For
+ // CONTAINS and NOT_CONTAINS operators can be used only with automation rules V1.
+ // CONTAINS_WORD operator is only supported in GetFindingsV2 ,
+ // GetFindingStatisticsV2 , GetResourcesV2 , and GetResourceStatisticsV2 APIs. For
// more information, see [Automation rules]in the Security Hub User Guide.
//
// [Automation rules]: https://docs.aws.amazon.com/securityhub/latest/userguide/automation-rules.html
@@ -18636,7 +19429,11 @@ type UnknownUnionMember struct {
noSmithyDocumentSerde
}
-func (*UnknownUnionMember) isConfigurationOptions() {}
-func (*UnknownUnionMember) isParameterValue() {}
-func (*UnknownUnionMember) isPolicy() {}
-func (*UnknownUnionMember) isTarget() {}
+func (*UnknownUnionMember) isConfigurationOptions() {}
+func (*UnknownUnionMember) isCriteria() {}
+func (*UnknownUnionMember) isParameterValue() {}
+func (*UnknownUnionMember) isPolicy() {}
+func (*UnknownUnionMember) isProviderConfiguration() {}
+func (*UnknownUnionMember) isProviderDetail() {}
+func (*UnknownUnionMember) isProviderUpdateConfiguration() {}
+func (*UnknownUnionMember) isTarget() {}
diff --git a/service/securityhub/types/types_exported_test.go b/service/securityhub/types/types_exported_test.go
index d84f1ec25aa..5a949010f73 100644
--- a/service/securityhub/types/types_exported_test.go
+++ b/service/securityhub/types/types_exported_test.go
@@ -53,6 +53,24 @@ var _ *types.BooleanConfigurationOptions
var _ *types.EnumConfigurationOptions
var _ *types.EnumListConfigurationOptions
+func ExampleCriteria_outputUsage() {
+ var union types.Criteria
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.CriteriaMemberOcsfFindingCriteria:
+ _ = v.Value // Value is types.OcsfFindingFilters
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.OcsfFindingFilters
+
func ExampleParameterValue_outputUsage() {
var union types.ParameterValue
// type switches can be used to check the union value
@@ -115,6 +133,68 @@ func ExamplePolicy_outputUsage() {
var _ *types.SecurityHubPolicy
+func ExampleProviderConfiguration_outputUsage() {
+ var union types.ProviderConfiguration
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.ProviderConfigurationMemberJiraCloud:
+ _ = v.Value // Value is types.JiraCloudProviderConfiguration
+
+ case *types.ProviderConfigurationMemberServiceNow:
+ _ = v.Value // Value is types.ServiceNowProviderConfiguration
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.JiraCloudProviderConfiguration
+var _ *types.ServiceNowProviderConfiguration
+
+func ExampleProviderDetail_outputUsage() {
+ var union types.ProviderDetail
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.ProviderDetailMemberJiraCloud:
+ _ = v.Value // Value is types.JiraCloudDetail
+
+ case *types.ProviderDetailMemberServiceNow:
+ _ = v.Value // Value is types.ServiceNowDetail
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.JiraCloudDetail
+var _ *types.ServiceNowDetail
+
+func ExampleProviderUpdateConfiguration_outputUsage() {
+ var union types.ProviderUpdateConfiguration
+ // type switches can be used to check the union value
+ switch v := union.(type) {
+ case *types.ProviderUpdateConfigurationMemberJiraCloud:
+ _ = v.Value // Value is types.JiraCloudUpdateConfiguration
+
+ case *types.UnknownUnionMember:
+ fmt.Println("unknown tag:", v.Tag)
+
+ default:
+ fmt.Println("union is nil or unknown type")
+
+ }
+}
+
+var _ *types.JiraCloudUpdateConfiguration
+
func ExampleTarget_outputUsage() {
var union types.Target
// type switches can be used to check the union value
diff --git a/service/securityhub/validators.go b/service/securityhub/validators.go
index 7bf43c61622..77203ae4a55 100644
--- a/service/securityhub/validators.go
+++ b/service/securityhub/validators.go
@@ -250,6 +250,26 @@ func (m *validateOpBatchUpdateFindings) HandleInitialize(ctx context.Context, in
return next.HandleInitialize(ctx, in)
}
+type validateOpBatchUpdateFindingsV2 struct {
+}
+
+func (*validateOpBatchUpdateFindingsV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpBatchUpdateFindingsV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*BatchUpdateFindingsV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpBatchUpdateFindingsV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpBatchUpdateStandardsControlAssociations struct {
}
@@ -270,6 +290,26 @@ func (m *validateOpBatchUpdateStandardsControlAssociations) HandleInitialize(ctx
return next.HandleInitialize(ctx, in)
}
+type validateOpConnectorRegistrationsV2 struct {
+}
+
+func (*validateOpConnectorRegistrationsV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpConnectorRegistrationsV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*ConnectorRegistrationsV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpConnectorRegistrationsV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpCreateActionTarget struct {
}
@@ -290,6 +330,26 @@ func (m *validateOpCreateActionTarget) HandleInitialize(ctx context.Context, in
return next.HandleInitialize(ctx, in)
}
+type validateOpCreateAggregatorV2 struct {
+}
+
+func (*validateOpCreateAggregatorV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateAggregatorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateAggregatorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateAggregatorV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpCreateAutomationRule struct {
}
@@ -310,6 +370,26 @@ func (m *validateOpCreateAutomationRule) HandleInitialize(ctx context.Context, i
return next.HandleInitialize(ctx, in)
}
+type validateOpCreateAutomationRuleV2 struct {
+}
+
+func (*validateOpCreateAutomationRuleV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateAutomationRuleV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateAutomationRuleV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateAutomationRuleV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpCreateConfigurationPolicy struct {
}
@@ -330,6 +410,26 @@ func (m *validateOpCreateConfigurationPolicy) HandleInitialize(ctx context.Conte
return next.HandleInitialize(ctx, in)
}
+type validateOpCreateConnectorV2 struct {
+}
+
+func (*validateOpCreateConnectorV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateConnectorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateConnectorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateConnectorV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpCreateFindingAggregator struct {
}
@@ -390,6 +490,26 @@ func (m *validateOpCreateMembers) HandleInitialize(ctx context.Context, in middl
return next.HandleInitialize(ctx, in)
}
+type validateOpCreateTicketV2 struct {
+}
+
+func (*validateOpCreateTicketV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpCreateTicketV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*CreateTicketV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpCreateTicketV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpDeclineInvitations struct {
}
@@ -430,6 +550,46 @@ func (m *validateOpDeleteActionTarget) HandleInitialize(ctx context.Context, in
return next.HandleInitialize(ctx, in)
}
+type validateOpDeleteAggregatorV2 struct {
+}
+
+func (*validateOpDeleteAggregatorV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDeleteAggregatorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DeleteAggregatorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDeleteAggregatorV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpDeleteAutomationRuleV2 struct {
+}
+
+func (*validateOpDeleteAutomationRuleV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDeleteAutomationRuleV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DeleteAutomationRuleV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDeleteAutomationRuleV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpDeleteConfigurationPolicy struct {
}
@@ -450,6 +610,26 @@ func (m *validateOpDeleteConfigurationPolicy) HandleInitialize(ctx context.Conte
return next.HandleInitialize(ctx, in)
}
+type validateOpDeleteConnectorV2 struct {
+}
+
+func (*validateOpDeleteConnectorV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpDeleteConnectorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*DeleteConnectorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpDeleteConnectorV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpDeleteFindingAggregator struct {
}
@@ -650,6 +830,46 @@ func (m *validateOpEnableOrganizationAdminAccount) HandleInitialize(ctx context.
return next.HandleInitialize(ctx, in)
}
+type validateOpGetAggregatorV2 struct {
+}
+
+func (*validateOpGetAggregatorV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetAggregatorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetAggregatorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetAggregatorV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpGetAutomationRuleV2 struct {
+}
+
+func (*validateOpGetAutomationRuleV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetAutomationRuleV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetAutomationRuleV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetAutomationRuleV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpGetConfigurationPolicyAssociation struct {
}
@@ -690,6 +910,26 @@ func (m *validateOpGetConfigurationPolicy) HandleInitialize(ctx context.Context,
return next.HandleInitialize(ctx, in)
}
+type validateOpGetConnectorV2 struct {
+}
+
+func (*validateOpGetConnectorV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetConnectorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetConnectorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetConnectorV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpGetFindingAggregator struct {
}
@@ -730,6 +970,26 @@ func (m *validateOpGetFindingHistory) HandleInitialize(ctx context.Context, in m
return next.HandleInitialize(ctx, in)
}
+type validateOpGetFindingStatisticsV2 struct {
+}
+
+func (*validateOpGetFindingStatisticsV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetFindingStatisticsV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetFindingStatisticsV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetFindingStatisticsV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpGetInsightResults struct {
}
@@ -770,6 +1030,26 @@ func (m *validateOpGetMembers) HandleInitialize(ctx context.Context, in middlewa
return next.HandleInitialize(ctx, in)
}
+type validateOpGetResourcesStatisticsV2 struct {
+}
+
+func (*validateOpGetResourcesStatisticsV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpGetResourcesStatisticsV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*GetResourcesStatisticsV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpGetResourcesStatisticsV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpGetSecurityControlDefinition struct {
}
@@ -950,6 +1230,46 @@ func (m *validateOpUpdateActionTarget) HandleInitialize(ctx context.Context, in
return next.HandleInitialize(ctx, in)
}
+type validateOpUpdateAggregatorV2 struct {
+}
+
+func (*validateOpUpdateAggregatorV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpUpdateAggregatorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*UpdateAggregatorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpUpdateAggregatorV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
+type validateOpUpdateAutomationRuleV2 struct {
+}
+
+func (*validateOpUpdateAutomationRuleV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpUpdateAutomationRuleV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*UpdateAutomationRuleV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpUpdateAutomationRuleV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpUpdateConfigurationPolicy struct {
}
@@ -970,6 +1290,26 @@ func (m *validateOpUpdateConfigurationPolicy) HandleInitialize(ctx context.Conte
return next.HandleInitialize(ctx, in)
}
+type validateOpUpdateConnectorV2 struct {
+}
+
+func (*validateOpUpdateConnectorV2) ID() string {
+ return "OperationInputValidation"
+}
+
+func (m *validateOpUpdateConnectorV2) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ input, ok := in.Parameters.(*UpdateConnectorV2Input)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
+ }
+ if err := validateOpUpdateConnectorV2Input(input); err != nil {
+ return out, metadata, err
+ }
+ return next.HandleInitialize(ctx, in)
+}
+
type validateOpUpdateFindingAggregator struct {
}
@@ -1138,22 +1478,42 @@ func addOpBatchUpdateFindingsValidationMiddleware(stack *middleware.Stack) error
return stack.Initialize.Add(&validateOpBatchUpdateFindings{}, middleware.After)
}
+func addOpBatchUpdateFindingsV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpBatchUpdateFindingsV2{}, middleware.After)
+}
+
func addOpBatchUpdateStandardsControlAssociationsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchUpdateStandardsControlAssociations{}, middleware.After)
}
+func addOpConnectorRegistrationsV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpConnectorRegistrationsV2{}, middleware.After)
+}
+
func addOpCreateActionTargetValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateActionTarget{}, middleware.After)
}
+func addOpCreateAggregatorV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateAggregatorV2{}, middleware.After)
+}
+
func addOpCreateAutomationRuleValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateAutomationRule{}, middleware.After)
}
+func addOpCreateAutomationRuleV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateAutomationRuleV2{}, middleware.After)
+}
+
func addOpCreateConfigurationPolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateConfigurationPolicy{}, middleware.After)
}
+func addOpCreateConnectorV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateConnectorV2{}, middleware.After)
+}
+
func addOpCreateFindingAggregatorValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateFindingAggregator{}, middleware.After)
}
@@ -1166,6 +1526,10 @@ func addOpCreateMembersValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateMembers{}, middleware.After)
}
+func addOpCreateTicketV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpCreateTicketV2{}, middleware.After)
+}
+
func addOpDeclineInvitationsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeclineInvitations{}, middleware.After)
}
@@ -1174,10 +1538,22 @@ func addOpDeleteActionTargetValidationMiddleware(stack *middleware.Stack) error
return stack.Initialize.Add(&validateOpDeleteActionTarget{}, middleware.After)
}
+func addOpDeleteAggregatorV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDeleteAggregatorV2{}, middleware.After)
+}
+
+func addOpDeleteAutomationRuleV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDeleteAutomationRuleV2{}, middleware.After)
+}
+
func addOpDeleteConfigurationPolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteConfigurationPolicy{}, middleware.After)
}
+func addOpDeleteConnectorV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpDeleteConnectorV2{}, middleware.After)
+}
+
func addOpDeleteFindingAggregatorValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteFindingAggregator{}, middleware.After)
}
@@ -1218,6 +1594,14 @@ func addOpEnableOrganizationAdminAccountValidationMiddleware(stack *middleware.S
return stack.Initialize.Add(&validateOpEnableOrganizationAdminAccount{}, middleware.After)
}
+func addOpGetAggregatorV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetAggregatorV2{}, middleware.After)
+}
+
+func addOpGetAutomationRuleV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetAutomationRuleV2{}, middleware.After)
+}
+
func addOpGetConfigurationPolicyAssociationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetConfigurationPolicyAssociation{}, middleware.After)
}
@@ -1226,6 +1610,10 @@ func addOpGetConfigurationPolicyValidationMiddleware(stack *middleware.Stack) er
return stack.Initialize.Add(&validateOpGetConfigurationPolicy{}, middleware.After)
}
+func addOpGetConnectorV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetConnectorV2{}, middleware.After)
+}
+
func addOpGetFindingAggregatorValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetFindingAggregator{}, middleware.After)
}
@@ -1234,6 +1622,10 @@ func addOpGetFindingHistoryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetFindingHistory{}, middleware.After)
}
+func addOpGetFindingStatisticsV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetFindingStatisticsV2{}, middleware.After)
+}
+
func addOpGetInsightResultsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetInsightResults{}, middleware.After)
}
@@ -1242,6 +1634,10 @@ func addOpGetMembersValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMembers{}, middleware.After)
}
+func addOpGetResourcesStatisticsV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpGetResourcesStatisticsV2{}, middleware.After)
+}
+
func addOpGetSecurityControlDefinitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetSecurityControlDefinition{}, middleware.After)
}
@@ -1278,10 +1674,22 @@ func addOpUpdateActionTargetValidationMiddleware(stack *middleware.Stack) error
return stack.Initialize.Add(&validateOpUpdateActionTarget{}, middleware.After)
}
+func addOpUpdateAggregatorV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpUpdateAggregatorV2{}, middleware.After)
+}
+
+func addOpUpdateAutomationRuleV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpUpdateAutomationRuleV2{}, middleware.After)
+}
+
func addOpUpdateConfigurationPolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateConfigurationPolicy{}, middleware.After)
}
+func addOpUpdateConnectorV2ValidationMiddleware(stack *middleware.Stack) error {
+ return stack.Initialize.Add(&validateOpUpdateConnectorV2{}, middleware.After)
+}
+
func addOpUpdateFindingAggregatorValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateFindingAggregator{}, middleware.After)
}
@@ -1372,6 +1780,38 @@ func validateAutomationRulesAction(v *types.AutomationRulesAction) error {
}
}
+func validateAutomationRulesActionListV2(v []types.AutomationRulesActionV2) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AutomationRulesActionListV2"}
+ for i := range v {
+ if err := validateAutomationRulesActionV2(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateAutomationRulesActionV2(v *types.AutomationRulesActionV2) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AutomationRulesActionV2"}
+ if len(v.Type) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("Type"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateAutomationRulesFindingFieldsUpdate(v *types.AutomationRulesFindingFieldsUpdate) error {
if v == nil {
return nil
@@ -1561,6 +2001,53 @@ func validateFindingProviderFields(v *types.FindingProviderFields) error {
}
}
+func validateGroupByRule(v *types.GroupByRule) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GroupByRule"}
+ if len(v.GroupByField) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("GroupByField"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateGroupByRules(v []types.GroupByRule) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GroupByRules"}
+ for i := range v {
+ if err := validateGroupByRule(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateJiraCloudUpdateConfiguration(v *types.JiraCloudUpdateConfiguration) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "JiraCloudUpdateConfiguration"}
+ if v.ProjectKey == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ProjectKey"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateMalware(v *types.Malware) error {
if v == nil {
return nil
@@ -1632,6 +2119,44 @@ func validateNoteUpdate(v *types.NoteUpdate) error {
}
}
+func validateOcsfFindingIdentifier(v *types.OcsfFindingIdentifier) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "OcsfFindingIdentifier"}
+ if v.CloudAccountUid == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("CloudAccountUid"))
+ }
+ if v.FindingInfoUid == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("FindingInfoUid"))
+ }
+ if v.MetadataProductUid == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("MetadataProductUid"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOcsfFindingIdentifierList(v []types.OcsfFindingIdentifier) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "OcsfFindingIdentifierList"}
+ for i := range v {
+ if err := validateOcsfFindingIdentifier(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateParameterConfiguration(v *types.ParameterConfiguration) error {
if v == nil {
return nil
@@ -1699,6 +2224,44 @@ func validatePolicy(v types.Policy) error {
}
}
+func validateProviderConfiguration(v types.ProviderConfiguration) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ProviderConfiguration"}
+ switch uv := v.(type) {
+ case *types.ProviderConfigurationMemberServiceNow:
+ if err := validateServiceNowProviderConfiguration(&uv.Value); err != nil {
+ invalidParams.AddNested("[ServiceNow]", err.(smithy.InvalidParamsError))
+ }
+
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateProviderUpdateConfiguration(v types.ProviderUpdateConfiguration) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ProviderUpdateConfiguration"}
+ switch uv := v.(type) {
+ case *types.ProviderUpdateConfigurationMemberJiraCloud:
+ if err := validateJiraCloudUpdateConfiguration(&uv.Value); err != nil {
+ invalidParams.AddNested("[JiraCloud]", err.(smithy.InvalidParamsError))
+ }
+
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateRelatedFinding(v *types.RelatedFinding) error {
if v == nil {
return nil
@@ -1734,16 +2297,48 @@ func validateRelatedFindingList(v []types.RelatedFinding) error {
}
}
-func validateResource(v *types.Resource) error {
+func validateResource(v *types.Resource) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "Resource"}
+ if v.Type == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Type"))
+ }
+ if v.Id == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Id"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateResourceGroupByRule(v *types.ResourceGroupByRule) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ResourceGroupByRule"}
+ if len(v.GroupByField) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("GroupByField"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateResourceGroupByRules(v []types.ResourceGroupByRule) error {
if v == nil {
return nil
}
- invalidParams := smithy.InvalidParamsError{Context: "Resource"}
- if v.Type == nil {
- invalidParams.Add(smithy.NewErrParamRequired("Type"))
- }
- if v.Id == nil {
- invalidParams.Add(smithy.NewErrParamRequired("Id"))
+ invalidParams := smithy.InvalidParamsError{Context: "ResourceGroupByRules"}
+ for i := range v {
+ if err := validateResourceGroupByRule(&v[i]); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
+ }
}
if invalidParams.Len() > 0 {
return invalidParams
@@ -1837,6 +2432,27 @@ func validateSecurityHubPolicy(v *types.SecurityHubPolicy) error {
}
}
+func validateServiceNowProviderConfiguration(v *types.ServiceNowProviderConfiguration) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ServiceNowProviderConfiguration"}
+ if v.InstanceName == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("InstanceName"))
+ }
+ if v.ClientId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ClientId"))
+ }
+ if v.ClientSecret == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ClientSecret"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateStandardsControlAssociationId(v *types.StandardsControlAssociationId) error {
if v == nil {
return nil
@@ -2279,6 +2895,23 @@ func validateOpBatchUpdateFindingsInput(v *BatchUpdateFindingsInput) error {
}
}
+func validateOpBatchUpdateFindingsV2Input(v *BatchUpdateFindingsV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "BatchUpdateFindingsV2Input"}
+ if v.FindingIdentifiers != nil {
+ if err := validateOcsfFindingIdentifierList(v.FindingIdentifiers); err != nil {
+ invalidParams.AddNested("FindingIdentifiers", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpBatchUpdateStandardsControlAssociationsInput(v *BatchUpdateStandardsControlAssociationsInput) error {
if v == nil {
return nil
@@ -2298,6 +2931,24 @@ func validateOpBatchUpdateStandardsControlAssociationsInput(v *BatchUpdateStanda
}
}
+func validateOpConnectorRegistrationsV2Input(v *ConnectorRegistrationsV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ConnectorRegistrationsV2Input"}
+ if v.AuthCode == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AuthCode"))
+ }
+ if v.AuthState == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AuthState"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpCreateActionTargetInput(v *CreateActionTargetInput) error {
if v == nil {
return nil
@@ -2319,6 +2970,21 @@ func validateOpCreateActionTargetInput(v *CreateActionTargetInput) error {
}
}
+func validateOpCreateAggregatorV2Input(v *CreateAggregatorV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateAggregatorV2Input"}
+ if v.RegionLinkingMode == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("RegionLinkingMode"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpCreateAutomationRuleInput(v *CreateAutomationRuleInput) error {
if v == nil {
return nil
@@ -2350,6 +3016,37 @@ func validateOpCreateAutomationRuleInput(v *CreateAutomationRuleInput) error {
}
}
+func validateOpCreateAutomationRuleV2Input(v *CreateAutomationRuleV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateAutomationRuleV2Input"}
+ if v.RuleName == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("RuleName"))
+ }
+ if v.Description == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Description"))
+ }
+ if v.RuleOrder == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("RuleOrder"))
+ }
+ if v.Criteria == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Criteria"))
+ }
+ if v.Actions == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Actions"))
+ } else if v.Actions != nil {
+ if err := validateAutomationRulesActionListV2(v.Actions); err != nil {
+ invalidParams.AddNested("Actions", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpCreateConfigurationPolicyInput(v *CreateConfigurationPolicyInput) error {
if v == nil {
return nil
@@ -2372,6 +3069,28 @@ func validateOpCreateConfigurationPolicyInput(v *CreateConfigurationPolicyInput)
}
}
+func validateOpCreateConnectorV2Input(v *CreateConnectorV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateConnectorV2Input"}
+ if v.Name == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Name"))
+ }
+ if v.Provider == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Provider"))
+ } else if v.Provider != nil {
+ if err := validateProviderConfiguration(v.Provider); err != nil {
+ invalidParams.AddNested("Provider", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpCreateFindingAggregatorInput(v *CreateFindingAggregatorInput) error {
if v == nil {
return nil
@@ -2427,6 +3146,24 @@ func validateOpCreateMembersInput(v *CreateMembersInput) error {
}
}
+func validateOpCreateTicketV2Input(v *CreateTicketV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "CreateTicketV2Input"}
+ if v.ConnectorId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ConnectorId"))
+ }
+ if v.FindingMetadataUid == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("FindingMetadataUid"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpDeclineInvitationsInput(v *DeclineInvitationsInput) error {
if v == nil {
return nil
@@ -2457,6 +3194,36 @@ func validateOpDeleteActionTargetInput(v *DeleteActionTargetInput) error {
}
}
+func validateOpDeleteAggregatorV2Input(v *DeleteAggregatorV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DeleteAggregatorV2Input"}
+ if v.AggregatorV2Arn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AggregatorV2Arn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpDeleteAutomationRuleV2Input(v *DeleteAutomationRuleV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DeleteAutomationRuleV2Input"}
+ if v.Identifier == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Identifier"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpDeleteConfigurationPolicyInput(v *DeleteConfigurationPolicyInput) error {
if v == nil {
return nil
@@ -2472,6 +3239,21 @@ func validateOpDeleteConfigurationPolicyInput(v *DeleteConfigurationPolicyInput)
}
}
+func validateOpDeleteConnectorV2Input(v *DeleteConnectorV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "DeleteConnectorV2Input"}
+ if v.ConnectorId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ConnectorId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpDeleteFindingAggregatorInput(v *DeleteFindingAggregatorInput) error {
if v == nil {
return nil
@@ -2622,6 +3404,36 @@ func validateOpEnableOrganizationAdminAccountInput(v *EnableOrganizationAdminAcc
}
}
+func validateOpGetAggregatorV2Input(v *GetAggregatorV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetAggregatorV2Input"}
+ if v.AggregatorV2Arn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AggregatorV2Arn"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpGetAutomationRuleV2Input(v *GetAutomationRuleV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetAutomationRuleV2Input"}
+ if v.Identifier == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Identifier"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpGetConfigurationPolicyAssociationInput(v *GetConfigurationPolicyAssociationInput) error {
if v == nil {
return nil
@@ -2652,6 +3464,21 @@ func validateOpGetConfigurationPolicyInput(v *GetConfigurationPolicyInput) error
}
}
+func validateOpGetConnectorV2Input(v *GetConnectorV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetConnectorV2Input"}
+ if v.ConnectorId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ConnectorId"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpGetFindingAggregatorInput(v *GetFindingAggregatorInput) error {
if v == nil {
return nil
@@ -2686,6 +3513,25 @@ func validateOpGetFindingHistoryInput(v *GetFindingHistoryInput) error {
}
}
+func validateOpGetFindingStatisticsV2Input(v *GetFindingStatisticsV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetFindingStatisticsV2Input"}
+ if v.GroupByRules == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("GroupByRules"))
+ } else if v.GroupByRules != nil {
+ if err := validateGroupByRules(v.GroupByRules); err != nil {
+ invalidParams.AddNested("GroupByRules", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpGetInsightResultsInput(v *GetInsightResultsInput) error {
if v == nil {
return nil
@@ -2716,6 +3562,25 @@ func validateOpGetMembersInput(v *GetMembersInput) error {
}
}
+func validateOpGetResourcesStatisticsV2Input(v *GetResourcesStatisticsV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "GetResourcesStatisticsV2Input"}
+ if v.GroupByRules == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("GroupByRules"))
+ } else if v.GroupByRules != nil {
+ if err := validateResourceGroupByRules(v.GroupByRules); err != nil {
+ invalidParams.AddNested("GroupByRules", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpGetSecurityControlDefinitionInput(v *GetSecurityControlDefinitionInput) error {
if v == nil {
return nil
@@ -2860,6 +3725,44 @@ func validateOpUpdateActionTargetInput(v *UpdateActionTargetInput) error {
}
}
+func validateOpUpdateAggregatorV2Input(v *UpdateAggregatorV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateAggregatorV2Input"}
+ if v.AggregatorV2Arn == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("AggregatorV2Arn"))
+ }
+ if v.RegionLinkingMode == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("RegionLinkingMode"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateOpUpdateAutomationRuleV2Input(v *UpdateAutomationRuleV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateAutomationRuleV2Input"}
+ if v.Identifier == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Identifier"))
+ }
+ if v.Actions != nil {
+ if err := validateAutomationRulesActionListV2(v.Actions); err != nil {
+ invalidParams.AddNested("Actions", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpUpdateConfigurationPolicyInput(v *UpdateConfigurationPolicyInput) error {
if v == nil {
return nil
@@ -2880,6 +3783,26 @@ func validateOpUpdateConfigurationPolicyInput(v *UpdateConfigurationPolicyInput)
}
}
+func validateOpUpdateConnectorV2Input(v *UpdateConnectorV2Input) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "UpdateConnectorV2Input"}
+ if v.ConnectorId == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ConnectorId"))
+ }
+ if v.Provider != nil {
+ if err := validateProviderUpdateConfiguration(v.Provider); err != nil {
+ invalidParams.AddNested("Provider", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOpUpdateFindingAggregatorInput(v *UpdateFindingAggregatorInput) error {
if v == nil {
return nil
diff --git a/service/securityir/CHANGELOG.md b/service/securityir/CHANGELOG.md
index 66523fd302e..1cd7bed17f0 100644
--- a/service/securityir/CHANGELOG.md
+++ b/service/securityir/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.3.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.3.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/securityir/go.mod b/service/securityir/go.mod
index ef498d72a06..e41d23dfabe 100644
--- a/service/securityir/go.mod
+++ b/service/securityir/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/securityir
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/securityir/go.sum b/service/securityir/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/securityir/go.sum
+++ b/service/securityir/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/securityir/go_module_metadata.go b/service/securityir/go_module_metadata.go
index 4e463264a07..b0ed17dae09 100644
--- a/service/securityir/go_module_metadata.go
+++ b/service/securityir/go_module_metadata.go
@@ -3,4 +3,4 @@
package securityir
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.3.1"
+const goModuleVersion = "1.3.2"
diff --git a/service/securitylake/CHANGELOG.md b/service/securitylake/CHANGELOG.md
index 103c23742a0..e98eba811a1 100644
--- a/service/securitylake/CHANGELOG.md
+++ b/service/securitylake/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.20.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.20.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/securitylake/go.mod b/service/securitylake/go.mod
index 2ac11702cd6..1f445ce95e4 100644
--- a/service/securitylake/go.mod
+++ b/service/securitylake/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/securitylake
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/securitylake/go.sum b/service/securitylake/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/securitylake/go.sum
+++ b/service/securitylake/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/securitylake/go_module_metadata.go b/service/securitylake/go_module_metadata.go
index 32f279aff4a..4840af921f0 100644
--- a/service/securitylake/go_module_metadata.go
+++ b/service/securitylake/go_module_metadata.go
@@ -3,4 +3,4 @@
package securitylake
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.20.4"
+const goModuleVersion = "1.20.5"
diff --git a/service/serverlessapplicationrepository/CHANGELOG.md b/service/serverlessapplicationrepository/CHANGELOG.md
index 6e7dce16b23..1c2ef424b24 100644
--- a/service/serverlessapplicationrepository/CHANGELOG.md
+++ b/service/serverlessapplicationrepository/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod
index ed268db009d..bae667fff85 100644
--- a/service/serverlessapplicationrepository/go.mod
+++ b/service/serverlessapplicationrepository/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/serverlessapplicationrepository
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/serverlessapplicationrepository/go.sum
+++ b/service/serverlessapplicationrepository/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/serverlessapplicationrepository/go_module_metadata.go b/service/serverlessapplicationrepository/go_module_metadata.go
index 69de6850edf..741e9fe8601 100644
--- a/service/serverlessapplicationrepository/go_module_metadata.go
+++ b/service/serverlessapplicationrepository/go_module_metadata.go
@@ -3,4 +3,4 @@
package serverlessapplicationrepository
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/servicecatalog/CHANGELOG.md b/service/servicecatalog/CHANGELOG.md
index 7fedb9ca859..bfafd0b5577 100644
--- a/service/servicecatalog/CHANGELOG.md
+++ b/service/servicecatalog/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.34.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.34.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod
index 0da703b6e97..1e14c5bd26c 100644
--- a/service/servicecatalog/go.mod
+++ b/service/servicecatalog/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicecatalog
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/servicecatalog/go.sum
+++ b/service/servicecatalog/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/servicecatalog/go_module_metadata.go b/service/servicecatalog/go_module_metadata.go
index 5d41c1124b5..e3e01af4d25 100644
--- a/service/servicecatalog/go_module_metadata.go
+++ b/service/servicecatalog/go_module_metadata.go
@@ -3,4 +3,4 @@
package servicecatalog
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.1"
+const goModuleVersion = "1.34.2"
diff --git a/service/servicecatalogappregistry/CHANGELOG.md b/service/servicecatalogappregistry/CHANGELOG.md
index 980d179e308..dedee9a5a98 100644
--- a/service/servicecatalogappregistry/CHANGELOG.md
+++ b/service/servicecatalogappregistry/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/servicecatalogappregistry/go.mod b/service/servicecatalogappregistry/go.mod
index fd5335bfff2..0d9dca397b2 100644
--- a/service/servicecatalogappregistry/go.mod
+++ b/service/servicecatalogappregistry/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicecatalogappregistry
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/servicecatalogappregistry/go.sum
+++ b/service/servicecatalogappregistry/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/servicecatalogappregistry/go_module_metadata.go b/service/servicecatalogappregistry/go_module_metadata.go
index 4681d26f919..29c46689b27 100644
--- a/service/servicecatalogappregistry/go_module_metadata.go
+++ b/service/servicecatalogappregistry/go_module_metadata.go
@@ -3,4 +3,4 @@
package servicecatalogappregistry
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.3"
+const goModuleVersion = "1.31.4"
diff --git a/service/servicediscovery/CHANGELOG.md b/service/servicediscovery/CHANGELOG.md
index 6e24c78861a..713c48523ef 100644
--- a/service/servicediscovery/CHANGELOG.md
+++ b/service/servicediscovery/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod
index 337d70e57e9..15ece280997 100644
--- a/service/servicediscovery/go.mod
+++ b/service/servicediscovery/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicediscovery
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/servicediscovery/go.sum
+++ b/service/servicediscovery/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/servicediscovery/go_module_metadata.go b/service/servicediscovery/go_module_metadata.go
index c6f44520c41..c2cb853f437 100644
--- a/service/servicediscovery/go_module_metadata.go
+++ b/service/servicediscovery/go_module_metadata.go
@@ -3,4 +3,4 @@
package servicediscovery
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.6"
+const goModuleVersion = "1.35.7"
diff --git a/service/servicequotas/CHANGELOG.md b/service/servicequotas/CHANGELOG.md
index 22f6af4ab61..7aa29a6a4e4 100644
--- a/service/servicequotas/CHANGELOG.md
+++ b/service/servicequotas/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod
index e6fb2e95f88..2cf8763e0a4 100644
--- a/service/servicequotas/go.mod
+++ b/service/servicequotas/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicequotas
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/servicequotas/go.sum
+++ b/service/servicequotas/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/servicequotas/go_module_metadata.go b/service/servicequotas/go_module_metadata.go
index c44dc22f900..3788876a35b 100644
--- a/service/servicequotas/go_module_metadata.go
+++ b/service/servicequotas/go_module_metadata.go
@@ -3,4 +3,4 @@
package servicequotas
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.2"
+const goModuleVersion = "1.28.3"
diff --git a/service/ses/CHANGELOG.md b/service/ses/CHANGELOG.md
index a31b51f5be7..1913745524e 100644
--- a/service/ses/CHANGELOG.md
+++ b/service/ses/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ses/go.mod b/service/ses/go.mod
index bee6271ca10..032b9c30c8a 100644
--- a/service/ses/go.mod
+++ b/service/ses/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ses
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ses/go.sum b/service/ses/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ses/go.sum
+++ b/service/ses/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ses/go_module_metadata.go b/service/ses/go_module_metadata.go
index 4afa9cde023..c508ffa5098 100644
--- a/service/ses/go_module_metadata.go
+++ b/service/ses/go_module_metadata.go
@@ -3,4 +3,4 @@
package ses
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/sesv2/CHANGELOG.md b/service/sesv2/CHANGELOG.md
index 198dc59b78f..02922e0b21c 100644
--- a/service/sesv2/CHANGELOG.md
+++ b/service/sesv2/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.45.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.45.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod
index ee8b6dd2458..181cfb11cef 100644
--- a/service/sesv2/go.mod
+++ b/service/sesv2/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/sesv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sesv2/go.sum
+++ b/service/sesv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sesv2/go_module_metadata.go b/service/sesv2/go_module_metadata.go
index 3788c484896..ad1b6e44834 100644
--- a/service/sesv2/go_module_metadata.go
+++ b/service/sesv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package sesv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.45.1"
+const goModuleVersion = "1.45.2"
diff --git a/service/sfn/CHANGELOG.md b/service/sfn/CHANGELOG.md
index 1afcc9080c8..4f7e895a55f 100644
--- a/service/sfn/CHANGELOG.md
+++ b/service/sfn/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sfn/go.mod b/service/sfn/go.mod
index 2df85ddd25a..3beaaff74f8 100644
--- a/service/sfn/go.mod
+++ b/service/sfn/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sfn
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sfn/go.sum b/service/sfn/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sfn/go.sum
+++ b/service/sfn/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sfn/go_module_metadata.go b/service/sfn/go_module_metadata.go
index 523cd649b8b..385181e7ce1 100644
--- a/service/sfn/go_module_metadata.go
+++ b/service/sfn/go_module_metadata.go
@@ -3,4 +3,4 @@
package sfn
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.6"
+const goModuleVersion = "1.35.7"
diff --git a/service/shield/CHANGELOG.md b/service/shield/CHANGELOG.md
index da1c0f5f9cc..710efdc88bf 100644
--- a/service/shield/CHANGELOG.md
+++ b/service/shield/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/shield/go.mod b/service/shield/go.mod
index 4fe842451d6..7ea5316bab7 100644
--- a/service/shield/go.mod
+++ b/service/shield/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/shield
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/shield/go.sum b/service/shield/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/shield/go.sum
+++ b/service/shield/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/shield/go_module_metadata.go b/service/shield/go_module_metadata.go
index 0723de4f005..8b4e766c9c2 100644
--- a/service/shield/go_module_metadata.go
+++ b/service/shield/go_module_metadata.go
@@ -3,4 +3,4 @@
package shield
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.3"
+const goModuleVersion = "1.30.4"
diff --git a/service/signer/CHANGELOG.md b/service/signer/CHANGELOG.md
index 8b789bf7996..c89fb098ace 100644
--- a/service/signer/CHANGELOG.md
+++ b/service/signer/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/signer/go.mod b/service/signer/go.mod
index 1c420053c42..8cfe5560d63 100644
--- a/service/signer/go.mod
+++ b/service/signer/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/signer
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/signer/go.sum b/service/signer/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/signer/go.sum
+++ b/service/signer/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/signer/go_module_metadata.go b/service/signer/go_module_metadata.go
index 646bd047fd9..adf8ee1aa8b 100644
--- a/service/signer/go_module_metadata.go
+++ b/service/signer/go_module_metadata.go
@@ -3,4 +3,4 @@
package signer
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/simspaceweaver/CHANGELOG.md b/service/simspaceweaver/CHANGELOG.md
index d9f79c45d55..d7fdda726c9 100644
--- a/service/simspaceweaver/CHANGELOG.md
+++ b/service/simspaceweaver/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.15.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/simspaceweaver/go.mod b/service/simspaceweaver/go.mod
index 61637d299d6..f0f5ae872d7 100644
--- a/service/simspaceweaver/go.mod
+++ b/service/simspaceweaver/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/simspaceweaver
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/simspaceweaver/go.sum b/service/simspaceweaver/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/simspaceweaver/go.sum
+++ b/service/simspaceweaver/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/simspaceweaver/go_module_metadata.go b/service/simspaceweaver/go_module_metadata.go
index eed8ce50497..592de12256c 100644
--- a/service/simspaceweaver/go_module_metadata.go
+++ b/service/simspaceweaver/go_module_metadata.go
@@ -3,4 +3,4 @@
package simspaceweaver
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.15.3"
+const goModuleVersion = "1.15.4"
diff --git a/service/sms/CHANGELOG.md b/service/sms/CHANGELOG.md
index dda5cf0ff0b..6cf04fb9669 100644
--- a/service/sms/CHANGELOG.md
+++ b/service/sms/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sms/go.mod b/service/sms/go.mod
index de3246734f0..808c4162011 100644
--- a/service/sms/go.mod
+++ b/service/sms/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sms
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sms/go.sum b/service/sms/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sms/go.sum
+++ b/service/sms/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sms/go_module_metadata.go b/service/sms/go_module_metadata.go
index ef0cf7df99d..249f7cf8f29 100644
--- a/service/sms/go_module_metadata.go
+++ b/service/sms/go_module_metadata.go
@@ -3,4 +3,4 @@
package sms
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/snowball/CHANGELOG.md b/service/snowball/CHANGELOG.md
index 1b269666085..3994ac8e9bf 100644
--- a/service/snowball/CHANGELOG.md
+++ b/service/snowball/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/snowball/go.mod b/service/snowball/go.mod
index 014635124c2..9d17229db0a 100644
--- a/service/snowball/go.mod
+++ b/service/snowball/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/snowball
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/snowball/go.sum b/service/snowball/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/snowball/go.sum
+++ b/service/snowball/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/snowball/go_module_metadata.go b/service/snowball/go_module_metadata.go
index d03bb87e078..4f5c130f22d 100644
--- a/service/snowball/go_module_metadata.go
+++ b/service/snowball/go_module_metadata.go
@@ -3,4 +3,4 @@
package snowball
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.4"
+const goModuleVersion = "1.31.5"
diff --git a/service/snowdevicemanagement/CHANGELOG.md b/service/snowdevicemanagement/CHANGELOG.md
index 65c41b51b60..064d1e4f26e 100644
--- a/service/snowdevicemanagement/CHANGELOG.md
+++ b/service/snowdevicemanagement/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.21.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.21.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/snowdevicemanagement/go.mod b/service/snowdevicemanagement/go.mod
index 91b3dff5a0e..87a5158a0ba 100644
--- a/service/snowdevicemanagement/go.mod
+++ b/service/snowdevicemanagement/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/snowdevicemanagement
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/snowdevicemanagement/go.sum b/service/snowdevicemanagement/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/snowdevicemanagement/go.sum
+++ b/service/snowdevicemanagement/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/snowdevicemanagement/go_module_metadata.go b/service/snowdevicemanagement/go_module_metadata.go
index d9e52ce6c8d..aef779a1908 100644
--- a/service/snowdevicemanagement/go_module_metadata.go
+++ b/service/snowdevicemanagement/go_module_metadata.go
@@ -3,4 +3,4 @@
package snowdevicemanagement
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.21.3"
+const goModuleVersion = "1.21.4"
diff --git a/service/sns/CHANGELOG.md b/service/sns/CHANGELOG.md
index fa850c118f0..b1b533ae0c1 100644
--- a/service/sns/CHANGELOG.md
+++ b/service/sns/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.34.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.34.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sns/go.mod b/service/sns/go.mod
index 910f0502cea..b943e7c648b 100644
--- a/service/sns/go.mod
+++ b/service/sns/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sns
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sns/go.sum b/service/sns/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sns/go.sum
+++ b/service/sns/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sns/go_module_metadata.go b/service/sns/go_module_metadata.go
index 19bcafccbf0..ed89092f3d4 100644
--- a/service/sns/go_module_metadata.go
+++ b/service/sns/go_module_metadata.go
@@ -3,4 +3,4 @@
package sns
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.34.6"
+const goModuleVersion = "1.34.7"
diff --git a/service/socialmessaging/CHANGELOG.md b/service/socialmessaging/CHANGELOG.md
index a769159aaff..600517056ec 100644
--- a/service/socialmessaging/CHANGELOG.md
+++ b/service/socialmessaging/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.2.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.2.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/socialmessaging/go.mod b/service/socialmessaging/go.mod
index 8d7a153c564..16de5362e93 100644
--- a/service/socialmessaging/go.mod
+++ b/service/socialmessaging/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/socialmessaging
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/socialmessaging/go.sum b/service/socialmessaging/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/socialmessaging/go.sum
+++ b/service/socialmessaging/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/socialmessaging/go_module_metadata.go b/service/socialmessaging/go_module_metadata.go
index 12bcd82cadf..53379def050 100644
--- a/service/socialmessaging/go_module_metadata.go
+++ b/service/socialmessaging/go_module_metadata.go
@@ -3,4 +3,4 @@
package socialmessaging
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.2.3"
+const goModuleVersion = "1.2.4"
diff --git a/service/sqs/CHANGELOG.md b/service/sqs/CHANGELOG.md
index f21d36d9ca3..6ed504792aa 100644
--- a/service/sqs/CHANGELOG.md
+++ b/service/sqs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.38.8 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.38.7 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sqs/go.mod b/service/sqs/go.mod
index 4220e6768a5..2a0b5d0edb8 100644
--- a/service/sqs/go.mod
+++ b/service/sqs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sqs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sqs/go.sum b/service/sqs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sqs/go.sum
+++ b/service/sqs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sqs/go_module_metadata.go b/service/sqs/go_module_metadata.go
index 390ced9b217..310d711328e 100644
--- a/service/sqs/go_module_metadata.go
+++ b/service/sqs/go_module_metadata.go
@@ -3,4 +3,4 @@
package sqs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.38.7"
+const goModuleVersion = "1.38.8"
diff --git a/service/ssm/CHANGELOG.md b/service/ssm/CHANGELOG.md
index d772166be7a..6e9d41406f3 100644
--- a/service/ssm/CHANGELOG.md
+++ b/service/ssm/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.59.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.59.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ssm/go.mod b/service/ssm/go.mod
index 255cac73f09..ca65d0d1585 100644
--- a/service/ssm/go.mod
+++ b/service/ssm/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssm
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ssm/go.sum b/service/ssm/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ssm/go.sum
+++ b/service/ssm/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ssm/go_module_metadata.go b/service/ssm/go_module_metadata.go
index 45a15b79cd7..8824b8e18ba 100644
--- a/service/ssm/go_module_metadata.go
+++ b/service/ssm/go_module_metadata.go
@@ -3,4 +3,4 @@
package ssm
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.59.2"
+const goModuleVersion = "1.59.3"
diff --git a/service/ssmcontacts/CHANGELOG.md b/service/ssmcontacts/CHANGELOG.md
index 79929cdb7e7..311622bce6b 100644
--- a/service/ssmcontacts/CHANGELOG.md
+++ b/service/ssmcontacts/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ssmcontacts/go.mod b/service/ssmcontacts/go.mod
index 3c40e24b373..56861a4224b 100644
--- a/service/ssmcontacts/go.mod
+++ b/service/ssmcontacts/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmcontacts
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ssmcontacts/go.sum b/service/ssmcontacts/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ssmcontacts/go.sum
+++ b/service/ssmcontacts/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ssmcontacts/go_module_metadata.go b/service/ssmcontacts/go_module_metadata.go
index ced4b151aba..9d509e974ae 100644
--- a/service/ssmcontacts/go_module_metadata.go
+++ b/service/ssmcontacts/go_module_metadata.go
@@ -3,4 +3,4 @@
package ssmcontacts
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/ssmguiconnect/CHANGELOG.md b/service/ssmguiconnect/CHANGELOG.md
index 303dc05e26e..980cdec3c79 100644
--- a/service/ssmguiconnect/CHANGELOG.md
+++ b/service/ssmguiconnect/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.0.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.0.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ssmguiconnect/go.mod b/service/ssmguiconnect/go.mod
index 721089881df..e8bcdb53fe5 100644
--- a/service/ssmguiconnect/go.mod
+++ b/service/ssmguiconnect/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmguiconnect
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ssmguiconnect/go.sum b/service/ssmguiconnect/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ssmguiconnect/go.sum
+++ b/service/ssmguiconnect/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ssmguiconnect/go_module_metadata.go b/service/ssmguiconnect/go_module_metadata.go
index df8cc56907e..f3769b00d66 100644
--- a/service/ssmguiconnect/go_module_metadata.go
+++ b/service/ssmguiconnect/go_module_metadata.go
@@ -3,4 +3,4 @@
package ssmguiconnect
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.0.1"
+const goModuleVersion = "1.0.2"
diff --git a/service/ssmincidents/CHANGELOG.md b/service/ssmincidents/CHANGELOG.md
index 4a65179c665..df864e5a6fc 100644
--- a/service/ssmincidents/CHANGELOG.md
+++ b/service/ssmincidents/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ssmincidents/go.mod b/service/ssmincidents/go.mod
index e665f1fee56..a0c6bac86fd 100644
--- a/service/ssmincidents/go.mod
+++ b/service/ssmincidents/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmincidents
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ssmincidents/go.sum b/service/ssmincidents/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ssmincidents/go.sum
+++ b/service/ssmincidents/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ssmincidents/go_module_metadata.go b/service/ssmincidents/go_module_metadata.go
index 3f5ea7218d3..2fc5b6762e4 100644
--- a/service/ssmincidents/go_module_metadata.go
+++ b/service/ssmincidents/go_module_metadata.go
@@ -3,4 +3,4 @@
package ssmincidents
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.3"
+const goModuleVersion = "1.35.4"
diff --git a/service/ssmquicksetup/CHANGELOG.md b/service/ssmquicksetup/CHANGELOG.md
index 047839c5592..bb8d7431c57 100644
--- a/service/ssmquicksetup/CHANGELOG.md
+++ b/service/ssmquicksetup/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.4.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.4.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ssmquicksetup/go.mod b/service/ssmquicksetup/go.mod
index a8c0c773148..24aac60c8d9 100644
--- a/service/ssmquicksetup/go.mod
+++ b/service/ssmquicksetup/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmquicksetup
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ssmquicksetup/go.sum b/service/ssmquicksetup/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ssmquicksetup/go.sum
+++ b/service/ssmquicksetup/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ssmquicksetup/go_module_metadata.go b/service/ssmquicksetup/go_module_metadata.go
index 384b0482a0b..8e2b19f05cb 100644
--- a/service/ssmquicksetup/go_module_metadata.go
+++ b/service/ssmquicksetup/go_module_metadata.go
@@ -3,4 +3,4 @@
package ssmquicksetup
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.4.3"
+const goModuleVersion = "1.4.4"
diff --git a/service/ssmsap/CHANGELOG.md b/service/ssmsap/CHANGELOG.md
index 283ac5148b4..32274bb191f 100644
--- a/service/ssmsap/CHANGELOG.md
+++ b/service/ssmsap/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.20.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.20.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ssmsap/go.mod b/service/ssmsap/go.mod
index 3ecfd15d0aa..e1789347be0 100644
--- a/service/ssmsap/go.mod
+++ b/service/ssmsap/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmsap
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ssmsap/go.sum b/service/ssmsap/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ssmsap/go.sum
+++ b/service/ssmsap/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ssmsap/go_module_metadata.go b/service/ssmsap/go_module_metadata.go
index 969a7f4ea19..0f70296bf2b 100644
--- a/service/ssmsap/go_module_metadata.go
+++ b/service/ssmsap/go_module_metadata.go
@@ -3,4 +3,4 @@
package ssmsap
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.20.3"
+const goModuleVersion = "1.20.4"
diff --git a/service/sso/CHANGELOG.md b/service/sso/CHANGELOG.md
index 928ffc3901f..6fdc4a2fa8b 100644
--- a/service/sso/CHANGELOG.md
+++ b/service/sso/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sso/go.mod b/service/sso/go.mod
index 5351ca1241d..92fdfa5a935 100644
--- a/service/sso/go.mod
+++ b/service/sso/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sso
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sso/go.sum b/service/sso/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sso/go.sum
+++ b/service/sso/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sso/go_module_metadata.go b/service/sso/go_module_metadata.go
index 5bd6f007842..2b303dc582a 100644
--- a/service/sso/go_module_metadata.go
+++ b/service/sso/go_module_metadata.go
@@ -3,4 +3,4 @@
package sso
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.4"
+const goModuleVersion = "1.25.5"
diff --git a/service/ssoadmin/CHANGELOG.md b/service/ssoadmin/CHANGELOG.md
index ecf9ba57a2d..64dcecdbd88 100644
--- a/service/ssoadmin/CHANGELOG.md
+++ b/service/ssoadmin/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod
index 7bdd2477975..2f54074d372 100644
--- a/service/ssoadmin/go.mod
+++ b/service/ssoadmin/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssoadmin
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ssoadmin/go.sum
+++ b/service/ssoadmin/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ssoadmin/go_module_metadata.go b/service/ssoadmin/go_module_metadata.go
index 19ddddb06aa..6ddd74b9ded 100644
--- a/service/ssoadmin/go_module_metadata.go
+++ b/service/ssoadmin/go_module_metadata.go
@@ -3,4 +3,4 @@
package ssoadmin
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.1"
+const goModuleVersion = "1.31.2"
diff --git a/service/ssooidc/CHANGELOG.md b/service/ssooidc/CHANGELOG.md
index e0d0da2b624..0f1157c7955 100644
--- a/service/ssooidc/CHANGELOG.md
+++ b/service/ssooidc/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.30.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.30.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod
index dc5b7f0827d..817bda5a70e 100644
--- a/service/ssooidc/go.mod
+++ b/service/ssooidc/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssooidc
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/ssooidc/go.sum
+++ b/service/ssooidc/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/ssooidc/go_module_metadata.go b/service/ssooidc/go_module_metadata.go
index ac4fcd9b6eb..a10fa7b4a46 100644
--- a/service/ssooidc/go_module_metadata.go
+++ b/service/ssooidc/go_module_metadata.go
@@ -3,4 +3,4 @@
package ssooidc
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.30.2"
+const goModuleVersion = "1.30.3"
diff --git a/service/storagegateway/CHANGELOG.md b/service/storagegateway/CHANGELOG.md
index 2b40dfc0c15..d706980985f 100644
--- a/service/storagegateway/CHANGELOG.md
+++ b/service/storagegateway/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.37.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.37.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod
index 181a844c167..49246aee810 100644
--- a/service/storagegateway/go.mod
+++ b/service/storagegateway/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/storagegateway
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/storagegateway/go.sum
+++ b/service/storagegateway/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/storagegateway/go_module_metadata.go b/service/storagegateway/go_module_metadata.go
index 75597a1b434..f5f5000c9e8 100644
--- a/service/storagegateway/go_module_metadata.go
+++ b/service/storagegateway/go_module_metadata.go
@@ -3,4 +3,4 @@
package storagegateway
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.37.2"
+const goModuleVersion = "1.37.3"
diff --git a/service/sts/CHANGELOG.md b/service/sts/CHANGELOG.md
index 14921992499..e1722a6d0fb 100644
--- a/service/sts/CHANGELOG.md
+++ b/service/sts/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.34.0 (2025-06-17)
+
+* **Feature**: The AWS Security Token Service APIs AssumeRoleWithSAML and AssumeRoleWithWebIdentity can now be invoked without pre-configured AWS credentials in the SDK configuration.
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.33.21 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/sts/go.mod b/service/sts/go.mod
index 7ec76fa0517..51debff8fa0 100644
--- a/service/sts/go.mod
+++ b/service/sts/go.mod
@@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/sts
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/sts/go.sum b/service/sts/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/sts/go.sum
+++ b/service/sts/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/sts/go_module_metadata.go b/service/sts/go_module_metadata.go
index 0b59c0fa3d4..0e024c501b8 100644
--- a/service/sts/go_module_metadata.go
+++ b/service/sts/go_module_metadata.go
@@ -3,4 +3,4 @@
package sts
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.33.21"
+const goModuleVersion = "1.34.0"
diff --git a/service/supplychain/CHANGELOG.md b/service/supplychain/CHANGELOG.md
index aca396dec5b..c9886f7c4cd 100644
--- a/service/supplychain/CHANGELOG.md
+++ b/service/supplychain/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.13.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.13.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/supplychain/go.mod b/service/supplychain/go.mod
index f881ee58c6b..8c048b2d272 100644
--- a/service/supplychain/go.mod
+++ b/service/supplychain/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/supplychain
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/supplychain/go.sum b/service/supplychain/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/supplychain/go.sum
+++ b/service/supplychain/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/supplychain/go_module_metadata.go b/service/supplychain/go_module_metadata.go
index 44dd0b34cdf..9fc74e5a0d1 100644
--- a/service/supplychain/go_module_metadata.go
+++ b/service/supplychain/go_module_metadata.go
@@ -3,4 +3,4 @@
package supplychain
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.13.1"
+const goModuleVersion = "1.13.2"
diff --git a/service/support/CHANGELOG.md b/service/support/CHANGELOG.md
index e0e28884e47..38da1f0f14d 100644
--- a/service/support/CHANGELOG.md
+++ b/service/support/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/support/go.mod b/service/support/go.mod
index a78b8fae633..6c25a517ad4 100644
--- a/service/support/go.mod
+++ b/service/support/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/support
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/support/go.sum b/service/support/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/support/go.sum
+++ b/service/support/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/support/go_module_metadata.go b/service/support/go_module_metadata.go
index 9c010d57689..5d9bab70c3f 100644
--- a/service/support/go_module_metadata.go
+++ b/service/support/go_module_metadata.go
@@ -3,4 +3,4 @@
package support
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/supportapp/CHANGELOG.md b/service/supportapp/CHANGELOG.md
index 7e2a764060a..147acbffaa3 100644
--- a/service/supportapp/CHANGELOG.md
+++ b/service/supportapp/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.14.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.14.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/supportapp/go.mod b/service/supportapp/go.mod
index c208df31291..10d43f335ca 100644
--- a/service/supportapp/go.mod
+++ b/service/supportapp/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/supportapp
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/supportapp/go.sum b/service/supportapp/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/supportapp/go.sum
+++ b/service/supportapp/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/supportapp/go_module_metadata.go b/service/supportapp/go_module_metadata.go
index 36b40f38bb7..c83b9adbd4a 100644
--- a/service/supportapp/go_module_metadata.go
+++ b/service/supportapp/go_module_metadata.go
@@ -3,4 +3,4 @@
package supportapp
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.14.3"
+const goModuleVersion = "1.14.4"
diff --git a/service/swf/CHANGELOG.md b/service/swf/CHANGELOG.md
index 5d2eccda25a..c10286863d3 100644
--- a/service/swf/CHANGELOG.md
+++ b/service/swf/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.6 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.5 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/swf/go.mod b/service/swf/go.mod
index 908d48c6e19..4878e7f9bda 100644
--- a/service/swf/go.mod
+++ b/service/swf/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/swf
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/swf/go.sum b/service/swf/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/swf/go.sum
+++ b/service/swf/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/swf/go_module_metadata.go b/service/swf/go_module_metadata.go
index 77f58df23b8..da2e5209cc4 100644
--- a/service/swf/go_module_metadata.go
+++ b/service/swf/go_module_metadata.go
@@ -3,4 +3,4 @@
package swf
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.5"
+const goModuleVersion = "1.28.6"
diff --git a/service/synthetics/CHANGELOG.md b/service/synthetics/CHANGELOG.md
index 2360e9c55f3..d552920a5d7 100644
--- a/service/synthetics/CHANGELOG.md
+++ b/service/synthetics/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod
index e780515c6b4..4f1d7554c79 100644
--- a/service/synthetics/go.mod
+++ b/service/synthetics/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/synthetics
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/synthetics/go.sum
+++ b/service/synthetics/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/synthetics/go_module_metadata.go b/service/synthetics/go_module_metadata.go
index 7e1deb4665a..bfab3f9b7fe 100644
--- a/service/synthetics/go_module_metadata.go
+++ b/service/synthetics/go_module_metadata.go
@@ -3,4 +3,4 @@
package synthetics
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.2"
+const goModuleVersion = "1.35.3"
diff --git a/service/taxsettings/CHANGELOG.md b/service/taxsettings/CHANGELOG.md
index 04205b7d100..61cd5a28b09 100644
--- a/service/taxsettings/CHANGELOG.md
+++ b/service/taxsettings/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.12.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.12.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/taxsettings/go.mod b/service/taxsettings/go.mod
index b27d3b447f3..6ef72da0fef 100644
--- a/service/taxsettings/go.mod
+++ b/service/taxsettings/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/taxsettings
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/taxsettings/go.sum b/service/taxsettings/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/taxsettings/go.sum
+++ b/service/taxsettings/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/taxsettings/go_module_metadata.go b/service/taxsettings/go_module_metadata.go
index a6f873835c0..3358d0cc093 100644
--- a/service/taxsettings/go_module_metadata.go
+++ b/service/taxsettings/go_module_metadata.go
@@ -3,4 +3,4 @@
package taxsettings
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.12.1"
+const goModuleVersion = "1.12.2"
diff --git a/service/textract/CHANGELOG.md b/service/textract/CHANGELOG.md
index 29cf1d53eb0..d914db9fa96 100644
--- a/service/textract/CHANGELOG.md
+++ b/service/textract/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/textract/go.mod b/service/textract/go.mod
index 6482c44424f..464e878ae30 100644
--- a/service/textract/go.mod
+++ b/service/textract/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/textract
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/textract/go.sum b/service/textract/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/textract/go.sum
+++ b/service/textract/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/textract/go_module_metadata.go b/service/textract/go_module_metadata.go
index b0282a59e88..2524003ca4b 100644
--- a/service/textract/go_module_metadata.go
+++ b/service/textract/go_module_metadata.go
@@ -3,4 +3,4 @@
package textract
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.3"
+const goModuleVersion = "1.35.4"
diff --git a/service/timestreaminfluxdb/CHANGELOG.md b/service/timestreaminfluxdb/CHANGELOG.md
index 1409236cf91..dedbcc4f9a4 100644
--- a/service/timestreaminfluxdb/CHANGELOG.md
+++ b/service/timestreaminfluxdb/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.10.5 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.10.4 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/timestreaminfluxdb/go.mod b/service/timestreaminfluxdb/go.mod
index eb2af634b9f..94f2effca40 100644
--- a/service/timestreaminfluxdb/go.mod
+++ b/service/timestreaminfluxdb/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/timestreaminfluxdb
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/timestreaminfluxdb/go.sum b/service/timestreaminfluxdb/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/timestreaminfluxdb/go.sum
+++ b/service/timestreaminfluxdb/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/timestreaminfluxdb/go_module_metadata.go b/service/timestreaminfluxdb/go_module_metadata.go
index f9fb7e51c5e..715d91cfe5f 100644
--- a/service/timestreaminfluxdb/go_module_metadata.go
+++ b/service/timestreaminfluxdb/go_module_metadata.go
@@ -3,4 +3,4 @@
package timestreaminfluxdb
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.10.4"
+const goModuleVersion = "1.10.5"
diff --git a/service/timestreamquery/CHANGELOG.md b/service/timestreamquery/CHANGELOG.md
index 1ce518deb51..03770e7df29 100644
--- a/service/timestreamquery/CHANGELOG.md
+++ b/service/timestreamquery/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod
index 80f82ee49a2..b0505a0e5a5 100644
--- a/service/timestreamquery/go.mod
+++ b/service/timestreamquery/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/timestreamquery
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/timestreamquery/go.sum
+++ b/service/timestreamquery/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/timestreamquery/go_module_metadata.go b/service/timestreamquery/go_module_metadata.go
index b52a573b494..b2a2b1a6912 100644
--- a/service/timestreamquery/go_module_metadata.go
+++ b/service/timestreamquery/go_module_metadata.go
@@ -3,4 +3,4 @@
package timestreamquery
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.1"
+const goModuleVersion = "1.31.2"
diff --git a/service/timestreamwrite/CHANGELOG.md b/service/timestreamwrite/CHANGELOG.md
index 99846a7e9c5..b72a89f5897 100644
--- a/service/timestreamwrite/CHANGELOG.md
+++ b/service/timestreamwrite/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod
index d17c5eb596c..44abbe9e4c2 100644
--- a/service/timestreamwrite/go.mod
+++ b/service/timestreamwrite/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/timestreamwrite
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.16
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.17
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/timestreamwrite/go.sum
+++ b/service/timestreamwrite/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/timestreamwrite/go_module_metadata.go b/service/timestreamwrite/go_module_metadata.go
index a309c8fc4f4..8516427dc32 100644
--- a/service/timestreamwrite/go_module_metadata.go
+++ b/service/timestreamwrite/go_module_metadata.go
@@ -3,4 +3,4 @@
package timestreamwrite
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.1"
+const goModuleVersion = "1.31.2"
diff --git a/service/tnb/CHANGELOG.md b/service/tnb/CHANGELOG.md
index 2980bce5ace..7bbbfca24a5 100644
--- a/service/tnb/CHANGELOG.md
+++ b/service/tnb/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.14.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.14.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/tnb/go.mod b/service/tnb/go.mod
index 9bdeebf0963..59e0c7f6f10 100644
--- a/service/tnb/go.mod
+++ b/service/tnb/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/tnb
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/tnb/go.sum b/service/tnb/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/tnb/go.sum
+++ b/service/tnb/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/tnb/go_module_metadata.go b/service/tnb/go_module_metadata.go
index d78869640e3..b5df94bc75c 100644
--- a/service/tnb/go_module_metadata.go
+++ b/service/tnb/go_module_metadata.go
@@ -3,4 +3,4 @@
package tnb
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.14.3"
+const goModuleVersion = "1.14.4"
diff --git a/service/transcribe/CHANGELOG.md b/service/transcribe/CHANGELOG.md
index f01383b2e63..11730c29886 100644
--- a/service/transcribe/CHANGELOG.md
+++ b/service/transcribe/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.46.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.46.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod
index 4082a7953e9..695a466a193 100644
--- a/service/transcribe/go.mod
+++ b/service/transcribe/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/transcribe
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/transcribe/go.sum
+++ b/service/transcribe/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/transcribe/go_module_metadata.go b/service/transcribe/go_module_metadata.go
index c2ed1a8c6cc..9e348827df6 100644
--- a/service/transcribe/go_module_metadata.go
+++ b/service/transcribe/go_module_metadata.go
@@ -3,4 +3,4 @@
package transcribe
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.46.1"
+const goModuleVersion = "1.46.2"
diff --git a/service/transcribestreaming/CHANGELOG.md b/service/transcribestreaming/CHANGELOG.md
index fe027720a5e..22d94870ff2 100644
--- a/service/transcribestreaming/CHANGELOG.md
+++ b/service/transcribestreaming/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/transcribestreaming/go.mod b/service/transcribestreaming/go.mod
index 2efd47a38a0..eec26f5ef73 100644
--- a/service/transcribestreaming/go.mod
+++ b/service/transcribestreaming/go.mod
@@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/transcribestreaming
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/transcribestreaming/go.sum b/service/transcribestreaming/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/transcribestreaming/go.sum
+++ b/service/transcribestreaming/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/transcribestreaming/go_module_metadata.go b/service/transcribestreaming/go_module_metadata.go
index 131843b5d54..0ea556d4462 100644
--- a/service/transcribestreaming/go_module_metadata.go
+++ b/service/transcribestreaming/go_module_metadata.go
@@ -3,4 +3,4 @@
package transcribestreaming
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.1"
+const goModuleVersion = "1.26.2"
diff --git a/service/transcribestreaming/internal/testing/go.mod b/service/transcribestreaming/internal/testing/go.mod
index eb4a6d10a2a..30f79d82790 100644
--- a/service/transcribestreaming/internal/testing/go.mod
+++ b/service/transcribestreaming/internal/testing/go.mod
@@ -3,17 +3,17 @@ module github.com/aws/aws-sdk-go-v2/service/transcribestreaming/internal/testing
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10
- github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.5.31
- github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.26.1
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.11
+ github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.5.32
+ github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.26.2
+ github.com/aws/smithy-go v1.22.4
)
require (
- github.com/aws/aws-sdk-go-v2/credentials v1.17.69 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.17.70 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
)
replace github.com/aws/aws-sdk-go-v2 => ../../../../
diff --git a/service/transcribestreaming/internal/testing/go.sum b/service/transcribestreaming/internal/testing/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/transcribestreaming/internal/testing/go.sum
+++ b/service/transcribestreaming/internal/testing/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/transfer/CHANGELOG.md b/service/transfer/CHANGELOG.md
index fbf019ac8d2..fc6917b8efb 100644
--- a/service/transfer/CHANGELOG.md
+++ b/service/transfer/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.60.3 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.60.2 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/transfer/go.mod b/service/transfer/go.mod
index 670bcc52101..f5709a94daf 100644
--- a/service/transfer/go.mod
+++ b/service/transfer/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/transfer
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/transfer/go.sum b/service/transfer/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/transfer/go.sum
+++ b/service/transfer/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/transfer/go_module_metadata.go b/service/transfer/go_module_metadata.go
index c67149697ed..541746d76ac 100644
--- a/service/transfer/go_module_metadata.go
+++ b/service/transfer/go_module_metadata.go
@@ -3,4 +3,4 @@
package transfer
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.60.2"
+const goModuleVersion = "1.60.3"
diff --git a/service/translate/CHANGELOG.md b/service/translate/CHANGELOG.md
index 98f932f986b..b937db59265 100644
--- a/service/translate/CHANGELOG.md
+++ b/service/translate/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.29.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.29.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/translate/go.mod b/service/translate/go.mod
index 8e663957735..6b9c5ed6765 100644
--- a/service/translate/go.mod
+++ b/service/translate/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/translate
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/translate/go.sum b/service/translate/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/translate/go.sum
+++ b/service/translate/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/translate/go_module_metadata.go b/service/translate/go_module_metadata.go
index e0751f5fb25..53a6b9513ef 100644
--- a/service/translate/go_module_metadata.go
+++ b/service/translate/go_module_metadata.go
@@ -3,4 +3,4 @@
package translate
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.29.3"
+const goModuleVersion = "1.29.4"
diff --git a/service/trustedadvisor/CHANGELOG.md b/service/trustedadvisor/CHANGELOG.md
index 445ab871890..2437f777118 100644
--- a/service/trustedadvisor/CHANGELOG.md
+++ b/service/trustedadvisor/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.9.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.9.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/trustedadvisor/go.mod b/service/trustedadvisor/go.mod
index 6edb3da48aa..c301af163c1 100644
--- a/service/trustedadvisor/go.mod
+++ b/service/trustedadvisor/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/trustedadvisor
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/trustedadvisor/go.sum b/service/trustedadvisor/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/trustedadvisor/go.sum
+++ b/service/trustedadvisor/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/trustedadvisor/go_module_metadata.go b/service/trustedadvisor/go_module_metadata.go
index 0083b009b96..c60e356da40 100644
--- a/service/trustedadvisor/go_module_metadata.go
+++ b/service/trustedadvisor/go_module_metadata.go
@@ -3,4 +3,4 @@
package trustedadvisor
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.9.3"
+const goModuleVersion = "1.9.4"
diff --git a/service/verifiedpermissions/CHANGELOG.md b/service/verifiedpermissions/CHANGELOG.md
index be0c3d6b7fd..d81f807bc37 100644
--- a/service/verifiedpermissions/CHANGELOG.md
+++ b/service/verifiedpermissions/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/verifiedpermissions/go.mod b/service/verifiedpermissions/go.mod
index a6d60ad1df9..94ad45bbb7c 100644
--- a/service/verifiedpermissions/go.mod
+++ b/service/verifiedpermissions/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/verifiedpermissions
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/verifiedpermissions/go.sum b/service/verifiedpermissions/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/verifiedpermissions/go.sum
+++ b/service/verifiedpermissions/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/verifiedpermissions/go_module_metadata.go b/service/verifiedpermissions/go_module_metadata.go
index 3afe6c643cf..c801aa8ec86 100644
--- a/service/verifiedpermissions/go_module_metadata.go
+++ b/service/verifiedpermissions/go_module_metadata.go
@@ -3,4 +3,4 @@
package verifiedpermissions
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.1"
+const goModuleVersion = "1.24.2"
diff --git a/service/voiceid/CHANGELOG.md b/service/voiceid/CHANGELOG.md
index 14f8922ecc3..f931ee74002 100644
--- a/service/voiceid/CHANGELOG.md
+++ b/service/voiceid/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.25.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.25.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/voiceid/go.mod b/service/voiceid/go.mod
index a213cf1361f..487c4e12b63 100644
--- a/service/voiceid/go.mod
+++ b/service/voiceid/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/voiceid
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/voiceid/go.sum b/service/voiceid/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/voiceid/go.sum
+++ b/service/voiceid/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/voiceid/go_module_metadata.go b/service/voiceid/go_module_metadata.go
index a313cc81e7d..33331abe30c 100644
--- a/service/voiceid/go_module_metadata.go
+++ b/service/voiceid/go_module_metadata.go
@@ -3,4 +3,4 @@
package voiceid
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.25.3"
+const goModuleVersion = "1.25.4"
diff --git a/service/vpclattice/CHANGELOG.md b/service/vpclattice/CHANGELOG.md
index 108297c0dd1..7319585af42 100644
--- a/service/vpclattice/CHANGELOG.md
+++ b/service/vpclattice/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.14.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.14.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/vpclattice/go.mod b/service/vpclattice/go.mod
index 6693ed4938e..c0aa1dcc065 100644
--- a/service/vpclattice/go.mod
+++ b/service/vpclattice/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/vpclattice
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/vpclattice/go.sum b/service/vpclattice/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/vpclattice/go.sum
+++ b/service/vpclattice/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/vpclattice/go_module_metadata.go b/service/vpclattice/go_module_metadata.go
index 4f7e71b6c61..3c06aab5090 100644
--- a/service/vpclattice/go_module_metadata.go
+++ b/service/vpclattice/go_module_metadata.go
@@ -3,4 +3,4 @@
package vpclattice
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.14.3"
+const goModuleVersion = "1.14.4"
diff --git a/service/waf/CHANGELOG.md b/service/waf/CHANGELOG.md
index 4805f2e00a0..df9bf51a036 100644
--- a/service/waf/CHANGELOG.md
+++ b/service/waf/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/waf/go.mod b/service/waf/go.mod
index 65e33a042a7..64a95990a9e 100644
--- a/service/waf/go.mod
+++ b/service/waf/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/waf
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/waf/go.sum b/service/waf/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/waf/go.sum
+++ b/service/waf/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/waf/go_module_metadata.go b/service/waf/go_module_metadata.go
index 73b5930eb57..3dc992a4a48 100644
--- a/service/waf/go_module_metadata.go
+++ b/service/waf/go_module_metadata.go
@@ -3,4 +3,4 @@
package waf
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/wafregional/CHANGELOG.md b/service/wafregional/CHANGELOG.md
index d9b80551277..67576eb3902 100644
--- a/service/wafregional/CHANGELOG.md
+++ b/service/wafregional/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod
index e6783f23584..60d5115c9e2 100644
--- a/service/wafregional/go.mod
+++ b/service/wafregional/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wafregional
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/wafregional/go.sum
+++ b/service/wafregional/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/wafregional/go_module_metadata.go b/service/wafregional/go_module_metadata.go
index 55bdd5a5a2e..0aecd6c6644 100644
--- a/service/wafregional/go_module_metadata.go
+++ b/service/wafregional/go_module_metadata.go
@@ -3,4 +3,4 @@
package wafregional
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/wafv2/CHANGELOG.md b/service/wafv2/CHANGELOG.md
index fbaad7b635f..65413001bd7 100644
--- a/service/wafv2/CHANGELOG.md
+++ b/service/wafv2/CHANGELOG.md
@@ -1,3 +1,13 @@
+# v1.63.0 (2025-06-17)
+
+* **Feature**: AWS WAF can now suggest protection packs for you based on the application information you provide when you create a webACL.
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.62.0 (2025-06-11)
+
+* **Feature**: WAF now provides two DDoS protection options: resource-level monitoring for Application Load Balancers and the AWSManagedRulesAntiDDoSRuleSet managed rule group for CloudFront distributions.
+
# v1.61.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/wafv2/api_op_CreateWebACL.go b/service/wafv2/api_op_CreateWebACL.go
index f869f56ed9a..9df2e2ae09e 100644
--- a/service/wafv2/api_op_CreateWebACL.go
+++ b/service/wafv2/api_op_CreateWebACL.go
@@ -72,6 +72,11 @@ type CreateWebACLInput struct {
// This member is required.
VisibilityConfig *types.VisibilityConfig
+ // Configures the ability for the WAF console to store and retrieve application
+ // attributes during the web ACL creation process. Application attributes help WAF
+ // give recommendations for protection packs.
+ ApplicationConfig *types.ApplicationConfig
+
// Specifies custom configurations for the associations between the web ACL and
// protected resources.
//
@@ -127,6 +132,13 @@ type CreateWebACLInput struct {
// A description of the web ACL that helps with identification.
Description *string
+ // Specifies the type of DDoS protection to apply to web request data for a web
+ // ACL. For most scenarios, it is recommended to use the default protection level,
+ // ACTIVE_UNDER_DDOS . If a web ACL is associated with multiple Application Load
+ // Balancers, the changes you make to DDoS protection in that web ACL will apply to
+ // all associated Application Load Balancers.
+ OnSourceDDoSProtectionConfig *types.OnSourceDDoSProtectionConfig
+
// The Rule statements used to identify the web requests that you want to manage. Each
// rule includes one top-level statement that WAF uses to identify matching web
// requests, and parameters that govern how WAF handles them.
diff --git a/service/wafv2/api_op_UpdateWebACL.go b/service/wafv2/api_op_UpdateWebACL.go
index b1b8d3ecc7f..9c435841333 100644
--- a/service/wafv2/api_op_UpdateWebACL.go
+++ b/service/wafv2/api_op_UpdateWebACL.go
@@ -177,6 +177,13 @@ type UpdateWebACLInput struct {
// A description of the web ACL that helps with identification.
Description *string
+ // Specifies the type of DDoS protection to apply to web request data for a web
+ // ACL. For most scenarios, it is recommended to use the default protection level,
+ // ACTIVE_UNDER_DDOS . If a web ACL is associated with multiple Application Load
+ // Balancers, the changes you make to DDoS protection in that web ACL will apply to
+ // all associated Application Load Balancers.
+ OnSourceDDoSProtectionConfig *types.OnSourceDDoSProtectionConfig
+
// The Rule statements used to identify the web requests that you want to manage. Each
// rule includes one top-level statement that WAF uses to identify matching web
// requests, and parameters that govern how WAF handles them.
diff --git a/service/wafv2/deserializers.go b/service/wafv2/deserializers.go
index d83bdd77d02..2c0f73b4025 100644
--- a/service/wafv2/deserializers.go
+++ b/service/wafv2/deserializers.go
@@ -7756,6 +7756,121 @@ func awsAwsjson11_deserializeDocumentAPIKeySummary(v **types.APIKeySummary, valu
return nil
}
+func awsAwsjson11_deserializeDocumentApplicationAttribute(v **types.ApplicationAttribute, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ApplicationAttribute
+ if *v == nil {
+ sv = &types.ApplicationAttribute{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Name":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AttributeName to be of type string, got %T instead", value)
+ }
+ sv.Name = ptr.String(jtv)
+ }
+
+ case "Values":
+ if err := awsAwsjson11_deserializeDocumentAttributeValues(&sv.Values, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsAwsjson11_deserializeDocumentApplicationAttributes(v *[]types.ApplicationAttribute, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []types.ApplicationAttribute
+ if *v == nil {
+ cv = []types.ApplicationAttribute{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col types.ApplicationAttribute
+ destAddr := &col
+ if err := awsAwsjson11_deserializeDocumentApplicationAttribute(&destAddr, value); err != nil {
+ return err
+ }
+ col = *destAddr
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
+func awsAwsjson11_deserializeDocumentApplicationConfig(v **types.ApplicationConfig, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ApplicationConfig
+ if *v == nil {
+ sv = &types.ApplicationConfig{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Attributes":
+ if err := awsAwsjson11_deserializeDocumentApplicationAttributes(&sv.Attributes, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson11_deserializeDocumentAsnList(v *[]int64, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -7873,6 +7988,42 @@ func awsAwsjson11_deserializeDocumentAssociationConfig(v **types.AssociationConf
return nil
}
+func awsAwsjson11_deserializeDocumentAttributeValues(v *[]string, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.([]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var cv []string
+ if *v == nil {
+ cv = []string{}
+ } else {
+ cv = *v
+ }
+
+ for _, value := range shape {
+ var col string
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected AttributeValue to be of type string, got %T instead", value)
+ }
+ col = jtv
+ }
+ cv = append(cv, col)
+
+ }
+ *v = cv
+ return nil
+}
+
func awsAwsjson11_deserializeDocumentAWSManagedRulesACFPRuleSet(v **types.AWSManagedRulesACFPRuleSet, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -7941,6 +8092,51 @@ func awsAwsjson11_deserializeDocumentAWSManagedRulesACFPRuleSet(v **types.AWSMan
return nil
}
+func awsAwsjson11_deserializeDocumentAWSManagedRulesAntiDDoSRuleSet(v **types.AWSManagedRulesAntiDDoSRuleSet, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.AWSManagedRulesAntiDDoSRuleSet
+ if *v == nil {
+ sv = &types.AWSManagedRulesAntiDDoSRuleSet{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ClientSideActionConfig":
+ if err := awsAwsjson11_deserializeDocumentClientSideActionConfig(&sv.ClientSideActionConfig, value); err != nil {
+ return err
+ }
+
+ case "SensitivityToBlock":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SensitivityToAct to be of type string, got %T instead", value)
+ }
+ sv.SensitivityToBlock = types.SensitivityToAct(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson11_deserializeDocumentAWSManagedRulesATPRuleSet(v **types.AWSManagedRulesATPRuleSet, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -8464,6 +8660,96 @@ func awsAwsjson11_deserializeDocumentChallengeResponse(v **types.ChallengeRespon
return nil
}
+func awsAwsjson11_deserializeDocumentClientSideAction(v **types.ClientSideAction, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ClientSideAction
+ if *v == nil {
+ sv = &types.ClientSideAction{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ExemptUriRegularExpressions":
+ if err := awsAwsjson11_deserializeDocumentRegularExpressionList(&sv.ExemptUriRegularExpressions, value); err != nil {
+ return err
+ }
+
+ case "Sensitivity":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected SensitivityToAct to be of type string, got %T instead", value)
+ }
+ sv.Sensitivity = types.SensitivityToAct(jtv)
+ }
+
+ case "UsageOfAction":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected UsageOfAction to be of type string, got %T instead", value)
+ }
+ sv.UsageOfAction = types.UsageOfAction(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
+func awsAwsjson11_deserializeDocumentClientSideActionConfig(v **types.ClientSideActionConfig, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.ClientSideActionConfig
+ if *v == nil {
+ sv = &types.ClientSideActionConfig{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "Challenge":
+ if err := awsAwsjson11_deserializeDocumentClientSideAction(&sv.Challenge, value); err != nil {
+ return err
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson11_deserializeDocumentCondition(v **types.Condition, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -11340,6 +11626,11 @@ func awsAwsjson11_deserializeDocumentManagedRuleGroupConfig(v **types.ManagedRul
return err
}
+ case "AWSManagedRulesAntiDDoSRuleSet":
+ if err := awsAwsjson11_deserializeDocumentAWSManagedRulesAntiDDoSRuleSet(&sv.AWSManagedRulesAntiDDoSRuleSet, value); err != nil {
+ return err
+ }
+
case "AWSManagedRulesATPRuleSet":
if err := awsAwsjson11_deserializeDocumentAWSManagedRulesATPRuleSet(&sv.AWSManagedRulesATPRuleSet, value); err != nil {
return err
@@ -12181,6 +12472,46 @@ func awsAwsjson11_deserializeDocumentNotStatement(v **types.NotStatement, value
return nil
}
+func awsAwsjson11_deserializeDocumentOnSourceDDoSProtectionConfig(v **types.OnSourceDDoSProtectionConfig, value interface{}) error {
+ if v == nil {
+ return fmt.Errorf("unexpected nil of type %T", v)
+ }
+ if value == nil {
+ return nil
+ }
+
+ shape, ok := value.(map[string]interface{})
+ if !ok {
+ return fmt.Errorf("unexpected JSON type %v", value)
+ }
+
+ var sv *types.OnSourceDDoSProtectionConfig
+ if *v == nil {
+ sv = &types.OnSourceDDoSProtectionConfig{}
+ } else {
+ sv = *v
+ }
+
+ for key, value := range shape {
+ switch key {
+ case "ALBLowReputationMode":
+ if value != nil {
+ jtv, ok := value.(string)
+ if !ok {
+ return fmt.Errorf("expected LowReputationMode to be of type string, got %T instead", value)
+ }
+ sv.ALBLowReputationMode = types.LowReputationMode(jtv)
+ }
+
+ default:
+ _, _ = key, value
+
+ }
+ }
+ *v = sv
+ return nil
+}
+
func awsAwsjson11_deserializeDocumentOrStatement(v **types.OrStatement, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
@@ -16783,6 +17114,11 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{})
for key, value := range shape {
switch key {
+ case "ApplicationConfig":
+ if err := awsAwsjson11_deserializeDocumentApplicationConfig(&sv.ApplicationConfig, value); err != nil {
+ return err
+ }
+
case "ARN":
if value != nil {
jtv, ok := value.(string)
@@ -16880,6 +17216,11 @@ func awsAwsjson11_deserializeDocumentWebACL(v **types.WebACL, value interface{})
sv.Name = ptr.String(jtv)
}
+ case "OnSourceDDoSProtectionConfig":
+ if err := awsAwsjson11_deserializeDocumentOnSourceDDoSProtectionConfig(&sv.OnSourceDDoSProtectionConfig, value); err != nil {
+ return err
+ }
+
case "PostProcessFirewallManagerRuleGroups":
if err := awsAwsjson11_deserializeDocumentFirewallManagerRuleGroups(&sv.PostProcessFirewallManagerRuleGroups, value); err != nil {
return err
diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod
index c7e30f0d092..b0777349f78 100644
--- a/service/wafv2/go.mod
+++ b/service/wafv2/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wafv2
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/wafv2/go.sum
+++ b/service/wafv2/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/wafv2/go_module_metadata.go b/service/wafv2/go_module_metadata.go
index 4be929d7b95..75a346d611b 100644
--- a/service/wafv2/go_module_metadata.go
+++ b/service/wafv2/go_module_metadata.go
@@ -3,4 +3,4 @@
package wafv2
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.61.1"
+const goModuleVersion = "1.63.0"
diff --git a/service/wafv2/serializers.go b/service/wafv2/serializers.go
index 3ec3cdfed43..304b9f609db 100644
--- a/service/wafv2/serializers.go
+++ b/service/wafv2/serializers.go
@@ -3400,6 +3400,52 @@ func awsAwsjson11_serializeDocumentAPIKeyTokenDomains(v []string, value smithyjs
return nil
}
+func awsAwsjson11_serializeDocumentApplicationAttribute(v *types.ApplicationAttribute, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Name != nil {
+ ok := object.Key("Name")
+ ok.String(*v.Name)
+ }
+
+ if v.Values != nil {
+ ok := object.Key("Values")
+ if err := awsAwsjson11_serializeDocumentAttributeValues(v.Values, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func awsAwsjson11_serializeDocumentApplicationAttributes(v []types.ApplicationAttribute, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ if err := awsAwsjson11_serializeDocumentApplicationAttribute(&v[i], av); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func awsAwsjson11_serializeDocumentApplicationConfig(v *types.ApplicationConfig, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Attributes != nil {
+ ok := object.Key("Attributes")
+ if err := awsAwsjson11_serializeDocumentApplicationAttributes(v.Attributes, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
func awsAwsjson11_serializeDocumentAsnList(v []int64, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
@@ -3446,6 +3492,17 @@ func awsAwsjson11_serializeDocumentAssociationConfig(v *types.AssociationConfig,
return nil
}
+func awsAwsjson11_serializeDocumentAttributeValues(v []string, value smithyjson.Value) error {
+ array := value.Array()
+ defer array.Close()
+
+ for i := range v {
+ av := array.Value()
+ av.String(v[i])
+ }
+ return nil
+}
+
func awsAwsjson11_serializeDocumentAWSManagedRulesACFPRuleSet(v *types.AWSManagedRulesACFPRuleSet, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -3482,6 +3539,25 @@ func awsAwsjson11_serializeDocumentAWSManagedRulesACFPRuleSet(v *types.AWSManage
return nil
}
+func awsAwsjson11_serializeDocumentAWSManagedRulesAntiDDoSRuleSet(v *types.AWSManagedRulesAntiDDoSRuleSet, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ClientSideActionConfig != nil {
+ ok := object.Key("ClientSideActionConfig")
+ if err := awsAwsjson11_serializeDocumentClientSideActionConfig(v.ClientSideActionConfig, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.SensitivityToBlock) > 0 {
+ ok := object.Key("SensitivityToBlock")
+ ok.String(string(v.SensitivityToBlock))
+ }
+
+ return nil
+}
+
func awsAwsjson11_serializeDocumentAWSManagedRulesATPRuleSet(v *types.AWSManagedRulesATPRuleSet, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -3643,6 +3719,44 @@ func awsAwsjson11_serializeDocumentChallengeConfig(v *types.ChallengeConfig, val
return nil
}
+func awsAwsjson11_serializeDocumentClientSideAction(v *types.ClientSideAction, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.ExemptUriRegularExpressions != nil {
+ ok := object.Key("ExemptUriRegularExpressions")
+ if err := awsAwsjson11_serializeDocumentRegularExpressionList(v.ExemptUriRegularExpressions, ok); err != nil {
+ return err
+ }
+ }
+
+ if len(v.Sensitivity) > 0 {
+ ok := object.Key("Sensitivity")
+ ok.String(string(v.Sensitivity))
+ }
+
+ if len(v.UsageOfAction) > 0 {
+ ok := object.Key("UsageOfAction")
+ ok.String(string(v.UsageOfAction))
+ }
+
+ return nil
+}
+
+func awsAwsjson11_serializeDocumentClientSideActionConfig(v *types.ClientSideActionConfig, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if v.Challenge != nil {
+ ok := object.Key("Challenge")
+ if err := awsAwsjson11_serializeDocumentClientSideAction(v.Challenge, ok); err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
func awsAwsjson11_serializeDocumentCondition(v *types.Condition, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -4555,6 +4669,13 @@ func awsAwsjson11_serializeDocumentManagedRuleGroupConfig(v *types.ManagedRuleGr
}
}
+ if v.AWSManagedRulesAntiDDoSRuleSet != nil {
+ ok := object.Key("AWSManagedRulesAntiDDoSRuleSet")
+ if err := awsAwsjson11_serializeDocumentAWSManagedRulesAntiDDoSRuleSet(v.AWSManagedRulesAntiDDoSRuleSet, ok); err != nil {
+ return err
+ }
+ }
+
if v.AWSManagedRulesATPRuleSet != nil {
ok := object.Key("AWSManagedRulesATPRuleSet")
if err := awsAwsjson11_serializeDocumentAWSManagedRulesATPRuleSet(v.AWSManagedRulesATPRuleSet, ok); err != nil {
@@ -4687,6 +4808,18 @@ func awsAwsjson11_serializeDocumentNotStatement(v *types.NotStatement, value smi
return nil
}
+func awsAwsjson11_serializeDocumentOnSourceDDoSProtectionConfig(v *types.OnSourceDDoSProtectionConfig, value smithyjson.Value) error {
+ object := value.Object()
+ defer object.Close()
+
+ if len(v.ALBLowReputationMode) > 0 {
+ ok := object.Key("ALBLowReputationMode")
+ ok.String(string(v.ALBLowReputationMode))
+ }
+
+ return nil
+}
+
func awsAwsjson11_serializeDocumentOrStatement(v *types.OrStatement, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
@@ -6255,6 +6388,13 @@ func awsAwsjson11_serializeOpDocumentCreateWebACLInput(v *CreateWebACLInput, val
object := value.Object()
defer object.Close()
+ if v.ApplicationConfig != nil {
+ ok := object.Key("ApplicationConfig")
+ if err := awsAwsjson11_serializeDocumentApplicationConfig(v.ApplicationConfig, ok); err != nil {
+ return err
+ }
+ }
+
if v.AssociationConfig != nil {
ok := object.Key("AssociationConfig")
if err := awsAwsjson11_serializeDocumentAssociationConfig(v.AssociationConfig, ok); err != nil {
@@ -6307,6 +6447,13 @@ func awsAwsjson11_serializeOpDocumentCreateWebACLInput(v *CreateWebACLInput, val
ok.String(*v.Name)
}
+ if v.OnSourceDDoSProtectionConfig != nil {
+ ok := object.Key("OnSourceDDoSProtectionConfig")
+ if err := awsAwsjson11_serializeDocumentOnSourceDDoSProtectionConfig(v.OnSourceDDoSProtectionConfig, ok); err != nil {
+ return err
+ }
+ }
+
if v.Rules != nil {
ok := object.Key("Rules")
if err := awsAwsjson11_serializeDocumentRules(v.Rules, ok); err != nil {
@@ -7486,6 +7633,13 @@ func awsAwsjson11_serializeOpDocumentUpdateWebACLInput(v *UpdateWebACLInput, val
ok.String(*v.Name)
}
+ if v.OnSourceDDoSProtectionConfig != nil {
+ ok := object.Key("OnSourceDDoSProtectionConfig")
+ if err := awsAwsjson11_serializeDocumentOnSourceDDoSProtectionConfig(v.OnSourceDDoSProtectionConfig, ok); err != nil {
+ return err
+ }
+ }
+
if v.Rules != nil {
ok := object.Key("Rules")
if err := awsAwsjson11_serializeDocumentRules(v.Rules, ok); err != nil {
diff --git a/service/wafv2/types/enums.go b/service/wafv2/types/enums.go
index 877daf5f387..492c21b7f8b 100644
--- a/service/wafv2/types/enums.go
+++ b/service/wafv2/types/enums.go
@@ -876,6 +876,25 @@ func (LogType) Values() []LogType {
}
}
+type LowReputationMode string
+
+// Enum values for LowReputationMode
+const (
+ LowReputationModeActiveUnderDdos LowReputationMode = "ACTIVE_UNDER_DDOS"
+ LowReputationModeAlwaysOn LowReputationMode = "ALWAYS_ON"
+)
+
+// Values returns all known values for LowReputationMode. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (LowReputationMode) Values() []LowReputationMode {
+ return []LowReputationMode{
+ "ACTIVE_UNDER_DDOS",
+ "ALWAYS_ON",
+ }
+}
+
type MapMatchScope string
// Enum values for MapMatchScope
@@ -993,6 +1012,7 @@ const (
ParameterExceptionFieldCustomKeys ParameterExceptionField = "CUSTOM_KEYS"
ParameterExceptionFieldAcpRuleSetResponseInspection ParameterExceptionField = "ACP_RULE_SET_RESPONSE_INSPECTION"
ParameterExceptionFieldDataProtectionConfig ParameterExceptionField = "DATA_PROTECTION_CONFIG"
+ ParameterExceptionFieldLowReputationMode ParameterExceptionField = "LOW_REPUTATION_MODE"
)
// Values returns all known values for ParameterExceptionField. Note that this can
@@ -1072,6 +1092,7 @@ func (ParameterExceptionField) Values() []ParameterExceptionField {
"CUSTOM_KEYS",
"ACP_RULE_SET_RESPONSE_INSPECTION",
"DATA_PROTECTION_CONFIG",
+ "LOW_REPUTATION_MODE",
}
}
@@ -1250,6 +1271,27 @@ func (SensitivityLevel) Values() []SensitivityLevel {
}
}
+type SensitivityToAct string
+
+// Enum values for SensitivityToAct
+const (
+ SensitivityToActLow SensitivityToAct = "LOW"
+ SensitivityToActMedium SensitivityToAct = "MEDIUM"
+ SensitivityToActHigh SensitivityToAct = "HIGH"
+)
+
+// Values returns all known values for SensitivityToAct. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (SensitivityToAct) Values() []SensitivityToAct {
+ return []SensitivityToAct{
+ "LOW",
+ "MEDIUM",
+ "HIGH",
+ }
+}
+
type SizeInspectionLimit string
// Enum values for SizeInspectionLimit
@@ -1329,3 +1371,22 @@ func (TextTransformationType) Values() []TextTransformationType {
"UTF8_TO_UNICODE",
}
}
+
+type UsageOfAction string
+
+// Enum values for UsageOfAction
+const (
+ UsageOfActionEnabled UsageOfAction = "ENABLED"
+ UsageOfActionDisabled UsageOfAction = "DISABLED"
+)
+
+// Values returns all known values for UsageOfAction. Note that this can be
+// expanded in the future, and so it is only as up to date as the client.
+//
+// The ordering of this slice is not guaranteed to be stable across updates.
+func (UsageOfAction) Values() []UsageOfAction {
+ return []UsageOfAction{
+ "ENABLED",
+ "DISABLED",
+ }
+}
diff --git a/service/wafv2/types/types.go b/service/wafv2/types/types.go
index 7dcef4886f0..d673aabcc23 100644
--- a/service/wafv2/types/types.go
+++ b/service/wafv2/types/types.go
@@ -134,6 +134,28 @@ type APIKeySummary struct {
noSmithyDocumentSerde
}
+// Application details defined during the web ACL creation process. Application
+// attributes help WAF give recommendations for protection packs.
+type ApplicationAttribute struct {
+
+ // Specifies the attribute name.
+ Name *string
+
+ // Specifies the attribute value.
+ Values []string
+
+ noSmithyDocumentSerde
+}
+
+// A list of ApplicationAttribute s that contains information about the application.
+type ApplicationConfig struct {
+
+ // Contains the attribute name and a list of values for that attribute.
+ Attributes []ApplicationAttribute
+
+ noSmithyDocumentSerde
+}
+
// A rule statement that inspects web traffic based on the Autonomous System
// Number (ASN) associated with the request's IP address.
//
@@ -198,6 +220,12 @@ type AssociationConfig struct {
// Details for your use of the account creation fraud prevention managed rule
// group, AWSManagedRulesACFPRuleSet . This configuration is used in
// ManagedRuleGroupConfig .
+//
+// For additional information about this and the other intelligent threat
+// mitigation rule groups, see [Intelligent threat mitigation in WAF]and [Amazon Web Services Managed Rules rule groups list] in the WAF Developer Guide.
+//
+// [Amazon Web Services Managed Rules rule groups list]: https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list
+// [Intelligent threat mitigation in WAF]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-managed-protections
type AWSManagedRulesACFPRuleSet struct {
// The path of the account creation endpoint for your application. This is the
@@ -256,9 +284,58 @@ type AWSManagedRulesACFPRuleSet struct {
noSmithyDocumentSerde
}
+// Configures the use of the anti-DDoS managed rule group,
+// AWSManagedRulesAntiDDoSRuleSet . This configuration is used in
+// ManagedRuleGroupConfig .
+//
+// The configuration that you provide here determines whether and how the rules in
+// the rule group are used.
+//
+// For additional information about this and the other intelligent threat
+// mitigation rule groups, see [Intelligent threat mitigation in WAF]and [Amazon Web Services Managed Rules rule groups list] in the WAF Developer Guide.
+//
+// [Amazon Web Services Managed Rules rule groups list]: https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list
+// [Intelligent threat mitigation in WAF]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-managed-protections
+type AWSManagedRulesAntiDDoSRuleSet struct {
+
+ // Configures the request handling that's applied by the managed rule group rules
+ // ChallengeAllDuringEvent and ChallengeDDoSRequests during a distributed denial
+ // of service (DDoS) attack.
+ //
+ // This member is required.
+ ClientSideActionConfig *ClientSideActionConfig
+
+ // The sensitivity that the rule group rule DDoSRequests uses when matching
+ // against the DDoS suspicion labeling on a request. The managed rule group adds
+ // the labeling during DDoS events, before the DDoSRequests rule runs.
+ //
+ // The higher the sensitivity, the more levels of labeling that the rule matches:
+ //
+ // - Low sensitivity is less sensitive, causing the rule to match only on the
+ // most likely participants in an attack, which are the requests with the high
+ // suspicion label awswaf:managed:aws:anti-ddos:high-suspicion-ddos-request .
+ //
+ // - Medium sensitivity causes the rule to match on the medium and high
+ // suspicion labels.
+ //
+ // - High sensitivity causes the rule to match on all of the suspicion labels:
+ // low, medium, and high.
+ //
+ // Default: LOW
+ SensitivityToBlock SensitivityToAct
+
+ noSmithyDocumentSerde
+}
+
// Details for your use of the account takeover prevention managed rule group,
// AWSManagedRulesATPRuleSet . This configuration is used in ManagedRuleGroupConfig
// .
+//
+// For additional information about this and the other intelligent threat
+// mitigation rule groups, see [Intelligent threat mitigation in WAF]and [Amazon Web Services Managed Rules rule groups list] in the WAF Developer Guide.
+//
+// [Amazon Web Services Managed Rules rule groups list]: https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list
+// [Intelligent threat mitigation in WAF]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-managed-protections
type AWSManagedRulesATPRuleSet struct {
// The path of the login endpoint for your application. For example, for the URL
@@ -300,6 +377,12 @@ type AWSManagedRulesATPRuleSet struct {
// Details for your use of the Bot Control managed rule group,
// AWSManagedRulesBotControlRuleSet . This configuration is used in
// ManagedRuleGroupConfig .
+//
+// For additional information about this and the other intelligent threat
+// mitigation rule groups, see [Intelligent threat mitigation in WAF]and [Amazon Web Services Managed Rules rule groups list] in the WAF Developer Guide.
+//
+// [Amazon Web Services Managed Rules rule groups list]: https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list
+// [Intelligent threat mitigation in WAF]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-managed-protections
type AWSManagedRulesBotControlRuleSet struct {
// The inspection level to use for the Bot Control rule group. The common level is
@@ -667,6 +750,113 @@ type ChallengeResponse struct {
noSmithyDocumentSerde
}
+// This is part of the AWSManagedRulesAntiDDoSRuleSet ClientSideActionConfig
+// configuration in ManagedRuleGroupConfig .
+type ClientSideAction struct {
+
+ // Determines whether to use the AWSManagedRulesAntiDDoSRuleSet rules
+ // ChallengeAllDuringEvent and ChallengeDDoSRequests in the rule group evaluation
+ // and the related label awswaf:managed:aws:anti-ddos:challengeable-request .
+ //
+ // - If usage is enabled:
+ //
+ // - The managed rule group adds the label
+ // awswaf:managed:aws:anti-ddos:challengeable-request to any web request whose
+ // URL does NOT match the regular expressions provided in the ClientSideAction
+ // setting ExemptUriRegularExpressions .
+ //
+ // - The two rules are evaluated against web requests for protected resources
+ // that are experiencing a DDoS attack. The two rules only apply their action to
+ // matching requests that have the label
+ // awswaf:managed:aws:anti-ddos:challengeable-request .
+ //
+ // - If usage is disabled:
+ //
+ // - The managed rule group doesn't add the label
+ // awswaf:managed:aws:anti-ddos:challengeable-request to any web requests.
+ //
+ // - The two rules are not evaluated.
+ //
+ // - None of the other ClientSideAction settings have any effect.
+ //
+ // This setting only enables or disables the use of the two anti-DDOS rules
+ // ChallengeAllDuringEvent and ChallengeDDoSRequests in the anti-DDoS managed rule
+ // group.
+ //
+ // This setting doesn't alter the action setting in the two rules. To override the
+ // actions used by the rules ChallengeAllDuringEvent and ChallengeDDoSRequests ,
+ // enable this setting, and then override the rule actions in the usual way, in
+ // your managed rule group configuration.
+ //
+ // This member is required.
+ UsageOfAction UsageOfAction
+
+ // The regular expression to match against the web request URI, used to identify
+ // requests that can't handle a silent browser challenge. When the ClientSideAction
+ // setting UsageOfAction is enabled, the managed rule group uses this setting to
+ // determine which requests to label with
+ // awswaf:managed:aws:anti-ddos:challengeable-request . If UsageOfAction is
+ // disabled, this setting has no effect and the managed rule group doesn't add the
+ // label to any requests.
+ //
+ // The anti-DDoS managed rule group doesn't evaluate the rules
+ // ChallengeDDoSRequests or ChallengeAllDuringEvent for web requests whose URIs
+ // match this regex. This is true regardless of whether you override the rule
+ // action for either of the rules in your web ACL configuration.
+ //
+ // Amazon Web Services recommends using a regular expression.
+ //
+ // This setting is required if UsageOfAction is set to ENABLED . If required, you
+ // can provide between 1 and 5 regex objects in the array of settings.
+ //
+ // Amazon Web Services recommends starting with the following setting. Review and
+ // update it for your application's needs:
+ //
+ // \/api\/|\.(acc|avi|css|gif|jpe?g|js|mp[34]|ogg|otf|pdf|png|tiff?|ttf|webm|webp|woff2?)$
+ ExemptUriRegularExpressions []Regex
+
+ // The sensitivity that the rule group rule ChallengeDDoSRequests uses when
+ // matching against the DDoS suspicion labeling on a request. The managed rule
+ // group adds the labeling during DDoS events, before the ChallengeDDoSRequests
+ // rule runs.
+ //
+ // The higher the sensitivity, the more levels of labeling that the rule matches:
+ //
+ // - Low sensitivity is less sensitive, causing the rule to match only on the
+ // most likely participants in an attack, which are the requests with the high
+ // suspicion label awswaf:managed:aws:anti-ddos:high-suspicion-ddos-request .
+ //
+ // - Medium sensitivity causes the rule to match on the medium and high
+ // suspicion labels.
+ //
+ // - High sensitivity causes the rule to match on all of the suspicion labels:
+ // low, medium, and high.
+ //
+ // Default: HIGH
+ Sensitivity SensitivityToAct
+
+ noSmithyDocumentSerde
+}
+
+// This is part of the configuration for the managed rules
+// AWSManagedRulesAntiDDoSRuleSet in ManagedRuleGroupConfig .
+type ClientSideActionConfig struct {
+
+ // Configuration for the use of the AWSManagedRulesAntiDDoSRuleSet rules
+ // ChallengeAllDuringEvent and ChallengeDDoSRequests .
+ //
+ // This setting isn't related to the configuration of the Challenge action itself.
+ // It only configures the use of the two anti-DDoS rules named here.
+ //
+ // You can enable or disable the use of these rules, and you can configure how to
+ // use them when they are enabled.
+ //
+ // This member is required.
+ Challenge *ClientSideAction
+
+ noSmithyDocumentSerde
+}
+
// A single match condition for a Filter.
type Condition struct {
@@ -2268,6 +2458,12 @@ type ManagedProductDescriptor struct {
// account creation request payload of data, such as the user email and phone
// number fields.
//
+// - Use the AWSManagedRulesAntiDDoSRuleSet configuration object to configure the
+// anti-DDoS managed rule group. The configuration includes the sensitivity levels
+// to use in the rules that typically block and challenge requests that might be
+// participating in DDoS attacks and the specification to use to indicate whether a
+// request can handle a silent browser challenge.
+//
// - Use the AWSManagedRulesATPRuleSet configuration object to configure the
// account takeover prevention managed rule group. The configuration includes the
// sign-in page of your application and the locations in the login request payload
@@ -2308,6 +2504,17 @@ type ManagedRuleGroupConfig struct {
// [WAF Fraud Control account takeover prevention (ATP)]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-atp.html
AWSManagedRulesATPRuleSet *AWSManagedRulesATPRuleSet
+ // Additional configuration for using the anti-DDoS managed rule group,
+ // AWSManagedRulesAntiDDoSRuleSet . Use this to configure anti-DDoS behavior for
+ // the rule group.
+ //
+ // For information about using the anti-DDoS managed rule group, see [WAF Anti-DDoS rule group] and [Distributed Denial of Service (DDoS) prevention] in the
+ // WAF Developer Guide.
+ //
+ // [WAF Anti-DDoS rule group]: https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-anti-ddos.html
+ // [Distributed Denial of Service (DDoS) prevention]: https://docs.aws.amazon.com/waf/latest/developerguide/waf-anti-ddos.html
+ AWSManagedRulesAntiDDoSRuleSet *AWSManagedRulesAntiDDoSRuleSet
+
// Additional configuration for using the Bot Control managed rule group. Use this
// to specify the inspection level that you want to use. For information about
// using the Bot Control managed rule group, see [WAF Bot Control rule group]and [WAF Bot Control] in the WAF Developer Guide.
@@ -2397,6 +2604,12 @@ type ManagedRuleGroupStatement struct {
// account creation request payload of data, such as the user email and phone
// number fields.
//
+ // - Use the AWSManagedRulesAntiDDoSRuleSet configuration object to configure the
+ // anti-DDoS managed rule group. The configuration includes the sensitivity levels
+ // to use in the rules that typically block and challenge requests that might be
+ // participating in DDoS attacks and the specification to use to indicate whether a
+ // request can handle a silent browser challenge.
+ //
// - Use the AWSManagedRulesATPRuleSet configuration object to configure the
// account takeover prevention managed rule group. The configuration includes the
// sign-in page of your application and the locations in the login request payload
@@ -2410,9 +2623,11 @@ type ManagedRuleGroupStatement struct {
// inside the rule group. You specify one override for each rule whose action you
// want to change.
//
- // Take care to verify the rule names in your overrides. If you provide a rule
- // name that doesn't match the name of any rule in the rule group, WAF doesn't
- // return an error and doesn't apply the override setting.
+ // Verify the rule names in your overrides carefully. With managed rule groups,
+ // WAF silently ignores any override that uses an invalid rule name. With
+ // customer-owned rule groups, invalid rule names in your overrides will cause web
+ // ACL updates to fail. An invalid rule name is any name that doesn't exactly match
+ // the case-sensitive name of an existing rule in the rule group.
//
// You can use overrides for testing, for example you can override all of rule
// actions to Count and then monitor the resulting count metrics to understand how
@@ -2708,6 +2923,27 @@ type NotStatement struct {
noSmithyDocumentSerde
}
+// Configures the level of DDoS protection that applies to web ACLs associated
+// with Application Load Balancers.
+type OnSourceDDoSProtectionConfig struct {
+
+ // The level of DDoS protection that applies to web ACLs associated with
+ // Application Load Balancers. ACTIVE_UNDER_DDOS protection is enabled by default
+ // whenever a web ACL is associated with an Application Load Balancer. In the event
+ // that an Application Load Balancer experiences high-load conditions or suspected
+ // DDoS attacks, the ACTIVE_UNDER_DDOS protection automatically rate limits
+ // traffic from known low reputation sources without disrupting Application Load
+ // Balancer availability. ALWAYS_ON protection provides constant, always-on
+ // monitoring of known low reputation sources for suspected DDoS attacks. While
+ // this provides a higher level of protection, there may be potential impacts on
+ // legitimate traffic.
+ //
+ // This member is required.
+ ALBLowReputationMode LowReputationMode
+
+ noSmithyDocumentSerde
+}
+
// A logical rule statement used to combine other rule statements with OR logic.
// You provide more than one Statementwithin the OrStatement .
type OrStatement struct {
@@ -3369,7 +3605,9 @@ type RateLimitUriPath struct {
noSmithyDocumentSerde
}
-// A single regular expression. This is used in a RegexPatternSet.
+// A single regular expression. This is used in a RegexPatternSet and also in the configuration
+// for the Amazon Web Services Managed Rules rule group
+// AWSManagedRulesAntiDDoSRuleSet .
type Regex struct {
// The string representing the regular expression.
@@ -4213,9 +4451,11 @@ type RuleGroupReferenceStatement struct {
// inside the rule group. You specify one override for each rule whose action you
// want to change.
//
- // Take care to verify the rule names in your overrides. If you provide a rule
- // name that doesn't match the name of any rule in the rule group, WAF doesn't
- // return an error and doesn't apply the override setting.
+ // Verify the rule names in your overrides carefully. With managed rule groups,
+ // WAF silently ignores any override that uses an invalid rule name. With
+ // customer-owned rule groups, invalid rule names in your overrides will cause web
+ // ACL updates to fail. An invalid rule name is any name that doesn't exactly match
+ // the case-sensitive name of an existing rule in the rule group.
//
// You can use overrides for testing, for example you can override all of rule
// actions to Count and then monitor the resulting count metrics to understand how
@@ -5019,6 +5259,9 @@ type WebACL struct {
// This member is required.
VisibilityConfig *VisibilityConfig
+ // Returns a list of ApplicationAttribute s.
+ ApplicationConfig *ApplicationConfig
+
// Specifies custom configurations for the associations between the web ACL and
// protected resources.
//
@@ -5109,6 +5352,10 @@ type WebACL struct {
// and PostProcessFirewallManagerRuleGroups .
ManagedByFirewallManager bool
+ // Configures the level of DDoS protection that applies to web ACLs associated
+ // with Application Load Balancers.
+ OnSourceDDoSProtectionConfig *OnSourceDDoSProtectionConfig
+
// The last set of rules for WAF to process in the web ACL. This is defined in an
// Firewall Manager WAF policy and contains only rule group references. You can't
// alter these. Any rules and rule groups that you define for the web ACL are
diff --git a/service/wafv2/validators.go b/service/wafv2/validators.go
index 09cfe77ac2d..7048535a801 100644
--- a/service/wafv2/validators.go
+++ b/service/wafv2/validators.go
@@ -1408,6 +1408,25 @@ func validateAWSManagedRulesACFPRuleSet(v *types.AWSManagedRulesACFPRuleSet) err
}
}
+func validateAWSManagedRulesAntiDDoSRuleSet(v *types.AWSManagedRulesAntiDDoSRuleSet) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "AWSManagedRulesAntiDDoSRuleSet"}
+ if v.ClientSideActionConfig == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("ClientSideActionConfig"))
+ } else if v.ClientSideActionConfig != nil {
+ if err := validateClientSideActionConfig(v.ClientSideActionConfig); err != nil {
+ invalidParams.AddNested("ClientSideActionConfig", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateAWSManagedRulesATPRuleSet(v *types.AWSManagedRulesATPRuleSet) error {
if v == nil {
return nil
@@ -1565,6 +1584,40 @@ func validateChallengeConfig(v *types.ChallengeConfig) error {
}
}
+func validateClientSideAction(v *types.ClientSideAction) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ClientSideAction"}
+ if len(v.UsageOfAction) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("UsageOfAction"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
+func validateClientSideActionConfig(v *types.ClientSideActionConfig) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "ClientSideActionConfig"}
+ if v.Challenge == nil {
+ invalidParams.Add(smithy.NewErrParamRequired("Challenge"))
+ } else if v.Challenge != nil {
+ if err := validateClientSideAction(v.Challenge); err != nil {
+ invalidParams.AddNested("Challenge", err.(smithy.InvalidParamsError))
+ }
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateCondition(v *types.Condition) error {
if v == nil {
return nil
@@ -2308,6 +2361,11 @@ func validateManagedRuleGroupConfig(v *types.ManagedRuleGroupConfig) error {
invalidParams.AddNested("AWSManagedRulesACFPRuleSet", err.(smithy.InvalidParamsError))
}
}
+ if v.AWSManagedRulesAntiDDoSRuleSet != nil {
+ if err := validateAWSManagedRulesAntiDDoSRuleSet(v.AWSManagedRulesAntiDDoSRuleSet); err != nil {
+ invalidParams.AddNested("AWSManagedRulesAntiDDoSRuleSet", err.(smithy.InvalidParamsError))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
} else {
@@ -2389,6 +2447,21 @@ func validateNotStatement(v *types.NotStatement) error {
}
}
+func validateOnSourceDDoSProtectionConfig(v *types.OnSourceDDoSProtectionConfig) error {
+ if v == nil {
+ return nil
+ }
+ invalidParams := smithy.InvalidParamsError{Context: "OnSourceDDoSProtectionConfig"}
+ if len(v.ALBLowReputationMode) == 0 {
+ invalidParams.Add(smithy.NewErrParamRequired("ALBLowReputationMode"))
+ }
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ } else {
+ return nil
+ }
+}
+
func validateOrStatement(v *types.OrStatement) error {
if v == nil {
return nil
@@ -3733,6 +3806,11 @@ func validateOpCreateWebACLInput(v *CreateWebACLInput) error {
invalidParams.AddNested("AssociationConfig", err.(smithy.InvalidParamsError))
}
}
+ if v.OnSourceDDoSProtectionConfig != nil {
+ if err := validateOnSourceDDoSProtectionConfig(v.OnSourceDDoSProtectionConfig); err != nil {
+ invalidParams.AddNested("OnSourceDDoSProtectionConfig", err.(smithy.InvalidParamsError))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
} else {
@@ -4661,6 +4739,11 @@ func validateOpUpdateWebACLInput(v *UpdateWebACLInput) error {
invalidParams.AddNested("AssociationConfig", err.(smithy.InvalidParamsError))
}
}
+ if v.OnSourceDDoSProtectionConfig != nil {
+ if err := validateOnSourceDDoSProtectionConfig(v.OnSourceDDoSProtectionConfig); err != nil {
+ invalidParams.AddNested("OnSourceDDoSProtectionConfig", err.(smithy.InvalidParamsError))
+ }
+ }
if invalidParams.Len() > 0 {
return invalidParams
} else {
diff --git a/service/wellarchitected/CHANGELOG.md b/service/wellarchitected/CHANGELOG.md
index b3758f2d095..f374e5390ce 100644
--- a/service/wellarchitected/CHANGELOG.md
+++ b/service/wellarchitected/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.35.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.35.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/wellarchitected/go.mod b/service/wellarchitected/go.mod
index 911c6957bc6..0b5523d9bfa 100644
--- a/service/wellarchitected/go.mod
+++ b/service/wellarchitected/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wellarchitected
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/wellarchitected/go.sum b/service/wellarchitected/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/wellarchitected/go.sum
+++ b/service/wellarchitected/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/wellarchitected/go_module_metadata.go b/service/wellarchitected/go_module_metadata.go
index cbe9ce904eb..c6df91f9993 100644
--- a/service/wellarchitected/go_module_metadata.go
+++ b/service/wellarchitected/go_module_metadata.go
@@ -3,4 +3,4 @@
package wellarchitected
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.35.3"
+const goModuleVersion = "1.35.4"
diff --git a/service/wisdom/CHANGELOG.md b/service/wisdom/CHANGELOG.md
index 780510cb1f2..7e76d9013dd 100644
--- a/service/wisdom/CHANGELOG.md
+++ b/service/wisdom/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.28.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.28.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/wisdom/go.mod b/service/wisdom/go.mod
index f10c667161c..0818dc8b573 100644
--- a/service/wisdom/go.mod
+++ b/service/wisdom/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wisdom
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/wisdom/go.sum b/service/wisdom/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/wisdom/go.sum
+++ b/service/wisdom/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/wisdom/go_module_metadata.go b/service/wisdom/go_module_metadata.go
index 36cd2feaa32..cde5e99fbe4 100644
--- a/service/wisdom/go_module_metadata.go
+++ b/service/wisdom/go_module_metadata.go
@@ -3,4 +3,4 @@
package wisdom
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.28.3"
+const goModuleVersion = "1.28.4"
diff --git a/service/workdocs/CHANGELOG.md b/service/workdocs/CHANGELOG.md
index 0e7319fc86b..21d97515c73 100644
--- a/service/workdocs/CHANGELOG.md
+++ b/service/workdocs/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.26.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.26.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod
index d094f3cb7e9..32e952e7bd5 100644
--- a/service/workdocs/go.mod
+++ b/service/workdocs/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workdocs
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/workdocs/go.sum
+++ b/service/workdocs/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/workdocs/go_module_metadata.go b/service/workdocs/go_module_metadata.go
index 30a0cbbecf3..03491ab4fc3 100644
--- a/service/workdocs/go_module_metadata.go
+++ b/service/workdocs/go_module_metadata.go
@@ -3,4 +3,4 @@
package workdocs
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.26.3"
+const goModuleVersion = "1.26.4"
diff --git a/service/workmail/CHANGELOG.md b/service/workmail/CHANGELOG.md
index b3aeac01b61..dc7b423682d 100644
--- a/service/workmail/CHANGELOG.md
+++ b/service/workmail/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/workmail/go.mod b/service/workmail/go.mod
index 07010dddc11..ac7867a659e 100644
--- a/service/workmail/go.mod
+++ b/service/workmail/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workmail
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/workmail/go.sum b/service/workmail/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/workmail/go.sum
+++ b/service/workmail/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/workmail/go_module_metadata.go b/service/workmail/go_module_metadata.go
index 3e39025d97e..8bdab8ea486 100644
--- a/service/workmail/go_module_metadata.go
+++ b/service/workmail/go_module_metadata.go
@@ -3,4 +3,4 @@
package workmail
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.3"
+const goModuleVersion = "1.31.4"
diff --git a/service/workmailmessageflow/CHANGELOG.md b/service/workmailmessageflow/CHANGELOG.md
index 6dc3faca5d3..47d33f2dda8 100644
--- a/service/workmailmessageflow/CHANGELOG.md
+++ b/service/workmailmessageflow/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.24.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.24.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod
index 0ed4056ccc6..db317021495 100644
--- a/service/workmailmessageflow/go.mod
+++ b/service/workmailmessageflow/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workmailmessageflow
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/workmailmessageflow/go.sum
+++ b/service/workmailmessageflow/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/workmailmessageflow/go_module_metadata.go b/service/workmailmessageflow/go_module_metadata.go
index 387a494dd2e..249263bf53d 100644
--- a/service/workmailmessageflow/go_module_metadata.go
+++ b/service/workmailmessageflow/go_module_metadata.go
@@ -3,4 +3,4 @@
package workmailmessageflow
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.24.3"
+const goModuleVersion = "1.24.4"
diff --git a/service/workspaces/CHANGELOG.md b/service/workspaces/CHANGELOG.md
index 76b6c4dfdba..fd60d7a085f 100644
--- a/service/workspaces/CHANGELOG.md
+++ b/service/workspaces/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.57.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.57.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod
index 3edd7a32036..1456b60b066 100644
--- a/service/workspaces/go.mod
+++ b/service/workspaces/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspaces
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/workspaces/go.sum
+++ b/service/workspaces/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/workspaces/go_module_metadata.go b/service/workspaces/go_module_metadata.go
index f6419be12a9..e1f056577c4 100644
--- a/service/workspaces/go_module_metadata.go
+++ b/service/workspaces/go_module_metadata.go
@@ -3,4 +3,4 @@
package workspaces
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.57.1"
+const goModuleVersion = "1.57.2"
diff --git a/service/workspacesthinclient/CHANGELOG.md b/service/workspacesthinclient/CHANGELOG.md
index 5ac2c4e4c46..faa9bc0f130 100644
--- a/service/workspacesthinclient/CHANGELOG.md
+++ b/service/workspacesthinclient/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.14.2 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.14.1 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/workspacesthinclient/go.mod b/service/workspacesthinclient/go.mod
index 05a95bc538c..821eeae68fd 100644
--- a/service/workspacesthinclient/go.mod
+++ b/service/workspacesthinclient/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspacesthinclient
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/workspacesthinclient/go.sum b/service/workspacesthinclient/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/workspacesthinclient/go.sum
+++ b/service/workspacesthinclient/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/workspacesthinclient/go_module_metadata.go b/service/workspacesthinclient/go_module_metadata.go
index bad8925a611..e89ddba688d 100644
--- a/service/workspacesthinclient/go_module_metadata.go
+++ b/service/workspacesthinclient/go_module_metadata.go
@@ -3,4 +3,4 @@
package workspacesthinclient
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.14.1"
+const goModuleVersion = "1.14.2"
diff --git a/service/workspacesweb/CHANGELOG.md b/service/workspacesweb/CHANGELOG.md
index 07d702f4909..298bee02b59 100644
--- a/service/workspacesweb/CHANGELOG.md
+++ b/service/workspacesweb/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.27.4 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.27.3 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/workspacesweb/go.mod b/service/workspacesweb/go.mod
index d21177454d0..e070d337387 100644
--- a/service/workspacesweb/go.mod
+++ b/service/workspacesweb/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspacesweb
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/workspacesweb/go.sum b/service/workspacesweb/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/workspacesweb/go.sum
+++ b/service/workspacesweb/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/workspacesweb/go_module_metadata.go b/service/workspacesweb/go_module_metadata.go
index e1d09f796f6..f53dac2db9a 100644
--- a/service/workspacesweb/go_module_metadata.go
+++ b/service/workspacesweb/go_module_metadata.go
@@ -3,4 +3,4 @@
package workspacesweb
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.27.3"
+const goModuleVersion = "1.27.4"
diff --git a/service/xray/CHANGELOG.md b/service/xray/CHANGELOG.md
index ec95ff20feb..be3fdaed856 100644
--- a/service/xray/CHANGELOG.md
+++ b/service/xray/CHANGELOG.md
@@ -1,3 +1,8 @@
+# v1.31.7 (2025-06-17)
+
+* **Dependency Update**: Update to smithy-go v1.22.4.
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.31.6 (2025-06-10)
* **Dependency Update**: Updated to the latest SDK module versions
diff --git a/service/xray/go.mod b/service/xray/go.mod
index 2c211271595..a2c5c96c66d 100644
--- a/service/xray/go.mod
+++ b/service/xray/go.mod
@@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/xray
go 1.22
require (
- github.com/aws/aws-sdk-go-v2 v1.36.4
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35
- github.com/aws/smithy-go v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.36.5
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36
+ github.com/aws/smithy-go v1.22.4
)
replace github.com/aws/aws-sdk-go-v2 => ../../
diff --git a/service/xray/go.sum b/service/xray/go.sum
index cad7e6ad46a..4b2de34095f 100644
--- a/service/xray/go.sum
+++ b/service/xray/go.sum
@@ -1,2 +1,2 @@
-github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ=
-github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
+github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw=
+github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI=
diff --git a/service/xray/go_module_metadata.go b/service/xray/go_module_metadata.go
index a9e5efe3390..6c06c7b2697 100644
--- a/service/xray/go_module_metadata.go
+++ b/service/xray/go_module_metadata.go
@@ -3,4 +3,4 @@
package xray
// goModuleVersion is the tagged release for this module
-const goModuleVersion = "1.31.6"
+const goModuleVersion = "1.31.7"